From 4d2191582be4f4871e5d5ebfe30d0a408b543c48 Mon Sep 17 00:00:00 2001 From: amendonca Date: Sat, 8 Jun 2019 13:22:42 -0400 Subject: [PATCH] Initial commit. --- .gitignore | 9 + Docs/AboutDTO.md | 17 + Docs/AboutEntity.md | 9 + Docs/AccessApi.md | 760 ++ Docs/AccessConfigurationDTO.md | 9 + Docs/AccessConfigurationEntity.md | 9 + Docs/AccessPolicyDTO.md | 18 + Docs/AccessPolicyEntity.md | 17 + Docs/AccessPolicySummaryDTO.md | 16 + Docs/AccessPolicySummaryEntity.md | 16 + Docs/AccessStatusDTO.md | 11 + Docs/AccessStatusEntity.md | 9 + Docs/ActionDTO.md | 17 + Docs/ActionDetailsDTO.md | 8 + Docs/ActionEntity.md | 13 + Docs/ActivateControllerServicesEntity.md | 12 + Docs/AffectedComponentDTO.md | 15 + Docs/AffectedComponentEntity.md | 16 + Docs/AllowableValueDTO.md | 11 + Docs/AllowableValueEntity.md | 10 + Docs/AttributeDTO.md | 11 + Docs/BannerDTO.md | 10 + Docs/BannerEntity.md | 9 + Docs/BatchSettingsDTO.md | 11 + Docs/BatchSize.md | 11 + Docs/Bucket.md | 14 + Docs/BucketDTO.md | 12 + Docs/BucketEntity.md | 11 + Docs/BucketsEntity.md | 9 + Docs/BulletinBoardDTO.md | 10 + Docs/BulletinBoardEntity.md | 9 + Docs/BulletinDTO.md | 17 + Docs/BulletinEntity.md | 15 + Docs/Bundle.md | 11 + Docs/BundleDTO.md | 11 + Docs/ClusteSummaryEntity.md | 9 + Docs/ClusterDTO.md | 10 + Docs/ClusterEntity.md | 9 + Docs/ClusterSearchResultsEntity.md | 9 + Docs/ClusterSummaryDTO.md | 13 + Docs/ComponentDetailsDTO.md | 8 + Docs/ComponentDifferenceDTO.md | 13 + Docs/ComponentHistoryDTO.md | 10 + Docs/ComponentHistoryEntity.md | 9 + Docs/ComponentReferenceDTO.md | 13 + Docs/ComponentReferenceEntity.md | 17 + Docs/ComponentRestrictionPermissionDTO.md | 10 + Docs/ComponentSearchResultDTO.md | 14 + Docs/ComponentStateDTO.md | 12 + Docs/ComponentStateEntity.md | 9 + Docs/ConnectableComponent.md | 13 + Docs/ConnectableDTO.md | 17 + Docs/ConnectionDTO.md | 28 + Docs/ConnectionEntity.md | 26 + Docs/ConnectionStatusDTO.md | 18 + Docs/ConnectionStatusEntity.md | 10 + Docs/ConnectionStatusSnapshotDTO.md | 28 + Docs/ConnectionStatusSnapshotEntity.md | 11 + Docs/ConnectionsApi.md | 196 + Docs/ConnectionsEntity.md | 9 + Docs/ControllerApi.md | 908 ++ Docs/ControllerBulletinsEntity.md | 11 + Docs/ControllerConfigurationDTO.md | 10 + Docs/ControllerConfigurationEntity.md | 12 + Docs/ControllerDTO.md | 25 + Docs/ControllerEntity.md | 9 + Docs/ControllerServiceAPI.md | 10 + Docs/ControllerServiceApiDTO.md | 10 + Docs/ControllerServiceDTO.md | 30 + Docs/ControllerServiceEntity.md | 19 + ...ontrollerServiceReferencingComponentDTO.md | 20 + ...rollerServiceReferencingComponentEntity.md | 17 + ...ollerServiceReferencingComponentsEntity.md | 9 + Docs/ControllerServiceRunStatusEntity.md | 11 + Docs/ControllerServiceStatusDTO.md | 11 + Docs/ControllerServiceTypesEntity.md | 9 + Docs/ControllerServicesApi.md | 562 ++ Docs/ControllerServicesEntity.md | 10 + Docs/ControllerStatusDTO.md | 24 + Docs/ControllerStatusEntity.md | 9 + Docs/CopySnippetRequestEntity.md | 12 + Docs/CounterDTO.md | 13 + Docs/CounterEntity.md | 9 + Docs/CountersApi.md | 134 + Docs/CountersDTO.md | 10 + Docs/CountersEntity.md | 9 + Docs/CountersSnapshotDTO.md | 10 + Docs/CreateActiveRequestEntity.md | 10 + Docs/CreateTemplateRequestEntity.md | 12 + Docs/CurrentUserEntity.md | 19 + Docs/DataTransferApi.md | 448 + Docs/DifferenceDTO.md | 10 + Docs/DimensionsDTO.md | 10 + Docs/DocumentedTypeDTO.md | 17 + Docs/DropRequestDTO.md | 25 + Docs/DropRequestEntity.md | 9 + Docs/ExplicitRestrictionDTO.md | 10 + Docs/FlowApi.md | 2400 ++++++ Docs/FlowBreadcrumbDTO.md | 11 + Docs/FlowBreadcrumbEntity.md | 13 + Docs/FlowComparisonEntity.md | 9 + Docs/FlowConfigurationDTO.md | 16 + Docs/FlowConfigurationEntity.md | 9 + Docs/FlowDTO.md | 16 + Docs/FlowEntity.md | 9 + Docs/FlowFileDTO.md | 26 + Docs/FlowFileEntity.md | 9 + Docs/FlowFileSummaryDTO.md | 19 + Docs/FlowSnippetDTO.md | 17 + Docs/FlowfileQueuesApi.md | 506 ++ Docs/FunnelApi.md | 196 + Docs/FunnelDTO.md | 12 + Docs/FunnelEntity.md | 16 + Docs/FunnelsEntity.md | 9 + Docs/GarbageCollectionDTO.md | 12 + Docs/HistoryDTO.md | 11 + Docs/HistoryEntity.md | 9 + Docs/InputPortsApi.md | 258 + Docs/InputPortsEntity.md | 9 + Docs/InstantiateTemplateRequestEntity.md | 14 + Docs/LabelDTO.md | 16 + Docs/LabelEntity.md | 17 + Docs/LabelsApi.md | 196 + Docs/LabelsEntity.md | 9 + Docs/LineageDTO.md | 16 + Docs/LineageEntity.md | 9 + Docs/LineageRequestDTO.md | 12 + Docs/LineageResultsDTO.md | 11 + Docs/Link.md | 15 + Docs/ListingRequestDTO.md | 21 + Docs/ListingRequestEntity.md | 9 + Docs/NodeConnectionStatusSnapshotDTO.md | 12 + Docs/NodeCountersSnapshotDTO.md | 12 + Docs/NodeDTO.md | 19 + Docs/NodeEntity.md | 9 + Docs/NodeEventDTO.md | 11 + Docs/NodePortStatusSnapshotDTO.md | 12 + Docs/NodeProcessGroupStatusSnapshotDTO.md | 12 + Docs/NodeProcessorStatusSnapshotDTO.md | 12 + ...NodeRemoteProcessGroupStatusSnapshotDTO.md | 12 + Docs/NodeSearchResultDTO.md | 10 + Docs/NodeStatusSnapshotsDTO.md | 12 + Docs/NodeSystemDiagnosticsSnapshotDTO.md | 12 + Docs/OutputPortsApi.md | 258 + Docs/OutputPortsEntity.md | 9 + Docs/PeerDTO.md | 12 + Docs/PeersEntity.md | 9 + Docs/Permissions.md | 11 + Docs/PermissionsDTO.md | 10 + Docs/PoliciesApi.md | 320 + Docs/PortDTO.md | 21 + Docs/PortEntity.md | 19 + Docs/PortRunStatusEntity.md | 11 + Docs/PortStatusDTO.md | 16 + Docs/PortStatusEntity.md | 10 + Docs/PortStatusSnapshotDTO.md | 20 + Docs/PortStatusSnapshotEntity.md | 11 + Docs/Position.md | 10 + Docs/PositionDTO.md | 10 + Docs/PreviousValueDTO.md | 11 + Docs/PrioritizerTypesEntity.md | 9 + Docs/ProcessGroupDTO.md | 30 + Docs/ProcessGroupEntity.md | 32 + Docs/ProcessGroupFlowDTO.md | 14 + Docs/ProcessGroupFlowEntity.md | 10 + Docs/ProcessGroupStatusDTO.md | 13 + Docs/ProcessGroupStatusEntity.md | 10 + Docs/ProcessGroupStatusSnapshotDTO.md | 43 + Docs/ProcessGroupStatusSnapshotEntity.md | 11 + Docs/ProcessGroupsApi.md | 1928 +++++ Docs/ProcessGroupsEntity.md | 9 + Docs/ProcessorConfigDTO.md | 25 + Docs/ProcessorDTO.md | 32 + Docs/ProcessorEntity.md | 19 + Docs/ProcessorRunStatusEntity.md | 11 + Docs/ProcessorStatusDTO.md | 16 + Docs/ProcessorStatusEntity.md | 10 + Docs/ProcessorStatusSnapshotDTO.md | 30 + Docs/ProcessorStatusSnapshotEntity.md | 11 + Docs/ProcessorTypesEntity.md | 9 + Docs/ProcessorsApi.md | 564 ++ Docs/ProcessorsEntity.md | 9 + Docs/PropertyDescriptorDTO.md | 20 + Docs/PropertyDescriptorEntity.md | 9 + Docs/PropertyHistoryDTO.md | 9 + Docs/ProvenanceApi.md | 440 + Docs/ProvenanceDTO.md | 16 + Docs/ProvenanceEntity.md | 9 + Docs/ProvenanceEventDTO.md | 49 + Docs/ProvenanceEventEntity.md | 9 + Docs/ProvenanceEventsApi.md | 254 + Docs/ProvenanceLinkDTO.md | 13 + Docs/ProvenanceNodeDTO.md | 17 + Docs/ProvenanceOptionsDTO.md | 9 + Docs/ProvenanceOptionsEntity.md | 9 + Docs/ProvenanceRequestDTO.md | 17 + Docs/ProvenanceResultsDTO.md | 15 + Docs/ProvenanceSearchableFieldDTO.md | 12 + Docs/QueueSizeDTO.md | 10 + Docs/RegistryClientEntity.md | 16 + Docs/RegistryClientsEntity.md | 9 + Docs/RegistryDTO.md | 12 + Docs/RelationshipDTO.md | 11 + Docs/RemotePortRunStatusEntity.md | 11 + Docs/RemoteProcessGroupContentsDTO.md | 10 + Docs/RemoteProcessGroupDTO.md | 36 + Docs/RemoteProcessGroupEntity.md | 20 + Docs/RemoteProcessGroupPortDTO.md | 21 + Docs/RemoteProcessGroupPortEntity.md | 17 + Docs/RemoteProcessGroupStatusDTO.md | 17 + Docs/RemoteProcessGroupStatusEntity.md | 10 + Docs/RemoteProcessGroupStatusSnapshotDTO.md | 20 + .../RemoteProcessGroupStatusSnapshotEntity.md | 11 + Docs/RemoteProcessGroupsApi.md | 522 ++ Docs/RemoteProcessGroupsEntity.md | 9 + Docs/ReportingTaskDTO.md | 32 + Docs/ReportingTaskEntity.md | 18 + Docs/ReportingTaskRunStatusEntity.md | 11 + Docs/ReportingTaskStatusDTO.md | 11 + Docs/ReportingTaskTypesEntity.md | 9 + Docs/ReportingTasksApi.md | 440 + Docs/ReportingTasksEntity.md | 9 + Docs/RequiredPermissionDTO.md | 10 + Docs/ResourceDTO.md | 10 + Docs/ResourcesApi.md | 64 + Docs/ResourcesEntity.md | 9 + Docs/RevisionDTO.md | 11 + Docs/ScheduleComponentsEntity.md | 12 + Docs/SearchResultGroupDTO.md | 10 + Docs/SearchResultsDTO.md | 15 + Docs/SearchResultsEntity.md | 9 + Docs/SiteToSiteApi.md | 120 + Docs/SnippetDTO.md | 19 + Docs/SnippetEntity.md | 10 + Docs/SnippetsApi.md | 192 + Docs/StartVersionControlRequestEntity.md | 11 + Docs/StateEntryDTO.md | 12 + Docs/StateMapDTO.md | 11 + Docs/StatusDescriptorDTO.md | 12 + Docs/StatusHistoryDTO.md | 13 + Docs/StatusHistoryEntity.md | 10 + Docs/StatusSnapshotDTO.md | 10 + Docs/StorageUsageDTO.md | 16 + Docs/StreamingOutput.md | 8 + Docs/SubmitReplayRequestEntity.md | 10 + Docs/SystemDiagnosticsApi.md | 70 + Docs/SystemDiagnosticsDTO.md | 10 + Docs/SystemDiagnosticsEntity.md | 9 + Docs/SystemDiagnosticsSnapshotDTO.md | 37 + Docs/TemplateDTO.md | 16 + Docs/TemplateEntity.md | 16 + Docs/TemplatesApi.md | 130 + Docs/TemplatesEntity.md | 10 + Docs/TenantDTO.md | 14 + Docs/TenantEntity.md | 16 + Docs/TenantsApi.md | 698 ++ Docs/TenantsEntity.md | 10 + Docs/TransactionResultEntity.md | 11 + ...ControllerServiceReferenceRequestEntity.md | 12 + Docs/UriBuilder.md | 8 + Docs/UserDTO.md | 16 + Docs/UserEntity.md | 16 + Docs/UserGroupDTO.md | 16 + Docs/UserGroupEntity.md | 16 + Docs/UserGroupsEntity.md | 9 + Docs/UsersEntity.md | 10 + Docs/VariableDTO.md | 12 + Docs/VariableEntity.md | 10 + Docs/VariableRegistryDTO.md | 10 + Docs/VariableRegistryEntity.md | 11 + Docs/VariableRegistryUpdateRequestDTO.md | 17 + Docs/VariableRegistryUpdateRequestEntity.md | 10 + Docs/VariableRegistryUpdateStepDTO.md | 11 + Docs/VersionControlComponentMappingEntity.md | 12 + Docs/VersionControlInformationDTO.md | 19 + Docs/VersionControlInformationEntity.md | 11 + Docs/VersionInfoDTO.md | 18 + Docs/VersionedConnection.md | 27 + Docs/VersionedControllerService.md | 20 + Docs/VersionedFlow.md | 19 + Docs/VersionedFlowCoordinates.md | 13 + Docs/VersionedFlowDTO.md | 14 + Docs/VersionedFlowEntity.md | 9 + Docs/VersionedFlowSnapshot.md | 13 + Docs/VersionedFlowSnapshotEntity.md | 13 + Docs/VersionedFlowSnapshotMetadata.md | 15 + Docs/VersionedFlowSnapshotMetadataEntity.md | 10 + .../VersionedFlowSnapshotMetadataSetEntity.md | 9 + Docs/VersionedFlowUpdateRequestDTO.md | 17 + Docs/VersionedFlowUpdateRequestEntity.md | 10 + Docs/VersionedFlowsEntity.md | 9 + Docs/VersionedFunnel.md | 14 + Docs/VersionedLabel.md | 18 + Docs/VersionedPort.md | 16 + Docs/VersionedProcessGroup.md | 25 + Docs/VersionedProcessor.md | 29 + Docs/VersionedPropertyDescriptor.md | 12 + Docs/VersionedRemoteGroupPort.md | 19 + Docs/VersionedRemoteProcessGroup.md | 25 + Docs/VersionsApi.md | 835 ++ .../App.config | 14 + ...Swagger.SystemDiagnosticsApiExample.csproj | 61 + .../Program.cs | 34 + .../Properties/AssemblyInfo.cs | 36 + NiFi.Swagger/Api/AccessApi.cs | 2233 +++++ NiFi.Swagger/Api/ConnectionsApi.cs | 723 ++ NiFi.Swagger/Api/ControllerApi.cs | 2899 +++++++ NiFi.Swagger/Api/ControllerServicesApi.cs | 1861 +++++ NiFi.Swagger/Api/CountersApi.cs | 490 ++ NiFi.Swagger/Api/DataTransferApi.cs | 1529 ++++ NiFi.Swagger/Api/FlowApi.cs | 7281 +++++++++++++++++ NiFi.Swagger/Api/FlowfileQueuesApi.cs | 1674 ++++ NiFi.Swagger/Api/FunnelApi.cs | 723 ++ NiFi.Swagger/Api/InputPortsApi.cs | 930 +++ NiFi.Swagger/Api/LabelsApi.cs | 723 ++ NiFi.Swagger/Api/OutputPortsApi.cs | 930 +++ NiFi.Swagger/Api/PoliciesApi.cs | 1107 +++ NiFi.Swagger/Api/ProcessGroupsApi.cs | 6201 ++++++++++++++ NiFi.Swagger/Api/ProcessorsApi.cs | 1841 +++++ NiFi.Swagger/Api/ProvenanceApi.cs | 1443 ++++ NiFi.Swagger/Api/ProvenanceEventsApi.cs | 884 ++ NiFi.Swagger/Api/RemoteProcessGroupsApi.cs | 1822 +++++ NiFi.Swagger/Api/ReportingTasksApi.cs | 1477 ++++ NiFi.Swagger/Api/ResourcesApi.cs | 293 + NiFi.Swagger/Api/SiteToSiteApi.cs | 456 ++ NiFi.Swagger/Api/SnippetsApi.cs | 717 ++ NiFi.Swagger/Api/SystemDiagnosticsApi.cs | 313 + NiFi.Swagger/Api/TemplatesApi.cs | 496 ++ NiFi.Swagger/Api/TenantsApi.cs | 2195 +++++ NiFi.Swagger/Api/VersionsApi.cs | 2655 ++++++ NiFi.Swagger/Client/ApiClient.cs | 532 ++ NiFi.Swagger/Client/ApiException.cs | 60 + NiFi.Swagger/Client/ApiResponse.cs | 53 + NiFi.Swagger/Client/Configuration.cs | 450 + NiFi.Swagger/Client/ExceptionFactory.cs | 24 + NiFi.Swagger/Client/GlobalConfiguration.cs | 25 + NiFi.Swagger/Client/IApiAccessor.cs | 37 + NiFi.Swagger/Client/IReadableConfiguration.cs | 93 + NiFi.Swagger/Client/SwaggerDateConverter.cs | 30 + NiFi.Swagger/DateTimeFixingConverter.cs | 105 + NiFi.Swagger/Model/AboutDTO.cs | 253 + NiFi.Swagger/Model/AboutEntity.cs | 118 + NiFi.Swagger/Model/AccessConfigurationDTO.cs | 118 + .../Model/AccessConfigurationEntity.cs | 118 + NiFi.Swagger/Model/AccessPolicyDTO.cs | 295 + NiFi.Swagger/Model/AccessPolicyEntity.cs | 255 + NiFi.Swagger/Model/AccessPolicySummaryDTO.cs | 260 + .../Model/AccessPolicySummaryEntity.cs | 238 + NiFi.Swagger/Model/AccessStatusDTO.cs | 148 + NiFi.Swagger/Model/AccessStatusEntity.cs | 118 + NiFi.Swagger/Model/ActionDTO.cs | 255 + NiFi.Swagger/Model/ActionDetailsDTO.cs | 103 + NiFi.Swagger/Model/ActionEntity.cs | 182 + .../Model/ActivateControllerServicesEntity.cs | 193 + NiFi.Swagger/Model/AffectedComponentDTO.cs | 268 + NiFi.Swagger/Model/AffectedComponentEntity.cs | 238 + NiFi.Swagger/Model/AllowableValueDTO.cs | 153 + NiFi.Swagger/Model/AllowableValueEntity.cs | 133 + NiFi.Swagger/Model/AttributeDTO.cs | 153 + NiFi.Swagger/Model/BannerDTO.cs | 136 + NiFi.Swagger/Model/BannerEntity.cs | 118 + NiFi.Swagger/Model/BatchSettingsDTO.cs | 153 + NiFi.Swagger/Model/BatchSize.cs | 153 + NiFi.Swagger/Model/Bucket.cs | 216 + NiFi.Swagger/Model/BucketDTO.cs | 170 + NiFi.Swagger/Model/BucketEntity.cs | 150 + NiFi.Swagger/Model/BucketsEntity.cs | 119 + NiFi.Swagger/Model/BulletinBoardDTO.cs | 137 + NiFi.Swagger/Model/BulletinBoardEntity.cs | 118 + NiFi.Swagger/Model/BulletinDTO.cs | 255 + NiFi.Swagger/Model/BulletinEntity.cs | 214 + NiFi.Swagger/Model/Bundle.cs | 153 + NiFi.Swagger/Model/BundleDTO.cs | 153 + NiFi.Swagger/Model/ClusteSummaryEntity.cs | 118 + NiFi.Swagger/Model/ClusterDTO.cs | 137 + NiFi.Swagger/Model/ClusterEntity.cs | 118 + .../Model/ClusterSearchResultsEntity.cs | 119 + NiFi.Swagger/Model/ClusterSummaryDTO.cs | 187 + NiFi.Swagger/Model/ComponentDetailsDTO.cs | 103 + NiFi.Swagger/Model/ComponentDifferenceDTO.cs | 188 + NiFi.Swagger/Model/ComponentHistoryDTO.cs | 137 + NiFi.Swagger/Model/ComponentHistoryEntity.cs | 118 + NiFi.Swagger/Model/ComponentReferenceDTO.cs | 187 + .../Model/ComponentReferenceEntity.cs | 255 + .../ComponentRestrictionPermissionDTO.cs | 136 + .../Model/ComponentSearchResultDTO.cs | 205 + NiFi.Swagger/Model/ComponentStateDTO.cs | 170 + NiFi.Swagger/Model/ComponentStateEntity.cs | 119 + NiFi.Swagger/Model/ConnectableComponent.cs | 263 + NiFi.Swagger/Model/ConnectableDTO.cs | 331 + NiFi.Swagger/Model/ConnectionDTO.cs | 527 ++ NiFi.Swagger/Model/ConnectionEntity.cs | 521 ++ NiFi.Swagger/Model/ConnectionStatusDTO.cs | 273 + NiFi.Swagger/Model/ConnectionStatusEntity.cs | 133 + .../Model/ConnectionStatusSnapshotDTO.cs | 442 + .../Model/ConnectionStatusSnapshotEntity.cs | 150 + NiFi.Swagger/Model/ConnectionsEntity.cs | 119 + .../Model/ControllerBulletinsEntity.cs | 154 + .../Model/ControllerConfigurationDTO.cs | 136 + .../Model/ControllerConfigurationEntity.cs | 170 + NiFi.Swagger/Model/ControllerDTO.cs | 392 + NiFi.Swagger/Model/ControllerEntity.cs | 118 + NiFi.Swagger/Model/ControllerServiceAPI.cs | 136 + NiFi.Swagger/Model/ControllerServiceApiDTO.cs | 136 + NiFi.Swagger/Model/ControllerServiceDTO.cs | 536 ++ NiFi.Swagger/Model/ControllerServiceEntity.cs | 287 + ...ontrollerServiceReferencingComponentDTO.cs | 335 + ...rollerServiceReferencingComponentEntity.cs | 255 + ...ollerServiceReferencingComponentsEntity.cs | 119 + .../Model/ControllerServiceRunStatusEntity.cs | 175 + .../Model/ControllerServiceStatusDTO.cs | 210 + .../Model/ControllerServiceTypesEntity.cs | 119 + .../Model/ControllerServicesEntity.cs | 136 + NiFi.Swagger/Model/ControllerStatusDTO.cs | 374 + NiFi.Swagger/Model/ControllerStatusEntity.cs | 118 + .../Model/CopySnippetRequestEntity.cs | 170 + NiFi.Swagger/Model/CounterDTO.cs | 187 + NiFi.Swagger/Model/CounterEntity.cs | 118 + NiFi.Swagger/Model/CountersDTO.cs | 137 + NiFi.Swagger/Model/CountersEntity.cs | 118 + NiFi.Swagger/Model/CountersSnapshotDTO.cs | 137 + .../Model/CreateActiveRequestEntity.cs | 136 + .../Model/CreateTemplateRequestEntity.cs | 170 + NiFi.Swagger/Model/CurrentUserEntity.cs | 290 + NiFi.Swagger/Model/DifferenceDTO.cs | 136 + NiFi.Swagger/Model/DimensionsDTO.cs | 136 + NiFi.Swagger/Model/DocumentedTypeDTO.cs | 256 + NiFi.Swagger/Model/DropRequestDTO.cs | 391 + NiFi.Swagger/Model/DropRequestEntity.cs | 118 + NiFi.Swagger/Model/ExplicitRestrictionDTO.cs | 136 + NiFi.Swagger/Model/FlowBreadcrumbDTO.cs | 153 + NiFi.Swagger/Model/FlowBreadcrumbEntity.cs | 225 + NiFi.Swagger/Model/FlowComparisonEntity.cs | 120 + NiFi.Swagger/Model/FlowConfigurationDTO.cs | 230 + NiFi.Swagger/Model/FlowConfigurationEntity.cs | 119 + NiFi.Swagger/Model/FlowDTO.cs | 239 + NiFi.Swagger/Model/FlowEntity.cs | 118 + NiFi.Swagger/Model/FlowFileDTO.cs | 409 + NiFi.Swagger/Model/FlowFileEntity.cs | 118 + NiFi.Swagger/Model/FlowFileSummaryDTO.cs | 289 + NiFi.Swagger/Model/FlowSnippetDTO.cs | 256 + NiFi.Swagger/Model/FunnelDTO.cs | 170 + NiFi.Swagger/Model/FunnelEntity.cs | 238 + NiFi.Swagger/Model/FunnelsEntity.cs | 119 + NiFi.Swagger/Model/GarbageCollectionDTO.cs | 170 + NiFi.Swagger/Model/HistoryDTO.cs | 154 + NiFi.Swagger/Model/HistoryEntity.cs | 118 + NiFi.Swagger/Model/InputPortsEntity.cs | 119 + .../Model/InstantiateTemplateRequestEntity.cs | 204 + NiFi.Swagger/Model/LabelDTO.cs | 239 + NiFi.Swagger/Model/LabelEntity.cs | 254 + NiFi.Swagger/Model/LabelsEntity.cs | 119 + NiFi.Swagger/Model/LineageDTO.cs | 238 + NiFi.Swagger/Model/LineageEntity.cs | 118 + NiFi.Swagger/Model/LineageRequestDTO.cs | 198 + NiFi.Swagger/Model/LineageResultsDTO.cs | 154 + NiFi.Swagger/Model/Link.cs | 215 + NiFi.Swagger/Model/ListingRequestDTO.cs | 324 + NiFi.Swagger/Model/ListingRequestEntity.cs | 118 + .../Model/NodeConnectionStatusSnapshotDTO.cs | 170 + NiFi.Swagger/Model/NodeCountersSnapshotDTO.cs | 170 + NiFi.Swagger/Model/NodeDTO.cs | 270 + NiFi.Swagger/Model/NodeEntity.cs | 118 + NiFi.Swagger/Model/NodeEventDTO.cs | 153 + .../Model/NodePortStatusSnapshotDTO.cs | 170 + .../NodeProcessGroupStatusSnapshotDTO.cs | 170 + .../Model/NodeProcessorStatusSnapshotDTO.cs | 170 + ...NodeRemoteProcessGroupStatusSnapshotDTO.cs | 170 + NiFi.Swagger/Model/NodeSearchResultDTO.cs | 136 + NiFi.Swagger/Model/NodeStatusSnapshotsDTO.cs | 171 + .../Model/NodeSystemDiagnosticsSnapshotDTO.cs | 170 + NiFi.Swagger/Model/OutputPortsEntity.cs | 119 + NiFi.Swagger/Model/PeerDTO.cs | 170 + NiFi.Swagger/Model/PeersEntity.cs | 119 + NiFi.Swagger/Model/Permissions.cs | 148 + NiFi.Swagger/Model/PermissionsDTO.cs | 133 + NiFi.Swagger/Model/PortDTO.cs | 373 + NiFi.Swagger/Model/PortEntity.cs | 288 + NiFi.Swagger/Model/PortRunStatusEntity.cs | 181 + NiFi.Swagger/Model/PortStatusDTO.cs | 279 + NiFi.Swagger/Model/PortStatusEntity.cs | 133 + NiFi.Swagger/Model/PortStatusSnapshotDTO.cs | 346 + .../Model/PortStatusSnapshotEntity.cs | 150 + NiFi.Swagger/Model/Position.cs | 136 + NiFi.Swagger/Model/PositionDTO.cs | 136 + NiFi.Swagger/Model/PreviousValueDTO.cs | 153 + NiFi.Swagger/Model/PrioritizerTypesEntity.cs | 119 + NiFi.Swagger/Model/ProcessGroupDTO.cs | 475 ++ NiFi.Swagger/Model/ProcessGroupEntity.cs | 546 ++ NiFi.Swagger/Model/ProcessGroupFlowDTO.cs | 204 + NiFi.Swagger/Model/ProcessGroupFlowEntity.cs | 135 + NiFi.Swagger/Model/ProcessGroupStatusDTO.cs | 188 + .../Model/ProcessGroupStatusEntity.cs | 133 + .../Model/ProcessGroupStatusSnapshotDTO.cs | 736 ++ .../Model/ProcessGroupStatusSnapshotEntity.cs | 150 + NiFi.Swagger/Model/ProcessGroupsEntity.cs | 119 + NiFi.Swagger/Model/ProcessorConfigDTO.cs | 392 + NiFi.Swagger/Model/ProcessorDTO.cs | 562 ++ NiFi.Swagger/Model/ProcessorEntity.cs | 288 + .../Model/ProcessorRunStatusEntity.cs | 181 + NiFi.Swagger/Model/ProcessorStatusDTO.cs | 279 + NiFi.Swagger/Model/ProcessorStatusEntity.cs | 133 + .../Model/ProcessorStatusSnapshotDTO.cs | 537 ++ .../Model/ProcessorStatusSnapshotEntity.cs | 150 + NiFi.Swagger/Model/ProcessorTypesEntity.cs | 119 + NiFi.Swagger/Model/ProcessorsEntity.cs | 119 + NiFi.Swagger/Model/PropertyDescriptorDTO.cs | 307 + .../Model/PropertyDescriptorEntity.cs | 118 + NiFi.Swagger/Model/PropertyHistoryDTO.cs | 120 + NiFi.Swagger/Model/ProvenanceDTO.cs | 238 + NiFi.Swagger/Model/ProvenanceEntity.cs | 118 + NiFi.Swagger/Model/ProvenanceEventDTO.cs | 800 ++ NiFi.Swagger/Model/ProvenanceEventEntity.cs | 118 + NiFi.Swagger/Model/ProvenanceLinkDTO.cs | 187 + NiFi.Swagger/Model/ProvenanceNodeDTO.cs | 278 + NiFi.Swagger/Model/ProvenanceOptionsDTO.cs | 120 + NiFi.Swagger/Model/ProvenanceOptionsEntity.cs | 118 + NiFi.Swagger/Model/ProvenanceRequestDTO.cs | 256 + NiFi.Swagger/Model/ProvenanceResultsDTO.cs | 222 + .../Model/ProvenanceSearchableFieldDTO.cs | 170 + NiFi.Swagger/Model/QueueSizeDTO.cs | 136 + NiFi.Swagger/Model/RegistryClientEntity.cs | 238 + NiFi.Swagger/Model/RegistryClientsEntity.cs | 119 + NiFi.Swagger/Model/RegistryDTO.cs | 170 + NiFi.Swagger/Model/RelationshipDTO.cs | 153 + .../Model/RemotePortRunStatusEntity.cs | 175 + .../Model/RemoteProcessGroupContentsDTO.cs | 137 + NiFi.Swagger/Model/RemoteProcessGroupDTO.cs | 574 ++ .../Model/RemoteProcessGroupEntity.cs | 306 + .../Model/RemoteProcessGroupPortDTO.cs | 323 + .../Model/RemoteProcessGroupPortEntity.cs | 255 + .../Model/RemoteProcessGroupStatusDTO.cs | 282 + .../Model/RemoteProcessGroupStatusEntity.cs | 133 + .../RemoteProcessGroupStatusSnapshotDTO.cs | 306 + .../RemoteProcessGroupStatusSnapshotEntity.cs | 150 + .../Model/RemoteProcessGroupsEntity.cs | 119 + NiFi.Swagger/Model/ReportingTaskDTO.cs | 564 ++ NiFi.Swagger/Model/ReportingTaskEntity.cs | 270 + .../Model/ReportingTaskRunStatusEntity.cs | 175 + NiFi.Swagger/Model/ReportingTaskStatusDTO.cs | 204 + .../Model/ReportingTaskTypesEntity.cs | 119 + NiFi.Swagger/Model/ReportingTasksEntity.cs | 119 + NiFi.Swagger/Model/RequiredPermissionDTO.cs | 136 + NiFi.Swagger/Model/ResourceDTO.cs | 136 + NiFi.Swagger/Model/ResourcesEntity.cs | 119 + NiFi.Swagger/Model/RevisionDTO.cs | 151 + .../Model/ScheduleComponentsEntity.cs | 205 + NiFi.Swagger/Model/SearchResultGroupDTO.cs | 150 + NiFi.Swagger/Model/SearchResultsDTO.cs | 222 + NiFi.Swagger/Model/SearchResultsEntity.cs | 118 + NiFi.Swagger/Model/SnippetDTO.cs | 290 + NiFi.Swagger/Model/SnippetEntity.cs | 136 + .../Model/StartVersionControlRequestEntity.cs | 153 + NiFi.Swagger/Model/StateEntryDTO.cs | 170 + NiFi.Swagger/Model/StateMapDTO.cs | 154 + NiFi.Swagger/Model/StatusDescriptorDTO.cs | 170 + NiFi.Swagger/Model/StatusHistoryDTO.cs | 188 + NiFi.Swagger/Model/StatusHistoryEntity.cs | 133 + NiFi.Swagger/Model/StatusSnapshotDTO.cs | 137 + NiFi.Swagger/Model/StorageUsageDTO.cs | 238 + NiFi.Swagger/Model/StreamingOutput.cs | 103 + .../Model/SubmitReplayRequestEntity.cs | 136 + NiFi.Swagger/Model/SystemDiagnosticsDTO.cs | 137 + NiFi.Swagger/Model/SystemDiagnosticsEntity.cs | 118 + .../Model/SystemDiagnosticsSnapshotDTO.cs | 596 ++ NiFi.Swagger/Model/TemplateDTO.cs | 238 + NiFi.Swagger/Model/TemplateEntity.cs | 238 + NiFi.Swagger/Model/TemplatesEntity.cs | 136 + NiFi.Swagger/Model/TenantDTO.cs | 204 + NiFi.Swagger/Model/TenantEntity.cs | 238 + NiFi.Swagger/Model/TenantsEntity.cs | 135 + NiFi.Swagger/Model/TransactionResultEntity.cs | 150 + ...ControllerServiceReferenceRequestEntity.cs | 205 + NiFi.Swagger/Model/UriBuilder.cs | 103 + NiFi.Swagger/Model/UserDTO.cs | 235 + NiFi.Swagger/Model/UserEntity.cs | 238 + NiFi.Swagger/Model/UserGroupDTO.cs | 237 + NiFi.Swagger/Model/UserGroupEntity.cs | 238 + NiFi.Swagger/Model/UserGroupsEntity.cs | 119 + NiFi.Swagger/Model/UsersEntity.cs | 136 + NiFi.Swagger/Model/VariableDTO.cs | 167 + NiFi.Swagger/Model/VariableEntity.cs | 134 + NiFi.Swagger/Model/VariableRegistryDTO.cs | 137 + NiFi.Swagger/Model/VariableRegistryEntity.cs | 153 + .../Model/VariableRegistryUpdateRequestDTO.cs | 240 + .../VariableRegistryUpdateRequestEntity.cs | 136 + .../Model/VariableRegistryUpdateStepDTO.cs | 148 + .../VersionControlComponentMappingEntity.cs | 171 + .../Model/VersionControlInformationDTO.cs | 321 + .../Model/VersionControlInformationEntity.cs | 153 + NiFi.Swagger/Model/VersionInfoDTO.cs | 272 + NiFi.Swagger/Model/VersionedConnection.cs | 560 ++ .../Model/VersionedControllerService.cs | 381 + NiFi.Swagger/Model/VersionedFlow.cs | 339 + .../Model/VersionedFlowCoordinates.cs | 187 + NiFi.Swagger/Model/VersionedFlowDTO.cs | 204 + NiFi.Swagger/Model/VersionedFlowEntity.cs | 119 + NiFi.Swagger/Model/VersionedFlowSnapshot.cs | 204 + .../Model/VersionedFlowSnapshotEntity.cs | 187 + .../Model/VersionedFlowSnapshotMetadata.cs | 257 + .../VersionedFlowSnapshotMetadataEntity.cs | 136 + .../VersionedFlowSnapshotMetadataSetEntity.cs | 119 + .../Model/VersionedFlowUpdateRequestDTO.cs | 239 + .../Model/VersionedFlowUpdateRequestEntity.cs | 136 + NiFi.Swagger/Model/VersionedFlowsEntity.cs | 119 + NiFi.Swagger/Model/VersionedFunnel.cs | 278 + NiFi.Swagger/Model/VersionedLabel.cs | 347 + NiFi.Swagger/Model/VersionedPort.cs | 333 + NiFi.Swagger/Model/VersionedProcessGroup.cs | 466 ++ NiFi.Swagger/Model/VersionedProcessor.cs | 534 ++ .../Model/VersionedPropertyDescriptor.cs | 170 + .../Model/VersionedRemoteGroupPort.cs | 363 + .../Model/VersionedRemoteProcessGroup.cs | 484 ++ NiFi.Swagger/NiFi.Swagger.csproj | 378 + NiFi.Swagger/NiFi.Swagger.csproj.user | 6 + NiFi.Swagger/NiFi.Swagger.nuspec | 41 + NiFi.Swagger/NiFi.Swagger.sln | 31 + NiFi.Swagger/Properties/AssemblyInfo.cs | 34 + NiFi.Swagger/app.config | 11 + NiFi.Swagger/packages.config | 6 + README.md | 449 +- 621 files changed, 120363 insertions(+), 1 deletion(-) create mode 100644 Docs/AboutDTO.md create mode 100644 Docs/AboutEntity.md create mode 100644 Docs/AccessApi.md create mode 100644 Docs/AccessConfigurationDTO.md create mode 100644 Docs/AccessConfigurationEntity.md create mode 100644 Docs/AccessPolicyDTO.md create mode 100644 Docs/AccessPolicyEntity.md create mode 100644 Docs/AccessPolicySummaryDTO.md create mode 100644 Docs/AccessPolicySummaryEntity.md create mode 100644 Docs/AccessStatusDTO.md create mode 100644 Docs/AccessStatusEntity.md create mode 100644 Docs/ActionDTO.md create mode 100644 Docs/ActionDetailsDTO.md create mode 100644 Docs/ActionEntity.md create mode 100644 Docs/ActivateControllerServicesEntity.md create mode 100644 Docs/AffectedComponentDTO.md create mode 100644 Docs/AffectedComponentEntity.md create mode 100644 Docs/AllowableValueDTO.md create mode 100644 Docs/AllowableValueEntity.md create mode 100644 Docs/AttributeDTO.md create mode 100644 Docs/BannerDTO.md create mode 100644 Docs/BannerEntity.md create mode 100644 Docs/BatchSettingsDTO.md create mode 100644 Docs/BatchSize.md create mode 100644 Docs/Bucket.md create mode 100644 Docs/BucketDTO.md create mode 100644 Docs/BucketEntity.md create mode 100644 Docs/BucketsEntity.md create mode 100644 Docs/BulletinBoardDTO.md create mode 100644 Docs/BulletinBoardEntity.md create mode 100644 Docs/BulletinDTO.md create mode 100644 Docs/BulletinEntity.md create mode 100644 Docs/Bundle.md create mode 100644 Docs/BundleDTO.md create mode 100644 Docs/ClusteSummaryEntity.md create mode 100644 Docs/ClusterDTO.md create mode 100644 Docs/ClusterEntity.md create mode 100644 Docs/ClusterSearchResultsEntity.md create mode 100644 Docs/ClusterSummaryDTO.md create mode 100644 Docs/ComponentDetailsDTO.md create mode 100644 Docs/ComponentDifferenceDTO.md create mode 100644 Docs/ComponentHistoryDTO.md create mode 100644 Docs/ComponentHistoryEntity.md create mode 100644 Docs/ComponentReferenceDTO.md create mode 100644 Docs/ComponentReferenceEntity.md create mode 100644 Docs/ComponentRestrictionPermissionDTO.md create mode 100644 Docs/ComponentSearchResultDTO.md create mode 100644 Docs/ComponentStateDTO.md create mode 100644 Docs/ComponentStateEntity.md create mode 100644 Docs/ConnectableComponent.md create mode 100644 Docs/ConnectableDTO.md create mode 100644 Docs/ConnectionDTO.md create mode 100644 Docs/ConnectionEntity.md create mode 100644 Docs/ConnectionStatusDTO.md create mode 100644 Docs/ConnectionStatusEntity.md create mode 100644 Docs/ConnectionStatusSnapshotDTO.md create mode 100644 Docs/ConnectionStatusSnapshotEntity.md create mode 100644 Docs/ConnectionsApi.md create mode 100644 Docs/ConnectionsEntity.md create mode 100644 Docs/ControllerApi.md create mode 100644 Docs/ControllerBulletinsEntity.md create mode 100644 Docs/ControllerConfigurationDTO.md create mode 100644 Docs/ControllerConfigurationEntity.md create mode 100644 Docs/ControllerDTO.md create mode 100644 Docs/ControllerEntity.md create mode 100644 Docs/ControllerServiceAPI.md create mode 100644 Docs/ControllerServiceApiDTO.md create mode 100644 Docs/ControllerServiceDTO.md create mode 100644 Docs/ControllerServiceEntity.md create mode 100644 Docs/ControllerServiceReferencingComponentDTO.md create mode 100644 Docs/ControllerServiceReferencingComponentEntity.md create mode 100644 Docs/ControllerServiceReferencingComponentsEntity.md create mode 100644 Docs/ControllerServiceRunStatusEntity.md create mode 100644 Docs/ControllerServiceStatusDTO.md create mode 100644 Docs/ControllerServiceTypesEntity.md create mode 100644 Docs/ControllerServicesApi.md create mode 100644 Docs/ControllerServicesEntity.md create mode 100644 Docs/ControllerStatusDTO.md create mode 100644 Docs/ControllerStatusEntity.md create mode 100644 Docs/CopySnippetRequestEntity.md create mode 100644 Docs/CounterDTO.md create mode 100644 Docs/CounterEntity.md create mode 100644 Docs/CountersApi.md create mode 100644 Docs/CountersDTO.md create mode 100644 Docs/CountersEntity.md create mode 100644 Docs/CountersSnapshotDTO.md create mode 100644 Docs/CreateActiveRequestEntity.md create mode 100644 Docs/CreateTemplateRequestEntity.md create mode 100644 Docs/CurrentUserEntity.md create mode 100644 Docs/DataTransferApi.md create mode 100644 Docs/DifferenceDTO.md create mode 100644 Docs/DimensionsDTO.md create mode 100644 Docs/DocumentedTypeDTO.md create mode 100644 Docs/DropRequestDTO.md create mode 100644 Docs/DropRequestEntity.md create mode 100644 Docs/ExplicitRestrictionDTO.md create mode 100644 Docs/FlowApi.md create mode 100644 Docs/FlowBreadcrumbDTO.md create mode 100644 Docs/FlowBreadcrumbEntity.md create mode 100644 Docs/FlowComparisonEntity.md create mode 100644 Docs/FlowConfigurationDTO.md create mode 100644 Docs/FlowConfigurationEntity.md create mode 100644 Docs/FlowDTO.md create mode 100644 Docs/FlowEntity.md create mode 100644 Docs/FlowFileDTO.md create mode 100644 Docs/FlowFileEntity.md create mode 100644 Docs/FlowFileSummaryDTO.md create mode 100644 Docs/FlowSnippetDTO.md create mode 100644 Docs/FlowfileQueuesApi.md create mode 100644 Docs/FunnelApi.md create mode 100644 Docs/FunnelDTO.md create mode 100644 Docs/FunnelEntity.md create mode 100644 Docs/FunnelsEntity.md create mode 100644 Docs/GarbageCollectionDTO.md create mode 100644 Docs/HistoryDTO.md create mode 100644 Docs/HistoryEntity.md create mode 100644 Docs/InputPortsApi.md create mode 100644 Docs/InputPortsEntity.md create mode 100644 Docs/InstantiateTemplateRequestEntity.md create mode 100644 Docs/LabelDTO.md create mode 100644 Docs/LabelEntity.md create mode 100644 Docs/LabelsApi.md create mode 100644 Docs/LabelsEntity.md create mode 100644 Docs/LineageDTO.md create mode 100644 Docs/LineageEntity.md create mode 100644 Docs/LineageRequestDTO.md create mode 100644 Docs/LineageResultsDTO.md create mode 100644 Docs/Link.md create mode 100644 Docs/ListingRequestDTO.md create mode 100644 Docs/ListingRequestEntity.md create mode 100644 Docs/NodeConnectionStatusSnapshotDTO.md create mode 100644 Docs/NodeCountersSnapshotDTO.md create mode 100644 Docs/NodeDTO.md create mode 100644 Docs/NodeEntity.md create mode 100644 Docs/NodeEventDTO.md create mode 100644 Docs/NodePortStatusSnapshotDTO.md create mode 100644 Docs/NodeProcessGroupStatusSnapshotDTO.md create mode 100644 Docs/NodeProcessorStatusSnapshotDTO.md create mode 100644 Docs/NodeRemoteProcessGroupStatusSnapshotDTO.md create mode 100644 Docs/NodeSearchResultDTO.md create mode 100644 Docs/NodeStatusSnapshotsDTO.md create mode 100644 Docs/NodeSystemDiagnosticsSnapshotDTO.md create mode 100644 Docs/OutputPortsApi.md create mode 100644 Docs/OutputPortsEntity.md create mode 100644 Docs/PeerDTO.md create mode 100644 Docs/PeersEntity.md create mode 100644 Docs/Permissions.md create mode 100644 Docs/PermissionsDTO.md create mode 100644 Docs/PoliciesApi.md create mode 100644 Docs/PortDTO.md create mode 100644 Docs/PortEntity.md create mode 100644 Docs/PortRunStatusEntity.md create mode 100644 Docs/PortStatusDTO.md create mode 100644 Docs/PortStatusEntity.md create mode 100644 Docs/PortStatusSnapshotDTO.md create mode 100644 Docs/PortStatusSnapshotEntity.md create mode 100644 Docs/Position.md create mode 100644 Docs/PositionDTO.md create mode 100644 Docs/PreviousValueDTO.md create mode 100644 Docs/PrioritizerTypesEntity.md create mode 100644 Docs/ProcessGroupDTO.md create mode 100644 Docs/ProcessGroupEntity.md create mode 100644 Docs/ProcessGroupFlowDTO.md create mode 100644 Docs/ProcessGroupFlowEntity.md create mode 100644 Docs/ProcessGroupStatusDTO.md create mode 100644 Docs/ProcessGroupStatusEntity.md create mode 100644 Docs/ProcessGroupStatusSnapshotDTO.md create mode 100644 Docs/ProcessGroupStatusSnapshotEntity.md create mode 100644 Docs/ProcessGroupsApi.md create mode 100644 Docs/ProcessGroupsEntity.md create mode 100644 Docs/ProcessorConfigDTO.md create mode 100644 Docs/ProcessorDTO.md create mode 100644 Docs/ProcessorEntity.md create mode 100644 Docs/ProcessorRunStatusEntity.md create mode 100644 Docs/ProcessorStatusDTO.md create mode 100644 Docs/ProcessorStatusEntity.md create mode 100644 Docs/ProcessorStatusSnapshotDTO.md create mode 100644 Docs/ProcessorStatusSnapshotEntity.md create mode 100644 Docs/ProcessorTypesEntity.md create mode 100644 Docs/ProcessorsApi.md create mode 100644 Docs/ProcessorsEntity.md create mode 100644 Docs/PropertyDescriptorDTO.md create mode 100644 Docs/PropertyDescriptorEntity.md create mode 100644 Docs/PropertyHistoryDTO.md create mode 100644 Docs/ProvenanceApi.md create mode 100644 Docs/ProvenanceDTO.md create mode 100644 Docs/ProvenanceEntity.md create mode 100644 Docs/ProvenanceEventDTO.md create mode 100644 Docs/ProvenanceEventEntity.md create mode 100644 Docs/ProvenanceEventsApi.md create mode 100644 Docs/ProvenanceLinkDTO.md create mode 100644 Docs/ProvenanceNodeDTO.md create mode 100644 Docs/ProvenanceOptionsDTO.md create mode 100644 Docs/ProvenanceOptionsEntity.md create mode 100644 Docs/ProvenanceRequestDTO.md create mode 100644 Docs/ProvenanceResultsDTO.md create mode 100644 Docs/ProvenanceSearchableFieldDTO.md create mode 100644 Docs/QueueSizeDTO.md create mode 100644 Docs/RegistryClientEntity.md create mode 100644 Docs/RegistryClientsEntity.md create mode 100644 Docs/RegistryDTO.md create mode 100644 Docs/RelationshipDTO.md create mode 100644 Docs/RemotePortRunStatusEntity.md create mode 100644 Docs/RemoteProcessGroupContentsDTO.md create mode 100644 Docs/RemoteProcessGroupDTO.md create mode 100644 Docs/RemoteProcessGroupEntity.md create mode 100644 Docs/RemoteProcessGroupPortDTO.md create mode 100644 Docs/RemoteProcessGroupPortEntity.md create mode 100644 Docs/RemoteProcessGroupStatusDTO.md create mode 100644 Docs/RemoteProcessGroupStatusEntity.md create mode 100644 Docs/RemoteProcessGroupStatusSnapshotDTO.md create mode 100644 Docs/RemoteProcessGroupStatusSnapshotEntity.md create mode 100644 Docs/RemoteProcessGroupsApi.md create mode 100644 Docs/RemoteProcessGroupsEntity.md create mode 100644 Docs/ReportingTaskDTO.md create mode 100644 Docs/ReportingTaskEntity.md create mode 100644 Docs/ReportingTaskRunStatusEntity.md create mode 100644 Docs/ReportingTaskStatusDTO.md create mode 100644 Docs/ReportingTaskTypesEntity.md create mode 100644 Docs/ReportingTasksApi.md create mode 100644 Docs/ReportingTasksEntity.md create mode 100644 Docs/RequiredPermissionDTO.md create mode 100644 Docs/ResourceDTO.md create mode 100644 Docs/ResourcesApi.md create mode 100644 Docs/ResourcesEntity.md create mode 100644 Docs/RevisionDTO.md create mode 100644 Docs/ScheduleComponentsEntity.md create mode 100644 Docs/SearchResultGroupDTO.md create mode 100644 Docs/SearchResultsDTO.md create mode 100644 Docs/SearchResultsEntity.md create mode 100644 Docs/SiteToSiteApi.md create mode 100644 Docs/SnippetDTO.md create mode 100644 Docs/SnippetEntity.md create mode 100644 Docs/SnippetsApi.md create mode 100644 Docs/StartVersionControlRequestEntity.md create mode 100644 Docs/StateEntryDTO.md create mode 100644 Docs/StateMapDTO.md create mode 100644 Docs/StatusDescriptorDTO.md create mode 100644 Docs/StatusHistoryDTO.md create mode 100644 Docs/StatusHistoryEntity.md create mode 100644 Docs/StatusSnapshotDTO.md create mode 100644 Docs/StorageUsageDTO.md create mode 100644 Docs/StreamingOutput.md create mode 100644 Docs/SubmitReplayRequestEntity.md create mode 100644 Docs/SystemDiagnosticsApi.md create mode 100644 Docs/SystemDiagnosticsDTO.md create mode 100644 Docs/SystemDiagnosticsEntity.md create mode 100644 Docs/SystemDiagnosticsSnapshotDTO.md create mode 100644 Docs/TemplateDTO.md create mode 100644 Docs/TemplateEntity.md create mode 100644 Docs/TemplatesApi.md create mode 100644 Docs/TemplatesEntity.md create mode 100644 Docs/TenantDTO.md create mode 100644 Docs/TenantEntity.md create mode 100644 Docs/TenantsApi.md create mode 100644 Docs/TenantsEntity.md create mode 100644 Docs/TransactionResultEntity.md create mode 100644 Docs/UpdateControllerServiceReferenceRequestEntity.md create mode 100644 Docs/UriBuilder.md create mode 100644 Docs/UserDTO.md create mode 100644 Docs/UserEntity.md create mode 100644 Docs/UserGroupDTO.md create mode 100644 Docs/UserGroupEntity.md create mode 100644 Docs/UserGroupsEntity.md create mode 100644 Docs/UsersEntity.md create mode 100644 Docs/VariableDTO.md create mode 100644 Docs/VariableEntity.md create mode 100644 Docs/VariableRegistryDTO.md create mode 100644 Docs/VariableRegistryEntity.md create mode 100644 Docs/VariableRegistryUpdateRequestDTO.md create mode 100644 Docs/VariableRegistryUpdateRequestEntity.md create mode 100644 Docs/VariableRegistryUpdateStepDTO.md create mode 100644 Docs/VersionControlComponentMappingEntity.md create mode 100644 Docs/VersionControlInformationDTO.md create mode 100644 Docs/VersionControlInformationEntity.md create mode 100644 Docs/VersionInfoDTO.md create mode 100644 Docs/VersionedConnection.md create mode 100644 Docs/VersionedControllerService.md create mode 100644 Docs/VersionedFlow.md create mode 100644 Docs/VersionedFlowCoordinates.md create mode 100644 Docs/VersionedFlowDTO.md create mode 100644 Docs/VersionedFlowEntity.md create mode 100644 Docs/VersionedFlowSnapshot.md create mode 100644 Docs/VersionedFlowSnapshotEntity.md create mode 100644 Docs/VersionedFlowSnapshotMetadata.md create mode 100644 Docs/VersionedFlowSnapshotMetadataEntity.md create mode 100644 Docs/VersionedFlowSnapshotMetadataSetEntity.md create mode 100644 Docs/VersionedFlowUpdateRequestDTO.md create mode 100644 Docs/VersionedFlowUpdateRequestEntity.md create mode 100644 Docs/VersionedFlowsEntity.md create mode 100644 Docs/VersionedFunnel.md create mode 100644 Docs/VersionedLabel.md create mode 100644 Docs/VersionedPort.md create mode 100644 Docs/VersionedProcessGroup.md create mode 100644 Docs/VersionedProcessor.md create mode 100644 Docs/VersionedPropertyDescriptor.md create mode 100644 Docs/VersionedRemoteGroupPort.md create mode 100644 Docs/VersionedRemoteProcessGroup.md create mode 100644 Docs/VersionsApi.md create mode 100644 NiFi.Swagger.SystemDiagnosticsApiExample/App.config create mode 100644 NiFi.Swagger.SystemDiagnosticsApiExample/NiFi.Swagger.SystemDiagnosticsApiExample.csproj create mode 100644 NiFi.Swagger.SystemDiagnosticsApiExample/Program.cs create mode 100644 NiFi.Swagger.SystemDiagnosticsApiExample/Properties/AssemblyInfo.cs create mode 100644 NiFi.Swagger/Api/AccessApi.cs create mode 100644 NiFi.Swagger/Api/ConnectionsApi.cs create mode 100644 NiFi.Swagger/Api/ControllerApi.cs create mode 100644 NiFi.Swagger/Api/ControllerServicesApi.cs create mode 100644 NiFi.Swagger/Api/CountersApi.cs create mode 100644 NiFi.Swagger/Api/DataTransferApi.cs create mode 100644 NiFi.Swagger/Api/FlowApi.cs create mode 100644 NiFi.Swagger/Api/FlowfileQueuesApi.cs create mode 100644 NiFi.Swagger/Api/FunnelApi.cs create mode 100644 NiFi.Swagger/Api/InputPortsApi.cs create mode 100644 NiFi.Swagger/Api/LabelsApi.cs create mode 100644 NiFi.Swagger/Api/OutputPortsApi.cs create mode 100644 NiFi.Swagger/Api/PoliciesApi.cs create mode 100644 NiFi.Swagger/Api/ProcessGroupsApi.cs create mode 100644 NiFi.Swagger/Api/ProcessorsApi.cs create mode 100644 NiFi.Swagger/Api/ProvenanceApi.cs create mode 100644 NiFi.Swagger/Api/ProvenanceEventsApi.cs create mode 100644 NiFi.Swagger/Api/RemoteProcessGroupsApi.cs create mode 100644 NiFi.Swagger/Api/ReportingTasksApi.cs create mode 100644 NiFi.Swagger/Api/ResourcesApi.cs create mode 100644 NiFi.Swagger/Api/SiteToSiteApi.cs create mode 100644 NiFi.Swagger/Api/SnippetsApi.cs create mode 100644 NiFi.Swagger/Api/SystemDiagnosticsApi.cs create mode 100644 NiFi.Swagger/Api/TemplatesApi.cs create mode 100644 NiFi.Swagger/Api/TenantsApi.cs create mode 100644 NiFi.Swagger/Api/VersionsApi.cs create mode 100644 NiFi.Swagger/Client/ApiClient.cs create mode 100644 NiFi.Swagger/Client/ApiException.cs create mode 100644 NiFi.Swagger/Client/ApiResponse.cs create mode 100644 NiFi.Swagger/Client/Configuration.cs create mode 100644 NiFi.Swagger/Client/ExceptionFactory.cs create mode 100644 NiFi.Swagger/Client/GlobalConfiguration.cs create mode 100644 NiFi.Swagger/Client/IApiAccessor.cs create mode 100644 NiFi.Swagger/Client/IReadableConfiguration.cs create mode 100644 NiFi.Swagger/Client/SwaggerDateConverter.cs create mode 100644 NiFi.Swagger/DateTimeFixingConverter.cs create mode 100644 NiFi.Swagger/Model/AboutDTO.cs create mode 100644 NiFi.Swagger/Model/AboutEntity.cs create mode 100644 NiFi.Swagger/Model/AccessConfigurationDTO.cs create mode 100644 NiFi.Swagger/Model/AccessConfigurationEntity.cs create mode 100644 NiFi.Swagger/Model/AccessPolicyDTO.cs create mode 100644 NiFi.Swagger/Model/AccessPolicyEntity.cs create mode 100644 NiFi.Swagger/Model/AccessPolicySummaryDTO.cs create mode 100644 NiFi.Swagger/Model/AccessPolicySummaryEntity.cs create mode 100644 NiFi.Swagger/Model/AccessStatusDTO.cs create mode 100644 NiFi.Swagger/Model/AccessStatusEntity.cs create mode 100644 NiFi.Swagger/Model/ActionDTO.cs create mode 100644 NiFi.Swagger/Model/ActionDetailsDTO.cs create mode 100644 NiFi.Swagger/Model/ActionEntity.cs create mode 100644 NiFi.Swagger/Model/ActivateControllerServicesEntity.cs create mode 100644 NiFi.Swagger/Model/AffectedComponentDTO.cs create mode 100644 NiFi.Swagger/Model/AffectedComponentEntity.cs create mode 100644 NiFi.Swagger/Model/AllowableValueDTO.cs create mode 100644 NiFi.Swagger/Model/AllowableValueEntity.cs create mode 100644 NiFi.Swagger/Model/AttributeDTO.cs create mode 100644 NiFi.Swagger/Model/BannerDTO.cs create mode 100644 NiFi.Swagger/Model/BannerEntity.cs create mode 100644 NiFi.Swagger/Model/BatchSettingsDTO.cs create mode 100644 NiFi.Swagger/Model/BatchSize.cs create mode 100644 NiFi.Swagger/Model/Bucket.cs create mode 100644 NiFi.Swagger/Model/BucketDTO.cs create mode 100644 NiFi.Swagger/Model/BucketEntity.cs create mode 100644 NiFi.Swagger/Model/BucketsEntity.cs create mode 100644 NiFi.Swagger/Model/BulletinBoardDTO.cs create mode 100644 NiFi.Swagger/Model/BulletinBoardEntity.cs create mode 100644 NiFi.Swagger/Model/BulletinDTO.cs create mode 100644 NiFi.Swagger/Model/BulletinEntity.cs create mode 100644 NiFi.Swagger/Model/Bundle.cs create mode 100644 NiFi.Swagger/Model/BundleDTO.cs create mode 100644 NiFi.Swagger/Model/ClusteSummaryEntity.cs create mode 100644 NiFi.Swagger/Model/ClusterDTO.cs create mode 100644 NiFi.Swagger/Model/ClusterEntity.cs create mode 100644 NiFi.Swagger/Model/ClusterSearchResultsEntity.cs create mode 100644 NiFi.Swagger/Model/ClusterSummaryDTO.cs create mode 100644 NiFi.Swagger/Model/ComponentDetailsDTO.cs create mode 100644 NiFi.Swagger/Model/ComponentDifferenceDTO.cs create mode 100644 NiFi.Swagger/Model/ComponentHistoryDTO.cs create mode 100644 NiFi.Swagger/Model/ComponentHistoryEntity.cs create mode 100644 NiFi.Swagger/Model/ComponentReferenceDTO.cs create mode 100644 NiFi.Swagger/Model/ComponentReferenceEntity.cs create mode 100644 NiFi.Swagger/Model/ComponentRestrictionPermissionDTO.cs create mode 100644 NiFi.Swagger/Model/ComponentSearchResultDTO.cs create mode 100644 NiFi.Swagger/Model/ComponentStateDTO.cs create mode 100644 NiFi.Swagger/Model/ComponentStateEntity.cs create mode 100644 NiFi.Swagger/Model/ConnectableComponent.cs create mode 100644 NiFi.Swagger/Model/ConnectableDTO.cs create mode 100644 NiFi.Swagger/Model/ConnectionDTO.cs create mode 100644 NiFi.Swagger/Model/ConnectionEntity.cs create mode 100644 NiFi.Swagger/Model/ConnectionStatusDTO.cs create mode 100644 NiFi.Swagger/Model/ConnectionStatusEntity.cs create mode 100644 NiFi.Swagger/Model/ConnectionStatusSnapshotDTO.cs create mode 100644 NiFi.Swagger/Model/ConnectionStatusSnapshotEntity.cs create mode 100644 NiFi.Swagger/Model/ConnectionsEntity.cs create mode 100644 NiFi.Swagger/Model/ControllerBulletinsEntity.cs create mode 100644 NiFi.Swagger/Model/ControllerConfigurationDTO.cs create mode 100644 NiFi.Swagger/Model/ControllerConfigurationEntity.cs create mode 100644 NiFi.Swagger/Model/ControllerDTO.cs create mode 100644 NiFi.Swagger/Model/ControllerEntity.cs create mode 100644 NiFi.Swagger/Model/ControllerServiceAPI.cs create mode 100644 NiFi.Swagger/Model/ControllerServiceApiDTO.cs create mode 100644 NiFi.Swagger/Model/ControllerServiceDTO.cs create mode 100644 NiFi.Swagger/Model/ControllerServiceEntity.cs create mode 100644 NiFi.Swagger/Model/ControllerServiceReferencingComponentDTO.cs create mode 100644 NiFi.Swagger/Model/ControllerServiceReferencingComponentEntity.cs create mode 100644 NiFi.Swagger/Model/ControllerServiceReferencingComponentsEntity.cs create mode 100644 NiFi.Swagger/Model/ControllerServiceRunStatusEntity.cs create mode 100644 NiFi.Swagger/Model/ControllerServiceStatusDTO.cs create mode 100644 NiFi.Swagger/Model/ControllerServiceTypesEntity.cs create mode 100644 NiFi.Swagger/Model/ControllerServicesEntity.cs create mode 100644 NiFi.Swagger/Model/ControllerStatusDTO.cs create mode 100644 NiFi.Swagger/Model/ControllerStatusEntity.cs create mode 100644 NiFi.Swagger/Model/CopySnippetRequestEntity.cs create mode 100644 NiFi.Swagger/Model/CounterDTO.cs create mode 100644 NiFi.Swagger/Model/CounterEntity.cs create mode 100644 NiFi.Swagger/Model/CountersDTO.cs create mode 100644 NiFi.Swagger/Model/CountersEntity.cs create mode 100644 NiFi.Swagger/Model/CountersSnapshotDTO.cs create mode 100644 NiFi.Swagger/Model/CreateActiveRequestEntity.cs create mode 100644 NiFi.Swagger/Model/CreateTemplateRequestEntity.cs create mode 100644 NiFi.Swagger/Model/CurrentUserEntity.cs create mode 100644 NiFi.Swagger/Model/DifferenceDTO.cs create mode 100644 NiFi.Swagger/Model/DimensionsDTO.cs create mode 100644 NiFi.Swagger/Model/DocumentedTypeDTO.cs create mode 100644 NiFi.Swagger/Model/DropRequestDTO.cs create mode 100644 NiFi.Swagger/Model/DropRequestEntity.cs create mode 100644 NiFi.Swagger/Model/ExplicitRestrictionDTO.cs create mode 100644 NiFi.Swagger/Model/FlowBreadcrumbDTO.cs create mode 100644 NiFi.Swagger/Model/FlowBreadcrumbEntity.cs create mode 100644 NiFi.Swagger/Model/FlowComparisonEntity.cs create mode 100644 NiFi.Swagger/Model/FlowConfigurationDTO.cs create mode 100644 NiFi.Swagger/Model/FlowConfigurationEntity.cs create mode 100644 NiFi.Swagger/Model/FlowDTO.cs create mode 100644 NiFi.Swagger/Model/FlowEntity.cs create mode 100644 NiFi.Swagger/Model/FlowFileDTO.cs create mode 100644 NiFi.Swagger/Model/FlowFileEntity.cs create mode 100644 NiFi.Swagger/Model/FlowFileSummaryDTO.cs create mode 100644 NiFi.Swagger/Model/FlowSnippetDTO.cs create mode 100644 NiFi.Swagger/Model/FunnelDTO.cs create mode 100644 NiFi.Swagger/Model/FunnelEntity.cs create mode 100644 NiFi.Swagger/Model/FunnelsEntity.cs create mode 100644 NiFi.Swagger/Model/GarbageCollectionDTO.cs create mode 100644 NiFi.Swagger/Model/HistoryDTO.cs create mode 100644 NiFi.Swagger/Model/HistoryEntity.cs create mode 100644 NiFi.Swagger/Model/InputPortsEntity.cs create mode 100644 NiFi.Swagger/Model/InstantiateTemplateRequestEntity.cs create mode 100644 NiFi.Swagger/Model/LabelDTO.cs create mode 100644 NiFi.Swagger/Model/LabelEntity.cs create mode 100644 NiFi.Swagger/Model/LabelsEntity.cs create mode 100644 NiFi.Swagger/Model/LineageDTO.cs create mode 100644 NiFi.Swagger/Model/LineageEntity.cs create mode 100644 NiFi.Swagger/Model/LineageRequestDTO.cs create mode 100644 NiFi.Swagger/Model/LineageResultsDTO.cs create mode 100644 NiFi.Swagger/Model/Link.cs create mode 100644 NiFi.Swagger/Model/ListingRequestDTO.cs create mode 100644 NiFi.Swagger/Model/ListingRequestEntity.cs create mode 100644 NiFi.Swagger/Model/NodeConnectionStatusSnapshotDTO.cs create mode 100644 NiFi.Swagger/Model/NodeCountersSnapshotDTO.cs create mode 100644 NiFi.Swagger/Model/NodeDTO.cs create mode 100644 NiFi.Swagger/Model/NodeEntity.cs create mode 100644 NiFi.Swagger/Model/NodeEventDTO.cs create mode 100644 NiFi.Swagger/Model/NodePortStatusSnapshotDTO.cs create mode 100644 NiFi.Swagger/Model/NodeProcessGroupStatusSnapshotDTO.cs create mode 100644 NiFi.Swagger/Model/NodeProcessorStatusSnapshotDTO.cs create mode 100644 NiFi.Swagger/Model/NodeRemoteProcessGroupStatusSnapshotDTO.cs create mode 100644 NiFi.Swagger/Model/NodeSearchResultDTO.cs create mode 100644 NiFi.Swagger/Model/NodeStatusSnapshotsDTO.cs create mode 100644 NiFi.Swagger/Model/NodeSystemDiagnosticsSnapshotDTO.cs create mode 100644 NiFi.Swagger/Model/OutputPortsEntity.cs create mode 100644 NiFi.Swagger/Model/PeerDTO.cs create mode 100644 NiFi.Swagger/Model/PeersEntity.cs create mode 100644 NiFi.Swagger/Model/Permissions.cs create mode 100644 NiFi.Swagger/Model/PermissionsDTO.cs create mode 100644 NiFi.Swagger/Model/PortDTO.cs create mode 100644 NiFi.Swagger/Model/PortEntity.cs create mode 100644 NiFi.Swagger/Model/PortRunStatusEntity.cs create mode 100644 NiFi.Swagger/Model/PortStatusDTO.cs create mode 100644 NiFi.Swagger/Model/PortStatusEntity.cs create mode 100644 NiFi.Swagger/Model/PortStatusSnapshotDTO.cs create mode 100644 NiFi.Swagger/Model/PortStatusSnapshotEntity.cs create mode 100644 NiFi.Swagger/Model/Position.cs create mode 100644 NiFi.Swagger/Model/PositionDTO.cs create mode 100644 NiFi.Swagger/Model/PreviousValueDTO.cs create mode 100644 NiFi.Swagger/Model/PrioritizerTypesEntity.cs create mode 100644 NiFi.Swagger/Model/ProcessGroupDTO.cs create mode 100644 NiFi.Swagger/Model/ProcessGroupEntity.cs create mode 100644 NiFi.Swagger/Model/ProcessGroupFlowDTO.cs create mode 100644 NiFi.Swagger/Model/ProcessGroupFlowEntity.cs create mode 100644 NiFi.Swagger/Model/ProcessGroupStatusDTO.cs create mode 100644 NiFi.Swagger/Model/ProcessGroupStatusEntity.cs create mode 100644 NiFi.Swagger/Model/ProcessGroupStatusSnapshotDTO.cs create mode 100644 NiFi.Swagger/Model/ProcessGroupStatusSnapshotEntity.cs create mode 100644 NiFi.Swagger/Model/ProcessGroupsEntity.cs create mode 100644 NiFi.Swagger/Model/ProcessorConfigDTO.cs create mode 100644 NiFi.Swagger/Model/ProcessorDTO.cs create mode 100644 NiFi.Swagger/Model/ProcessorEntity.cs create mode 100644 NiFi.Swagger/Model/ProcessorRunStatusEntity.cs create mode 100644 NiFi.Swagger/Model/ProcessorStatusDTO.cs create mode 100644 NiFi.Swagger/Model/ProcessorStatusEntity.cs create mode 100644 NiFi.Swagger/Model/ProcessorStatusSnapshotDTO.cs create mode 100644 NiFi.Swagger/Model/ProcessorStatusSnapshotEntity.cs create mode 100644 NiFi.Swagger/Model/ProcessorTypesEntity.cs create mode 100644 NiFi.Swagger/Model/ProcessorsEntity.cs create mode 100644 NiFi.Swagger/Model/PropertyDescriptorDTO.cs create mode 100644 NiFi.Swagger/Model/PropertyDescriptorEntity.cs create mode 100644 NiFi.Swagger/Model/PropertyHistoryDTO.cs create mode 100644 NiFi.Swagger/Model/ProvenanceDTO.cs create mode 100644 NiFi.Swagger/Model/ProvenanceEntity.cs create mode 100644 NiFi.Swagger/Model/ProvenanceEventDTO.cs create mode 100644 NiFi.Swagger/Model/ProvenanceEventEntity.cs create mode 100644 NiFi.Swagger/Model/ProvenanceLinkDTO.cs create mode 100644 NiFi.Swagger/Model/ProvenanceNodeDTO.cs create mode 100644 NiFi.Swagger/Model/ProvenanceOptionsDTO.cs create mode 100644 NiFi.Swagger/Model/ProvenanceOptionsEntity.cs create mode 100644 NiFi.Swagger/Model/ProvenanceRequestDTO.cs create mode 100644 NiFi.Swagger/Model/ProvenanceResultsDTO.cs create mode 100644 NiFi.Swagger/Model/ProvenanceSearchableFieldDTO.cs create mode 100644 NiFi.Swagger/Model/QueueSizeDTO.cs create mode 100644 NiFi.Swagger/Model/RegistryClientEntity.cs create mode 100644 NiFi.Swagger/Model/RegistryClientsEntity.cs create mode 100644 NiFi.Swagger/Model/RegistryDTO.cs create mode 100644 NiFi.Swagger/Model/RelationshipDTO.cs create mode 100644 NiFi.Swagger/Model/RemotePortRunStatusEntity.cs create mode 100644 NiFi.Swagger/Model/RemoteProcessGroupContentsDTO.cs create mode 100644 NiFi.Swagger/Model/RemoteProcessGroupDTO.cs create mode 100644 NiFi.Swagger/Model/RemoteProcessGroupEntity.cs create mode 100644 NiFi.Swagger/Model/RemoteProcessGroupPortDTO.cs create mode 100644 NiFi.Swagger/Model/RemoteProcessGroupPortEntity.cs create mode 100644 NiFi.Swagger/Model/RemoteProcessGroupStatusDTO.cs create mode 100644 NiFi.Swagger/Model/RemoteProcessGroupStatusEntity.cs create mode 100644 NiFi.Swagger/Model/RemoteProcessGroupStatusSnapshotDTO.cs create mode 100644 NiFi.Swagger/Model/RemoteProcessGroupStatusSnapshotEntity.cs create mode 100644 NiFi.Swagger/Model/RemoteProcessGroupsEntity.cs create mode 100644 NiFi.Swagger/Model/ReportingTaskDTO.cs create mode 100644 NiFi.Swagger/Model/ReportingTaskEntity.cs create mode 100644 NiFi.Swagger/Model/ReportingTaskRunStatusEntity.cs create mode 100644 NiFi.Swagger/Model/ReportingTaskStatusDTO.cs create mode 100644 NiFi.Swagger/Model/ReportingTaskTypesEntity.cs create mode 100644 NiFi.Swagger/Model/ReportingTasksEntity.cs create mode 100644 NiFi.Swagger/Model/RequiredPermissionDTO.cs create mode 100644 NiFi.Swagger/Model/ResourceDTO.cs create mode 100644 NiFi.Swagger/Model/ResourcesEntity.cs create mode 100644 NiFi.Swagger/Model/RevisionDTO.cs create mode 100644 NiFi.Swagger/Model/ScheduleComponentsEntity.cs create mode 100644 NiFi.Swagger/Model/SearchResultGroupDTO.cs create mode 100644 NiFi.Swagger/Model/SearchResultsDTO.cs create mode 100644 NiFi.Swagger/Model/SearchResultsEntity.cs create mode 100644 NiFi.Swagger/Model/SnippetDTO.cs create mode 100644 NiFi.Swagger/Model/SnippetEntity.cs create mode 100644 NiFi.Swagger/Model/StartVersionControlRequestEntity.cs create mode 100644 NiFi.Swagger/Model/StateEntryDTO.cs create mode 100644 NiFi.Swagger/Model/StateMapDTO.cs create mode 100644 NiFi.Swagger/Model/StatusDescriptorDTO.cs create mode 100644 NiFi.Swagger/Model/StatusHistoryDTO.cs create mode 100644 NiFi.Swagger/Model/StatusHistoryEntity.cs create mode 100644 NiFi.Swagger/Model/StatusSnapshotDTO.cs create mode 100644 NiFi.Swagger/Model/StorageUsageDTO.cs create mode 100644 NiFi.Swagger/Model/StreamingOutput.cs create mode 100644 NiFi.Swagger/Model/SubmitReplayRequestEntity.cs create mode 100644 NiFi.Swagger/Model/SystemDiagnosticsDTO.cs create mode 100644 NiFi.Swagger/Model/SystemDiagnosticsEntity.cs create mode 100644 NiFi.Swagger/Model/SystemDiagnosticsSnapshotDTO.cs create mode 100644 NiFi.Swagger/Model/TemplateDTO.cs create mode 100644 NiFi.Swagger/Model/TemplateEntity.cs create mode 100644 NiFi.Swagger/Model/TemplatesEntity.cs create mode 100644 NiFi.Swagger/Model/TenantDTO.cs create mode 100644 NiFi.Swagger/Model/TenantEntity.cs create mode 100644 NiFi.Swagger/Model/TenantsEntity.cs create mode 100644 NiFi.Swagger/Model/TransactionResultEntity.cs create mode 100644 NiFi.Swagger/Model/UpdateControllerServiceReferenceRequestEntity.cs create mode 100644 NiFi.Swagger/Model/UriBuilder.cs create mode 100644 NiFi.Swagger/Model/UserDTO.cs create mode 100644 NiFi.Swagger/Model/UserEntity.cs create mode 100644 NiFi.Swagger/Model/UserGroupDTO.cs create mode 100644 NiFi.Swagger/Model/UserGroupEntity.cs create mode 100644 NiFi.Swagger/Model/UserGroupsEntity.cs create mode 100644 NiFi.Swagger/Model/UsersEntity.cs create mode 100644 NiFi.Swagger/Model/VariableDTO.cs create mode 100644 NiFi.Swagger/Model/VariableEntity.cs create mode 100644 NiFi.Swagger/Model/VariableRegistryDTO.cs create mode 100644 NiFi.Swagger/Model/VariableRegistryEntity.cs create mode 100644 NiFi.Swagger/Model/VariableRegistryUpdateRequestDTO.cs create mode 100644 NiFi.Swagger/Model/VariableRegistryUpdateRequestEntity.cs create mode 100644 NiFi.Swagger/Model/VariableRegistryUpdateStepDTO.cs create mode 100644 NiFi.Swagger/Model/VersionControlComponentMappingEntity.cs create mode 100644 NiFi.Swagger/Model/VersionControlInformationDTO.cs create mode 100644 NiFi.Swagger/Model/VersionControlInformationEntity.cs create mode 100644 NiFi.Swagger/Model/VersionInfoDTO.cs create mode 100644 NiFi.Swagger/Model/VersionedConnection.cs create mode 100644 NiFi.Swagger/Model/VersionedControllerService.cs create mode 100644 NiFi.Swagger/Model/VersionedFlow.cs create mode 100644 NiFi.Swagger/Model/VersionedFlowCoordinates.cs create mode 100644 NiFi.Swagger/Model/VersionedFlowDTO.cs create mode 100644 NiFi.Swagger/Model/VersionedFlowEntity.cs create mode 100644 NiFi.Swagger/Model/VersionedFlowSnapshot.cs create mode 100644 NiFi.Swagger/Model/VersionedFlowSnapshotEntity.cs create mode 100644 NiFi.Swagger/Model/VersionedFlowSnapshotMetadata.cs create mode 100644 NiFi.Swagger/Model/VersionedFlowSnapshotMetadataEntity.cs create mode 100644 NiFi.Swagger/Model/VersionedFlowSnapshotMetadataSetEntity.cs create mode 100644 NiFi.Swagger/Model/VersionedFlowUpdateRequestDTO.cs create mode 100644 NiFi.Swagger/Model/VersionedFlowUpdateRequestEntity.cs create mode 100644 NiFi.Swagger/Model/VersionedFlowsEntity.cs create mode 100644 NiFi.Swagger/Model/VersionedFunnel.cs create mode 100644 NiFi.Swagger/Model/VersionedLabel.cs create mode 100644 NiFi.Swagger/Model/VersionedPort.cs create mode 100644 NiFi.Swagger/Model/VersionedProcessGroup.cs create mode 100644 NiFi.Swagger/Model/VersionedProcessor.cs create mode 100644 NiFi.Swagger/Model/VersionedPropertyDescriptor.cs create mode 100644 NiFi.Swagger/Model/VersionedRemoteGroupPort.cs create mode 100644 NiFi.Swagger/Model/VersionedRemoteProcessGroup.cs create mode 100644 NiFi.Swagger/NiFi.Swagger.csproj create mode 100644 NiFi.Swagger/NiFi.Swagger.csproj.user create mode 100644 NiFi.Swagger/NiFi.Swagger.nuspec create mode 100644 NiFi.Swagger/NiFi.Swagger.sln create mode 100644 NiFi.Swagger/Properties/AssemblyInfo.cs create mode 100644 NiFi.Swagger/app.config create mode 100644 NiFi.Swagger/packages.config diff --git a/.gitignore b/.gitignore index e915029..2c50735 100644 --- a/.gitignore +++ b/.gitignore @@ -3,3 +3,12 @@ ################################################################################ /.vs +/NiFi.Swagger/.vs/NiFi.Swagger/v16/Server/sqlite3 +/NiFi.Swagger/bin/Debug +/NiFi.Swagger/obj +/NiFi.Swagger/packages +/NiFi.Swagger/.vs/NiFi.Swagger/v16 +/NiFi.Swagger.SystemDiagnosticsApiExample/.vs/NiFi.Swagger.SystemDiagnosticsApiExample/v16/Server/sqlite3 +/NiFi.Swagger.SystemDiagnosticsApiExample/.vs/NiFi.Swagger.SystemDiagnosticsApiExample/v16 +/NiFi.Swagger.SystemDiagnosticsApiExample/bin/Debug +/NiFi.Swagger.SystemDiagnosticsApiExample/obj/Debug diff --git a/Docs/AboutDTO.md b/Docs/AboutDTO.md new file mode 100644 index 0000000..e70bbec --- /dev/null +++ b/Docs/AboutDTO.md @@ -0,0 +1,17 @@ +# IO.Swagger.Model.AboutDTO +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Title** | **string** | The title to be used on the page and in the about dialog. | [optional] +**Version** | **string** | The version of this NiFi. | [optional] +**Uri** | **string** | The URI for the NiFi. | [optional] +**ContentViewerUrl** | **string** | The URL for the content viewer if configured. | [optional] +**Timezone** | **string** | The timezone of the NiFi instance. | [optional] +**BuildTag** | **string** | Build tag | [optional] +**BuildRevision** | **string** | Build revision or commit hash | [optional] +**BuildBranch** | **string** | Build branch | [optional] +**BuildTimestamp** | **string** | Build timestamp | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/Docs/AboutEntity.md b/Docs/AboutEntity.md new file mode 100644 index 0000000..04bdcf1 --- /dev/null +++ b/Docs/AboutEntity.md @@ -0,0 +1,9 @@ +# IO.Swagger.Model.AboutEntity +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**About** | [**AboutDTO**](AboutDTO.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/Docs/AccessApi.md b/Docs/AccessApi.md new file mode 100644 index 0000000..dc9a6b9 --- /dev/null +++ b/Docs/AccessApi.md @@ -0,0 +1,760 @@ +# IO.Swagger.Api.AccessApi + +All URIs are relative to *http://localhost/nifi-api* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**CreateAccessToken**](AccessApi.md#createaccesstoken) | **POST** /access/token | Creates a token for accessing the REST API via username/password +[**CreateAccessTokenFromTicket**](AccessApi.md#createaccesstokenfromticket) | **POST** /access/kerberos | Creates a token for accessing the REST API via Kerberos ticket exchange / SPNEGO negotiation +[**CreateDownloadToken**](AccessApi.md#createdownloadtoken) | **POST** /access/download-token | Creates a single use access token for downloading FlowFile content. +[**CreateUiExtensionToken**](AccessApi.md#createuiextensiontoken) | **POST** /access/ui-extension-token | Creates a single use access token for accessing a NiFi UI extension. +[**GetAccessStatus**](AccessApi.md#getaccessstatus) | **GET** /access | Gets the status the client's access +[**GetLoginConfig**](AccessApi.md#getloginconfig) | **GET** /access/config | Retrieves the access configuration for this NiFi +[**KnoxCallback**](AccessApi.md#knoxcallback) | **GET** /access/knox/callback | Redirect/callback URI for processing the result of the Apache Knox login sequence. +[**KnoxLogout**](AccessApi.md#knoxlogout) | **GET** /access/knox/logout | Performs a logout in the Apache Knox. +[**KnoxRequest**](AccessApi.md#knoxrequest) | **GET** /access/knox/request | Initiates a request to authenticate through Apache Knox. +[**OidcCallback**](AccessApi.md#oidccallback) | **GET** /access/oidc/callback | Redirect/callback URI for processing the result of the OpenId Connect login sequence. +[**OidcExchange**](AccessApi.md#oidcexchange) | **POST** /access/oidc/exchange | Retrieves a JWT following a successful login sequence using the configured OpenId Connect provider. +[**OidcLogout**](AccessApi.md#oidclogout) | **GET** /access/oidc/logout | Performs a logout in the OpenId Provider. +[**OidcRequest**](AccessApi.md#oidcrequest) | **GET** /access/oidc/request | Initiates a request to authenticate through the configured OpenId Connect provider. + + + +# **CreateAccessToken** +> string CreateAccessToken (string username = null, string password = null) + +Creates a token for accessing the REST API via username/password + +The token returned is formatted as a JSON Web Token (JWT). The token is base64 encoded and comprised of three parts. The header, the body, and the signature. The expiration of the token is a contained within the body. The token can be used in the Authorization header in the format 'Authorization: Bearer '. + +### Example +```csharp +using System; +using System.Diagnostics; +using IO.Swagger.Api; +using IO.Swagger.Client; +using IO.Swagger.Model; + +namespace Example +{ + public class CreateAccessTokenExample + { + public void main() + { + var apiInstance = new AccessApi(); + var username = username_example; // string | (optional) + var password = password_example; // string | (optional) + + try + { + // Creates a token for accessing the REST API via username/password + string result = apiInstance.CreateAccessToken(username, password); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling AccessApi.CreateAccessToken: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **username** | **string**| | [optional] + **password** | **string**| | [optional] + +### Return type + +**string** + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/x-www-form-urlencoded + - **Accept**: text/plain + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **CreateAccessTokenFromTicket** +> string CreateAccessTokenFromTicket () + +Creates a token for accessing the REST API via Kerberos ticket exchange / SPNEGO negotiation + +The token returned is formatted as a JSON Web Token (JWT). The token is base64 encoded and comprised of three parts. The header, the body, and the signature. The expiration of the token is a contained within the body. The token can be used in the Authorization header in the format 'Authorization: Bearer '. + +### Example +```csharp +using System; +using System.Diagnostics; +using IO.Swagger.Api; +using IO.Swagger.Client; +using IO.Swagger.Model; + +namespace Example +{ + public class CreateAccessTokenFromTicketExample + { + public void main() + { + var apiInstance = new AccessApi(); + + try + { + // Creates a token for accessing the REST API via Kerberos ticket exchange / SPNEGO negotiation + string result = apiInstance.CreateAccessTokenFromTicket(); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling AccessApi.CreateAccessTokenFromTicket: " + e.Message ); + } + } + } +} +``` + +### Parameters +This endpoint does not need any parameter. + +### Return type + +**string** + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: text/plain + - **Accept**: text/plain + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **CreateDownloadToken** +> string CreateDownloadToken () + +Creates a single use access token for downloading FlowFile content. + +The token returned is a base64 encoded string. It is valid for a single request up to five minutes from being issued. It is used as a query parameter name 'access_token'. + +### Example +```csharp +using System; +using System.Diagnostics; +using IO.Swagger.Api; +using IO.Swagger.Client; +using IO.Swagger.Model; + +namespace Example +{ + public class CreateDownloadTokenExample + { + public void main() + { + var apiInstance = new AccessApi(); + + try + { + // Creates a single use access token for downloading FlowFile content. + string result = apiInstance.CreateDownloadToken(); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling AccessApi.CreateDownloadToken: " + e.Message ); + } + } + } +} +``` + +### Parameters +This endpoint does not need any parameter. + +### Return type + +**string** + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/x-www-form-urlencoded + - **Accept**: text/plain + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **CreateUiExtensionToken** +> string CreateUiExtensionToken () + +Creates a single use access token for accessing a NiFi UI extension. + +The token returned is a base64 encoded string. It is valid for a single request up to five minutes from being issued. It is used as a query parameter name 'access_token'. + +### Example +```csharp +using System; +using System.Diagnostics; +using IO.Swagger.Api; +using IO.Swagger.Client; +using IO.Swagger.Model; + +namespace Example +{ + public class CreateUiExtensionTokenExample + { + public void main() + { + var apiInstance = new AccessApi(); + + try + { + // Creates a single use access token for accessing a NiFi UI extension. + string result = apiInstance.CreateUiExtensionToken(); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling AccessApi.CreateUiExtensionToken: " + e.Message ); + } + } + } +} +``` + +### Parameters +This endpoint does not need any parameter. + +### Return type + +**string** + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/x-www-form-urlencoded + - **Accept**: text/plain + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **GetAccessStatus** +> AccessStatusEntity GetAccessStatus () + +Gets the status the client's access + +Note: This endpoint is subject to change as NiFi and it's REST API evolve. + +### Example +```csharp +using System; +using System.Diagnostics; +using IO.Swagger.Api; +using IO.Swagger.Client; +using IO.Swagger.Model; + +namespace Example +{ + public class GetAccessStatusExample + { + public void main() + { + var apiInstance = new AccessApi(); + + try + { + // Gets the status the client's access + AccessStatusEntity result = apiInstance.GetAccessStatus(); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling AccessApi.GetAccessStatus: " + e.Message ); + } + } + } +} +``` + +### Parameters +This endpoint does not need any parameter. + +### Return type + +[**AccessStatusEntity**](AccessStatusEntity.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **GetLoginConfig** +> AccessConfigurationEntity GetLoginConfig () + +Retrieves the access configuration for this NiFi + +### Example +```csharp +using System; +using System.Diagnostics; +using IO.Swagger.Api; +using IO.Swagger.Client; +using IO.Swagger.Model; + +namespace Example +{ + public class GetLoginConfigExample + { + public void main() + { + var apiInstance = new AccessApi(); + + try + { + // Retrieves the access configuration for this NiFi + AccessConfigurationEntity result = apiInstance.GetLoginConfig(); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling AccessApi.GetLoginConfig: " + e.Message ); + } + } + } +} +``` + +### Parameters +This endpoint does not need any parameter. + +### Return type + +[**AccessConfigurationEntity**](AccessConfigurationEntity.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **KnoxCallback** +> void KnoxCallback () + +Redirect/callback URI for processing the result of the Apache Knox login sequence. + +Note: This endpoint is subject to change as NiFi and it's REST API evolve. + +### Example +```csharp +using System; +using System.Diagnostics; +using IO.Swagger.Api; +using IO.Swagger.Client; +using IO.Swagger.Model; + +namespace Example +{ + public class KnoxCallbackExample + { + public void main() + { + var apiInstance = new AccessApi(); + + try + { + // Redirect/callback URI for processing the result of the Apache Knox login sequence. + apiInstance.KnoxCallback(); + } + catch (Exception e) + { + Debug.Print("Exception when calling AccessApi.KnoxCallback: " + e.Message ); + } + } + } +} +``` + +### Parameters +This endpoint does not need any parameter. + +### Return type + +void (empty response body) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: */* + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **KnoxLogout** +> void KnoxLogout () + +Performs a logout in the Apache Knox. + +Note: This endpoint is subject to change as NiFi and it's REST API evolve. + +### Example +```csharp +using System; +using System.Diagnostics; +using IO.Swagger.Api; +using IO.Swagger.Client; +using IO.Swagger.Model; + +namespace Example +{ + public class KnoxLogoutExample + { + public void main() + { + var apiInstance = new AccessApi(); + + try + { + // Performs a logout in the Apache Knox. + apiInstance.KnoxLogout(); + } + catch (Exception e) + { + Debug.Print("Exception when calling AccessApi.KnoxLogout: " + e.Message ); + } + } + } +} +``` + +### Parameters +This endpoint does not need any parameter. + +### Return type + +void (empty response body) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: */* + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **KnoxRequest** +> void KnoxRequest () + +Initiates a request to authenticate through Apache Knox. + +Note: This endpoint is subject to change as NiFi and it's REST API evolve. + +### Example +```csharp +using System; +using System.Diagnostics; +using IO.Swagger.Api; +using IO.Swagger.Client; +using IO.Swagger.Model; + +namespace Example +{ + public class KnoxRequestExample + { + public void main() + { + var apiInstance = new AccessApi(); + + try + { + // Initiates a request to authenticate through Apache Knox. + apiInstance.KnoxRequest(); + } + catch (Exception e) + { + Debug.Print("Exception when calling AccessApi.KnoxRequest: " + e.Message ); + } + } + } +} +``` + +### Parameters +This endpoint does not need any parameter. + +### Return type + +void (empty response body) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: */* + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **OidcCallback** +> void OidcCallback () + +Redirect/callback URI for processing the result of the OpenId Connect login sequence. + +Note: This endpoint is subject to change as NiFi and it's REST API evolve. + +### Example +```csharp +using System; +using System.Diagnostics; +using IO.Swagger.Api; +using IO.Swagger.Client; +using IO.Swagger.Model; + +namespace Example +{ + public class OidcCallbackExample + { + public void main() + { + var apiInstance = new AccessApi(); + + try + { + // Redirect/callback URI for processing the result of the OpenId Connect login sequence. + apiInstance.OidcCallback(); + } + catch (Exception e) + { + Debug.Print("Exception when calling AccessApi.OidcCallback: " + e.Message ); + } + } + } +} +``` + +### Parameters +This endpoint does not need any parameter. + +### Return type + +void (empty response body) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: */* + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **OidcExchange** +> string OidcExchange () + +Retrieves a JWT following a successful login sequence using the configured OpenId Connect provider. + +Note: This endpoint is subject to change as NiFi and it's REST API evolve. + +### Example +```csharp +using System; +using System.Diagnostics; +using IO.Swagger.Api; +using IO.Swagger.Client; +using IO.Swagger.Model; + +namespace Example +{ + public class OidcExchangeExample + { + public void main() + { + var apiInstance = new AccessApi(); + + try + { + // Retrieves a JWT following a successful login sequence using the configured OpenId Connect provider. + string result = apiInstance.OidcExchange(); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling AccessApi.OidcExchange: " + e.Message ); + } + } + } +} +``` + +### Parameters +This endpoint does not need any parameter. + +### Return type + +**string** + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: text/plain + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **OidcLogout** +> void OidcLogout () + +Performs a logout in the OpenId Provider. + +Note: This endpoint is subject to change as NiFi and it's REST API evolve. + +### Example +```csharp +using System; +using System.Diagnostics; +using IO.Swagger.Api; +using IO.Swagger.Client; +using IO.Swagger.Model; + +namespace Example +{ + public class OidcLogoutExample + { + public void main() + { + var apiInstance = new AccessApi(); + + try + { + // Performs a logout in the OpenId Provider. + apiInstance.OidcLogout(); + } + catch (Exception e) + { + Debug.Print("Exception when calling AccessApi.OidcLogout: " + e.Message ); + } + } + } +} +``` + +### Parameters +This endpoint does not need any parameter. + +### Return type + +void (empty response body) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: */* + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **OidcRequest** +> void OidcRequest () + +Initiates a request to authenticate through the configured OpenId Connect provider. + +Note: This endpoint is subject to change as NiFi and it's REST API evolve. + +### Example +```csharp +using System; +using System.Diagnostics; +using IO.Swagger.Api; +using IO.Swagger.Client; +using IO.Swagger.Model; + +namespace Example +{ + public class OidcRequestExample + { + public void main() + { + var apiInstance = new AccessApi(); + + try + { + // Initiates a request to authenticate through the configured OpenId Connect provider. + apiInstance.OidcRequest(); + } + catch (Exception e) + { + Debug.Print("Exception when calling AccessApi.OidcRequest: " + e.Message ); + } + } + } +} +``` + +### Parameters +This endpoint does not need any parameter. + +### Return type + +void (empty response body) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: */* + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/Docs/AccessConfigurationDTO.md b/Docs/AccessConfigurationDTO.md new file mode 100644 index 0000000..d5c319e --- /dev/null +++ b/Docs/AccessConfigurationDTO.md @@ -0,0 +1,9 @@ +# IO.Swagger.Model.AccessConfigurationDTO +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**SupportsLogin** | **bool?** | Indicates whether or not this NiFi supports user login. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/Docs/AccessConfigurationEntity.md b/Docs/AccessConfigurationEntity.md new file mode 100644 index 0000000..d8e9a29 --- /dev/null +++ b/Docs/AccessConfigurationEntity.md @@ -0,0 +1,9 @@ +# IO.Swagger.Model.AccessConfigurationEntity +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Config** | [**AccessConfigurationDTO**](AccessConfigurationDTO.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/Docs/AccessPolicyDTO.md b/Docs/AccessPolicyDTO.md new file mode 100644 index 0000000..08379ce --- /dev/null +++ b/Docs/AccessPolicyDTO.md @@ -0,0 +1,18 @@ +# IO.Swagger.Model.AccessPolicyDTO +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | **string** | The id of the component. | [optional] +**VersionedComponentId** | **string** | The ID of the corresponding component that is under version control | [optional] +**ParentGroupId** | **string** | The id of parent process group of this component if applicable. | [optional] +**Position** | [**PositionDTO**](PositionDTO.md) | The position of this component in the UI if applicable. | [optional] +**Resource** | **string** | The resource for this access policy. | [optional] +**Action** | **string** | The action associated with this access policy. | [optional] +**ComponentReference** | [**ComponentReferenceEntity**](ComponentReferenceEntity.md) | Component this policy references if applicable. | [optional] +**Configurable** | **bool?** | Whether this policy is configurable. | [optional] +**Users** | [**List<TenantEntity>**](TenantEntity.md) | The set of user IDs associated with this access policy. | [optional] +**UserGroups** | [**List<TenantEntity>**](TenantEntity.md) | The set of user group IDs associated with this access policy. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/Docs/AccessPolicyEntity.md b/Docs/AccessPolicyEntity.md new file mode 100644 index 0000000..dd4ee7a --- /dev/null +++ b/Docs/AccessPolicyEntity.md @@ -0,0 +1,17 @@ +# IO.Swagger.Model.AccessPolicyEntity +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Revision** | [**RevisionDTO**](RevisionDTO.md) | The revision for this request/response. The revision is required for any mutable flow requests and is included in all responses. | [optional] +**Id** | **string** | The id of the component. | [optional] +**Uri** | **string** | The URI for futures requests to the component. | [optional] +**Position** | [**PositionDTO**](PositionDTO.md) | The position of this component in the UI if applicable. | [optional] +**Permissions** | [**PermissionsDTO**](PermissionsDTO.md) | The permissions for this component. | [optional] +**Bulletins** | [**List<BulletinEntity>**](BulletinEntity.md) | The bulletins for this component. | [optional] +**DisconnectedNodeAcknowledged** | **bool?** | Acknowledges that this node is disconnected to allow for mutable requests to proceed. | [optional] +**Generated** | **string** | When this content was generated. | [optional] +**Component** | [**AccessPolicyDTO**](AccessPolicyDTO.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/Docs/AccessPolicySummaryDTO.md b/Docs/AccessPolicySummaryDTO.md new file mode 100644 index 0000000..c5a8e0b --- /dev/null +++ b/Docs/AccessPolicySummaryDTO.md @@ -0,0 +1,16 @@ +# IO.Swagger.Model.AccessPolicySummaryDTO +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | **string** | The id of the component. | [optional] +**VersionedComponentId** | **string** | The ID of the corresponding component that is under version control | [optional] +**ParentGroupId** | **string** | The id of parent process group of this component if applicable. | [optional] +**Position** | [**PositionDTO**](PositionDTO.md) | The position of this component in the UI if applicable. | [optional] +**Resource** | **string** | The resource for this access policy. | [optional] +**Action** | **string** | The action associated with this access policy. | [optional] +**ComponentReference** | [**ComponentReferenceEntity**](ComponentReferenceEntity.md) | Component this policy references if applicable. | [optional] +**Configurable** | **bool?** | Whether this policy is configurable. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/Docs/AccessPolicySummaryEntity.md b/Docs/AccessPolicySummaryEntity.md new file mode 100644 index 0000000..fe9f517 --- /dev/null +++ b/Docs/AccessPolicySummaryEntity.md @@ -0,0 +1,16 @@ +# IO.Swagger.Model.AccessPolicySummaryEntity +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Revision** | [**RevisionDTO**](RevisionDTO.md) | The revision for this request/response. The revision is required for any mutable flow requests and is included in all responses. | [optional] +**Id** | **string** | The id of the component. | [optional] +**Uri** | **string** | The URI for futures requests to the component. | [optional] +**Position** | [**PositionDTO**](PositionDTO.md) | The position of this component in the UI if applicable. | [optional] +**Permissions** | [**PermissionsDTO**](PermissionsDTO.md) | The permissions for this component. | [optional] +**Bulletins** | [**List<BulletinEntity>**](BulletinEntity.md) | The bulletins for this component. | [optional] +**DisconnectedNodeAcknowledged** | **bool?** | Acknowledges that this node is disconnected to allow for mutable requests to proceed. | [optional] +**Component** | [**AccessPolicySummaryDTO**](AccessPolicySummaryDTO.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/Docs/AccessStatusDTO.md b/Docs/AccessStatusDTO.md new file mode 100644 index 0000000..2ae507d --- /dev/null +++ b/Docs/AccessStatusDTO.md @@ -0,0 +1,11 @@ +# IO.Swagger.Model.AccessStatusDTO +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Identity** | **string** | The user identity. | [optional] +**Status** | **string** | The user access status. | [optional] +**Message** | **string** | Additional details about the user access status. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/Docs/AccessStatusEntity.md b/Docs/AccessStatusEntity.md new file mode 100644 index 0000000..57d0452 --- /dev/null +++ b/Docs/AccessStatusEntity.md @@ -0,0 +1,9 @@ +# IO.Swagger.Model.AccessStatusEntity +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AccessStatus** | [**AccessStatusDTO**](AccessStatusDTO.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/Docs/ActionDTO.md b/Docs/ActionDTO.md new file mode 100644 index 0000000..d198d3f --- /dev/null +++ b/Docs/ActionDTO.md @@ -0,0 +1,17 @@ +# IO.Swagger.Model.ActionDTO +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | **int?** | The action id. | [optional] +**UserIdentity** | **string** | The identity of the user that performed the action. | [optional] +**Timestamp** | **string** | The timestamp of the action. | [optional] +**SourceId** | **string** | The id of the source component. | [optional] +**SourceName** | **string** | The name of the source component. | [optional] +**SourceType** | **string** | The type of the source component. | [optional] +**ComponentDetails** | [**ComponentDetailsDTO**](ComponentDetailsDTO.md) | The details of the source component. | [optional] +**Operation** | **string** | The operation that was performed. | [optional] +**ActionDetails** | [**ActionDetailsDTO**](ActionDetailsDTO.md) | The details of the action. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/Docs/ActionDetailsDTO.md b/Docs/ActionDetailsDTO.md new file mode 100644 index 0000000..9d58e82 --- /dev/null +++ b/Docs/ActionDetailsDTO.md @@ -0,0 +1,8 @@ +# IO.Swagger.Model.ActionDetailsDTO +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/Docs/ActionEntity.md b/Docs/ActionEntity.md new file mode 100644 index 0000000..e8a81f7 --- /dev/null +++ b/Docs/ActionEntity.md @@ -0,0 +1,13 @@ +# IO.Swagger.Model.ActionEntity +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | **int?** | | [optional] +**Timestamp** | **string** | The timestamp of the action. | [optional] +**SourceId** | **string** | | [optional] +**CanRead** | **bool?** | Indicates whether the user can read a given resource. | [optional] +**Action** | [**ActionDTO**](ActionDTO.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/Docs/ActivateControllerServicesEntity.md b/Docs/ActivateControllerServicesEntity.md new file mode 100644 index 0000000..a1b2bee --- /dev/null +++ b/Docs/ActivateControllerServicesEntity.md @@ -0,0 +1,12 @@ +# IO.Swagger.Model.ActivateControllerServicesEntity +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | **string** | The id of the ProcessGroup | [optional] +**State** | **string** | The desired state of the descendant components | [optional] +**Components** | [**Dictionary<string, RevisionDTO>**](RevisionDTO.md) | Optional services to schedule. If not specified, all authorized descendant controller services will be used. | [optional] +**DisconnectedNodeAcknowledged** | **bool?** | Acknowledges that this node is disconnected to allow for mutable requests to proceed. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/Docs/AffectedComponentDTO.md b/Docs/AffectedComponentDTO.md new file mode 100644 index 0000000..0c72646 --- /dev/null +++ b/Docs/AffectedComponentDTO.md @@ -0,0 +1,15 @@ +# IO.Swagger.Model.AffectedComponentDTO +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ProcessGroupId** | **string** | The UUID of the Process Group that this component is in | [optional] +**Id** | **string** | The UUID of this component | [optional] +**ReferenceType** | **string** | The type of this component | [optional] +**Name** | **string** | The name of this component. | [optional] +**State** | **string** | The scheduled state of a processor or reporting task referencing a controller service. If this component is another controller service, this field represents the controller service state. | [optional] +**ActiveThreadCount** | **int?** | The number of active threads for the referencing component. | [optional] +**ValidationErrors** | **List<string>** | The validation errors for the component. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/Docs/AffectedComponentEntity.md b/Docs/AffectedComponentEntity.md new file mode 100644 index 0000000..cfb9f26 --- /dev/null +++ b/Docs/AffectedComponentEntity.md @@ -0,0 +1,16 @@ +# IO.Swagger.Model.AffectedComponentEntity +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Revision** | [**RevisionDTO**](RevisionDTO.md) | The revision for this request/response. The revision is required for any mutable flow requests and is included in all responses. | [optional] +**Id** | **string** | The id of the component. | [optional] +**Uri** | **string** | The URI for futures requests to the component. | [optional] +**Position** | [**PositionDTO**](PositionDTO.md) | The position of this component in the UI if applicable. | [optional] +**Permissions** | [**PermissionsDTO**](PermissionsDTO.md) | The permissions for this component. | [optional] +**Bulletins** | [**List<BulletinEntity>**](BulletinEntity.md) | The bulletins for this component. | [optional] +**DisconnectedNodeAcknowledged** | **bool?** | Acknowledges that this node is disconnected to allow for mutable requests to proceed. | [optional] +**Component** | [**AffectedComponentDTO**](AffectedComponentDTO.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/Docs/AllowableValueDTO.md b/Docs/AllowableValueDTO.md new file mode 100644 index 0000000..eb2f1bb --- /dev/null +++ b/Docs/AllowableValueDTO.md @@ -0,0 +1,11 @@ +# IO.Swagger.Model.AllowableValueDTO +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**DisplayName** | **string** | A human readable value that is allowed for the property descriptor. | [optional] +**Value** | **string** | A value that is allowed for the property descriptor. | [optional] +**Description** | **string** | A description for this allowable value. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/Docs/AllowableValueEntity.md b/Docs/AllowableValueEntity.md new file mode 100644 index 0000000..88b3e03 --- /dev/null +++ b/Docs/AllowableValueEntity.md @@ -0,0 +1,10 @@ +# IO.Swagger.Model.AllowableValueEntity +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AllowableValue** | [**AllowableValueDTO**](AllowableValueDTO.md) | | [optional] +**CanRead** | **bool?** | Indicates whether the user can read a given resource. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/Docs/AttributeDTO.md b/Docs/AttributeDTO.md new file mode 100644 index 0000000..30bfad8 --- /dev/null +++ b/Docs/AttributeDTO.md @@ -0,0 +1,11 @@ +# IO.Swagger.Model.AttributeDTO +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Name** | **string** | The attribute name. | [optional] +**Value** | **string** | The attribute value. | [optional] +**PreviousValue** | **string** | The value of the attribute before the event took place. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/Docs/BannerDTO.md b/Docs/BannerDTO.md new file mode 100644 index 0000000..b835a2e --- /dev/null +++ b/Docs/BannerDTO.md @@ -0,0 +1,10 @@ +# IO.Swagger.Model.BannerDTO +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**HeaderText** | **string** | The header text. | [optional] +**FooterText** | **string** | The footer text. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/Docs/BannerEntity.md b/Docs/BannerEntity.md new file mode 100644 index 0000000..35f7521 --- /dev/null +++ b/Docs/BannerEntity.md @@ -0,0 +1,9 @@ +# IO.Swagger.Model.BannerEntity +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Banners** | [**BannerDTO**](BannerDTO.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/Docs/BatchSettingsDTO.md b/Docs/BatchSettingsDTO.md new file mode 100644 index 0000000..fcf9bb6 --- /dev/null +++ b/Docs/BatchSettingsDTO.md @@ -0,0 +1,11 @@ +# IO.Swagger.Model.BatchSettingsDTO +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Count** | **int?** | Preferred number of flow files to include in a transaction. | [optional] +**Size** | **string** | Preferred number of bytes to include in a transaction. | [optional] +**Duration** | **string** | Preferred amount of time that a transaction should span. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/Docs/BatchSize.md b/Docs/BatchSize.md new file mode 100644 index 0000000..1031174 --- /dev/null +++ b/Docs/BatchSize.md @@ -0,0 +1,11 @@ +# IO.Swagger.Model.BatchSize +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Count** | **int?** | Preferred number of flow files to include in a transaction. | [optional] +**Size** | **string** | Preferred number of bytes to include in a transaction. | [optional] +**Duration** | **string** | Preferred amount of time that a transaction should span. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/Docs/Bucket.md b/Docs/Bucket.md new file mode 100644 index 0000000..4e12591 --- /dev/null +++ b/Docs/Bucket.md @@ -0,0 +1,14 @@ +# IO.Swagger.Model.Bucket +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Link** | [**Link**](Link.md) | An WebLink to this entity. | [optional] +**Identifier** | **string** | An ID to uniquely identify this object. | [optional] +**Name** | **string** | The name of the bucket. | +**CreatedTimestamp** | **long?** | The timestamp of when the bucket was first created. This is set by the server at creation time. | [optional] +**Description** | **string** | A description of the bucket. | [optional] +**Permissions** | [**Permissions**](Permissions.md) | The access that the current user has to this bucket. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/Docs/BucketDTO.md b/Docs/BucketDTO.md new file mode 100644 index 0000000..d359087 --- /dev/null +++ b/Docs/BucketDTO.md @@ -0,0 +1,12 @@ +# IO.Swagger.Model.BucketDTO +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | **string** | The bucket identifier | [optional] +**Name** | **string** | The bucket name | [optional] +**Description** | **string** | The bucket description | [optional] +**Created** | **long?** | The created timestamp of this bucket | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/Docs/BucketEntity.md b/Docs/BucketEntity.md new file mode 100644 index 0000000..43d8c9f --- /dev/null +++ b/Docs/BucketEntity.md @@ -0,0 +1,11 @@ +# IO.Swagger.Model.BucketEntity +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | **string** | | [optional] +**Bucket** | [**BucketDTO**](BucketDTO.md) | | [optional] +**Permissions** | [**PermissionsDTO**](PermissionsDTO.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/Docs/BucketsEntity.md b/Docs/BucketsEntity.md new file mode 100644 index 0000000..3b458ef --- /dev/null +++ b/Docs/BucketsEntity.md @@ -0,0 +1,9 @@ +# IO.Swagger.Model.BucketsEntity +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Buckets** | [**List<BucketEntity>**](BucketEntity.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/Docs/BulletinBoardDTO.md b/Docs/BulletinBoardDTO.md new file mode 100644 index 0000000..1a05c68 --- /dev/null +++ b/Docs/BulletinBoardDTO.md @@ -0,0 +1,10 @@ +# IO.Swagger.Model.BulletinBoardDTO +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Bulletins** | [**List<BulletinEntity>**](BulletinEntity.md) | The bulletins in the bulletin board, that matches the supplied request. | [optional] +**Generated** | **string** | The timestamp when this report was generated. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/Docs/BulletinBoardEntity.md b/Docs/BulletinBoardEntity.md new file mode 100644 index 0000000..366c5ed --- /dev/null +++ b/Docs/BulletinBoardEntity.md @@ -0,0 +1,9 @@ +# IO.Swagger.Model.BulletinBoardEntity +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**BulletinBoard** | [**BulletinBoardDTO**](BulletinBoardDTO.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/Docs/BulletinDTO.md b/Docs/BulletinDTO.md new file mode 100644 index 0000000..d992158 --- /dev/null +++ b/Docs/BulletinDTO.md @@ -0,0 +1,17 @@ +# IO.Swagger.Model.BulletinDTO +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | **long?** | The id of the bulletin. | [optional] +**NodeAddress** | **string** | If clustered, the address of the node from which the bulletin originated. | [optional] +**Category** | **string** | The category of this bulletin. | [optional] +**GroupId** | **string** | The group id of the source component. | [optional] +**SourceId** | **string** | The id of the source component. | [optional] +**SourceName** | **string** | The name of the source component. | [optional] +**Level** | **string** | The level of the bulletin. | [optional] +**Message** | **string** | The bulletin message. | [optional] +**Timestamp** | **string** | When this bulletin was generated. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/Docs/BulletinEntity.md b/Docs/BulletinEntity.md new file mode 100644 index 0000000..de7bbef --- /dev/null +++ b/Docs/BulletinEntity.md @@ -0,0 +1,15 @@ +# IO.Swagger.Model.BulletinEntity +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | **long?** | | [optional] +**GroupId** | **string** | | [optional] +**SourceId** | **string** | | [optional] +**Timestamp** | **string** | When this bulletin was generated. | [optional] +**NodeAddress** | **string** | | [optional] +**CanRead** | **bool?** | Indicates whether the user can read a given resource. | [optional] +**Bulletin** | [**BulletinDTO**](BulletinDTO.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/Docs/Bundle.md b/Docs/Bundle.md new file mode 100644 index 0000000..d3b13ae --- /dev/null +++ b/Docs/Bundle.md @@ -0,0 +1,11 @@ +# IO.Swagger.Model.Bundle +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Group** | **string** | The group of the bundle | [optional] +**Artifact** | **string** | The artifact of the bundle | [optional] +**Version** | **string** | The version of the bundle | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/Docs/BundleDTO.md b/Docs/BundleDTO.md new file mode 100644 index 0000000..69583be --- /dev/null +++ b/Docs/BundleDTO.md @@ -0,0 +1,11 @@ +# IO.Swagger.Model.BundleDTO +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Group** | **string** | The group of the bundle. | [optional] +**Artifact** | **string** | The artifact of the bundle. | [optional] +**Version** | **string** | The version of the bundle. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/Docs/ClusteSummaryEntity.md b/Docs/ClusteSummaryEntity.md new file mode 100644 index 0000000..a0227ba --- /dev/null +++ b/Docs/ClusteSummaryEntity.md @@ -0,0 +1,9 @@ +# IO.Swagger.Model.ClusteSummaryEntity +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ClusterSummary** | [**ClusterSummaryDTO**](ClusterSummaryDTO.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/Docs/ClusterDTO.md b/Docs/ClusterDTO.md new file mode 100644 index 0000000..1b1086f --- /dev/null +++ b/Docs/ClusterDTO.md @@ -0,0 +1,10 @@ +# IO.Swagger.Model.ClusterDTO +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Nodes** | [**List<NodeDTO>**](NodeDTO.md) | The collection of nodes that are part of the cluster. | [optional] +**Generated** | **string** | The timestamp the report was generated. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/Docs/ClusterEntity.md b/Docs/ClusterEntity.md new file mode 100644 index 0000000..4f5d953 --- /dev/null +++ b/Docs/ClusterEntity.md @@ -0,0 +1,9 @@ +# IO.Swagger.Model.ClusterEntity +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Cluster** | [**ClusterDTO**](ClusterDTO.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/Docs/ClusterSearchResultsEntity.md b/Docs/ClusterSearchResultsEntity.md new file mode 100644 index 0000000..9835e60 --- /dev/null +++ b/Docs/ClusterSearchResultsEntity.md @@ -0,0 +1,9 @@ +# IO.Swagger.Model.ClusterSearchResultsEntity +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**NodeResults** | [**List<NodeSearchResultDTO>**](NodeSearchResultDTO.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/Docs/ClusterSummaryDTO.md b/Docs/ClusterSummaryDTO.md new file mode 100644 index 0000000..beb542f --- /dev/null +++ b/Docs/ClusterSummaryDTO.md @@ -0,0 +1,13 @@ +# IO.Swagger.Model.ClusterSummaryDTO +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ConnectedNodes** | **string** | When clustered, reports the number of nodes connected vs the number of nodes in the cluster. | [optional] +**ConnectedNodeCount** | **int?** | The number of nodes that are currently connected to the cluster | [optional] +**TotalNodeCount** | **int?** | The number of nodes in the cluster, regardless of whether or not they are connected | [optional] +**Clustered** | **bool?** | Whether this NiFi instance is clustered. | [optional] +**ConnectedToCluster** | **bool?** | Whether this NiFi instance is connected to a cluster. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/Docs/ComponentDetailsDTO.md b/Docs/ComponentDetailsDTO.md new file mode 100644 index 0000000..f1b3456 --- /dev/null +++ b/Docs/ComponentDetailsDTO.md @@ -0,0 +1,8 @@ +# IO.Swagger.Model.ComponentDetailsDTO +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/Docs/ComponentDifferenceDTO.md b/Docs/ComponentDifferenceDTO.md new file mode 100644 index 0000000..646e286 --- /dev/null +++ b/Docs/ComponentDifferenceDTO.md @@ -0,0 +1,13 @@ +# IO.Swagger.Model.ComponentDifferenceDTO +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ComponentType** | **string** | The type of component | [optional] +**ComponentId** | **string** | The ID of the component | [optional] +**ComponentName** | **string** | The name of the component | [optional] +**ProcessGroupId** | **string** | The ID of the Process Group that the component belongs to | [optional] +**Differences** | [**List<DifferenceDTO>**](DifferenceDTO.md) | The differences in the component between the two flows | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/Docs/ComponentHistoryDTO.md b/Docs/ComponentHistoryDTO.md new file mode 100644 index 0000000..18f846c --- /dev/null +++ b/Docs/ComponentHistoryDTO.md @@ -0,0 +1,10 @@ +# IO.Swagger.Model.ComponentHistoryDTO +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ComponentId** | **string** | The component id. | [optional] +**PropertyHistory** | [**Dictionary<string, PropertyHistoryDTO>**](PropertyHistoryDTO.md) | The history for the properties of the component. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/Docs/ComponentHistoryEntity.md b/Docs/ComponentHistoryEntity.md new file mode 100644 index 0000000..668b4d0 --- /dev/null +++ b/Docs/ComponentHistoryEntity.md @@ -0,0 +1,9 @@ +# IO.Swagger.Model.ComponentHistoryEntity +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ComponentHistory** | [**ComponentHistoryDTO**](ComponentHistoryDTO.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/Docs/ComponentReferenceDTO.md b/Docs/ComponentReferenceDTO.md new file mode 100644 index 0000000..d869303 --- /dev/null +++ b/Docs/ComponentReferenceDTO.md @@ -0,0 +1,13 @@ +# IO.Swagger.Model.ComponentReferenceDTO +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | **string** | The id of the component. | [optional] +**VersionedComponentId** | **string** | The ID of the corresponding component that is under version control | [optional] +**ParentGroupId** | **string** | The id of parent process group of this component if applicable. | [optional] +**Position** | [**PositionDTO**](PositionDTO.md) | The position of this component in the UI if applicable. | [optional] +**Name** | **string** | The name of the component. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/Docs/ComponentReferenceEntity.md b/Docs/ComponentReferenceEntity.md new file mode 100644 index 0000000..f583af2 --- /dev/null +++ b/Docs/ComponentReferenceEntity.md @@ -0,0 +1,17 @@ +# IO.Swagger.Model.ComponentReferenceEntity +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Revision** | [**RevisionDTO**](RevisionDTO.md) | The revision for this request/response. The revision is required for any mutable flow requests and is included in all responses. | [optional] +**Id** | **string** | The id of the component. | [optional] +**Uri** | **string** | The URI for futures requests to the component. | [optional] +**Position** | [**PositionDTO**](PositionDTO.md) | The position of this component in the UI if applicable. | [optional] +**Permissions** | [**PermissionsDTO**](PermissionsDTO.md) | The permissions for this component. | [optional] +**Bulletins** | [**List<BulletinEntity>**](BulletinEntity.md) | The bulletins for this component. | [optional] +**DisconnectedNodeAcknowledged** | **bool?** | Acknowledges that this node is disconnected to allow for mutable requests to proceed. | [optional] +**ParentGroupId** | **string** | The id of parent process group of this component if applicable. | [optional] +**Component** | [**ComponentReferenceDTO**](ComponentReferenceDTO.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/Docs/ComponentRestrictionPermissionDTO.md b/Docs/ComponentRestrictionPermissionDTO.md new file mode 100644 index 0000000..eae5a26 --- /dev/null +++ b/Docs/ComponentRestrictionPermissionDTO.md @@ -0,0 +1,10 @@ +# IO.Swagger.Model.ComponentRestrictionPermissionDTO +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**RequiredPermission** | [**RequiredPermissionDTO**](RequiredPermissionDTO.md) | The required permission necessary for this restriction. | [optional] +**Permissions** | [**PermissionsDTO**](PermissionsDTO.md) | The permissions for this component restriction. Note: the read permission are not used and will always be false. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/Docs/ComponentSearchResultDTO.md b/Docs/ComponentSearchResultDTO.md new file mode 100644 index 0000000..519da17 --- /dev/null +++ b/Docs/ComponentSearchResultDTO.md @@ -0,0 +1,14 @@ +# IO.Swagger.Model.ComponentSearchResultDTO +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | **string** | The id of the component that matched the search. | [optional] +**GroupId** | **string** | The group id of the component that matched the search. | [optional] +**ParentGroup** | [**SearchResultGroupDTO**](SearchResultGroupDTO.md) | The parent group of the component that matched the search. | [optional] +**VersionedGroup** | [**SearchResultGroupDTO**](SearchResultGroupDTO.md) | The nearest versioned ancestor group of the component that matched the search. | [optional] +**Name** | **string** | The name of the component that matched the search. | [optional] +**Matches** | **List<string>** | What matched the search from the component. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/Docs/ComponentStateDTO.md b/Docs/ComponentStateDTO.md new file mode 100644 index 0000000..ec8bac9 --- /dev/null +++ b/Docs/ComponentStateDTO.md @@ -0,0 +1,12 @@ +# IO.Swagger.Model.ComponentStateDTO +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ComponentId** | **string** | The component identifier. | [optional] +**StateDescription** | **string** | Description of the state this component persists. | [optional] +**ClusterState** | [**StateMapDTO**](StateMapDTO.md) | The cluster state for this component, or null if this NiFi is a standalone instance. | [optional] +**LocalState** | [**StateMapDTO**](StateMapDTO.md) | The local state for this component. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/Docs/ComponentStateEntity.md b/Docs/ComponentStateEntity.md new file mode 100644 index 0000000..f36404d --- /dev/null +++ b/Docs/ComponentStateEntity.md @@ -0,0 +1,9 @@ +# IO.Swagger.Model.ComponentStateEntity +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ComponentState** | [**ComponentStateDTO**](ComponentStateDTO.md) | The component state. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/Docs/ConnectableComponent.md b/Docs/ConnectableComponent.md new file mode 100644 index 0000000..42e9769 --- /dev/null +++ b/Docs/ConnectableComponent.md @@ -0,0 +1,13 @@ +# IO.Swagger.Model.ConnectableComponent +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | **string** | The id of the connectable component. | +**Type** | **string** | The type of component the connectable is. | +**GroupId** | **string** | The id of the group that the connectable component resides in | +**Name** | **string** | The name of the connectable component | [optional] +**Comments** | **string** | The comments for the connectable component. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/Docs/ConnectableDTO.md b/Docs/ConnectableDTO.md new file mode 100644 index 0000000..521c7e9 --- /dev/null +++ b/Docs/ConnectableDTO.md @@ -0,0 +1,17 @@ +# IO.Swagger.Model.ConnectableDTO +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | **string** | The id of the connectable component. | +**VersionedComponentId** | **string** | The ID of the corresponding component that is under version control | [optional] +**Type** | **string** | The type of component the connectable is. | +**GroupId** | **string** | The id of the group that the connectable component resides in | +**Name** | **string** | The name of the connectable component | [optional] +**Running** | **bool?** | Reflects the current state of the connectable component. | [optional] +**Transmitting** | **bool?** | If the connectable component represents a remote port, indicates if the target is configured to transmit. | [optional] +**Exists** | **bool?** | If the connectable component represents a remote port, indicates if the target exists. | [optional] +**Comments** | **string** | The comments for the connectable component. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/Docs/ConnectionDTO.md b/Docs/ConnectionDTO.md new file mode 100644 index 0000000..841188d --- /dev/null +++ b/Docs/ConnectionDTO.md @@ -0,0 +1,28 @@ +# IO.Swagger.Model.ConnectionDTO +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | **string** | The id of the component. | [optional] +**VersionedComponentId** | **string** | The ID of the corresponding component that is under version control | [optional] +**ParentGroupId** | **string** | The id of parent process group of this component if applicable. | [optional] +**Position** | [**PositionDTO**](PositionDTO.md) | The position of this component in the UI if applicable. | [optional] +**Source** | [**ConnectableDTO**](ConnectableDTO.md) | The source of the connection. | [optional] +**Destination** | [**ConnectableDTO**](ConnectableDTO.md) | The destination of the connection. | [optional] +**Name** | **string** | The name of the connection. | [optional] +**LabelIndex** | **int?** | The index of the bend point where to place the connection label. | [optional] +**GetzIndex** | **long?** | The z index of the connection. | [optional] +**SelectedRelationships** | **List<string>** | The selected relationship that comprise the connection. | [optional] +**AvailableRelationships** | **List<string>** | The relationships that the source of the connection currently supports. | [optional] +**BackPressureObjectThreshold** | **long?** | The object count threshold for determining when back pressure is applied. Updating this value is a passive change in the sense that it won't impact whether existing files over the limit are affected but it does help feeder processors to stop pushing too much into this work queue. | [optional] +**BackPressureDataSizeThreshold** | **string** | The object data size threshold for determining when back pressure is applied. Updating this value is a passive change in the sense that it won't impact whether existing files over the limit are affected but it does help feeder processors to stop pushing too much into this work queue. | [optional] +**FlowFileExpiration** | **string** | The amount of time a flow file may be in the flow before it will be automatically aged out of the flow. Once a flow file reaches this age it will be terminated from the flow the next time a processor attempts to start work on it. | [optional] +**Prioritizers** | **List<string>** | The comparators used to prioritize the queue. | [optional] +**Bends** | [**List<PositionDTO>**](PositionDTO.md) | The bend points on the connection. | [optional] +**LoadBalanceStrategy** | **string** | How to load balance the data in this Connection across the nodes in the cluster. | [optional] +**LoadBalancePartitionAttribute** | **string** | The FlowFile Attribute to use for determining which node a FlowFile will go to if the Load Balancing Strategy is set to PARTITION_BY_ATTRIBUTE | [optional] +**LoadBalanceCompression** | **string** | Whether or not data should be compressed when being transferred between nodes in the cluster. | [optional] +**LoadBalanceStatus** | **string** | The current status of the Connection's Load Balancing Activities. Status can indicate that Load Balancing is not configured for the connection, that Load Balancing is configured but inactive (not currently transferring data to another node), or that Load Balancing is configured and actively transferring data to another node. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/Docs/ConnectionEntity.md b/Docs/ConnectionEntity.md new file mode 100644 index 0000000..553466d --- /dev/null +++ b/Docs/ConnectionEntity.md @@ -0,0 +1,26 @@ +# IO.Swagger.Model.ConnectionEntity +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Revision** | [**RevisionDTO**](RevisionDTO.md) | The revision for this request/response. The revision is required for any mutable flow requests and is included in all responses. | [optional] +**Id** | **string** | The id of the component. | [optional] +**Uri** | **string** | The URI for futures requests to the component. | [optional] +**Position** | [**PositionDTO**](PositionDTO.md) | The position of this component in the UI if applicable. | [optional] +**Permissions** | [**PermissionsDTO**](PermissionsDTO.md) | The permissions for this component. | [optional] +**Bulletins** | [**List<BulletinEntity>**](BulletinEntity.md) | The bulletins for this component. | [optional] +**DisconnectedNodeAcknowledged** | **bool?** | Acknowledges that this node is disconnected to allow for mutable requests to proceed. | [optional] +**Component** | [**ConnectionDTO**](ConnectionDTO.md) | | [optional] +**Status** | [**ConnectionStatusDTO**](ConnectionStatusDTO.md) | The status of the connection. | [optional] +**Bends** | [**List<PositionDTO>**](PositionDTO.md) | The bend points on the connection. | [optional] +**LabelIndex** | **int?** | The index of the bend point where to place the connection label. | [optional] +**GetzIndex** | **long?** | The z index of the connection. | [optional] +**SourceId** | **string** | The identifier of the source of this connection. | [optional] +**SourceGroupId** | **string** | The identifier of the group of the source of this connection. | [optional] +**SourceType** | **string** | The type of component the source connectable is. | +**DestinationId** | **string** | The identifier of the destination of this connection. | [optional] +**DestinationGroupId** | **string** | The identifier of the group of the destination of this connection. | [optional] +**DestinationType** | **string** | The type of component the destination connectable is. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/Docs/ConnectionStatusDTO.md b/Docs/ConnectionStatusDTO.md new file mode 100644 index 0000000..c1cbd42 --- /dev/null +++ b/Docs/ConnectionStatusDTO.md @@ -0,0 +1,18 @@ +# IO.Swagger.Model.ConnectionStatusDTO +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | **string** | The ID of the connection | [optional] +**GroupId** | **string** | The ID of the Process Group that the connection belongs to | [optional] +**Name** | **string** | The name of the connection | [optional] +**StatsLastRefreshed** | **string** | The timestamp of when the stats were last refreshed | [optional] +**SourceId** | **string** | The ID of the source component | [optional] +**SourceName** | **string** | The name of the source component | [optional] +**DestinationId** | **string** | The ID of the destination component | [optional] +**DestinationName** | **string** | The name of the destination component | [optional] +**AggregateSnapshot** | [**ConnectionStatusSnapshotDTO**](ConnectionStatusSnapshotDTO.md) | The status snapshot that represents the aggregate stats of the cluster | [optional] +**NodeSnapshots** | [**List<NodeConnectionStatusSnapshotDTO>**](NodeConnectionStatusSnapshotDTO.md) | A list of status snapshots for each node | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/Docs/ConnectionStatusEntity.md b/Docs/ConnectionStatusEntity.md new file mode 100644 index 0000000..08b5eb8 --- /dev/null +++ b/Docs/ConnectionStatusEntity.md @@ -0,0 +1,10 @@ +# IO.Swagger.Model.ConnectionStatusEntity +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ConnectionStatus** | [**ConnectionStatusDTO**](ConnectionStatusDTO.md) | | [optional] +**CanRead** | **bool?** | Indicates whether the user can read a given resource. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/Docs/ConnectionStatusSnapshotDTO.md b/Docs/ConnectionStatusSnapshotDTO.md new file mode 100644 index 0000000..6136881 --- /dev/null +++ b/Docs/ConnectionStatusSnapshotDTO.md @@ -0,0 +1,28 @@ +# IO.Swagger.Model.ConnectionStatusSnapshotDTO +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | **string** | The id of the connection. | [optional] +**GroupId** | **string** | The id of the process group the connection belongs to. | [optional] +**Name** | **string** | The name of the connection. | [optional] +**SourceId** | **string** | The id of the source of the connection. | [optional] +**SourceName** | **string** | The name of the source of the connection. | [optional] +**DestinationId** | **string** | The id of the destination of the connection. | [optional] +**DestinationName** | **string** | The name of the destination of the connection. | [optional] +**FlowFilesIn** | **int?** | The number of FlowFiles that have come into the connection in the last 5 minutes. | [optional] +**BytesIn** | **long?** | The size of the FlowFiles that have come into the connection in the last 5 minutes. | [optional] +**Input** | **string** | The input count/size for the connection in the last 5 minutes, pretty printed. | [optional] +**FlowFilesOut** | **int?** | The number of FlowFiles that have left the connection in the last 5 minutes. | [optional] +**BytesOut** | **long?** | The number of bytes that have left the connection in the last 5 minutes. | [optional] +**Output** | **string** | The output count/sie for the connection in the last 5 minutes, pretty printed. | [optional] +**FlowFilesQueued** | **int?** | The number of FlowFiles that are currently queued in the connection. | [optional] +**BytesQueued** | **long?** | The size of the FlowFiles that are currently queued in the connection. | [optional] +**Queued** | **string** | The total count and size of queued flowfiles formatted. | [optional] +**QueuedSize** | **string** | The total size of flowfiles that are queued formatted. | [optional] +**QueuedCount** | **string** | The number of flowfiles that are queued, pretty printed. | [optional] +**PercentUseCount** | **int?** | Connection percent use regarding queued flow files count and backpressure threshold if configured. | [optional] +**PercentUseBytes** | **int?** | Connection percent use regarding queued flow files size and backpressure threshold if configured. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/Docs/ConnectionStatusSnapshotEntity.md b/Docs/ConnectionStatusSnapshotEntity.md new file mode 100644 index 0000000..54bbc77 --- /dev/null +++ b/Docs/ConnectionStatusSnapshotEntity.md @@ -0,0 +1,11 @@ +# IO.Swagger.Model.ConnectionStatusSnapshotEntity +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | **string** | The id of the connection. | [optional] +**ConnectionStatusSnapshot** | [**ConnectionStatusSnapshotDTO**](ConnectionStatusSnapshotDTO.md) | | [optional] +**CanRead** | **bool?** | Indicates whether the user can read a given resource. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/Docs/ConnectionsApi.md b/Docs/ConnectionsApi.md new file mode 100644 index 0000000..e922bcb --- /dev/null +++ b/Docs/ConnectionsApi.md @@ -0,0 +1,196 @@ +# IO.Swagger.Api.ConnectionsApi + +All URIs are relative to *http://localhost/nifi-api* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**DeleteConnection**](ConnectionsApi.md#deleteconnection) | **DELETE** /connections/{id} | Deletes a connection +[**GetConnection**](ConnectionsApi.md#getconnection) | **GET** /connections/{id} | Gets a connection +[**UpdateConnection**](ConnectionsApi.md#updateconnection) | **PUT** /connections/{id} | Updates a connection + + + +# **DeleteConnection** +> ConnectionEntity DeleteConnection (string id, string version = null, string clientId = null, bool? disconnectedNodeAcknowledged = null) + +Deletes a connection + +### Example +```csharp +using System; +using System.Diagnostics; +using IO.Swagger.Api; +using IO.Swagger.Client; +using IO.Swagger.Model; + +namespace Example +{ + public class DeleteConnectionExample + { + public void main() + { + var apiInstance = new ConnectionsApi(); + var id = id_example; // string | The connection id. + var version = version_example; // string | The revision is used to verify the client is working with the latest version of the flow. (optional) + var clientId = clientId_example; // string | If the client id is not specified, new one will be generated. This value (whether specified or generated) is included in the response. (optional) + var disconnectedNodeAcknowledged = true; // bool? | Acknowledges that this node is disconnected to allow for mutable requests to proceed. (optional) (default to false) + + try + { + // Deletes a connection + ConnectionEntity result = apiInstance.DeleteConnection(id, version, clientId, disconnectedNodeAcknowledged); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling ConnectionsApi.DeleteConnection: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **string**| The connection id. | + **version** | **string**| The revision is used to verify the client is working with the latest version of the flow. | [optional] + **clientId** | **string**| If the client id is not specified, new one will be generated. This value (whether specified or generated) is included in the response. | [optional] + **disconnectedNodeAcknowledged** | **bool?**| Acknowledges that this node is disconnected to allow for mutable requests to proceed. | [optional] [default to false] + +### Return type + +[**ConnectionEntity**](ConnectionEntity.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **GetConnection** +> ConnectionEntity GetConnection (string id) + +Gets a connection + +### Example +```csharp +using System; +using System.Diagnostics; +using IO.Swagger.Api; +using IO.Swagger.Client; +using IO.Swagger.Model; + +namespace Example +{ + public class GetConnectionExample + { + public void main() + { + var apiInstance = new ConnectionsApi(); + var id = id_example; // string | The connection id. + + try + { + // Gets a connection + ConnectionEntity result = apiInstance.GetConnection(id); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling ConnectionsApi.GetConnection: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **string**| The connection id. | + +### Return type + +[**ConnectionEntity**](ConnectionEntity.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **UpdateConnection** +> ConnectionEntity UpdateConnection (string id, ConnectionEntity body) + +Updates a connection + +### Example +```csharp +using System; +using System.Diagnostics; +using IO.Swagger.Api; +using IO.Swagger.Client; +using IO.Swagger.Model; + +namespace Example +{ + public class UpdateConnectionExample + { + public void main() + { + var apiInstance = new ConnectionsApi(); + var id = id_example; // string | The connection id. + var body = new ConnectionEntity(); // ConnectionEntity | The connection configuration details. + + try + { + // Updates a connection + ConnectionEntity result = apiInstance.UpdateConnection(id, body); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling ConnectionsApi.UpdateConnection: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **string**| The connection id. | + **body** | [**ConnectionEntity**](ConnectionEntity.md)| The connection configuration details. | + +### Return type + +[**ConnectionEntity**](ConnectionEntity.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/Docs/ConnectionsEntity.md b/Docs/ConnectionsEntity.md new file mode 100644 index 0000000..f4c8da6 --- /dev/null +++ b/Docs/ConnectionsEntity.md @@ -0,0 +1,9 @@ +# IO.Swagger.Model.ConnectionsEntity +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Connections** | [**List<ConnectionEntity>**](ConnectionEntity.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/Docs/ControllerApi.md b/Docs/ControllerApi.md new file mode 100644 index 0000000..866bf5e --- /dev/null +++ b/Docs/ControllerApi.md @@ -0,0 +1,908 @@ +# IO.Swagger.Api.ControllerApi + +All URIs are relative to *http://localhost/nifi-api* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**CreateBulletin**](ControllerApi.md#createbulletin) | **POST** /controller/bulletin | Creates a new bulletin +[**CreateControllerService**](ControllerApi.md#createcontrollerservice) | **POST** /controller/controller-services | Creates a new controller service +[**CreateRegistryClient**](ControllerApi.md#createregistryclient) | **POST** /controller/registry-clients | Creates a new registry client +[**CreateReportingTask**](ControllerApi.md#createreportingtask) | **POST** /controller/reporting-tasks | Creates a new reporting task +[**DeleteHistory**](ControllerApi.md#deletehistory) | **DELETE** /controller/history | Purges history +[**DeleteNode**](ControllerApi.md#deletenode) | **DELETE** /controller/cluster/nodes/{id} | Removes a node from the cluster +[**DeleteRegistryClient**](ControllerApi.md#deleteregistryclient) | **DELETE** /controller/registry-clients/{id} | Deletes a registry client +[**GetCluster**](ControllerApi.md#getcluster) | **GET** /controller/cluster | Gets the contents of the cluster +[**GetControllerConfig**](ControllerApi.md#getcontrollerconfig) | **GET** /controller/config | Retrieves the configuration for this NiFi Controller +[**GetNode**](ControllerApi.md#getnode) | **GET** /controller/cluster/nodes/{id} | Gets a node in the cluster +[**GetRegistryClient**](ControllerApi.md#getregistryclient) | **GET** /controller/registry-clients/{id} | Gets a registry client +[**GetRegistryClients**](ControllerApi.md#getregistryclients) | **GET** /controller/registry-clients | Gets the listing of available registry clients +[**UpdateControllerConfig**](ControllerApi.md#updatecontrollerconfig) | **PUT** /controller/config | Retrieves the configuration for this NiFi +[**UpdateNode**](ControllerApi.md#updatenode) | **PUT** /controller/cluster/nodes/{id} | Updates a node in the cluster +[**UpdateRegistryClient**](ControllerApi.md#updateregistryclient) | **PUT** /controller/registry-clients/{id} | Updates a registry client + + + +# **CreateBulletin** +> BulletinEntity CreateBulletin (BulletinEntity body) + +Creates a new bulletin + +### Example +```csharp +using System; +using System.Diagnostics; +using IO.Swagger.Api; +using IO.Swagger.Client; +using IO.Swagger.Model; + +namespace Example +{ + public class CreateBulletinExample + { + public void main() + { + var apiInstance = new ControllerApi(); + var body = new BulletinEntity(); // BulletinEntity | The reporting task configuration details. + + try + { + // Creates a new bulletin + BulletinEntity result = apiInstance.CreateBulletin(body); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling ControllerApi.CreateBulletin: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **body** | [**BulletinEntity**](BulletinEntity.md)| The reporting task configuration details. | + +### Return type + +[**BulletinEntity**](BulletinEntity.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **CreateControllerService** +> ControllerServiceEntity CreateControllerService (ControllerServiceEntity body) + +Creates a new controller service + +### Example +```csharp +using System; +using System.Diagnostics; +using IO.Swagger.Api; +using IO.Swagger.Client; +using IO.Swagger.Model; + +namespace Example +{ + public class CreateControllerServiceExample + { + public void main() + { + var apiInstance = new ControllerApi(); + var body = new ControllerServiceEntity(); // ControllerServiceEntity | The controller service configuration details. + + try + { + // Creates a new controller service + ControllerServiceEntity result = apiInstance.CreateControllerService(body); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling ControllerApi.CreateControllerService: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **body** | [**ControllerServiceEntity**](ControllerServiceEntity.md)| The controller service configuration details. | + +### Return type + +[**ControllerServiceEntity**](ControllerServiceEntity.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **CreateRegistryClient** +> RegistryClientEntity CreateRegistryClient (RegistryClientEntity body) + +Creates a new registry client + +### Example +```csharp +using System; +using System.Diagnostics; +using IO.Swagger.Api; +using IO.Swagger.Client; +using IO.Swagger.Model; + +namespace Example +{ + public class CreateRegistryClientExample + { + public void main() + { + var apiInstance = new ControllerApi(); + var body = new RegistryClientEntity(); // RegistryClientEntity | The registry configuration details. + + try + { + // Creates a new registry client + RegistryClientEntity result = apiInstance.CreateRegistryClient(body); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling ControllerApi.CreateRegistryClient: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **body** | [**RegistryClientEntity**](RegistryClientEntity.md)| The registry configuration details. | + +### Return type + +[**RegistryClientEntity**](RegistryClientEntity.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **CreateReportingTask** +> ReportingTaskEntity CreateReportingTask (ReportingTaskEntity body) + +Creates a new reporting task + +### Example +```csharp +using System; +using System.Diagnostics; +using IO.Swagger.Api; +using IO.Swagger.Client; +using IO.Swagger.Model; + +namespace Example +{ + public class CreateReportingTaskExample + { + public void main() + { + var apiInstance = new ControllerApi(); + var body = new ReportingTaskEntity(); // ReportingTaskEntity | The reporting task configuration details. + + try + { + // Creates a new reporting task + ReportingTaskEntity result = apiInstance.CreateReportingTask(body); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling ControllerApi.CreateReportingTask: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **body** | [**ReportingTaskEntity**](ReportingTaskEntity.md)| The reporting task configuration details. | + +### Return type + +[**ReportingTaskEntity**](ReportingTaskEntity.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **DeleteHistory** +> HistoryEntity DeleteHistory (string endDate) + +Purges history + +### Example +```csharp +using System; +using System.Diagnostics; +using IO.Swagger.Api; +using IO.Swagger.Client; +using IO.Swagger.Model; + +namespace Example +{ + public class DeleteHistoryExample + { + public void main() + { + var apiInstance = new ControllerApi(); + var endDate = endDate_example; // string | Purge actions before this date/time. + + try + { + // Purges history + HistoryEntity result = apiInstance.DeleteHistory(endDate); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling ControllerApi.DeleteHistory: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **endDate** | **string**| Purge actions before this date/time. | + +### Return type + +[**HistoryEntity**](HistoryEntity.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **DeleteNode** +> NodeEntity DeleteNode (string id) + +Removes a node from the cluster + +### Example +```csharp +using System; +using System.Diagnostics; +using IO.Swagger.Api; +using IO.Swagger.Client; +using IO.Swagger.Model; + +namespace Example +{ + public class DeleteNodeExample + { + public void main() + { + var apiInstance = new ControllerApi(); + var id = id_example; // string | The node id. + + try + { + // Removes a node from the cluster + NodeEntity result = apiInstance.DeleteNode(id); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling ControllerApi.DeleteNode: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **string**| The node id. | + +### Return type + +[**NodeEntity**](NodeEntity.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **DeleteRegistryClient** +> RegistryClientEntity DeleteRegistryClient (string id, string version = null, string clientId = null, bool? disconnectedNodeAcknowledged = null) + +Deletes a registry client + +### Example +```csharp +using System; +using System.Diagnostics; +using IO.Swagger.Api; +using IO.Swagger.Client; +using IO.Swagger.Model; + +namespace Example +{ + public class DeleteRegistryClientExample + { + public void main() + { + var apiInstance = new ControllerApi(); + var id = id_example; // string | The registry id. + var version = version_example; // string | The revision is used to verify the client is working with the latest version of the flow. (optional) + var clientId = clientId_example; // string | If the client id is not specified, new one will be generated. This value (whether specified or generated) is included in the response. (optional) + var disconnectedNodeAcknowledged = true; // bool? | Acknowledges that this node is disconnected to allow for mutable requests to proceed. (optional) (default to false) + + try + { + // Deletes a registry client + RegistryClientEntity result = apiInstance.DeleteRegistryClient(id, version, clientId, disconnectedNodeAcknowledged); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling ControllerApi.DeleteRegistryClient: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **string**| The registry id. | + **version** | **string**| The revision is used to verify the client is working with the latest version of the flow. | [optional] + **clientId** | **string**| If the client id is not specified, new one will be generated. This value (whether specified or generated) is included in the response. | [optional] + **disconnectedNodeAcknowledged** | **bool?**| Acknowledges that this node is disconnected to allow for mutable requests to proceed. | [optional] [default to false] + +### Return type + +[**RegistryClientEntity**](RegistryClientEntity.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **GetCluster** +> ClusterEntity GetCluster () + +Gets the contents of the cluster + +Returns the contents of the cluster including all nodes and their status. + +### Example +```csharp +using System; +using System.Diagnostics; +using IO.Swagger.Api; +using IO.Swagger.Client; +using IO.Swagger.Model; + +namespace Example +{ + public class GetClusterExample + { + public void main() + { + var apiInstance = new ControllerApi(); + + try + { + // Gets the contents of the cluster + ClusterEntity result = apiInstance.GetCluster(); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling ControllerApi.GetCluster: " + e.Message ); + } + } + } +} +``` + +### Parameters +This endpoint does not need any parameter. + +### Return type + +[**ClusterEntity**](ClusterEntity.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **GetControllerConfig** +> ControllerConfigurationEntity GetControllerConfig () + +Retrieves the configuration for this NiFi Controller + +### Example +```csharp +using System; +using System.Diagnostics; +using IO.Swagger.Api; +using IO.Swagger.Client; +using IO.Swagger.Model; + +namespace Example +{ + public class GetControllerConfigExample + { + public void main() + { + var apiInstance = new ControllerApi(); + + try + { + // Retrieves the configuration for this NiFi Controller + ControllerConfigurationEntity result = apiInstance.GetControllerConfig(); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling ControllerApi.GetControllerConfig: " + e.Message ); + } + } + } +} +``` + +### Parameters +This endpoint does not need any parameter. + +### Return type + +[**ControllerConfigurationEntity**](ControllerConfigurationEntity.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **GetNode** +> NodeEntity GetNode (string id) + +Gets a node in the cluster + +### Example +```csharp +using System; +using System.Diagnostics; +using IO.Swagger.Api; +using IO.Swagger.Client; +using IO.Swagger.Model; + +namespace Example +{ + public class GetNodeExample + { + public void main() + { + var apiInstance = new ControllerApi(); + var id = id_example; // string | The node id. + + try + { + // Gets a node in the cluster + NodeEntity result = apiInstance.GetNode(id); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling ControllerApi.GetNode: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **string**| The node id. | + +### Return type + +[**NodeEntity**](NodeEntity.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **GetRegistryClient** +> RegistryClientEntity GetRegistryClient (string id) + +Gets a registry client + +### Example +```csharp +using System; +using System.Diagnostics; +using IO.Swagger.Api; +using IO.Swagger.Client; +using IO.Swagger.Model; + +namespace Example +{ + public class GetRegistryClientExample + { + public void main() + { + var apiInstance = new ControllerApi(); + var id = id_example; // string | The registry id. + + try + { + // Gets a registry client + RegistryClientEntity result = apiInstance.GetRegistryClient(id); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling ControllerApi.GetRegistryClient: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **string**| The registry id. | + +### Return type + +[**RegistryClientEntity**](RegistryClientEntity.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **GetRegistryClients** +> RegistryClientsEntity GetRegistryClients () + +Gets the listing of available registry clients + +### Example +```csharp +using System; +using System.Diagnostics; +using IO.Swagger.Api; +using IO.Swagger.Client; +using IO.Swagger.Model; + +namespace Example +{ + public class GetRegistryClientsExample + { + public void main() + { + var apiInstance = new ControllerApi(); + + try + { + // Gets the listing of available registry clients + RegistryClientsEntity result = apiInstance.GetRegistryClients(); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling ControllerApi.GetRegistryClients: " + e.Message ); + } + } + } +} +``` + +### Parameters +This endpoint does not need any parameter. + +### Return type + +[**RegistryClientsEntity**](RegistryClientsEntity.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **UpdateControllerConfig** +> ControllerConfigurationEntity UpdateControllerConfig (ControllerConfigurationEntity body) + +Retrieves the configuration for this NiFi + +### Example +```csharp +using System; +using System.Diagnostics; +using IO.Swagger.Api; +using IO.Swagger.Client; +using IO.Swagger.Model; + +namespace Example +{ + public class UpdateControllerConfigExample + { + public void main() + { + var apiInstance = new ControllerApi(); + var body = new ControllerConfigurationEntity(); // ControllerConfigurationEntity | The controller configuration. + + try + { + // Retrieves the configuration for this NiFi + ControllerConfigurationEntity result = apiInstance.UpdateControllerConfig(body); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling ControllerApi.UpdateControllerConfig: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **body** | [**ControllerConfigurationEntity**](ControllerConfigurationEntity.md)| The controller configuration. | + +### Return type + +[**ControllerConfigurationEntity**](ControllerConfigurationEntity.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **UpdateNode** +> NodeEntity UpdateNode (string id, NodeEntity body) + +Updates a node in the cluster + +### Example +```csharp +using System; +using System.Diagnostics; +using IO.Swagger.Api; +using IO.Swagger.Client; +using IO.Swagger.Model; + +namespace Example +{ + public class UpdateNodeExample + { + public void main() + { + var apiInstance = new ControllerApi(); + var id = id_example; // string | The node id. + var body = new NodeEntity(); // NodeEntity | The node configuration. The only configuration that will be honored at this endpoint is the status. + + try + { + // Updates a node in the cluster + NodeEntity result = apiInstance.UpdateNode(id, body); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling ControllerApi.UpdateNode: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **string**| The node id. | + **body** | [**NodeEntity**](NodeEntity.md)| The node configuration. The only configuration that will be honored at this endpoint is the status. | + +### Return type + +[**NodeEntity**](NodeEntity.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **UpdateRegistryClient** +> RegistryClientEntity UpdateRegistryClient (string id, RegistryClientEntity body) + +Updates a registry client + +### Example +```csharp +using System; +using System.Diagnostics; +using IO.Swagger.Api; +using IO.Swagger.Client; +using IO.Swagger.Model; + +namespace Example +{ + public class UpdateRegistryClientExample + { + public void main() + { + var apiInstance = new ControllerApi(); + var id = id_example; // string | The registry id. + var body = new RegistryClientEntity(); // RegistryClientEntity | The registry configuration details. + + try + { + // Updates a registry client + RegistryClientEntity result = apiInstance.UpdateRegistryClient(id, body); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling ControllerApi.UpdateRegistryClient: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **string**| The registry id. | + **body** | [**RegistryClientEntity**](RegistryClientEntity.md)| The registry configuration details. | + +### Return type + +[**RegistryClientEntity**](RegistryClientEntity.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/Docs/ControllerBulletinsEntity.md b/Docs/ControllerBulletinsEntity.md new file mode 100644 index 0000000..ca2a603 --- /dev/null +++ b/Docs/ControllerBulletinsEntity.md @@ -0,0 +1,11 @@ +# IO.Swagger.Model.ControllerBulletinsEntity +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Bulletins** | [**List<BulletinEntity>**](BulletinEntity.md) | System level bulletins to be reported to the user. | [optional] +**ControllerServiceBulletins** | [**List<BulletinEntity>**](BulletinEntity.md) | Controller service bulletins to be reported to the user. | [optional] +**ReportingTaskBulletins** | [**List<BulletinEntity>**](BulletinEntity.md) | Reporting task bulletins to be reported to the user. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/Docs/ControllerConfigurationDTO.md b/Docs/ControllerConfigurationDTO.md new file mode 100644 index 0000000..366faf8 --- /dev/null +++ b/Docs/ControllerConfigurationDTO.md @@ -0,0 +1,10 @@ +# IO.Swagger.Model.ControllerConfigurationDTO +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**MaxTimerDrivenThreadCount** | **int?** | The maximum number of timer driven threads the NiFi has available. | [optional] +**MaxEventDrivenThreadCount** | **int?** | The maximum number of event driven threads the NiFi has available. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/Docs/ControllerConfigurationEntity.md b/Docs/ControllerConfigurationEntity.md new file mode 100644 index 0000000..dc6c89d --- /dev/null +++ b/Docs/ControllerConfigurationEntity.md @@ -0,0 +1,12 @@ +# IO.Swagger.Model.ControllerConfigurationEntity +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Revision** | [**RevisionDTO**](RevisionDTO.md) | The revision for this request/response. The revision is required for any mutable flow requests and is included in all responses. | [optional] +**Permissions** | [**PermissionsDTO**](PermissionsDTO.md) | The permissions for this component. | [optional] +**DisconnectedNodeAcknowledged** | **bool?** | Acknowledges that this node is disconnected to allow for mutable requests to proceed. | [optional] +**Component** | [**ControllerConfigurationDTO**](ControllerConfigurationDTO.md) | The controller configuration. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/Docs/ControllerDTO.md b/Docs/ControllerDTO.md new file mode 100644 index 0000000..a47e478 --- /dev/null +++ b/Docs/ControllerDTO.md @@ -0,0 +1,25 @@ +# IO.Swagger.Model.ControllerDTO +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | **string** | The id of the NiFi. | [optional] +**Name** | **string** | The name of the NiFi. | [optional] +**Comments** | **string** | The comments for the NiFi. | [optional] +**RunningCount** | **int?** | The number of running components in the NiFi. | [optional] +**StoppedCount** | **int?** | The number of stopped components in the NiFi. | [optional] +**InvalidCount** | **int?** | The number of invalid components in the NiFi. | [optional] +**DisabledCount** | **int?** | The number of disabled components in the NiFi. | [optional] +**ActiveRemotePortCount** | **int?** | The number of active remote ports contained in the NiFi. | [optional] +**InactiveRemotePortCount** | **int?** | The number of inactive remote ports contained in the NiFi. | [optional] +**InputPortCount** | **int?** | The number of input ports contained in the NiFi. | [optional] +**OutputPortCount** | **int?** | The number of output ports in the NiFi. | [optional] +**RemoteSiteListeningPort** | **int?** | The Socket Port on which this instance is listening for Remote Transfers of Flow Files. If this instance is not configured to receive Flow Files from remote instances, this will be null. | [optional] +**RemoteSiteHttpListeningPort** | **int?** | The HTTP(S) Port on which this instance is listening for Remote Transfers of Flow Files. If this instance is not configured to receive Flow Files from remote instances, this will be null. | [optional] +**SiteToSiteSecure** | **bool?** | Indicates whether or not Site-to-Site communications with this instance is secure (2-way authentication). | [optional] +**InstanceId** | **string** | If clustered, the id of the Cluster Manager, otherwise the id of the NiFi. | [optional] +**InputPorts** | [**List<PortDTO>**](PortDTO.md) | The input ports available to send data to for the NiFi. | [optional] +**OutputPorts** | [**List<PortDTO>**](PortDTO.md) | The output ports available to received data from the NiFi. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/Docs/ControllerEntity.md b/Docs/ControllerEntity.md new file mode 100644 index 0000000..7f22655 --- /dev/null +++ b/Docs/ControllerEntity.md @@ -0,0 +1,9 @@ +# IO.Swagger.Model.ControllerEntity +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Controller** | [**ControllerDTO**](ControllerDTO.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/Docs/ControllerServiceAPI.md b/Docs/ControllerServiceAPI.md new file mode 100644 index 0000000..03ee208 --- /dev/null +++ b/Docs/ControllerServiceAPI.md @@ -0,0 +1,10 @@ +# IO.Swagger.Model.ControllerServiceAPI +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Type** | **string** | The fully qualified name of the service interface. | [optional] +**Bundle** | [**Bundle**](Bundle.md) | The details of the artifact that bundled this service interface. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/Docs/ControllerServiceApiDTO.md b/Docs/ControllerServiceApiDTO.md new file mode 100644 index 0000000..4e5ee9a --- /dev/null +++ b/Docs/ControllerServiceApiDTO.md @@ -0,0 +1,10 @@ +# IO.Swagger.Model.ControllerServiceApiDTO +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Type** | **string** | The fully qualified name of the service interface. | [optional] +**Bundle** | [**BundleDTO**](BundleDTO.md) | The details of the artifact that bundled this service interface. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/Docs/ControllerServiceDTO.md b/Docs/ControllerServiceDTO.md new file mode 100644 index 0000000..81b117c --- /dev/null +++ b/Docs/ControllerServiceDTO.md @@ -0,0 +1,30 @@ +# IO.Swagger.Model.ControllerServiceDTO +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | **string** | The id of the component. | [optional] +**VersionedComponentId** | **string** | The ID of the corresponding component that is under version control | [optional] +**ParentGroupId** | **string** | The id of parent process group of this component if applicable. | [optional] +**Position** | [**PositionDTO**](PositionDTO.md) | The position of this component in the UI if applicable. | [optional] +**Name** | **string** | The name of the controller service. | [optional] +**Type** | **string** | The type of the controller service. | [optional] +**Bundle** | [**BundleDTO**](BundleDTO.md) | The details of the artifact that bundled this processor type. | [optional] +**ControllerServiceApis** | [**List<ControllerServiceApiDTO>**](ControllerServiceApiDTO.md) | Lists the APIs this Controller Service implements. | [optional] +**Comments** | **string** | The comments for the controller service. | [optional] +**State** | **string** | The state of the controller service. | [optional] +**PersistsState** | **bool?** | Whether the controller service persists state. | [optional] +**Restricted** | **bool?** | Whether the controller service requires elevated privileges. | [optional] +**Deprecated** | **bool?** | Whether the ontroller service has been deprecated. | [optional] +**MultipleVersionsAvailable** | **bool?** | Whether the controller service has multiple versions available. | [optional] +**Properties** | **Dictionary<string, string>** | The properties of the controller service. | [optional] +**Descriptors** | [**Dictionary<string, PropertyDescriptorDTO>**](PropertyDescriptorDTO.md) | The descriptors for the controller service properties. | [optional] +**CustomUiUrl** | **string** | The URL for the controller services custom configuration UI if applicable. | [optional] +**AnnotationData** | **string** | The annotation for the controller service. This is how the custom UI relays configuration to the controller service. | [optional] +**ReferencingComponents** | [**List<ControllerServiceReferencingComponentEntity>**](ControllerServiceReferencingComponentEntity.md) | All components referencing this controller service. | [optional] +**ValidationErrors** | **List<string>** | The validation errors from the controller service. These validation errors represent the problems with the controller service that must be resolved before it can be enabled. | [optional] +**ValidationStatus** | **string** | Indicates whether the ControllerService is valid, invalid, or still in the process of validating (i.e., it is unknown whether or not the ControllerService is valid) | [optional] +**ExtensionMissing** | **bool?** | Whether the underlying extension is missing. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/Docs/ControllerServiceEntity.md b/Docs/ControllerServiceEntity.md new file mode 100644 index 0000000..cf17cc2 --- /dev/null +++ b/Docs/ControllerServiceEntity.md @@ -0,0 +1,19 @@ +# IO.Swagger.Model.ControllerServiceEntity +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Revision** | [**RevisionDTO**](RevisionDTO.md) | The revision for this request/response. The revision is required for any mutable flow requests and is included in all responses. | [optional] +**Id** | **string** | The id of the component. | [optional] +**Uri** | **string** | The URI for futures requests to the component. | [optional] +**Position** | [**PositionDTO**](PositionDTO.md) | The position of this component in the UI if applicable. | [optional] +**Permissions** | [**PermissionsDTO**](PermissionsDTO.md) | The permissions for this component. | [optional] +**Bulletins** | [**List<BulletinEntity>**](BulletinEntity.md) | The bulletins for this component. | [optional] +**DisconnectedNodeAcknowledged** | **bool?** | Acknowledges that this node is disconnected to allow for mutable requests to proceed. | [optional] +**ParentGroupId** | **string** | The id of parent process group of this ControllerService. | [optional] +**Component** | [**ControllerServiceDTO**](ControllerServiceDTO.md) | | [optional] +**OperatePermissions** | [**PermissionsDTO**](PermissionsDTO.md) | The permissions for this component operations. | [optional] +**Status** | [**ControllerServiceStatusDTO**](ControllerServiceStatusDTO.md) | The status for this ControllerService. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/Docs/ControllerServiceReferencingComponentDTO.md b/Docs/ControllerServiceReferencingComponentDTO.md new file mode 100644 index 0000000..fe37567 --- /dev/null +++ b/Docs/ControllerServiceReferencingComponentDTO.md @@ -0,0 +1,20 @@ +# IO.Swagger.Model.ControllerServiceReferencingComponentDTO +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**GroupId** | **string** | The group id for the component referencing a controller service. If this component is another controller service or a reporting task, this field is blank. | [optional] +**Id** | **string** | The id of the component referencing a controller service. | [optional] +**Name** | **string** | The name of the component referencing a controller service. | [optional] +**Type** | **string** | The type of the component referencing a controller service in simple Java class name format without package name. | [optional] +**State** | **string** | The scheduled state of a processor or reporting task referencing a controller service. If this component is another controller service, this field represents the controller service state. | [optional] +**Properties** | **Dictionary<string, string>** | The properties for the component. | [optional] +**Descriptors** | [**Dictionary<string, PropertyDescriptorDTO>**](PropertyDescriptorDTO.md) | The descriptors for the component properties. | [optional] +**ValidationErrors** | **List<string>** | The validation errors for the component. | [optional] +**ReferenceType** | **string** | The type of reference this is. | [optional] +**ActiveThreadCount** | **int?** | The number of active threads for the referencing component. | [optional] +**ReferenceCycle** | **bool?** | If the referencing component represents a controller service, this indicates whether it has already been represented in this hierarchy. | [optional] +**ReferencingComponents** | [**List<ControllerServiceReferencingComponentEntity>**](ControllerServiceReferencingComponentEntity.md) | If the referencing component represents a controller service, these are the components that reference it. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/Docs/ControllerServiceReferencingComponentEntity.md b/Docs/ControllerServiceReferencingComponentEntity.md new file mode 100644 index 0000000..c295f24 --- /dev/null +++ b/Docs/ControllerServiceReferencingComponentEntity.md @@ -0,0 +1,17 @@ +# IO.Swagger.Model.ControllerServiceReferencingComponentEntity +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Revision** | [**RevisionDTO**](RevisionDTO.md) | The revision for this request/response. The revision is required for any mutable flow requests and is included in all responses. | [optional] +**Id** | **string** | The id of the component. | [optional] +**Uri** | **string** | The URI for futures requests to the component. | [optional] +**Position** | [**PositionDTO**](PositionDTO.md) | The position of this component in the UI if applicable. | [optional] +**Permissions** | [**PermissionsDTO**](PermissionsDTO.md) | The permissions for this component. | [optional] +**Bulletins** | [**List<BulletinEntity>**](BulletinEntity.md) | The bulletins for this component. | [optional] +**DisconnectedNodeAcknowledged** | **bool?** | Acknowledges that this node is disconnected to allow for mutable requests to proceed. | [optional] +**Component** | [**ControllerServiceReferencingComponentDTO**](ControllerServiceReferencingComponentDTO.md) | | [optional] +**OperatePermissions** | [**PermissionsDTO**](PermissionsDTO.md) | The permissions for this component operations. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/Docs/ControllerServiceReferencingComponentsEntity.md b/Docs/ControllerServiceReferencingComponentsEntity.md new file mode 100644 index 0000000..a540afd --- /dev/null +++ b/Docs/ControllerServiceReferencingComponentsEntity.md @@ -0,0 +1,9 @@ +# IO.Swagger.Model.ControllerServiceReferencingComponentsEntity +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ControllerServiceReferencingComponents** | [**List<ControllerServiceReferencingComponentEntity>**](ControllerServiceReferencingComponentEntity.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/Docs/ControllerServiceRunStatusEntity.md b/Docs/ControllerServiceRunStatusEntity.md new file mode 100644 index 0000000..42b0f0a --- /dev/null +++ b/Docs/ControllerServiceRunStatusEntity.md @@ -0,0 +1,11 @@ +# IO.Swagger.Model.ControllerServiceRunStatusEntity +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Revision** | [**RevisionDTO**](RevisionDTO.md) | The revision for this request/response. The revision is required for any mutable flow requests and is included in all responses. | [optional] +**State** | **string** | The run status of the ControllerService. | [optional] +**DisconnectedNodeAcknowledged** | **bool?** | Acknowledges that this node is disconnected to allow for mutable requests to proceed. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/Docs/ControllerServiceStatusDTO.md b/Docs/ControllerServiceStatusDTO.md new file mode 100644 index 0000000..a82dda9 --- /dev/null +++ b/Docs/ControllerServiceStatusDTO.md @@ -0,0 +1,11 @@ +# IO.Swagger.Model.ControllerServiceStatusDTO +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**RunStatus** | **string** | The run status of this ControllerService | [optional] +**ValidationStatus** | **string** | Indicates whether the component is valid, invalid, or still in the process of validating (i.e., it is unknown whether or not the component is valid) | [optional] +**ActiveThreadCount** | **int?** | The number of active threads for the component. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/Docs/ControllerServiceTypesEntity.md b/Docs/ControllerServiceTypesEntity.md new file mode 100644 index 0000000..2c491e2 --- /dev/null +++ b/Docs/ControllerServiceTypesEntity.md @@ -0,0 +1,9 @@ +# IO.Swagger.Model.ControllerServiceTypesEntity +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ControllerServiceTypes** | [**List<DocumentedTypeDTO>**](DocumentedTypeDTO.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/Docs/ControllerServicesApi.md b/Docs/ControllerServicesApi.md new file mode 100644 index 0000000..a38cbac --- /dev/null +++ b/Docs/ControllerServicesApi.md @@ -0,0 +1,562 @@ +# IO.Swagger.Api.ControllerServicesApi + +All URIs are relative to *http://localhost/nifi-api* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**ClearState**](ControllerServicesApi.md#clearstate) | **POST** /controller-services/{id}/state/clear-requests | Clears the state for a controller service +[**GetControllerService**](ControllerServicesApi.md#getcontrollerservice) | **GET** /controller-services/{id} | Gets a controller service +[**GetControllerServiceReferences**](ControllerServicesApi.md#getcontrollerservicereferences) | **GET** /controller-services/{id}/references | Gets a controller service +[**GetPropertyDescriptor**](ControllerServicesApi.md#getpropertydescriptor) | **GET** /controller-services/{id}/descriptors | Gets a controller service property descriptor +[**GetState**](ControllerServicesApi.md#getstate) | **GET** /controller-services/{id}/state | Gets the state for a controller service +[**RemoveControllerService**](ControllerServicesApi.md#removecontrollerservice) | **DELETE** /controller-services/{id} | Deletes a controller service +[**UpdateControllerService**](ControllerServicesApi.md#updatecontrollerservice) | **PUT** /controller-services/{id} | Updates a controller service +[**UpdateControllerServiceReferences**](ControllerServicesApi.md#updatecontrollerservicereferences) | **PUT** /controller-services/{id}/references | Updates a controller services references +[**UpdateRunStatus**](ControllerServicesApi.md#updaterunstatus) | **PUT** /controller-services/{id}/run-status | Updates run status of a controller service + + + +# **ClearState** +> ComponentStateEntity ClearState (string id) + +Clears the state for a controller service + +### Example +```csharp +using System; +using System.Diagnostics; +using IO.Swagger.Api; +using IO.Swagger.Client; +using IO.Swagger.Model; + +namespace Example +{ + public class ClearStateExample + { + public void main() + { + var apiInstance = new ControllerServicesApi(); + var id = id_example; // string | The controller service id. + + try + { + // Clears the state for a controller service + ComponentStateEntity result = apiInstance.ClearState(id); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling ControllerServicesApi.ClearState: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **string**| The controller service id. | + +### Return type + +[**ComponentStateEntity**](ComponentStateEntity.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **GetControllerService** +> ControllerServiceEntity GetControllerService (string id) + +Gets a controller service + +### Example +```csharp +using System; +using System.Diagnostics; +using IO.Swagger.Api; +using IO.Swagger.Client; +using IO.Swagger.Model; + +namespace Example +{ + public class GetControllerServiceExample + { + public void main() + { + var apiInstance = new ControllerServicesApi(); + var id = id_example; // string | The controller service id. + + try + { + // Gets a controller service + ControllerServiceEntity result = apiInstance.GetControllerService(id); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling ControllerServicesApi.GetControllerService: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **string**| The controller service id. | + +### Return type + +[**ControllerServiceEntity**](ControllerServiceEntity.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **GetControllerServiceReferences** +> ControllerServiceReferencingComponentsEntity GetControllerServiceReferences (string id) + +Gets a controller service + +### Example +```csharp +using System; +using System.Diagnostics; +using IO.Swagger.Api; +using IO.Swagger.Client; +using IO.Swagger.Model; + +namespace Example +{ + public class GetControllerServiceReferencesExample + { + public void main() + { + var apiInstance = new ControllerServicesApi(); + var id = id_example; // string | The controller service id. + + try + { + // Gets a controller service + ControllerServiceReferencingComponentsEntity result = apiInstance.GetControllerServiceReferences(id); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling ControllerServicesApi.GetControllerServiceReferences: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **string**| The controller service id. | + +### Return type + +[**ControllerServiceReferencingComponentsEntity**](ControllerServiceReferencingComponentsEntity.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **GetPropertyDescriptor** +> PropertyDescriptorEntity GetPropertyDescriptor (string id, string propertyName) + +Gets a controller service property descriptor + +### Example +```csharp +using System; +using System.Diagnostics; +using IO.Swagger.Api; +using IO.Swagger.Client; +using IO.Swagger.Model; + +namespace Example +{ + public class GetPropertyDescriptorExample + { + public void main() + { + var apiInstance = new ControllerServicesApi(); + var id = id_example; // string | The controller service id. + var propertyName = propertyName_example; // string | The property name to return the descriptor for. + + try + { + // Gets a controller service property descriptor + PropertyDescriptorEntity result = apiInstance.GetPropertyDescriptor(id, propertyName); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling ControllerServicesApi.GetPropertyDescriptor: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **string**| The controller service id. | + **propertyName** | **string**| The property name to return the descriptor for. | + +### Return type + +[**PropertyDescriptorEntity**](PropertyDescriptorEntity.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **GetState** +> ComponentStateEntity GetState (string id) + +Gets the state for a controller service + +### Example +```csharp +using System; +using System.Diagnostics; +using IO.Swagger.Api; +using IO.Swagger.Client; +using IO.Swagger.Model; + +namespace Example +{ + public class GetStateExample + { + public void main() + { + var apiInstance = new ControllerServicesApi(); + var id = id_example; // string | The controller service id. + + try + { + // Gets the state for a controller service + ComponentStateEntity result = apiInstance.GetState(id); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling ControllerServicesApi.GetState: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **string**| The controller service id. | + +### Return type + +[**ComponentStateEntity**](ComponentStateEntity.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **RemoveControllerService** +> ControllerServiceEntity RemoveControllerService (string id, string version = null, string clientId = null, bool? disconnectedNodeAcknowledged = null) + +Deletes a controller service + +### Example +```csharp +using System; +using System.Diagnostics; +using IO.Swagger.Api; +using IO.Swagger.Client; +using IO.Swagger.Model; + +namespace Example +{ + public class RemoveControllerServiceExample + { + public void main() + { + var apiInstance = new ControllerServicesApi(); + var id = id_example; // string | The controller service id. + var version = version_example; // string | The revision is used to verify the client is working with the latest version of the flow. (optional) + var clientId = clientId_example; // string | If the client id is not specified, new one will be generated. This value (whether specified or generated) is included in the response. (optional) + var disconnectedNodeAcknowledged = true; // bool? | Acknowledges that this node is disconnected to allow for mutable requests to proceed. (optional) (default to false) + + try + { + // Deletes a controller service + ControllerServiceEntity result = apiInstance.RemoveControllerService(id, version, clientId, disconnectedNodeAcknowledged); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling ControllerServicesApi.RemoveControllerService: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **string**| The controller service id. | + **version** | **string**| The revision is used to verify the client is working with the latest version of the flow. | [optional] + **clientId** | **string**| If the client id is not specified, new one will be generated. This value (whether specified or generated) is included in the response. | [optional] + **disconnectedNodeAcknowledged** | **bool?**| Acknowledges that this node is disconnected to allow for mutable requests to proceed. | [optional] [default to false] + +### Return type + +[**ControllerServiceEntity**](ControllerServiceEntity.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **UpdateControllerService** +> ControllerServiceEntity UpdateControllerService (string id, ControllerServiceEntity body) + +Updates a controller service + +### Example +```csharp +using System; +using System.Diagnostics; +using IO.Swagger.Api; +using IO.Swagger.Client; +using IO.Swagger.Model; + +namespace Example +{ + public class UpdateControllerServiceExample + { + public void main() + { + var apiInstance = new ControllerServicesApi(); + var id = id_example; // string | The controller service id. + var body = new ControllerServiceEntity(); // ControllerServiceEntity | The controller service configuration details. + + try + { + // Updates a controller service + ControllerServiceEntity result = apiInstance.UpdateControllerService(id, body); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling ControllerServicesApi.UpdateControllerService: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **string**| The controller service id. | + **body** | [**ControllerServiceEntity**](ControllerServiceEntity.md)| The controller service configuration details. | + +### Return type + +[**ControllerServiceEntity**](ControllerServiceEntity.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **UpdateControllerServiceReferences** +> ControllerServiceReferencingComponentsEntity UpdateControllerServiceReferences (string id, UpdateControllerServiceReferenceRequestEntity body) + +Updates a controller services references + +### Example +```csharp +using System; +using System.Diagnostics; +using IO.Swagger.Api; +using IO.Swagger.Client; +using IO.Swagger.Model; + +namespace Example +{ + public class UpdateControllerServiceReferencesExample + { + public void main() + { + var apiInstance = new ControllerServicesApi(); + var id = id_example; // string | The controller service id. + var body = new UpdateControllerServiceReferenceRequestEntity(); // UpdateControllerServiceReferenceRequestEntity | The controller service request update request. + + try + { + // Updates a controller services references + ControllerServiceReferencingComponentsEntity result = apiInstance.UpdateControllerServiceReferences(id, body); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling ControllerServicesApi.UpdateControllerServiceReferences: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **string**| The controller service id. | + **body** | [**UpdateControllerServiceReferenceRequestEntity**](UpdateControllerServiceReferenceRequestEntity.md)| The controller service request update request. | + +### Return type + +[**ControllerServiceReferencingComponentsEntity**](ControllerServiceReferencingComponentsEntity.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **UpdateRunStatus** +> ControllerServiceEntity UpdateRunStatus (string id, ControllerServiceRunStatusEntity body) + +Updates run status of a controller service + +### Example +```csharp +using System; +using System.Diagnostics; +using IO.Swagger.Api; +using IO.Swagger.Client; +using IO.Swagger.Model; + +namespace Example +{ + public class UpdateRunStatusExample + { + public void main() + { + var apiInstance = new ControllerServicesApi(); + var id = id_example; // string | The controller service id. + var body = new ControllerServiceRunStatusEntity(); // ControllerServiceRunStatusEntity | The controller service run status. + + try + { + // Updates run status of a controller service + ControllerServiceEntity result = apiInstance.UpdateRunStatus(id, body); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling ControllerServicesApi.UpdateRunStatus: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **string**| The controller service id. | + **body** | [**ControllerServiceRunStatusEntity**](ControllerServiceRunStatusEntity.md)| The controller service run status. | + +### Return type + +[**ControllerServiceEntity**](ControllerServiceEntity.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/Docs/ControllerServicesEntity.md b/Docs/ControllerServicesEntity.md new file mode 100644 index 0000000..604f813 --- /dev/null +++ b/Docs/ControllerServicesEntity.md @@ -0,0 +1,10 @@ +# IO.Swagger.Model.ControllerServicesEntity +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**CurrentTime** | **string** | The current time on the system. | [optional] +**ControllerServices** | [**List<ControllerServiceEntity>**](ControllerServiceEntity.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/Docs/ControllerStatusDTO.md b/Docs/ControllerStatusDTO.md new file mode 100644 index 0000000..7563271 --- /dev/null +++ b/Docs/ControllerStatusDTO.md @@ -0,0 +1,24 @@ +# IO.Swagger.Model.ControllerStatusDTO +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ActiveThreadCount** | **int?** | The number of active threads in the NiFi. | [optional] +**TerminatedThreadCount** | **int?** | The number of terminated threads in the NiFi. | [optional] +**Queued** | **string** | The number of flowfiles queued in the NiFi. | [optional] +**FlowFilesQueued** | **int?** | The number of FlowFiles queued across the entire flow | [optional] +**BytesQueued** | **long?** | The size of the FlowFiles queued across the entire flow | [optional] +**RunningCount** | **int?** | The number of running components in the NiFi. | [optional] +**StoppedCount** | **int?** | The number of stopped components in the NiFi. | [optional] +**InvalidCount** | **int?** | The number of invalid components in the NiFi. | [optional] +**DisabledCount** | **int?** | The number of disabled components in the NiFi. | [optional] +**ActiveRemotePortCount** | **int?** | The number of active remote ports in the NiFi. | [optional] +**InactiveRemotePortCount** | **int?** | The number of inactive remote ports in the NiFi. | [optional] +**UpToDateCount** | **int?** | The number of up to date versioned process groups in the NiFi. | [optional] +**LocallyModifiedCount** | **int?** | The number of locally modified versioned process groups in the NiFi. | [optional] +**StaleCount** | **int?** | The number of stale versioned process groups in the NiFi. | [optional] +**LocallyModifiedAndStaleCount** | **int?** | The number of locally modified and stale versioned process groups in the NiFi. | [optional] +**SyncFailureCount** | **int?** | The number of versioned process groups in the NiFi that are unable to sync to a registry. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/Docs/ControllerStatusEntity.md b/Docs/ControllerStatusEntity.md new file mode 100644 index 0000000..ce8c2c2 --- /dev/null +++ b/Docs/ControllerStatusEntity.md @@ -0,0 +1,9 @@ +# IO.Swagger.Model.ControllerStatusEntity +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ControllerStatus** | [**ControllerStatusDTO**](ControllerStatusDTO.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/Docs/CopySnippetRequestEntity.md b/Docs/CopySnippetRequestEntity.md new file mode 100644 index 0000000..3bb54e5 --- /dev/null +++ b/Docs/CopySnippetRequestEntity.md @@ -0,0 +1,12 @@ +# IO.Swagger.Model.CopySnippetRequestEntity +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**SnippetId** | **string** | The identifier of the snippet. | [optional] +**OriginX** | **double?** | The x coordinate of the origin of the bounding box where the new components will be placed. | [optional] +**OriginY** | **double?** | The y coordinate of the origin of the bounding box where the new components will be placed. | [optional] +**DisconnectedNodeAcknowledged** | **bool?** | Acknowledges that this node is disconnected to allow for mutable requests to proceed. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/Docs/CounterDTO.md b/Docs/CounterDTO.md new file mode 100644 index 0000000..9e53acd --- /dev/null +++ b/Docs/CounterDTO.md @@ -0,0 +1,13 @@ +# IO.Swagger.Model.CounterDTO +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | **string** | The id of the counter. | [optional] +**Context** | **string** | The context of the counter. | [optional] +**Name** | **string** | The name of the counter. | [optional] +**ValueCount** | **long?** | The value count. | [optional] +**Value** | **string** | The value of the counter. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/Docs/CounterEntity.md b/Docs/CounterEntity.md new file mode 100644 index 0000000..d76c08f --- /dev/null +++ b/Docs/CounterEntity.md @@ -0,0 +1,9 @@ +# IO.Swagger.Model.CounterEntity +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Counter** | [**CounterDTO**](CounterDTO.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/Docs/CountersApi.md b/Docs/CountersApi.md new file mode 100644 index 0000000..95c1180 --- /dev/null +++ b/Docs/CountersApi.md @@ -0,0 +1,134 @@ +# IO.Swagger.Api.CountersApi + +All URIs are relative to *http://localhost/nifi-api* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**GetCounters**](CountersApi.md#getcounters) | **GET** /counters | Gets the current counters for this NiFi +[**UpdateCounter**](CountersApi.md#updatecounter) | **PUT** /counters/{id} | Updates the specified counter. This will reset the counter value to 0 + + + +# **GetCounters** +> CountersEntity GetCounters (bool? nodewise = null, string clusterNodeId = null) + +Gets the current counters for this NiFi + +Note: This endpoint is subject to change as NiFi and it's REST API evolve. + +### Example +```csharp +using System; +using System.Diagnostics; +using IO.Swagger.Api; +using IO.Swagger.Client; +using IO.Swagger.Model; + +namespace Example +{ + public class GetCountersExample + { + public void main() + { + var apiInstance = new CountersApi(); + var nodewise = true; // bool? | Whether or not to include the breakdown per node. Optional, defaults to false (optional) (default to false) + var clusterNodeId = clusterNodeId_example; // string | The id of the node where to get the status. (optional) + + try + { + // Gets the current counters for this NiFi + CountersEntity result = apiInstance.GetCounters(nodewise, clusterNodeId); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling CountersApi.GetCounters: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **nodewise** | **bool?**| Whether or not to include the breakdown per node. Optional, defaults to false | [optional] [default to false] + **clusterNodeId** | **string**| The id of the node where to get the status. | [optional] + +### Return type + +[**CountersEntity**](CountersEntity.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **UpdateCounter** +> CounterEntity UpdateCounter (string id) + +Updates the specified counter. This will reset the counter value to 0 + +Note: This endpoint is subject to change as NiFi and it's REST API evolve. + +### Example +```csharp +using System; +using System.Diagnostics; +using IO.Swagger.Api; +using IO.Swagger.Client; +using IO.Swagger.Model; + +namespace Example +{ + public class UpdateCounterExample + { + public void main() + { + var apiInstance = new CountersApi(); + var id = id_example; // string | The id of the counter. + + try + { + // Updates the specified counter. This will reset the counter value to 0 + CounterEntity result = apiInstance.UpdateCounter(id); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling CountersApi.UpdateCounter: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **string**| The id of the counter. | + +### Return type + +[**CounterEntity**](CounterEntity.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/Docs/CountersDTO.md b/Docs/CountersDTO.md new file mode 100644 index 0000000..e7620be --- /dev/null +++ b/Docs/CountersDTO.md @@ -0,0 +1,10 @@ +# IO.Swagger.Model.CountersDTO +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AggregateSnapshot** | [**CountersSnapshotDTO**](CountersSnapshotDTO.md) | A Counters snapshot that represents the aggregate values of all nodes in the cluster. If the NiFi instance is a standalone instance, rather than a cluster, this represents the stats of the single instance. | [optional] +**NodeSnapshots** | [**List<NodeCountersSnapshotDTO>**](NodeCountersSnapshotDTO.md) | A Counters snapshot for each node in the cluster. If the NiFi instance is a standalone instance, rather than a cluster, this may be null. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/Docs/CountersEntity.md b/Docs/CountersEntity.md new file mode 100644 index 0000000..7389f95 --- /dev/null +++ b/Docs/CountersEntity.md @@ -0,0 +1,9 @@ +# IO.Swagger.Model.CountersEntity +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Counters** | [**CountersDTO**](CountersDTO.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/Docs/CountersSnapshotDTO.md b/Docs/CountersSnapshotDTO.md new file mode 100644 index 0000000..3ecd00d --- /dev/null +++ b/Docs/CountersSnapshotDTO.md @@ -0,0 +1,10 @@ +# IO.Swagger.Model.CountersSnapshotDTO +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Generated** | **string** | The timestamp when the report was generated. | [optional] +**Counters** | [**List<CounterDTO>**](CounterDTO.md) | All counters in the NiFi. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/Docs/CreateActiveRequestEntity.md b/Docs/CreateActiveRequestEntity.md new file mode 100644 index 0000000..e8056df --- /dev/null +++ b/Docs/CreateActiveRequestEntity.md @@ -0,0 +1,10 @@ +# IO.Swagger.Model.CreateActiveRequestEntity +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ProcessGroupId** | **string** | The Process Group ID that this active request will update | [optional] +**DisconnectedNodeAcknowledged** | **bool?** | Acknowledges that this node is disconnected to allow for mutable requests to proceed. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/Docs/CreateTemplateRequestEntity.md b/Docs/CreateTemplateRequestEntity.md new file mode 100644 index 0000000..1c7dae7 --- /dev/null +++ b/Docs/CreateTemplateRequestEntity.md @@ -0,0 +1,12 @@ +# IO.Swagger.Model.CreateTemplateRequestEntity +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Name** | **string** | The name of the template. | [optional] +**Description** | **string** | The description of the template. | [optional] +**SnippetId** | **string** | The identifier of the snippet. | [optional] +**DisconnectedNodeAcknowledged** | **bool?** | Acknowledges that this node is disconnected to allow for mutable requests to proceed. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/Docs/CurrentUserEntity.md b/Docs/CurrentUserEntity.md new file mode 100644 index 0000000..72bda16 --- /dev/null +++ b/Docs/CurrentUserEntity.md @@ -0,0 +1,19 @@ +# IO.Swagger.Model.CurrentUserEntity +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Identity** | **string** | The user identity being serialized. | [optional] +**Anonymous** | **bool?** | Whether the current user is anonymous. | [optional] +**ProvenancePermissions** | [**PermissionsDTO**](PermissionsDTO.md) | Permissions for querying provenance. | [optional] +**CountersPermissions** | [**PermissionsDTO**](PermissionsDTO.md) | Permissions for accessing counters. | [optional] +**TenantsPermissions** | [**PermissionsDTO**](PermissionsDTO.md) | Permissions for accessing tenants. | [optional] +**ControllerPermissions** | [**PermissionsDTO**](PermissionsDTO.md) | Permissions for accessing the controller. | [optional] +**PoliciesPermissions** | [**PermissionsDTO**](PermissionsDTO.md) | Permissions for accessing the policies. | [optional] +**SystemPermissions** | [**PermissionsDTO**](PermissionsDTO.md) | Permissions for accessing system. | [optional] +**RestrictedComponentsPermissions** | [**PermissionsDTO**](PermissionsDTO.md) | Permissions for accessing restricted components. Note: the read permission are not used and will always be false. | [optional] +**ComponentRestrictionPermissions** | [**List<ComponentRestrictionPermissionDTO>**](ComponentRestrictionPermissionDTO.md) | Permissions for specific component restrictions. | [optional] +**CanVersionFlows** | **bool?** | Whether the current user can version flows. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/Docs/DataTransferApi.md b/Docs/DataTransferApi.md new file mode 100644 index 0000000..593cde3 --- /dev/null +++ b/Docs/DataTransferApi.md @@ -0,0 +1,448 @@ +# IO.Swagger.Api.DataTransferApi + +All URIs are relative to *http://localhost/nifi-api* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**CommitInputPortTransaction**](DataTransferApi.md#commitinputporttransaction) | **DELETE** /data-transfer/input-ports/{portId}/transactions/{transactionId} | Commit or cancel the specified transaction +[**CommitOutputPortTransaction**](DataTransferApi.md#commitoutputporttransaction) | **DELETE** /data-transfer/output-ports/{portId}/transactions/{transactionId} | Commit or cancel the specified transaction +[**CreatePortTransaction**](DataTransferApi.md#createporttransaction) | **POST** /data-transfer/{portType}/{portId}/transactions | Create a transaction to the specified output port or input port +[**ExtendInputPortTransactionTTL**](DataTransferApi.md#extendinputporttransactionttl) | **PUT** /data-transfer/input-ports/{portId}/transactions/{transactionId} | Extend transaction TTL +[**ExtendOutputPortTransactionTTL**](DataTransferApi.md#extendoutputporttransactionttl) | **PUT** /data-transfer/output-ports/{portId}/transactions/{transactionId} | Extend transaction TTL +[**ReceiveFlowFiles**](DataTransferApi.md#receiveflowfiles) | **POST** /data-transfer/input-ports/{portId}/transactions/{transactionId}/flow-files | Transfer flow files to the input port +[**TransferFlowFiles**](DataTransferApi.md#transferflowfiles) | **GET** /data-transfer/output-ports/{portId}/transactions/{transactionId}/flow-files | Transfer flow files from the output port + + + +# **CommitInputPortTransaction** +> TransactionResultEntity CommitInputPortTransaction (int? responseCode, string portId, string transactionId) + +Commit or cancel the specified transaction + +### Example +```csharp +using System; +using System.Diagnostics; +using IO.Swagger.Api; +using IO.Swagger.Client; +using IO.Swagger.Model; + +namespace Example +{ + public class CommitInputPortTransactionExample + { + public void main() + { + var apiInstance = new DataTransferApi(); + var responseCode = 56; // int? | The response code. Available values are BAD_CHECKSUM(19), CONFIRM_TRANSACTION(12) or CANCEL_TRANSACTION(15). + var portId = portId_example; // string | The input port id. + var transactionId = transactionId_example; // string | The transaction id. + + try + { + // Commit or cancel the specified transaction + TransactionResultEntity result = apiInstance.CommitInputPortTransaction(responseCode, portId, transactionId); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling DataTransferApi.CommitInputPortTransaction: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **responseCode** | **int?**| The response code. Available values are BAD_CHECKSUM(19), CONFIRM_TRANSACTION(12) or CANCEL_TRANSACTION(15). | + **portId** | **string**| The input port id. | + **transactionId** | **string**| The transaction id. | + +### Return type + +[**TransactionResultEntity**](TransactionResultEntity.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/octet-stream + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **CommitOutputPortTransaction** +> TransactionResultEntity CommitOutputPortTransaction (int? responseCode, string checksum, string portId, string transactionId) + +Commit or cancel the specified transaction + +### Example +```csharp +using System; +using System.Diagnostics; +using IO.Swagger.Api; +using IO.Swagger.Client; +using IO.Swagger.Model; + +namespace Example +{ + public class CommitOutputPortTransactionExample + { + public void main() + { + var apiInstance = new DataTransferApi(); + var responseCode = 56; // int? | The response code. Available values are CONFIRM_TRANSACTION(12) or CANCEL_TRANSACTION(15). + var checksum = checksum_example; // string | A checksum calculated at client side using CRC32 to check flow file content integrity. It must match with the value calculated at server side. + var portId = portId_example; // string | The output port id. + var transactionId = transactionId_example; // string | The transaction id. + + try + { + // Commit or cancel the specified transaction + TransactionResultEntity result = apiInstance.CommitOutputPortTransaction(responseCode, checksum, portId, transactionId); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling DataTransferApi.CommitOutputPortTransaction: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **responseCode** | **int?**| The response code. Available values are CONFIRM_TRANSACTION(12) or CANCEL_TRANSACTION(15). | + **checksum** | **string**| A checksum calculated at client side using CRC32 to check flow file content integrity. It must match with the value calculated at server side. | + **portId** | **string**| The output port id. | + **transactionId** | **string**| The transaction id. | + +### Return type + +[**TransactionResultEntity**](TransactionResultEntity.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/octet-stream + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **CreatePortTransaction** +> TransactionResultEntity CreatePortTransaction (string portType, string portId) + +Create a transaction to the specified output port or input port + +### Example +```csharp +using System; +using System.Diagnostics; +using IO.Swagger.Api; +using IO.Swagger.Client; +using IO.Swagger.Model; + +namespace Example +{ + public class CreatePortTransactionExample + { + public void main() + { + var apiInstance = new DataTransferApi(); + var portType = portType_example; // string | The port type. + var portId = portId_example; // string | + + try + { + // Create a transaction to the specified output port or input port + TransactionResultEntity result = apiInstance.CreatePortTransaction(portType, portId); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling DataTransferApi.CreatePortTransaction: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **portType** | **string**| The port type. | + **portId** | **string**| | + +### Return type + +[**TransactionResultEntity**](TransactionResultEntity.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **ExtendInputPortTransactionTTL** +> TransactionResultEntity ExtendInputPortTransactionTTL (string portId, string transactionId) + +Extend transaction TTL + +### Example +```csharp +using System; +using System.Diagnostics; +using IO.Swagger.Api; +using IO.Swagger.Client; +using IO.Swagger.Model; + +namespace Example +{ + public class ExtendInputPortTransactionTTLExample + { + public void main() + { + var apiInstance = new DataTransferApi(); + var portId = portId_example; // string | + var transactionId = transactionId_example; // string | + + try + { + // Extend transaction TTL + TransactionResultEntity result = apiInstance.ExtendInputPortTransactionTTL(portId, transactionId); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling DataTransferApi.ExtendInputPortTransactionTTL: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **portId** | **string**| | + **transactionId** | **string**| | + +### Return type + +[**TransactionResultEntity**](TransactionResultEntity.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **ExtendOutputPortTransactionTTL** +> TransactionResultEntity ExtendOutputPortTransactionTTL (string portId, string transactionId) + +Extend transaction TTL + +### Example +```csharp +using System; +using System.Diagnostics; +using IO.Swagger.Api; +using IO.Swagger.Client; +using IO.Swagger.Model; + +namespace Example +{ + public class ExtendOutputPortTransactionTTLExample + { + public void main() + { + var apiInstance = new DataTransferApi(); + var portId = portId_example; // string | + var transactionId = transactionId_example; // string | + + try + { + // Extend transaction TTL + TransactionResultEntity result = apiInstance.ExtendOutputPortTransactionTTL(portId, transactionId); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling DataTransferApi.ExtendOutputPortTransactionTTL: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **portId** | **string**| | + **transactionId** | **string**| | + +### Return type + +[**TransactionResultEntity**](TransactionResultEntity.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **ReceiveFlowFiles** +> string ReceiveFlowFiles (string portId, string transactionId) + +Transfer flow files to the input port + +### Example +```csharp +using System; +using System.Diagnostics; +using IO.Swagger.Api; +using IO.Swagger.Client; +using IO.Swagger.Model; + +namespace Example +{ + public class ReceiveFlowFilesExample + { + public void main() + { + var apiInstance = new DataTransferApi(); + var portId = portId_example; // string | The input port id. + var transactionId = transactionId_example; // string | + + try + { + // Transfer flow files to the input port + string result = apiInstance.ReceiveFlowFiles(portId, transactionId); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling DataTransferApi.ReceiveFlowFiles: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **portId** | **string**| The input port id. | + **transactionId** | **string**| | + +### Return type + +**string** + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/octet-stream + - **Accept**: text/plain + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **TransferFlowFiles** +> StreamingOutput TransferFlowFiles (string portId, string transactionId) + +Transfer flow files from the output port + +### Example +```csharp +using System; +using System.Diagnostics; +using IO.Swagger.Api; +using IO.Swagger.Client; +using IO.Swagger.Model; + +namespace Example +{ + public class TransferFlowFilesExample + { + public void main() + { + var apiInstance = new DataTransferApi(); + var portId = portId_example; // string | The output port id. + var transactionId = transactionId_example; // string | + + try + { + // Transfer flow files from the output port + StreamingOutput result = apiInstance.TransferFlowFiles(portId, transactionId); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling DataTransferApi.TransferFlowFiles: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **portId** | **string**| The output port id. | + **transactionId** | **string**| | + +### Return type + +[**StreamingOutput**](StreamingOutput.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/octet-stream + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/Docs/DifferenceDTO.md b/Docs/DifferenceDTO.md new file mode 100644 index 0000000..fcbf0fc --- /dev/null +++ b/Docs/DifferenceDTO.md @@ -0,0 +1,10 @@ +# IO.Swagger.Model.DifferenceDTO +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**DifferenceType** | **string** | The type of difference | [optional] +**Difference** | **string** | Description of the difference | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/Docs/DimensionsDTO.md b/Docs/DimensionsDTO.md new file mode 100644 index 0000000..e1666a5 --- /dev/null +++ b/Docs/DimensionsDTO.md @@ -0,0 +1,10 @@ +# IO.Swagger.Model.DimensionsDTO +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Width** | **double?** | The width of the label in pixels when at a 1:1 scale. | [optional] +**Height** | **double?** | The height of the label in pixels when at a 1:1 scale. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/Docs/DocumentedTypeDTO.md b/Docs/DocumentedTypeDTO.md new file mode 100644 index 0000000..320217d --- /dev/null +++ b/Docs/DocumentedTypeDTO.md @@ -0,0 +1,17 @@ +# IO.Swagger.Model.DocumentedTypeDTO +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Type** | **string** | The fully qualified name of the type. | [optional] +**Bundle** | [**BundleDTO**](BundleDTO.md) | The details of the artifact that bundled this type. | [optional] +**ControllerServiceApis** | [**List<ControllerServiceApiDTO>**](ControllerServiceApiDTO.md) | If this type represents a ControllerService, this lists the APIs it implements. | [optional] +**Description** | **string** | The description of the type. | [optional] +**Restricted** | **bool?** | Whether this type is restricted. | [optional] +**UsageRestriction** | **string** | The optional description of why the usage of this component is restricted. | [optional] +**ExplicitRestrictions** | [**List<ExplicitRestrictionDTO>**](ExplicitRestrictionDTO.md) | An optional collection of explicit restrictions. If specified, these explicit restrictions will be enfored. | [optional] +**DeprecationReason** | **string** | The description of why the usage of this component is restricted. | [optional] +**Tags** | **List<string>** | The tags associated with this type. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/Docs/DropRequestDTO.md b/Docs/DropRequestDTO.md new file mode 100644 index 0000000..d38e7dc --- /dev/null +++ b/Docs/DropRequestDTO.md @@ -0,0 +1,25 @@ +# IO.Swagger.Model.DropRequestDTO +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | **string** | The id for this drop request. | [optional] +**Uri** | **string** | The URI for future requests to this drop request. | [optional] +**SubmissionTime** | **string** | The timestamp when the query was submitted. | [optional] +**LastUpdated** | **string** | The last time this drop request was updated. | [optional] +**PercentCompleted** | **int?** | The current percent complete. | [optional] +**Finished** | **bool?** | Whether the query has finished. | [optional] +**FailureReason** | **string** | The reason, if any, that this drop request failed. | [optional] +**CurrentCount** | **int?** | The number of flow files currently queued. | [optional] +**CurrentSize** | **long?** | The size of flow files currently queued in bytes. | [optional] +**Current** | **string** | The count and size of flow files currently queued. | [optional] +**OriginalCount** | **int?** | The number of flow files to be dropped as a result of this request. | [optional] +**OriginalSize** | **long?** | The size of flow files to be dropped as a result of this request in bytes. | [optional] +**Original** | **string** | The count and size of flow files to be dropped as a result of this request. | [optional] +**DroppedCount** | **int?** | The number of flow files that have been dropped thus far. | [optional] +**DroppedSize** | **long?** | The size of flow files that have been dropped thus far in bytes. | [optional] +**Dropped** | **string** | The count and size of flow files that have been dropped thus far. | [optional] +**State** | **string** | The current state of the drop request. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/Docs/DropRequestEntity.md b/Docs/DropRequestEntity.md new file mode 100644 index 0000000..ebae00d --- /dev/null +++ b/Docs/DropRequestEntity.md @@ -0,0 +1,9 @@ +# IO.Swagger.Model.DropRequestEntity +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**DropRequest** | [**DropRequestDTO**](DropRequestDTO.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/Docs/ExplicitRestrictionDTO.md b/Docs/ExplicitRestrictionDTO.md new file mode 100644 index 0000000..2f21203 --- /dev/null +++ b/Docs/ExplicitRestrictionDTO.md @@ -0,0 +1,10 @@ +# IO.Swagger.Model.ExplicitRestrictionDTO +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**RequiredPermission** | [**RequiredPermissionDTO**](RequiredPermissionDTO.md) | The required permission necessary for this restriction. | [optional] +**Explanation** | **string** | The description of why the usage of this component is restricted for this required permission. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/Docs/FlowApi.md b/Docs/FlowApi.md new file mode 100644 index 0000000..5a31f88 --- /dev/null +++ b/Docs/FlowApi.md @@ -0,0 +1,2400 @@ +# IO.Swagger.Api.FlowApi + +All URIs are relative to *http://localhost/nifi-api* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**ActivateControllerServices**](FlowApi.md#activatecontrollerservices) | **PUT** /flow/process-groups/{id}/controller-services | Enable or disable Controller Services in the specified Process Group. +[**GenerateClientId**](FlowApi.md#generateclientid) | **GET** /flow/client-id | Generates a client id. +[**GetAboutInfo**](FlowApi.md#getaboutinfo) | **GET** /flow/about | Retrieves details about this NiFi to put in the About dialog +[**GetAction**](FlowApi.md#getaction) | **GET** /flow/history/{id} | Gets an action +[**GetBanners**](FlowApi.md#getbanners) | **GET** /flow/banners | Retrieves the banners for this NiFi +[**GetBuckets**](FlowApi.md#getbuckets) | **GET** /flow/registries/{id}/buckets | Gets the buckets from the specified registry for the current user +[**GetBulletinBoard**](FlowApi.md#getbulletinboard) | **GET** /flow/bulletin-board | Gets current bulletins +[**GetBulletins**](FlowApi.md#getbulletins) | **GET** /flow/controller/bulletins | Retrieves Controller level bulletins +[**GetClusterSummary**](FlowApi.md#getclustersummary) | **GET** /flow/cluster/summary | The cluster summary for this NiFi +[**GetComponentHistory**](FlowApi.md#getcomponenthistory) | **GET** /flow/history/components/{componentId} | Gets configuration history for a component +[**GetConnectionStatus**](FlowApi.md#getconnectionstatus) | **GET** /flow/connections/{id}/status | Gets status for a connection +[**GetConnectionStatusHistory**](FlowApi.md#getconnectionstatushistory) | **GET** /flow/connections/{id}/status/history | Gets the status history for a connection +[**GetControllerServiceTypes**](FlowApi.md#getcontrollerservicetypes) | **GET** /flow/controller-service-types | Retrieves the types of controller services that this NiFi supports +[**GetControllerServicesFromController**](FlowApi.md#getcontrollerservicesfromcontroller) | **GET** /flow/controller/controller-services | Gets controller services for reporting tasks +[**GetControllerServicesFromGroup**](FlowApi.md#getcontrollerservicesfromgroup) | **GET** /flow/process-groups/{id}/controller-services | Gets all controller services +[**GetControllerStatus**](FlowApi.md#getcontrollerstatus) | **GET** /flow/status | Gets the current status of this NiFi +[**GetCurrentUser**](FlowApi.md#getcurrentuser) | **GET** /flow/current-user | Retrieves the user identity of the user making the request +[**GetFlow**](FlowApi.md#getflow) | **GET** /flow/process-groups/{id} | Gets a process group +[**GetFlowConfig**](FlowApi.md#getflowconfig) | **GET** /flow/config | Retrieves the configuration for this NiFi flow +[**GetFlows**](FlowApi.md#getflows) | **GET** /flow/registries/{registry-id}/buckets/{bucket-id}/flows | Gets the flows from the specified registry and bucket for the current user +[**GetInputPortStatus**](FlowApi.md#getinputportstatus) | **GET** /flow/input-ports/{id}/status | Gets status for an input port +[**GetOutputPortStatus**](FlowApi.md#getoutputportstatus) | **GET** /flow/output-ports/{id}/status | Gets status for an output port +[**GetPrioritizers**](FlowApi.md#getprioritizers) | **GET** /flow/prioritizers | Retrieves the types of prioritizers that this NiFi supports +[**GetProcessGroupStatus**](FlowApi.md#getprocessgroupstatus) | **GET** /flow/process-groups/{id}/status | Gets the status for a process group +[**GetProcessGroupStatusHistory**](FlowApi.md#getprocessgroupstatushistory) | **GET** /flow/process-groups/{id}/status/history | Gets status history for a remote process group +[**GetProcessorStatus**](FlowApi.md#getprocessorstatus) | **GET** /flow/processors/{id}/status | Gets status for a processor +[**GetProcessorStatusHistory**](FlowApi.md#getprocessorstatushistory) | **GET** /flow/processors/{id}/status/history | Gets status history for a processor +[**GetProcessorTypes**](FlowApi.md#getprocessortypes) | **GET** /flow/processor-types | Retrieves the types of processors that this NiFi supports +[**GetRegistries**](FlowApi.md#getregistries) | **GET** /flow/registries | Gets the listing of available registries +[**GetRemoteProcessGroupStatus**](FlowApi.md#getremoteprocessgroupstatus) | **GET** /flow/remote-process-groups/{id}/status | Gets status for a remote process group +[**GetRemoteProcessGroupStatusHistory**](FlowApi.md#getremoteprocessgroupstatushistory) | **GET** /flow/remote-process-groups/{id}/status/history | Gets the status history +[**GetReportingTaskTypes**](FlowApi.md#getreportingtasktypes) | **GET** /flow/reporting-task-types | Retrieves the types of reporting tasks that this NiFi supports +[**GetReportingTasks**](FlowApi.md#getreportingtasks) | **GET** /flow/reporting-tasks | Gets all reporting tasks +[**GetTemplates**](FlowApi.md#gettemplates) | **GET** /flow/templates | Gets all templates +[**GetVersions**](FlowApi.md#getversions) | **GET** /flow/registries/{registry-id}/buckets/{bucket-id}/flows/{flow-id}/versions | Gets the flow versions from the specified registry and bucket for the specified flow for the current user +[**QueryHistory**](FlowApi.md#queryhistory) | **GET** /flow/history | Gets configuration history +[**ScheduleComponents**](FlowApi.md#schedulecomponents) | **PUT** /flow/process-groups/{id} | Schedule or unschedule components in the specified Process Group. +[**SearchCluster**](FlowApi.md#searchcluster) | **GET** /flow/cluster/search-results | Searches the cluster for a node with the specified address +[**SearchFlow**](FlowApi.md#searchflow) | **GET** /flow/search-results | Performs a search against this NiFi using the specified search term + + + +# **ActivateControllerServices** +> ActivateControllerServicesEntity ActivateControllerServices (string id, ActivateControllerServicesEntity body) + +Enable or disable Controller Services in the specified Process Group. + +### Example +```csharp +using System; +using System.Diagnostics; +using IO.Swagger.Api; +using IO.Swagger.Client; +using IO.Swagger.Model; + +namespace Example +{ + public class ActivateControllerServicesExample + { + public void main() + { + var apiInstance = new FlowApi(); + var id = id_example; // string | The process group id. + var body = new ActivateControllerServicesEntity(); // ActivateControllerServicesEntity | The request to schedule or unschedule. If the comopnents in the request are not specified, all authorized components will be considered. + + try + { + // Enable or disable Controller Services in the specified Process Group. + ActivateControllerServicesEntity result = apiInstance.ActivateControllerServices(id, body); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling FlowApi.ActivateControllerServices: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **string**| The process group id. | + **body** | [**ActivateControllerServicesEntity**](ActivateControllerServicesEntity.md)| The request to schedule or unschedule. If the comopnents in the request are not specified, all authorized components will be considered. | + +### Return type + +[**ActivateControllerServicesEntity**](ActivateControllerServicesEntity.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **GenerateClientId** +> string GenerateClientId () + +Generates a client id. + +### Example +```csharp +using System; +using System.Diagnostics; +using IO.Swagger.Api; +using IO.Swagger.Client; +using IO.Swagger.Model; + +namespace Example +{ + public class GenerateClientIdExample + { + public void main() + { + var apiInstance = new FlowApi(); + + try + { + // Generates a client id. + string result = apiInstance.GenerateClientId(); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling FlowApi.GenerateClientId: " + e.Message ); + } + } + } +} +``` + +### Parameters +This endpoint does not need any parameter. + +### Return type + +**string** + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: text/plain + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **GetAboutInfo** +> AboutEntity GetAboutInfo () + +Retrieves details about this NiFi to put in the About dialog + +### Example +```csharp +using System; +using System.Diagnostics; +using IO.Swagger.Api; +using IO.Swagger.Client; +using IO.Swagger.Model; + +namespace Example +{ + public class GetAboutInfoExample + { + public void main() + { + var apiInstance = new FlowApi(); + + try + { + // Retrieves details about this NiFi to put in the About dialog + AboutEntity result = apiInstance.GetAboutInfo(); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling FlowApi.GetAboutInfo: " + e.Message ); + } + } + } +} +``` + +### Parameters +This endpoint does not need any parameter. + +### Return type + +[**AboutEntity**](AboutEntity.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **GetAction** +> ActionEntity GetAction (string id) + +Gets an action + +Note: This endpoint is subject to change as NiFi and it's REST API evolve. + +### Example +```csharp +using System; +using System.Diagnostics; +using IO.Swagger.Api; +using IO.Swagger.Client; +using IO.Swagger.Model; + +namespace Example +{ + public class GetActionExample + { + public void main() + { + var apiInstance = new FlowApi(); + var id = id_example; // string | The action id. + + try + { + // Gets an action + ActionEntity result = apiInstance.GetAction(id); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling FlowApi.GetAction: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **string**| The action id. | + +### Return type + +[**ActionEntity**](ActionEntity.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **GetBanners** +> BannerEntity GetBanners () + +Retrieves the banners for this NiFi + +### Example +```csharp +using System; +using System.Diagnostics; +using IO.Swagger.Api; +using IO.Swagger.Client; +using IO.Swagger.Model; + +namespace Example +{ + public class GetBannersExample + { + public void main() + { + var apiInstance = new FlowApi(); + + try + { + // Retrieves the banners for this NiFi + BannerEntity result = apiInstance.GetBanners(); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling FlowApi.GetBanners: " + e.Message ); + } + } + } +} +``` + +### Parameters +This endpoint does not need any parameter. + +### Return type + +[**BannerEntity**](BannerEntity.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **GetBuckets** +> BucketsEntity GetBuckets (string id) + +Gets the buckets from the specified registry for the current user + +### Example +```csharp +using System; +using System.Diagnostics; +using IO.Swagger.Api; +using IO.Swagger.Client; +using IO.Swagger.Model; + +namespace Example +{ + public class GetBucketsExample + { + public void main() + { + var apiInstance = new FlowApi(); + var id = id_example; // string | The registry id. + + try + { + // Gets the buckets from the specified registry for the current user + BucketsEntity result = apiInstance.GetBuckets(id); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling FlowApi.GetBuckets: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **string**| The registry id. | + +### Return type + +[**BucketsEntity**](BucketsEntity.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **GetBulletinBoard** +> BulletinBoardEntity GetBulletinBoard (string after = null, string sourceName = null, string message = null, string sourceId = null, string groupId = null, string limit = null) + +Gets current bulletins + +### Example +```csharp +using System; +using System.Diagnostics; +using IO.Swagger.Api; +using IO.Swagger.Client; +using IO.Swagger.Model; + +namespace Example +{ + public class GetBulletinBoardExample + { + public void main() + { + var apiInstance = new FlowApi(); + var after = after_example; // string | Includes bulletins with an id after this value. (optional) + var sourceName = sourceName_example; // string | Includes bulletins originating from this sources whose name match this regular expression. (optional) + var message = message_example; // string | Includes bulletins whose message that match this regular expression. (optional) + var sourceId = sourceId_example; // string | Includes bulletins originating from this sources whose id match this regular expression. (optional) + var groupId = groupId_example; // string | Includes bulletins originating from this sources whose group id match this regular expression. (optional) + var limit = limit_example; // string | The number of bulletins to limit the response to. (optional) + + try + { + // Gets current bulletins + BulletinBoardEntity result = apiInstance.GetBulletinBoard(after, sourceName, message, sourceId, groupId, limit); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling FlowApi.GetBulletinBoard: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **after** | **string**| Includes bulletins with an id after this value. | [optional] + **sourceName** | **string**| Includes bulletins originating from this sources whose name match this regular expression. | [optional] + **message** | **string**| Includes bulletins whose message that match this regular expression. | [optional] + **sourceId** | **string**| Includes bulletins originating from this sources whose id match this regular expression. | [optional] + **groupId** | **string**| Includes bulletins originating from this sources whose group id match this regular expression. | [optional] + **limit** | **string**| The number of bulletins to limit the response to. | [optional] + +### Return type + +[**BulletinBoardEntity**](BulletinBoardEntity.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **GetBulletins** +> ControllerBulletinsEntity GetBulletins () + +Retrieves Controller level bulletins + +### Example +```csharp +using System; +using System.Diagnostics; +using IO.Swagger.Api; +using IO.Swagger.Client; +using IO.Swagger.Model; + +namespace Example +{ + public class GetBulletinsExample + { + public void main() + { + var apiInstance = new FlowApi(); + + try + { + // Retrieves Controller level bulletins + ControllerBulletinsEntity result = apiInstance.GetBulletins(); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling FlowApi.GetBulletins: " + e.Message ); + } + } + } +} +``` + +### Parameters +This endpoint does not need any parameter. + +### Return type + +[**ControllerBulletinsEntity**](ControllerBulletinsEntity.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **GetClusterSummary** +> ClusteSummaryEntity GetClusterSummary () + +The cluster summary for this NiFi + +### Example +```csharp +using System; +using System.Diagnostics; +using IO.Swagger.Api; +using IO.Swagger.Client; +using IO.Swagger.Model; + +namespace Example +{ + public class GetClusterSummaryExample + { + public void main() + { + var apiInstance = new FlowApi(); + + try + { + // The cluster summary for this NiFi + ClusteSummaryEntity result = apiInstance.GetClusterSummary(); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling FlowApi.GetClusterSummary: " + e.Message ); + } + } + } +} +``` + +### Parameters +This endpoint does not need any parameter. + +### Return type + +[**ClusteSummaryEntity**](ClusteSummaryEntity.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **GetComponentHistory** +> ComponentHistoryEntity GetComponentHistory (string componentId) + +Gets configuration history for a component + +Note: This endpoint is subject to change as NiFi and it's REST API evolve. + +### Example +```csharp +using System; +using System.Diagnostics; +using IO.Swagger.Api; +using IO.Swagger.Client; +using IO.Swagger.Model; + +namespace Example +{ + public class GetComponentHistoryExample + { + public void main() + { + var apiInstance = new FlowApi(); + var componentId = componentId_example; // string | The component id. + + try + { + // Gets configuration history for a component + ComponentHistoryEntity result = apiInstance.GetComponentHistory(componentId); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling FlowApi.GetComponentHistory: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **componentId** | **string**| The component id. | + +### Return type + +[**ComponentHistoryEntity**](ComponentHistoryEntity.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **GetConnectionStatus** +> ConnectionStatusEntity GetConnectionStatus (string id, bool? nodewise = null, string clusterNodeId = null) + +Gets status for a connection + +### Example +```csharp +using System; +using System.Diagnostics; +using IO.Swagger.Api; +using IO.Swagger.Client; +using IO.Swagger.Model; + +namespace Example +{ + public class GetConnectionStatusExample + { + public void main() + { + var apiInstance = new FlowApi(); + var id = id_example; // string | The connection id. + var nodewise = true; // bool? | Whether or not to include the breakdown per node. Optional, defaults to false (optional) (default to false) + var clusterNodeId = clusterNodeId_example; // string | The id of the node where to get the status. (optional) + + try + { + // Gets status for a connection + ConnectionStatusEntity result = apiInstance.GetConnectionStatus(id, nodewise, clusterNodeId); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling FlowApi.GetConnectionStatus: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **string**| The connection id. | + **nodewise** | **bool?**| Whether or not to include the breakdown per node. Optional, defaults to false | [optional] [default to false] + **clusterNodeId** | **string**| The id of the node where to get the status. | [optional] + +### Return type + +[**ConnectionStatusEntity**](ConnectionStatusEntity.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **GetConnectionStatusHistory** +> StatusHistoryEntity GetConnectionStatusHistory (string id) + +Gets the status history for a connection + +### Example +```csharp +using System; +using System.Diagnostics; +using IO.Swagger.Api; +using IO.Swagger.Client; +using IO.Swagger.Model; + +namespace Example +{ + public class GetConnectionStatusHistoryExample + { + public void main() + { + var apiInstance = new FlowApi(); + var id = id_example; // string | The connection id. + + try + { + // Gets the status history for a connection + StatusHistoryEntity result = apiInstance.GetConnectionStatusHistory(id); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling FlowApi.GetConnectionStatusHistory: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **string**| The connection id. | + +### Return type + +[**StatusHistoryEntity**](StatusHistoryEntity.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **GetControllerServiceTypes** +> ControllerServiceTypesEntity GetControllerServiceTypes (string serviceType = null, string serviceBundleGroup = null, string serviceBundleArtifact = null, string serviceBundleVersion = null, string bundleGroupFilter = null, string bundleArtifactFilter = null, string typeFilter = null) + +Retrieves the types of controller services that this NiFi supports + +Note: This endpoint is subject to change as NiFi and it's REST API evolve. + +### Example +```csharp +using System; +using System.Diagnostics; +using IO.Swagger.Api; +using IO.Swagger.Client; +using IO.Swagger.Model; + +namespace Example +{ + public class GetControllerServiceTypesExample + { + public void main() + { + var apiInstance = new FlowApi(); + var serviceType = serviceType_example; // string | If specified, will only return controller services that are compatible with this type of service. (optional) + var serviceBundleGroup = serviceBundleGroup_example; // string | If serviceType specified, is the bundle group of the serviceType. (optional) + var serviceBundleArtifact = serviceBundleArtifact_example; // string | If serviceType specified, is the bundle artifact of the serviceType. (optional) + var serviceBundleVersion = serviceBundleVersion_example; // string | If serviceType specified, is the bundle version of the serviceType. (optional) + var bundleGroupFilter = bundleGroupFilter_example; // string | If specified, will only return types that are a member of this bundle group. (optional) + var bundleArtifactFilter = bundleArtifactFilter_example; // string | If specified, will only return types that are a member of this bundle artifact. (optional) + var typeFilter = typeFilter_example; // string | If specified, will only return types whose fully qualified classname matches. (optional) + + try + { + // Retrieves the types of controller services that this NiFi supports + ControllerServiceTypesEntity result = apiInstance.GetControllerServiceTypes(serviceType, serviceBundleGroup, serviceBundleArtifact, serviceBundleVersion, bundleGroupFilter, bundleArtifactFilter, typeFilter); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling FlowApi.GetControllerServiceTypes: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **serviceType** | **string**| If specified, will only return controller services that are compatible with this type of service. | [optional] + **serviceBundleGroup** | **string**| If serviceType specified, is the bundle group of the serviceType. | [optional] + **serviceBundleArtifact** | **string**| If serviceType specified, is the bundle artifact of the serviceType. | [optional] + **serviceBundleVersion** | **string**| If serviceType specified, is the bundle version of the serviceType. | [optional] + **bundleGroupFilter** | **string**| If specified, will only return types that are a member of this bundle group. | [optional] + **bundleArtifactFilter** | **string**| If specified, will only return types that are a member of this bundle artifact. | [optional] + **typeFilter** | **string**| If specified, will only return types whose fully qualified classname matches. | [optional] + +### Return type + +[**ControllerServiceTypesEntity**](ControllerServiceTypesEntity.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **GetControllerServicesFromController** +> ControllerServicesEntity GetControllerServicesFromController () + +Gets controller services for reporting tasks + +### Example +```csharp +using System; +using System.Diagnostics; +using IO.Swagger.Api; +using IO.Swagger.Client; +using IO.Swagger.Model; + +namespace Example +{ + public class GetControllerServicesFromControllerExample + { + public void main() + { + var apiInstance = new FlowApi(); + + try + { + // Gets controller services for reporting tasks + ControllerServicesEntity result = apiInstance.GetControllerServicesFromController(); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling FlowApi.GetControllerServicesFromController: " + e.Message ); + } + } + } +} +``` + +### Parameters +This endpoint does not need any parameter. + +### Return type + +[**ControllerServicesEntity**](ControllerServicesEntity.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **GetControllerServicesFromGroup** +> ControllerServicesEntity GetControllerServicesFromGroup (string id, bool? includeAncestorGroups = null, bool? includeDescendantGroups = null) + +Gets all controller services + +### Example +```csharp +using System; +using System.Diagnostics; +using IO.Swagger.Api; +using IO.Swagger.Client; +using IO.Swagger.Model; + +namespace Example +{ + public class GetControllerServicesFromGroupExample + { + public void main() + { + var apiInstance = new FlowApi(); + var id = id_example; // string | The process group id. + var includeAncestorGroups = true; // bool? | Whether or not to include parent/ancestory process groups (optional) (default to true) + var includeDescendantGroups = true; // bool? | Whether or not to include descendant process groups (optional) (default to false) + + try + { + // Gets all controller services + ControllerServicesEntity result = apiInstance.GetControllerServicesFromGroup(id, includeAncestorGroups, includeDescendantGroups); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling FlowApi.GetControllerServicesFromGroup: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **string**| The process group id. | + **includeAncestorGroups** | **bool?**| Whether or not to include parent/ancestory process groups | [optional] [default to true] + **includeDescendantGroups** | **bool?**| Whether or not to include descendant process groups | [optional] [default to false] + +### Return type + +[**ControllerServicesEntity**](ControllerServicesEntity.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **GetControllerStatus** +> ControllerStatusEntity GetControllerStatus () + +Gets the current status of this NiFi + +### Example +```csharp +using System; +using System.Diagnostics; +using IO.Swagger.Api; +using IO.Swagger.Client; +using IO.Swagger.Model; + +namespace Example +{ + public class GetControllerStatusExample + { + public void main() + { + var apiInstance = new FlowApi(); + + try + { + // Gets the current status of this NiFi + ControllerStatusEntity result = apiInstance.GetControllerStatus(); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling FlowApi.GetControllerStatus: " + e.Message ); + } + } + } +} +``` + +### Parameters +This endpoint does not need any parameter. + +### Return type + +[**ControllerStatusEntity**](ControllerStatusEntity.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **GetCurrentUser** +> CurrentUserEntity GetCurrentUser () + +Retrieves the user identity of the user making the request + +### Example +```csharp +using System; +using System.Diagnostics; +using IO.Swagger.Api; +using IO.Swagger.Client; +using IO.Swagger.Model; + +namespace Example +{ + public class GetCurrentUserExample + { + public void main() + { + var apiInstance = new FlowApi(); + + try + { + // Retrieves the user identity of the user making the request + CurrentUserEntity result = apiInstance.GetCurrentUser(); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling FlowApi.GetCurrentUser: " + e.Message ); + } + } + } +} +``` + +### Parameters +This endpoint does not need any parameter. + +### Return type + +[**CurrentUserEntity**](CurrentUserEntity.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **GetFlow** +> ProcessGroupFlowEntity GetFlow (string id) + +Gets a process group + +### Example +```csharp +using System; +using System.Diagnostics; +using IO.Swagger.Api; +using IO.Swagger.Client; +using IO.Swagger.Model; + +namespace Example +{ + public class GetFlowExample + { + public void main() + { + var apiInstance = new FlowApi(); + var id = id_example; // string | The process group id. + + try + { + // Gets a process group + ProcessGroupFlowEntity result = apiInstance.GetFlow(id); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling FlowApi.GetFlow: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **string**| The process group id. | + +### Return type + +[**ProcessGroupFlowEntity**](ProcessGroupFlowEntity.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **GetFlowConfig** +> FlowConfigurationEntity GetFlowConfig () + +Retrieves the configuration for this NiFi flow + +### Example +```csharp +using System; +using System.Diagnostics; +using IO.Swagger.Api; +using IO.Swagger.Client; +using IO.Swagger.Model; + +namespace Example +{ + public class GetFlowConfigExample + { + public void main() + { + var apiInstance = new FlowApi(); + + try + { + // Retrieves the configuration for this NiFi flow + FlowConfigurationEntity result = apiInstance.GetFlowConfig(); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling FlowApi.GetFlowConfig: " + e.Message ); + } + } + } +} +``` + +### Parameters +This endpoint does not need any parameter. + +### Return type + +[**FlowConfigurationEntity**](FlowConfigurationEntity.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **GetFlows** +> VersionedFlowsEntity GetFlows (string registryId, string bucketId) + +Gets the flows from the specified registry and bucket for the current user + +### Example +```csharp +using System; +using System.Diagnostics; +using IO.Swagger.Api; +using IO.Swagger.Client; +using IO.Swagger.Model; + +namespace Example +{ + public class GetFlowsExample + { + public void main() + { + var apiInstance = new FlowApi(); + var registryId = registryId_example; // string | The registry id. + var bucketId = bucketId_example; // string | The bucket id. + + try + { + // Gets the flows from the specified registry and bucket for the current user + VersionedFlowsEntity result = apiInstance.GetFlows(registryId, bucketId); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling FlowApi.GetFlows: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **registryId** | **string**| The registry id. | + **bucketId** | **string**| The bucket id. | + +### Return type + +[**VersionedFlowsEntity**](VersionedFlowsEntity.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **GetInputPortStatus** +> PortStatusEntity GetInputPortStatus (string id, bool? nodewise = null, string clusterNodeId = null) + +Gets status for an input port + +### Example +```csharp +using System; +using System.Diagnostics; +using IO.Swagger.Api; +using IO.Swagger.Client; +using IO.Swagger.Model; + +namespace Example +{ + public class GetInputPortStatusExample + { + public void main() + { + var apiInstance = new FlowApi(); + var id = id_example; // string | The input port id. + var nodewise = true; // bool? | Whether or not to include the breakdown per node. Optional, defaults to false (optional) (default to false) + var clusterNodeId = clusterNodeId_example; // string | The id of the node where to get the status. (optional) + + try + { + // Gets status for an input port + PortStatusEntity result = apiInstance.GetInputPortStatus(id, nodewise, clusterNodeId); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling FlowApi.GetInputPortStatus: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **string**| The input port id. | + **nodewise** | **bool?**| Whether or not to include the breakdown per node. Optional, defaults to false | [optional] [default to false] + **clusterNodeId** | **string**| The id of the node where to get the status. | [optional] + +### Return type + +[**PortStatusEntity**](PortStatusEntity.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **GetOutputPortStatus** +> PortStatusEntity GetOutputPortStatus (string id, bool? nodewise = null, string clusterNodeId = null) + +Gets status for an output port + +### Example +```csharp +using System; +using System.Diagnostics; +using IO.Swagger.Api; +using IO.Swagger.Client; +using IO.Swagger.Model; + +namespace Example +{ + public class GetOutputPortStatusExample + { + public void main() + { + var apiInstance = new FlowApi(); + var id = id_example; // string | The output port id. + var nodewise = true; // bool? | Whether or not to include the breakdown per node. Optional, defaults to false (optional) (default to false) + var clusterNodeId = clusterNodeId_example; // string | The id of the node where to get the status. (optional) + + try + { + // Gets status for an output port + PortStatusEntity result = apiInstance.GetOutputPortStatus(id, nodewise, clusterNodeId); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling FlowApi.GetOutputPortStatus: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **string**| The output port id. | + **nodewise** | **bool?**| Whether or not to include the breakdown per node. Optional, defaults to false | [optional] [default to false] + **clusterNodeId** | **string**| The id of the node where to get the status. | [optional] + +### Return type + +[**PortStatusEntity**](PortStatusEntity.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **GetPrioritizers** +> PrioritizerTypesEntity GetPrioritizers () + +Retrieves the types of prioritizers that this NiFi supports + +Note: This endpoint is subject to change as NiFi and it's REST API evolve. + +### Example +```csharp +using System; +using System.Diagnostics; +using IO.Swagger.Api; +using IO.Swagger.Client; +using IO.Swagger.Model; + +namespace Example +{ + public class GetPrioritizersExample + { + public void main() + { + var apiInstance = new FlowApi(); + + try + { + // Retrieves the types of prioritizers that this NiFi supports + PrioritizerTypesEntity result = apiInstance.GetPrioritizers(); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling FlowApi.GetPrioritizers: " + e.Message ); + } + } + } +} +``` + +### Parameters +This endpoint does not need any parameter. + +### Return type + +[**PrioritizerTypesEntity**](PrioritizerTypesEntity.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **GetProcessGroupStatus** +> ProcessGroupStatusEntity GetProcessGroupStatus (string id, bool? recursive = null, bool? nodewise = null, string clusterNodeId = null) + +Gets the status for a process group + +The status for a process group includes status for all descendent components. When invoked on the root group with recursive set to true, it will return the current status of every component in the flow. + +### Example +```csharp +using System; +using System.Diagnostics; +using IO.Swagger.Api; +using IO.Swagger.Client; +using IO.Swagger.Model; + +namespace Example +{ + public class GetProcessGroupStatusExample + { + public void main() + { + var apiInstance = new FlowApi(); + var id = id_example; // string | The process group id. + var recursive = true; // bool? | Whether all descendant groups and the status of their content will be included. Optional, defaults to false (optional) (default to false) + var nodewise = true; // bool? | Whether or not to include the breakdown per node. Optional, defaults to false (optional) (default to false) + var clusterNodeId = clusterNodeId_example; // string | The id of the node where to get the status. (optional) + + try + { + // Gets the status for a process group + ProcessGroupStatusEntity result = apiInstance.GetProcessGroupStatus(id, recursive, nodewise, clusterNodeId); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling FlowApi.GetProcessGroupStatus: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **string**| The process group id. | + **recursive** | **bool?**| Whether all descendant groups and the status of their content will be included. Optional, defaults to false | [optional] [default to false] + **nodewise** | **bool?**| Whether or not to include the breakdown per node. Optional, defaults to false | [optional] [default to false] + **clusterNodeId** | **string**| The id of the node where to get the status. | [optional] + +### Return type + +[**ProcessGroupStatusEntity**](ProcessGroupStatusEntity.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **GetProcessGroupStatusHistory** +> StatusHistoryEntity GetProcessGroupStatusHistory (string id) + +Gets status history for a remote process group + +### Example +```csharp +using System; +using System.Diagnostics; +using IO.Swagger.Api; +using IO.Swagger.Client; +using IO.Swagger.Model; + +namespace Example +{ + public class GetProcessGroupStatusHistoryExample + { + public void main() + { + var apiInstance = new FlowApi(); + var id = id_example; // string | The process group id. + + try + { + // Gets status history for a remote process group + StatusHistoryEntity result = apiInstance.GetProcessGroupStatusHistory(id); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling FlowApi.GetProcessGroupStatusHistory: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **string**| The process group id. | + +### Return type + +[**StatusHistoryEntity**](StatusHistoryEntity.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **GetProcessorStatus** +> ProcessorStatusEntity GetProcessorStatus (string id, bool? nodewise = null, string clusterNodeId = null) + +Gets status for a processor + +### Example +```csharp +using System; +using System.Diagnostics; +using IO.Swagger.Api; +using IO.Swagger.Client; +using IO.Swagger.Model; + +namespace Example +{ + public class GetProcessorStatusExample + { + public void main() + { + var apiInstance = new FlowApi(); + var id = id_example; // string | The processor id. + var nodewise = true; // bool? | Whether or not to include the breakdown per node. Optional, defaults to false (optional) (default to false) + var clusterNodeId = clusterNodeId_example; // string | The id of the node where to get the status. (optional) + + try + { + // Gets status for a processor + ProcessorStatusEntity result = apiInstance.GetProcessorStatus(id, nodewise, clusterNodeId); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling FlowApi.GetProcessorStatus: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **string**| The processor id. | + **nodewise** | **bool?**| Whether or not to include the breakdown per node. Optional, defaults to false | [optional] [default to false] + **clusterNodeId** | **string**| The id of the node where to get the status. | [optional] + +### Return type + +[**ProcessorStatusEntity**](ProcessorStatusEntity.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **GetProcessorStatusHistory** +> StatusHistoryEntity GetProcessorStatusHistory (string id) + +Gets status history for a processor + +### Example +```csharp +using System; +using System.Diagnostics; +using IO.Swagger.Api; +using IO.Swagger.Client; +using IO.Swagger.Model; + +namespace Example +{ + public class GetProcessorStatusHistoryExample + { + public void main() + { + var apiInstance = new FlowApi(); + var id = id_example; // string | The processor id. + + try + { + // Gets status history for a processor + StatusHistoryEntity result = apiInstance.GetProcessorStatusHistory(id); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling FlowApi.GetProcessorStatusHistory: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **string**| The processor id. | + +### Return type + +[**StatusHistoryEntity**](StatusHistoryEntity.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **GetProcessorTypes** +> ProcessorTypesEntity GetProcessorTypes (string bundleGroupFilter = null, string bundleArtifactFilter = null, string type = null) + +Retrieves the types of processors that this NiFi supports + +Note: This endpoint is subject to change as NiFi and it's REST API evolve. + +### Example +```csharp +using System; +using System.Diagnostics; +using IO.Swagger.Api; +using IO.Swagger.Client; +using IO.Swagger.Model; + +namespace Example +{ + public class GetProcessorTypesExample + { + public void main() + { + var apiInstance = new FlowApi(); + var bundleGroupFilter = bundleGroupFilter_example; // string | If specified, will only return types that are a member of this bundle group. (optional) + var bundleArtifactFilter = bundleArtifactFilter_example; // string | If specified, will only return types that are a member of this bundle artifact. (optional) + var type = type_example; // string | If specified, will only return types whose fully qualified classname matches. (optional) + + try + { + // Retrieves the types of processors that this NiFi supports + ProcessorTypesEntity result = apiInstance.GetProcessorTypes(bundleGroupFilter, bundleArtifactFilter, type); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling FlowApi.GetProcessorTypes: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **bundleGroupFilter** | **string**| If specified, will only return types that are a member of this bundle group. | [optional] + **bundleArtifactFilter** | **string**| If specified, will only return types that are a member of this bundle artifact. | [optional] + **type** | **string**| If specified, will only return types whose fully qualified classname matches. | [optional] + +### Return type + +[**ProcessorTypesEntity**](ProcessorTypesEntity.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **GetRegistries** +> RegistryClientsEntity GetRegistries () + +Gets the listing of available registries + +### Example +```csharp +using System; +using System.Diagnostics; +using IO.Swagger.Api; +using IO.Swagger.Client; +using IO.Swagger.Model; + +namespace Example +{ + public class GetRegistriesExample + { + public void main() + { + var apiInstance = new FlowApi(); + + try + { + // Gets the listing of available registries + RegistryClientsEntity result = apiInstance.GetRegistries(); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling FlowApi.GetRegistries: " + e.Message ); + } + } + } +} +``` + +### Parameters +This endpoint does not need any parameter. + +### Return type + +[**RegistryClientsEntity**](RegistryClientsEntity.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **GetRemoteProcessGroupStatus** +> RemoteProcessGroupStatusEntity GetRemoteProcessGroupStatus (string id, bool? nodewise = null, string clusterNodeId = null) + +Gets status for a remote process group + +### Example +```csharp +using System; +using System.Diagnostics; +using IO.Swagger.Api; +using IO.Swagger.Client; +using IO.Swagger.Model; + +namespace Example +{ + public class GetRemoteProcessGroupStatusExample + { + public void main() + { + var apiInstance = new FlowApi(); + var id = id_example; // string | The remote process group id. + var nodewise = true; // bool? | Whether or not to include the breakdown per node. Optional, defaults to false (optional) (default to false) + var clusterNodeId = clusterNodeId_example; // string | The id of the node where to get the status. (optional) + + try + { + // Gets status for a remote process group + RemoteProcessGroupStatusEntity result = apiInstance.GetRemoteProcessGroupStatus(id, nodewise, clusterNodeId); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling FlowApi.GetRemoteProcessGroupStatus: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **string**| The remote process group id. | + **nodewise** | **bool?**| Whether or not to include the breakdown per node. Optional, defaults to false | [optional] [default to false] + **clusterNodeId** | **string**| The id of the node where to get the status. | [optional] + +### Return type + +[**RemoteProcessGroupStatusEntity**](RemoteProcessGroupStatusEntity.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **GetRemoteProcessGroupStatusHistory** +> StatusHistoryEntity GetRemoteProcessGroupStatusHistory (string id) + +Gets the status history + +### Example +```csharp +using System; +using System.Diagnostics; +using IO.Swagger.Api; +using IO.Swagger.Client; +using IO.Swagger.Model; + +namespace Example +{ + public class GetRemoteProcessGroupStatusHistoryExample + { + public void main() + { + var apiInstance = new FlowApi(); + var id = id_example; // string | The remote process group id. + + try + { + // Gets the status history + StatusHistoryEntity result = apiInstance.GetRemoteProcessGroupStatusHistory(id); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling FlowApi.GetRemoteProcessGroupStatusHistory: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **string**| The remote process group id. | + +### Return type + +[**StatusHistoryEntity**](StatusHistoryEntity.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **GetReportingTaskTypes** +> ReportingTaskTypesEntity GetReportingTaskTypes (string bundleGroupFilter = null, string bundleArtifactFilter = null, string type = null) + +Retrieves the types of reporting tasks that this NiFi supports + +Note: This endpoint is subject to change as NiFi and it's REST API evolve. + +### Example +```csharp +using System; +using System.Diagnostics; +using IO.Swagger.Api; +using IO.Swagger.Client; +using IO.Swagger.Model; + +namespace Example +{ + public class GetReportingTaskTypesExample + { + public void main() + { + var apiInstance = new FlowApi(); + var bundleGroupFilter = bundleGroupFilter_example; // string | If specified, will only return types that are a member of this bundle group. (optional) + var bundleArtifactFilter = bundleArtifactFilter_example; // string | If specified, will only return types that are a member of this bundle artifact. (optional) + var type = type_example; // string | If specified, will only return types whose fully qualified classname matches. (optional) + + try + { + // Retrieves the types of reporting tasks that this NiFi supports + ReportingTaskTypesEntity result = apiInstance.GetReportingTaskTypes(bundleGroupFilter, bundleArtifactFilter, type); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling FlowApi.GetReportingTaskTypes: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **bundleGroupFilter** | **string**| If specified, will only return types that are a member of this bundle group. | [optional] + **bundleArtifactFilter** | **string**| If specified, will only return types that are a member of this bundle artifact. | [optional] + **type** | **string**| If specified, will only return types whose fully qualified classname matches. | [optional] + +### Return type + +[**ReportingTaskTypesEntity**](ReportingTaskTypesEntity.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **GetReportingTasks** +> ReportingTasksEntity GetReportingTasks () + +Gets all reporting tasks + +### Example +```csharp +using System; +using System.Diagnostics; +using IO.Swagger.Api; +using IO.Swagger.Client; +using IO.Swagger.Model; + +namespace Example +{ + public class GetReportingTasksExample + { + public void main() + { + var apiInstance = new FlowApi(); + + try + { + // Gets all reporting tasks + ReportingTasksEntity result = apiInstance.GetReportingTasks(); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling FlowApi.GetReportingTasks: " + e.Message ); + } + } + } +} +``` + +### Parameters +This endpoint does not need any parameter. + +### Return type + +[**ReportingTasksEntity**](ReportingTasksEntity.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **GetTemplates** +> TemplatesEntity GetTemplates () + +Gets all templates + +### Example +```csharp +using System; +using System.Diagnostics; +using IO.Swagger.Api; +using IO.Swagger.Client; +using IO.Swagger.Model; + +namespace Example +{ + public class GetTemplatesExample + { + public void main() + { + var apiInstance = new FlowApi(); + + try + { + // Gets all templates + TemplatesEntity result = apiInstance.GetTemplates(); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling FlowApi.GetTemplates: " + e.Message ); + } + } + } +} +``` + +### Parameters +This endpoint does not need any parameter. + +### Return type + +[**TemplatesEntity**](TemplatesEntity.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **GetVersions** +> VersionedFlowSnapshotMetadataSetEntity GetVersions (string registryId, string bucketId, string flowId) + +Gets the flow versions from the specified registry and bucket for the specified flow for the current user + +### Example +```csharp +using System; +using System.Diagnostics; +using IO.Swagger.Api; +using IO.Swagger.Client; +using IO.Swagger.Model; + +namespace Example +{ + public class GetVersionsExample + { + public void main() + { + var apiInstance = new FlowApi(); + var registryId = registryId_example; // string | The registry id. + var bucketId = bucketId_example; // string | The bucket id. + var flowId = flowId_example; // string | The flow id. + + try + { + // Gets the flow versions from the specified registry and bucket for the specified flow for the current user + VersionedFlowSnapshotMetadataSetEntity result = apiInstance.GetVersions(registryId, bucketId, flowId); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling FlowApi.GetVersions: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **registryId** | **string**| The registry id. | + **bucketId** | **string**| The bucket id. | + **flowId** | **string**| The flow id. | + +### Return type + +[**VersionedFlowSnapshotMetadataSetEntity**](VersionedFlowSnapshotMetadataSetEntity.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **QueryHistory** +> HistoryEntity QueryHistory (string offset, string count, string sortColumn = null, string sortOrder = null, string startDate = null, string endDate = null, string userIdentity = null, string sourceId = null) + +Gets configuration history + +Note: This endpoint is subject to change as NiFi and it's REST API evolve. + +### Example +```csharp +using System; +using System.Diagnostics; +using IO.Swagger.Api; +using IO.Swagger.Client; +using IO.Swagger.Model; + +namespace Example +{ + public class QueryHistoryExample + { + public void main() + { + var apiInstance = new FlowApi(); + var offset = offset_example; // string | The offset into the result set. + var count = count_example; // string | The number of actions to return. + var sortColumn = sortColumn_example; // string | The field to sort on. (optional) + var sortOrder = sortOrder_example; // string | The direction to sort. (optional) + var startDate = startDate_example; // string | Include actions after this date. (optional) + var endDate = endDate_example; // string | Include actions before this date. (optional) + var userIdentity = userIdentity_example; // string | Include actions performed by this user. (optional) + var sourceId = sourceId_example; // string | Include actions on this component. (optional) + + try + { + // Gets configuration history + HistoryEntity result = apiInstance.QueryHistory(offset, count, sortColumn, sortOrder, startDate, endDate, userIdentity, sourceId); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling FlowApi.QueryHistory: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **offset** | **string**| The offset into the result set. | + **count** | **string**| The number of actions to return. | + **sortColumn** | **string**| The field to sort on. | [optional] + **sortOrder** | **string**| The direction to sort. | [optional] + **startDate** | **string**| Include actions after this date. | [optional] + **endDate** | **string**| Include actions before this date. | [optional] + **userIdentity** | **string**| Include actions performed by this user. | [optional] + **sourceId** | **string**| Include actions on this component. | [optional] + +### Return type + +[**HistoryEntity**](HistoryEntity.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **ScheduleComponents** +> ScheduleComponentsEntity ScheduleComponents (string id, ScheduleComponentsEntity body) + +Schedule or unschedule components in the specified Process Group. + +### Example +```csharp +using System; +using System.Diagnostics; +using IO.Swagger.Api; +using IO.Swagger.Client; +using IO.Swagger.Model; + +namespace Example +{ + public class ScheduleComponentsExample + { + public void main() + { + var apiInstance = new FlowApi(); + var id = id_example; // string | The process group id. + var body = new ScheduleComponentsEntity(); // ScheduleComponentsEntity | The request to schedule or unschedule. If the comopnents in the request are not specified, all authorized components will be considered. + + try + { + // Schedule or unschedule components in the specified Process Group. + ScheduleComponentsEntity result = apiInstance.ScheduleComponents(id, body); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling FlowApi.ScheduleComponents: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **string**| The process group id. | + **body** | [**ScheduleComponentsEntity**](ScheduleComponentsEntity.md)| The request to schedule or unschedule. If the comopnents in the request are not specified, all authorized components will be considered. | + +### Return type + +[**ScheduleComponentsEntity**](ScheduleComponentsEntity.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **SearchCluster** +> ClusterSearchResultsEntity SearchCluster (string q) + +Searches the cluster for a node with the specified address + +Note: This endpoint is subject to change as NiFi and it's REST API evolve. + +### Example +```csharp +using System; +using System.Diagnostics; +using IO.Swagger.Api; +using IO.Swagger.Client; +using IO.Swagger.Model; + +namespace Example +{ + public class SearchClusterExample + { + public void main() + { + var apiInstance = new FlowApi(); + var q = q_example; // string | Node address to search for. + + try + { + // Searches the cluster for a node with the specified address + ClusterSearchResultsEntity result = apiInstance.SearchCluster(q); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling FlowApi.SearchCluster: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **q** | **string**| Node address to search for. | + +### Return type + +[**ClusterSearchResultsEntity**](ClusterSearchResultsEntity.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **SearchFlow** +> SearchResultsEntity SearchFlow (string q = null) + +Performs a search against this NiFi using the specified search term + +Only search results from authorized components will be returned. + +### Example +```csharp +using System; +using System.Diagnostics; +using IO.Swagger.Api; +using IO.Swagger.Client; +using IO.Swagger.Model; + +namespace Example +{ + public class SearchFlowExample + { + public void main() + { + var apiInstance = new FlowApi(); + var q = q_example; // string | (optional) + + try + { + // Performs a search against this NiFi using the specified search term + SearchResultsEntity result = apiInstance.SearchFlow(q); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling FlowApi.SearchFlow: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **q** | **string**| | [optional] + +### Return type + +[**SearchResultsEntity**](SearchResultsEntity.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/Docs/FlowBreadcrumbDTO.md b/Docs/FlowBreadcrumbDTO.md new file mode 100644 index 0000000..642919f --- /dev/null +++ b/Docs/FlowBreadcrumbDTO.md @@ -0,0 +1,11 @@ +# IO.Swagger.Model.FlowBreadcrumbDTO +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | **string** | The id of the group. | [optional] +**Name** | **string** | The id of the group. | [optional] +**VersionControlInformation** | [**VersionControlInformationDTO**](VersionControlInformationDTO.md) | The process group version control information or null if not version controlled. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/Docs/FlowBreadcrumbEntity.md b/Docs/FlowBreadcrumbEntity.md new file mode 100644 index 0000000..8275e7c --- /dev/null +++ b/Docs/FlowBreadcrumbEntity.md @@ -0,0 +1,13 @@ +# IO.Swagger.Model.FlowBreadcrumbEntity +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | **string** | The id of this ancestor ProcessGroup. | [optional] +**Permissions** | [**PermissionsDTO**](PermissionsDTO.md) | The permissions for this ancestor ProcessGroup. | [optional] +**VersionedFlowState** | **string** | The current state of the Process Group, as it relates to the Versioned Flow | [optional] +**Breadcrumb** | [**FlowBreadcrumbDTO**](FlowBreadcrumbDTO.md) | This breadcrumb. | [optional] +**ParentBreadcrumb** | [**FlowBreadcrumbEntity**](FlowBreadcrumbEntity.md) | The parent breadcrumb for this breadcrumb. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/Docs/FlowComparisonEntity.md b/Docs/FlowComparisonEntity.md new file mode 100644 index 0000000..96b8d80 --- /dev/null +++ b/Docs/FlowComparisonEntity.md @@ -0,0 +1,9 @@ +# IO.Swagger.Model.FlowComparisonEntity +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ComponentDifferences** | [**List<ComponentDifferenceDTO>**](ComponentDifferenceDTO.md) | The list of differences for each component in the flow that is not the same between the two flows | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/Docs/FlowConfigurationDTO.md b/Docs/FlowConfigurationDTO.md new file mode 100644 index 0000000..7190522 --- /dev/null +++ b/Docs/FlowConfigurationDTO.md @@ -0,0 +1,16 @@ +# IO.Swagger.Model.FlowConfigurationDTO +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**SupportsManagedAuthorizer** | **bool?** | Whether this NiFi supports a managed authorizer. Managed authorizers can visualize users, groups, and policies in the UI. | [optional] +**SupportsConfigurableAuthorizer** | **bool?** | Whether this NiFi supports a configurable authorizer. | [optional] +**SupportsConfigurableUsersAndGroups** | **bool?** | Whether this NiFi supports configurable users and groups. | [optional] +**AutoRefreshIntervalSeconds** | **long?** | The interval in seconds between the automatic NiFi refresh requests. | [optional] +**CurrentTime** | **string** | The current time on the system. | [optional] +**TimeOffset** | **int?** | The time offset of the system. | [optional] +**DefaultBackPressureObjectThreshold** | **long?** | The default back pressure object threshold. | [optional] +**DefaultBackPressureDataSizeThreshold** | **string** | The default back pressure data size threshold. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/Docs/FlowConfigurationEntity.md b/Docs/FlowConfigurationEntity.md new file mode 100644 index 0000000..69c640f --- /dev/null +++ b/Docs/FlowConfigurationEntity.md @@ -0,0 +1,9 @@ +# IO.Swagger.Model.FlowConfigurationEntity +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**FlowConfiguration** | [**FlowConfigurationDTO**](FlowConfigurationDTO.md) | The controller configuration. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/Docs/FlowDTO.md b/Docs/FlowDTO.md new file mode 100644 index 0000000..5bf0212 --- /dev/null +++ b/Docs/FlowDTO.md @@ -0,0 +1,16 @@ +# IO.Swagger.Model.FlowDTO +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ProcessGroups** | [**List<ProcessGroupEntity>**](ProcessGroupEntity.md) | The process groups in this flow. | [optional] +**RemoteProcessGroups** | [**List<RemoteProcessGroupEntity>**](RemoteProcessGroupEntity.md) | The remote process groups in this flow. | [optional] +**Processors** | [**List<ProcessorEntity>**](ProcessorEntity.md) | The processors in this flow. | [optional] +**InputPorts** | [**List<PortEntity>**](PortEntity.md) | The input ports in this flow. | [optional] +**OutputPorts** | [**List<PortEntity>**](PortEntity.md) | The output ports in this flow. | [optional] +**Connections** | [**List<ConnectionEntity>**](ConnectionEntity.md) | The connections in this flow. | [optional] +**Labels** | [**List<LabelEntity>**](LabelEntity.md) | The labels in this flow. | [optional] +**Funnels** | [**List<FunnelEntity>**](FunnelEntity.md) | The funnels in this flow. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/Docs/FlowEntity.md b/Docs/FlowEntity.md new file mode 100644 index 0000000..4d0db2c --- /dev/null +++ b/Docs/FlowEntity.md @@ -0,0 +1,9 @@ +# IO.Swagger.Model.FlowEntity +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Flow** | [**FlowDTO**](FlowDTO.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/Docs/FlowFileDTO.md b/Docs/FlowFileDTO.md new file mode 100644 index 0000000..dba3eff --- /dev/null +++ b/Docs/FlowFileDTO.md @@ -0,0 +1,26 @@ +# IO.Swagger.Model.FlowFileDTO +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Uri** | **string** | The URI that can be used to access this FlowFile. | [optional] +**Uuid** | **string** | The FlowFile UUID. | [optional] +**Filename** | **string** | The FlowFile filename. | [optional] +**Position** | **int?** | The FlowFile's position in the queue. | [optional] +**Size** | **long?** | The FlowFile file size. | [optional] +**QueuedDuration** | **long?** | How long this FlowFile has been enqueued. | [optional] +**LineageDuration** | **long?** | Duration since the FlowFile's greatest ancestor entered the flow. | [optional] +**PenaltyExpiresIn** | **long?** | How long in milliseconds until the FlowFile penalty expires. | [optional] +**ClusterNodeId** | **string** | The id of the node where this FlowFile resides. | [optional] +**ClusterNodeAddress** | **string** | The label for the node where this FlowFile resides. | [optional] +**Attributes** | **Dictionary<string, string>** | The FlowFile attributes. | [optional] +**ContentClaimSection** | **string** | The section in which the content claim lives. | [optional] +**ContentClaimContainer** | **string** | The container in which the content claim lives. | [optional] +**ContentClaimIdentifier** | **string** | The identifier of the content claim. | [optional] +**ContentClaimOffset** | **long?** | The offset into the content claim where the flowfile's content begins. | [optional] +**ContentClaimFileSize** | **string** | The file size of the content claim formatted. | [optional] +**ContentClaimFileSizeBytes** | **long?** | The file size of the content claim in bytes. | [optional] +**Penalized** | **bool?** | If the FlowFile is penalized. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/Docs/FlowFileEntity.md b/Docs/FlowFileEntity.md new file mode 100644 index 0000000..d2598fe --- /dev/null +++ b/Docs/FlowFileEntity.md @@ -0,0 +1,9 @@ +# IO.Swagger.Model.FlowFileEntity +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**FlowFile** | [**FlowFileDTO**](FlowFileDTO.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/Docs/FlowFileSummaryDTO.md b/Docs/FlowFileSummaryDTO.md new file mode 100644 index 0000000..b03f8f4 --- /dev/null +++ b/Docs/FlowFileSummaryDTO.md @@ -0,0 +1,19 @@ +# IO.Swagger.Model.FlowFileSummaryDTO +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Uri** | **string** | The URI that can be used to access this FlowFile. | [optional] +**Uuid** | **string** | The FlowFile UUID. | [optional] +**Filename** | **string** | The FlowFile filename. | [optional] +**Position** | **int?** | The FlowFile's position in the queue. | [optional] +**Size** | **long?** | The FlowFile file size. | [optional] +**QueuedDuration** | **long?** | How long this FlowFile has been enqueued. | [optional] +**LineageDuration** | **long?** | Duration since the FlowFile's greatest ancestor entered the flow. | [optional] +**PenaltyExpiresIn** | **long?** | How long in milliseconds until the FlowFile penalty expires. | [optional] +**ClusterNodeId** | **string** | The id of the node where this FlowFile resides. | [optional] +**ClusterNodeAddress** | **string** | The label for the node where this FlowFile resides. | [optional] +**Penalized** | **bool?** | If the FlowFile is penalized. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/Docs/FlowSnippetDTO.md b/Docs/FlowSnippetDTO.md new file mode 100644 index 0000000..b86c6f4 --- /dev/null +++ b/Docs/FlowSnippetDTO.md @@ -0,0 +1,17 @@ +# IO.Swagger.Model.FlowSnippetDTO +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ProcessGroups** | [**List<ProcessGroupDTO>**](ProcessGroupDTO.md) | The process groups in this flow snippet. | [optional] +**RemoteProcessGroups** | [**List<RemoteProcessGroupDTO>**](RemoteProcessGroupDTO.md) | The remote process groups in this flow snippet. | [optional] +**Processors** | [**List<ProcessorDTO>**](ProcessorDTO.md) | The processors in this flow snippet. | [optional] +**InputPorts** | [**List<PortDTO>**](PortDTO.md) | The input ports in this flow snippet. | [optional] +**OutputPorts** | [**List<PortDTO>**](PortDTO.md) | The output ports in this flow snippet. | [optional] +**Connections** | [**List<ConnectionDTO>**](ConnectionDTO.md) | The connections in this flow snippet. | [optional] +**Labels** | [**List<LabelDTO>**](LabelDTO.md) | The labels in this flow snippet. | [optional] +**Funnels** | [**List<FunnelDTO>**](FunnelDTO.md) | The funnels in this flow snippet. | [optional] +**ControllerServices** | [**List<ControllerServiceDTO>**](ControllerServiceDTO.md) | The controller services in this flow snippet. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/Docs/FlowfileQueuesApi.md b/Docs/FlowfileQueuesApi.md new file mode 100644 index 0000000..e6ba6c8 --- /dev/null +++ b/Docs/FlowfileQueuesApi.md @@ -0,0 +1,506 @@ +# IO.Swagger.Api.FlowfileQueuesApi + +All URIs are relative to *http://localhost/nifi-api* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**CreateDropRequest**](FlowfileQueuesApi.md#createdroprequest) | **POST** /flowfile-queues/{id}/drop-requests | Creates a request to drop the contents of the queue in this connection. +[**CreateFlowFileListing**](FlowfileQueuesApi.md#createflowfilelisting) | **POST** /flowfile-queues/{id}/listing-requests | Lists the contents of the queue in this connection. +[**DeleteListingRequest**](FlowfileQueuesApi.md#deletelistingrequest) | **DELETE** /flowfile-queues/{id}/listing-requests/{listing-request-id} | Cancels and/or removes a request to list the contents of this connection. +[**DownloadFlowFileContent**](FlowfileQueuesApi.md#downloadflowfilecontent) | **GET** /flowfile-queues/{id}/flowfiles/{flowfile-uuid}/content | Gets the content for a FlowFile in a Connection. +[**GetDropRequest**](FlowfileQueuesApi.md#getdroprequest) | **GET** /flowfile-queues/{id}/drop-requests/{drop-request-id} | Gets the current status of a drop request for the specified connection. +[**GetFlowFile**](FlowfileQueuesApi.md#getflowfile) | **GET** /flowfile-queues/{id}/flowfiles/{flowfile-uuid} | Gets a FlowFile from a Connection. +[**GetListingRequest**](FlowfileQueuesApi.md#getlistingrequest) | **GET** /flowfile-queues/{id}/listing-requests/{listing-request-id} | Gets the current status of a listing request for the specified connection. +[**RemoveDropRequest**](FlowfileQueuesApi.md#removedroprequest) | **DELETE** /flowfile-queues/{id}/drop-requests/{drop-request-id} | Cancels and/or removes a request to drop the contents of this connection. + + + +# **CreateDropRequest** +> DropRequestEntity CreateDropRequest (string id) + +Creates a request to drop the contents of the queue in this connection. + +### Example +```csharp +using System; +using System.Diagnostics; +using IO.Swagger.Api; +using IO.Swagger.Client; +using IO.Swagger.Model; + +namespace Example +{ + public class CreateDropRequestExample + { + public void main() + { + var apiInstance = new FlowfileQueuesApi(); + var id = id_example; // string | The connection id. + + try + { + // Creates a request to drop the contents of the queue in this connection. + DropRequestEntity result = apiInstance.CreateDropRequest(id); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling FlowfileQueuesApi.CreateDropRequest: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **string**| The connection id. | + +### Return type + +[**DropRequestEntity**](DropRequestEntity.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **CreateFlowFileListing** +> ListingRequestEntity CreateFlowFileListing (string id) + +Lists the contents of the queue in this connection. + +### Example +```csharp +using System; +using System.Diagnostics; +using IO.Swagger.Api; +using IO.Swagger.Client; +using IO.Swagger.Model; + +namespace Example +{ + public class CreateFlowFileListingExample + { + public void main() + { + var apiInstance = new FlowfileQueuesApi(); + var id = id_example; // string | The connection id. + + try + { + // Lists the contents of the queue in this connection. + ListingRequestEntity result = apiInstance.CreateFlowFileListing(id); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling FlowfileQueuesApi.CreateFlowFileListing: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **string**| The connection id. | + +### Return type + +[**ListingRequestEntity**](ListingRequestEntity.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **DeleteListingRequest** +> ListingRequestEntity DeleteListingRequest (string id, string listingRequestId) + +Cancels and/or removes a request to list the contents of this connection. + +### Example +```csharp +using System; +using System.Diagnostics; +using IO.Swagger.Api; +using IO.Swagger.Client; +using IO.Swagger.Model; + +namespace Example +{ + public class DeleteListingRequestExample + { + public void main() + { + var apiInstance = new FlowfileQueuesApi(); + var id = id_example; // string | The connection id. + var listingRequestId = listingRequestId_example; // string | The listing request id. + + try + { + // Cancels and/or removes a request to list the contents of this connection. + ListingRequestEntity result = apiInstance.DeleteListingRequest(id, listingRequestId); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling FlowfileQueuesApi.DeleteListingRequest: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **string**| The connection id. | + **listingRequestId** | **string**| The listing request id. | + +### Return type + +[**ListingRequestEntity**](ListingRequestEntity.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **DownloadFlowFileContent** +> StreamingOutput DownloadFlowFileContent (string id, string flowfileUuid, string clientId = null, string clusterNodeId = null) + +Gets the content for a FlowFile in a Connection. + +### Example +```csharp +using System; +using System.Diagnostics; +using IO.Swagger.Api; +using IO.Swagger.Client; +using IO.Swagger.Model; + +namespace Example +{ + public class DownloadFlowFileContentExample + { + public void main() + { + var apiInstance = new FlowfileQueuesApi(); + var id = id_example; // string | The connection id. + var flowfileUuid = flowfileUuid_example; // string | The flowfile uuid. + var clientId = clientId_example; // string | If the client id is not specified, new one will be generated. This value (whether specified or generated) is included in the response. (optional) + var clusterNodeId = clusterNodeId_example; // string | The id of the node where the content exists if clustered. (optional) + + try + { + // Gets the content for a FlowFile in a Connection. + StreamingOutput result = apiInstance.DownloadFlowFileContent(id, flowfileUuid, clientId, clusterNodeId); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling FlowfileQueuesApi.DownloadFlowFileContent: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **string**| The connection id. | + **flowfileUuid** | **string**| The flowfile uuid. | + **clientId** | **string**| If the client id is not specified, new one will be generated. This value (whether specified or generated) is included in the response. | [optional] + **clusterNodeId** | **string**| The id of the node where the content exists if clustered. | [optional] + +### Return type + +[**StreamingOutput**](StreamingOutput.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: */* + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **GetDropRequest** +> DropRequestEntity GetDropRequest (string id, string dropRequestId) + +Gets the current status of a drop request for the specified connection. + +### Example +```csharp +using System; +using System.Diagnostics; +using IO.Swagger.Api; +using IO.Swagger.Client; +using IO.Swagger.Model; + +namespace Example +{ + public class GetDropRequestExample + { + public void main() + { + var apiInstance = new FlowfileQueuesApi(); + var id = id_example; // string | The connection id. + var dropRequestId = dropRequestId_example; // string | The drop request id. + + try + { + // Gets the current status of a drop request for the specified connection. + DropRequestEntity result = apiInstance.GetDropRequest(id, dropRequestId); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling FlowfileQueuesApi.GetDropRequest: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **string**| The connection id. | + **dropRequestId** | **string**| The drop request id. | + +### Return type + +[**DropRequestEntity**](DropRequestEntity.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **GetFlowFile** +> FlowFileEntity GetFlowFile (string id, string flowfileUuid, string clusterNodeId = null) + +Gets a FlowFile from a Connection. + +### Example +```csharp +using System; +using System.Diagnostics; +using IO.Swagger.Api; +using IO.Swagger.Client; +using IO.Swagger.Model; + +namespace Example +{ + public class GetFlowFileExample + { + public void main() + { + var apiInstance = new FlowfileQueuesApi(); + var id = id_example; // string | The connection id. + var flowfileUuid = flowfileUuid_example; // string | The flowfile uuid. + var clusterNodeId = clusterNodeId_example; // string | The id of the node where the content exists if clustered. (optional) + + try + { + // Gets a FlowFile from a Connection. + FlowFileEntity result = apiInstance.GetFlowFile(id, flowfileUuid, clusterNodeId); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling FlowfileQueuesApi.GetFlowFile: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **string**| The connection id. | + **flowfileUuid** | **string**| The flowfile uuid. | + **clusterNodeId** | **string**| The id of the node where the content exists if clustered. | [optional] + +### Return type + +[**FlowFileEntity**](FlowFileEntity.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **GetListingRequest** +> ListingRequestEntity GetListingRequest (string id, string listingRequestId) + +Gets the current status of a listing request for the specified connection. + +### Example +```csharp +using System; +using System.Diagnostics; +using IO.Swagger.Api; +using IO.Swagger.Client; +using IO.Swagger.Model; + +namespace Example +{ + public class GetListingRequestExample + { + public void main() + { + var apiInstance = new FlowfileQueuesApi(); + var id = id_example; // string | The connection id. + var listingRequestId = listingRequestId_example; // string | The listing request id. + + try + { + // Gets the current status of a listing request for the specified connection. + ListingRequestEntity result = apiInstance.GetListingRequest(id, listingRequestId); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling FlowfileQueuesApi.GetListingRequest: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **string**| The connection id. | + **listingRequestId** | **string**| The listing request id. | + +### Return type + +[**ListingRequestEntity**](ListingRequestEntity.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **RemoveDropRequest** +> DropRequestEntity RemoveDropRequest (string id, string dropRequestId) + +Cancels and/or removes a request to drop the contents of this connection. + +### Example +```csharp +using System; +using System.Diagnostics; +using IO.Swagger.Api; +using IO.Swagger.Client; +using IO.Swagger.Model; + +namespace Example +{ + public class RemoveDropRequestExample + { + public void main() + { + var apiInstance = new FlowfileQueuesApi(); + var id = id_example; // string | The connection id. + var dropRequestId = dropRequestId_example; // string | The drop request id. + + try + { + // Cancels and/or removes a request to drop the contents of this connection. + DropRequestEntity result = apiInstance.RemoveDropRequest(id, dropRequestId); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling FlowfileQueuesApi.RemoveDropRequest: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **string**| The connection id. | + **dropRequestId** | **string**| The drop request id. | + +### Return type + +[**DropRequestEntity**](DropRequestEntity.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/Docs/FunnelApi.md b/Docs/FunnelApi.md new file mode 100644 index 0000000..48416bb --- /dev/null +++ b/Docs/FunnelApi.md @@ -0,0 +1,196 @@ +# IO.Swagger.Api.FunnelApi + +All URIs are relative to *http://localhost/nifi-api* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**GetFunnel**](FunnelApi.md#getfunnel) | **GET** /funnels/{id} | Gets a funnel +[**RemoveFunnel**](FunnelApi.md#removefunnel) | **DELETE** /funnels/{id} | Deletes a funnel +[**UpdateFunnel**](FunnelApi.md#updatefunnel) | **PUT** /funnels/{id} | Updates a funnel + + + +# **GetFunnel** +> FunnelEntity GetFunnel (string id) + +Gets a funnel + +### Example +```csharp +using System; +using System.Diagnostics; +using IO.Swagger.Api; +using IO.Swagger.Client; +using IO.Swagger.Model; + +namespace Example +{ + public class GetFunnelExample + { + public void main() + { + var apiInstance = new FunnelApi(); + var id = id_example; // string | The funnel id. + + try + { + // Gets a funnel + FunnelEntity result = apiInstance.GetFunnel(id); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling FunnelApi.GetFunnel: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **string**| The funnel id. | + +### Return type + +[**FunnelEntity**](FunnelEntity.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **RemoveFunnel** +> FunnelEntity RemoveFunnel (string id, string version = null, string clientId = null, bool? disconnectedNodeAcknowledged = null) + +Deletes a funnel + +### Example +```csharp +using System; +using System.Diagnostics; +using IO.Swagger.Api; +using IO.Swagger.Client; +using IO.Swagger.Model; + +namespace Example +{ + public class RemoveFunnelExample + { + public void main() + { + var apiInstance = new FunnelApi(); + var id = id_example; // string | The funnel id. + var version = version_example; // string | The revision is used to verify the client is working with the latest version of the flow. (optional) + var clientId = clientId_example; // string | If the client id is not specified, new one will be generated. This value (whether specified or generated) is included in the response. (optional) + var disconnectedNodeAcknowledged = true; // bool? | Acknowledges that this node is disconnected to allow for mutable requests to proceed. (optional) (default to false) + + try + { + // Deletes a funnel + FunnelEntity result = apiInstance.RemoveFunnel(id, version, clientId, disconnectedNodeAcknowledged); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling FunnelApi.RemoveFunnel: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **string**| The funnel id. | + **version** | **string**| The revision is used to verify the client is working with the latest version of the flow. | [optional] + **clientId** | **string**| If the client id is not specified, new one will be generated. This value (whether specified or generated) is included in the response. | [optional] + **disconnectedNodeAcknowledged** | **bool?**| Acknowledges that this node is disconnected to allow for mutable requests to proceed. | [optional] [default to false] + +### Return type + +[**FunnelEntity**](FunnelEntity.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **UpdateFunnel** +> FunnelEntity UpdateFunnel (string id, FunnelEntity body) + +Updates a funnel + +### Example +```csharp +using System; +using System.Diagnostics; +using IO.Swagger.Api; +using IO.Swagger.Client; +using IO.Swagger.Model; + +namespace Example +{ + public class UpdateFunnelExample + { + public void main() + { + var apiInstance = new FunnelApi(); + var id = id_example; // string | The funnel id. + var body = new FunnelEntity(); // FunnelEntity | The funnel configuration details. + + try + { + // Updates a funnel + FunnelEntity result = apiInstance.UpdateFunnel(id, body); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling FunnelApi.UpdateFunnel: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **string**| The funnel id. | + **body** | [**FunnelEntity**](FunnelEntity.md)| The funnel configuration details. | + +### Return type + +[**FunnelEntity**](FunnelEntity.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/Docs/FunnelDTO.md b/Docs/FunnelDTO.md new file mode 100644 index 0000000..b294d40 --- /dev/null +++ b/Docs/FunnelDTO.md @@ -0,0 +1,12 @@ +# IO.Swagger.Model.FunnelDTO +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | **string** | The id of the component. | [optional] +**VersionedComponentId** | **string** | The ID of the corresponding component that is under version control | [optional] +**ParentGroupId** | **string** | The id of parent process group of this component if applicable. | [optional] +**Position** | [**PositionDTO**](PositionDTO.md) | The position of this component in the UI if applicable. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/Docs/FunnelEntity.md b/Docs/FunnelEntity.md new file mode 100644 index 0000000..83dedd9 --- /dev/null +++ b/Docs/FunnelEntity.md @@ -0,0 +1,16 @@ +# IO.Swagger.Model.FunnelEntity +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Revision** | [**RevisionDTO**](RevisionDTO.md) | The revision for this request/response. The revision is required for any mutable flow requests and is included in all responses. | [optional] +**Id** | **string** | The id of the component. | [optional] +**Uri** | **string** | The URI for futures requests to the component. | [optional] +**Position** | [**PositionDTO**](PositionDTO.md) | The position of this component in the UI if applicable. | [optional] +**Permissions** | [**PermissionsDTO**](PermissionsDTO.md) | The permissions for this component. | [optional] +**Bulletins** | [**List<BulletinEntity>**](BulletinEntity.md) | The bulletins for this component. | [optional] +**DisconnectedNodeAcknowledged** | **bool?** | Acknowledges that this node is disconnected to allow for mutable requests to proceed. | [optional] +**Component** | [**FunnelDTO**](FunnelDTO.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/Docs/FunnelsEntity.md b/Docs/FunnelsEntity.md new file mode 100644 index 0000000..ef19735 --- /dev/null +++ b/Docs/FunnelsEntity.md @@ -0,0 +1,9 @@ +# IO.Swagger.Model.FunnelsEntity +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Funnels** | [**List<FunnelEntity>**](FunnelEntity.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/Docs/GarbageCollectionDTO.md b/Docs/GarbageCollectionDTO.md new file mode 100644 index 0000000..0580b87 --- /dev/null +++ b/Docs/GarbageCollectionDTO.md @@ -0,0 +1,12 @@ +# IO.Swagger.Model.GarbageCollectionDTO +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Name** | **string** | The name of the garbage collector. | [optional] +**CollectionCount** | **long?** | The number of times garbage collection has run. | [optional] +**CollectionTime** | **string** | The total amount of time spent garbage collecting. | [optional] +**CollectionMillis** | **long?** | The total number of milliseconds spent garbage collecting. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/Docs/HistoryDTO.md b/Docs/HistoryDTO.md new file mode 100644 index 0000000..42872b0 --- /dev/null +++ b/Docs/HistoryDTO.md @@ -0,0 +1,11 @@ +# IO.Swagger.Model.HistoryDTO +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Total** | **int?** | The number of number of actions that matched the search criteria.. | [optional] +**LastRefreshed** | **string** | The timestamp when the report was generated. | [optional] +**Actions** | [**List<ActionEntity>**](ActionEntity.md) | The actions. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/Docs/HistoryEntity.md b/Docs/HistoryEntity.md new file mode 100644 index 0000000..40b308f --- /dev/null +++ b/Docs/HistoryEntity.md @@ -0,0 +1,9 @@ +# IO.Swagger.Model.HistoryEntity +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**History** | [**HistoryDTO**](HistoryDTO.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/Docs/InputPortsApi.md b/Docs/InputPortsApi.md new file mode 100644 index 0000000..ff9011a --- /dev/null +++ b/Docs/InputPortsApi.md @@ -0,0 +1,258 @@ +# IO.Swagger.Api.InputPortsApi + +All URIs are relative to *http://localhost/nifi-api* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**GetInputPort**](InputPortsApi.md#getinputport) | **GET** /input-ports/{id} | Gets an input port +[**RemoveInputPort**](InputPortsApi.md#removeinputport) | **DELETE** /input-ports/{id} | Deletes an input port +[**UpdateInputPort**](InputPortsApi.md#updateinputport) | **PUT** /input-ports/{id} | Updates an input port +[**UpdateRunStatus**](InputPortsApi.md#updaterunstatus) | **PUT** /input-ports/{id}/run-status | Updates run status of an input-port + + + +# **GetInputPort** +> PortEntity GetInputPort (string id) + +Gets an input port + +### Example +```csharp +using System; +using System.Diagnostics; +using IO.Swagger.Api; +using IO.Swagger.Client; +using IO.Swagger.Model; + +namespace Example +{ + public class GetInputPortExample + { + public void main() + { + var apiInstance = new InputPortsApi(); + var id = id_example; // string | The input port id. + + try + { + // Gets an input port + PortEntity result = apiInstance.GetInputPort(id); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling InputPortsApi.GetInputPort: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **string**| The input port id. | + +### Return type + +[**PortEntity**](PortEntity.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **RemoveInputPort** +> PortEntity RemoveInputPort (string id, string version = null, string clientId = null, bool? disconnectedNodeAcknowledged = null) + +Deletes an input port + +### Example +```csharp +using System; +using System.Diagnostics; +using IO.Swagger.Api; +using IO.Swagger.Client; +using IO.Swagger.Model; + +namespace Example +{ + public class RemoveInputPortExample + { + public void main() + { + var apiInstance = new InputPortsApi(); + var id = id_example; // string | The input port id. + var version = version_example; // string | The revision is used to verify the client is working with the latest version of the flow. (optional) + var clientId = clientId_example; // string | If the client id is not specified, new one will be generated. This value (whether specified or generated) is included in the response. (optional) + var disconnectedNodeAcknowledged = true; // bool? | Acknowledges that this node is disconnected to allow for mutable requests to proceed. (optional) (default to false) + + try + { + // Deletes an input port + PortEntity result = apiInstance.RemoveInputPort(id, version, clientId, disconnectedNodeAcknowledged); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling InputPortsApi.RemoveInputPort: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **string**| The input port id. | + **version** | **string**| The revision is used to verify the client is working with the latest version of the flow. | [optional] + **clientId** | **string**| If the client id is not specified, new one will be generated. This value (whether specified or generated) is included in the response. | [optional] + **disconnectedNodeAcknowledged** | **bool?**| Acknowledges that this node is disconnected to allow for mutable requests to proceed. | [optional] [default to false] + +### Return type + +[**PortEntity**](PortEntity.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **UpdateInputPort** +> PortEntity UpdateInputPort (string id, PortEntity body) + +Updates an input port + +### Example +```csharp +using System; +using System.Diagnostics; +using IO.Swagger.Api; +using IO.Swagger.Client; +using IO.Swagger.Model; + +namespace Example +{ + public class UpdateInputPortExample + { + public void main() + { + var apiInstance = new InputPortsApi(); + var id = id_example; // string | The input port id. + var body = new PortEntity(); // PortEntity | The input port configuration details. + + try + { + // Updates an input port + PortEntity result = apiInstance.UpdateInputPort(id, body); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling InputPortsApi.UpdateInputPort: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **string**| The input port id. | + **body** | [**PortEntity**](PortEntity.md)| The input port configuration details. | + +### Return type + +[**PortEntity**](PortEntity.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **UpdateRunStatus** +> ProcessorEntity UpdateRunStatus (string id, PortRunStatusEntity body) + +Updates run status of an input-port + +### Example +```csharp +using System; +using System.Diagnostics; +using IO.Swagger.Api; +using IO.Swagger.Client; +using IO.Swagger.Model; + +namespace Example +{ + public class UpdateRunStatusExample + { + public void main() + { + var apiInstance = new InputPortsApi(); + var id = id_example; // string | The port id. + var body = new PortRunStatusEntity(); // PortRunStatusEntity | The port run status. + + try + { + // Updates run status of an input-port + ProcessorEntity result = apiInstance.UpdateRunStatus(id, body); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling InputPortsApi.UpdateRunStatus: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **string**| The port id. | + **body** | [**PortRunStatusEntity**](PortRunStatusEntity.md)| The port run status. | + +### Return type + +[**ProcessorEntity**](ProcessorEntity.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/Docs/InputPortsEntity.md b/Docs/InputPortsEntity.md new file mode 100644 index 0000000..289b6c7 --- /dev/null +++ b/Docs/InputPortsEntity.md @@ -0,0 +1,9 @@ +# IO.Swagger.Model.InputPortsEntity +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**InputPorts** | [**List<PortEntity>**](PortEntity.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/Docs/InstantiateTemplateRequestEntity.md b/Docs/InstantiateTemplateRequestEntity.md new file mode 100644 index 0000000..7870838 --- /dev/null +++ b/Docs/InstantiateTemplateRequestEntity.md @@ -0,0 +1,14 @@ +# IO.Swagger.Model.InstantiateTemplateRequestEntity +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**OriginX** | **double?** | The x coordinate of the origin of the bounding box where the new components will be placed. | [optional] +**OriginY** | **double?** | The y coordinate of the origin of the bounding box where the new components will be placed. | [optional] +**TemplateId** | **string** | The identifier of the template. | [optional] +**EncodingVersion** | **string** | The encoding version of the flow snippet. If not specified, this is automatically populated by the node receiving the user request. If the snippet is specified, the version will be the latest. If the snippet is not specified, the version will come from the underlying template. These details need to be replicated throughout the cluster to ensure consistency. | [optional] +**Snippet** | [**FlowSnippetDTO**](FlowSnippetDTO.md) | A flow snippet of the template contents. If not specified, this is automatically populated by the node receiving the user request. These details need to be replicated throughout the cluster to ensure consistency. | [optional] +**DisconnectedNodeAcknowledged** | **bool?** | Acknowledges that this node is disconnected to allow for mutable requests to proceed. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/Docs/LabelDTO.md b/Docs/LabelDTO.md new file mode 100644 index 0000000..d6343e4 --- /dev/null +++ b/Docs/LabelDTO.md @@ -0,0 +1,16 @@ +# IO.Swagger.Model.LabelDTO +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | **string** | The id of the component. | [optional] +**VersionedComponentId** | **string** | The ID of the corresponding component that is under version control | [optional] +**ParentGroupId** | **string** | The id of parent process group of this component if applicable. | [optional] +**Position** | [**PositionDTO**](PositionDTO.md) | The position of this component in the UI if applicable. | [optional] +**Label** | **string** | The text that appears in the label. | [optional] +**Width** | **double?** | The width of the label in pixels when at a 1:1 scale. | [optional] +**Height** | **double?** | The height of the label in pixels when at a 1:1 scale. | [optional] +**Style** | **Dictionary<string, string>** | The styles for this label (font-size : 12px, background-color : #eee, etc). | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/Docs/LabelEntity.md b/Docs/LabelEntity.md new file mode 100644 index 0000000..e4d3197 --- /dev/null +++ b/Docs/LabelEntity.md @@ -0,0 +1,17 @@ +# IO.Swagger.Model.LabelEntity +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Revision** | [**RevisionDTO**](RevisionDTO.md) | The revision for this request/response. The revision is required for any mutable flow requests and is included in all responses. | [optional] +**Id** | **string** | The id of the component. | [optional] +**Uri** | **string** | The URI for futures requests to the component. | [optional] +**Position** | [**PositionDTO**](PositionDTO.md) | The position of this component in the UI if applicable. | [optional] +**Permissions** | [**PermissionsDTO**](PermissionsDTO.md) | The permissions for this component. | [optional] +**Bulletins** | [**List<BulletinEntity>**](BulletinEntity.md) | The bulletins for this component. | [optional] +**DisconnectedNodeAcknowledged** | **bool?** | Acknowledges that this node is disconnected to allow for mutable requests to proceed. | [optional] +**Dimensions** | [**DimensionsDTO**](DimensionsDTO.md) | | [optional] +**Component** | [**LabelDTO**](LabelDTO.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/Docs/LabelsApi.md b/Docs/LabelsApi.md new file mode 100644 index 0000000..e5da763 --- /dev/null +++ b/Docs/LabelsApi.md @@ -0,0 +1,196 @@ +# IO.Swagger.Api.LabelsApi + +All URIs are relative to *http://localhost/nifi-api* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**GetLabel**](LabelsApi.md#getlabel) | **GET** /labels/{id} | Gets a label +[**RemoveLabel**](LabelsApi.md#removelabel) | **DELETE** /labels/{id} | Deletes a label +[**UpdateLabel**](LabelsApi.md#updatelabel) | **PUT** /labels/{id} | Updates a label + + + +# **GetLabel** +> LabelEntity GetLabel (string id) + +Gets a label + +### Example +```csharp +using System; +using System.Diagnostics; +using IO.Swagger.Api; +using IO.Swagger.Client; +using IO.Swagger.Model; + +namespace Example +{ + public class GetLabelExample + { + public void main() + { + var apiInstance = new LabelsApi(); + var id = id_example; // string | The label id. + + try + { + // Gets a label + LabelEntity result = apiInstance.GetLabel(id); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling LabelsApi.GetLabel: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **string**| The label id. | + +### Return type + +[**LabelEntity**](LabelEntity.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **RemoveLabel** +> LabelEntity RemoveLabel (string id, string version = null, string clientId = null, bool? disconnectedNodeAcknowledged = null) + +Deletes a label + +### Example +```csharp +using System; +using System.Diagnostics; +using IO.Swagger.Api; +using IO.Swagger.Client; +using IO.Swagger.Model; + +namespace Example +{ + public class RemoveLabelExample + { + public void main() + { + var apiInstance = new LabelsApi(); + var id = id_example; // string | The label id. + var version = version_example; // string | The revision is used to verify the client is working with the latest version of the flow. (optional) + var clientId = clientId_example; // string | If the client id is not specified, new one will be generated. This value (whether specified or generated) is included in the response. (optional) + var disconnectedNodeAcknowledged = true; // bool? | Acknowledges that this node is disconnected to allow for mutable requests to proceed. (optional) (default to false) + + try + { + // Deletes a label + LabelEntity result = apiInstance.RemoveLabel(id, version, clientId, disconnectedNodeAcknowledged); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling LabelsApi.RemoveLabel: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **string**| The label id. | + **version** | **string**| The revision is used to verify the client is working with the latest version of the flow. | [optional] + **clientId** | **string**| If the client id is not specified, new one will be generated. This value (whether specified or generated) is included in the response. | [optional] + **disconnectedNodeAcknowledged** | **bool?**| Acknowledges that this node is disconnected to allow for mutable requests to proceed. | [optional] [default to false] + +### Return type + +[**LabelEntity**](LabelEntity.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **UpdateLabel** +> LabelEntity UpdateLabel (string id, LabelEntity body) + +Updates a label + +### Example +```csharp +using System; +using System.Diagnostics; +using IO.Swagger.Api; +using IO.Swagger.Client; +using IO.Swagger.Model; + +namespace Example +{ + public class UpdateLabelExample + { + public void main() + { + var apiInstance = new LabelsApi(); + var id = id_example; // string | The label id. + var body = new LabelEntity(); // LabelEntity | The label configuration details. + + try + { + // Updates a label + LabelEntity result = apiInstance.UpdateLabel(id, body); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling LabelsApi.UpdateLabel: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **string**| The label id. | + **body** | [**LabelEntity**](LabelEntity.md)| The label configuration details. | + +### Return type + +[**LabelEntity**](LabelEntity.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/Docs/LabelsEntity.md b/Docs/LabelsEntity.md new file mode 100644 index 0000000..9b748c4 --- /dev/null +++ b/Docs/LabelsEntity.md @@ -0,0 +1,9 @@ +# IO.Swagger.Model.LabelsEntity +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Labels** | [**List<LabelEntity>**](LabelEntity.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/Docs/LineageDTO.md b/Docs/LineageDTO.md new file mode 100644 index 0000000..cc5eabe --- /dev/null +++ b/Docs/LineageDTO.md @@ -0,0 +1,16 @@ +# IO.Swagger.Model.LineageDTO +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | **string** | The id of this lineage query. | [optional] +**Uri** | **string** | The URI for this lineage query for later retrieval and deletion. | [optional] +**SubmissionTime** | **string** | When the lineage query was submitted. | [optional] +**Expiration** | **string** | When the lineage query will expire. | [optional] +**PercentCompleted** | **int?** | The percent complete for the lineage query. | [optional] +**Finished** | **bool?** | Whether the lineage query has finished. | [optional] +**Request** | [**LineageRequestDTO**](LineageRequestDTO.md) | The initial lineage result. | [optional] +**Results** | [**LineageResultsDTO**](LineageResultsDTO.md) | The results of the lineage query. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/Docs/LineageEntity.md b/Docs/LineageEntity.md new file mode 100644 index 0000000..abfe893 --- /dev/null +++ b/Docs/LineageEntity.md @@ -0,0 +1,9 @@ +# IO.Swagger.Model.LineageEntity +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Lineage** | [**LineageDTO**](LineageDTO.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/Docs/LineageRequestDTO.md b/Docs/LineageRequestDTO.md new file mode 100644 index 0000000..8329d70 --- /dev/null +++ b/Docs/LineageRequestDTO.md @@ -0,0 +1,12 @@ +# IO.Swagger.Model.LineageRequestDTO +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**EventId** | **long?** | The event id that was used to generate this lineage, if applicable. The event id is allowed for any type of lineageRequestType. If the lineageRequestType is FLOWFILE and the flowfile uuid is also included in the request, the event id will be ignored. | [optional] +**LineageRequestType** | **string** | The type of lineage request. PARENTS will return the lineage for the flowfiles that are parents of the specified event. CHILDREN will return the lineage for the flowfiles that are children of the specified event. FLOWFILE will return the lineage for the specified flowfile. | [optional] +**Uuid** | **string** | The flowfile uuid that was used to generate the lineage. The flowfile uuid is only allowed when the lineageRequestType is FLOWFILE and will take precedence over event id. | [optional] +**ClusterNodeId** | **string** | The id of the node where this lineage originated if clustered. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/Docs/LineageResultsDTO.md b/Docs/LineageResultsDTO.md new file mode 100644 index 0000000..596bf67 --- /dev/null +++ b/Docs/LineageResultsDTO.md @@ -0,0 +1,11 @@ +# IO.Swagger.Model.LineageResultsDTO +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Errors** | **List<string>** | Any errors that occurred while generating the lineage. | [optional] +**Nodes** | [**List<ProvenanceNodeDTO>**](ProvenanceNodeDTO.md) | The nodes in the lineage. | [optional] +**Links** | [**List<ProvenanceLinkDTO>**](ProvenanceLinkDTO.md) | The links between the nodes in the lineage. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/Docs/Link.md b/Docs/Link.md new file mode 100644 index 0000000..af7a823 --- /dev/null +++ b/Docs/Link.md @@ -0,0 +1,15 @@ +# IO.Swagger.Model.Link +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Type** | **string** | | [optional] +**Title** | **string** | | [optional] +**Rel** | **string** | | [optional] +**Rels** | **List<string>** | | [optional] +**UriBuilder** | [**UriBuilder**](UriBuilder.md) | | [optional] +**Params** | **Dictionary<string, string>** | | [optional] +**Uri** | **string** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/Docs/ListingRequestDTO.md b/Docs/ListingRequestDTO.md new file mode 100644 index 0000000..06cabfd --- /dev/null +++ b/Docs/ListingRequestDTO.md @@ -0,0 +1,21 @@ +# IO.Swagger.Model.ListingRequestDTO +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | **string** | The id for this listing request. | [optional] +**Uri** | **string** | The URI for future requests to this listing request. | [optional] +**SubmissionTime** | **string** | The timestamp when the query was submitted. | [optional] +**LastUpdated** | **string** | The last time this listing request was updated. | [optional] +**PercentCompleted** | **int?** | The current percent complete. | [optional] +**Finished** | **bool?** | Whether the query has finished. | [optional] +**FailureReason** | **string** | The reason, if any, that this listing request failed. | [optional] +**MaxResults** | **int?** | The maximum number of FlowFileSummary objects to return | [optional] +**State** | **string** | The current state of the listing request. | [optional] +**QueueSize** | [**QueueSizeDTO**](QueueSizeDTO.md) | The size of the queue | [optional] +**FlowFileSummaries** | [**List<FlowFileSummaryDTO>**](FlowFileSummaryDTO.md) | The FlowFile summaries. The summaries will be populated once the request has completed. | [optional] +**SourceRunning** | **bool?** | Whether the source of the connection is running | [optional] +**DestinationRunning** | **bool?** | Whether the destination of the connection is running | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/Docs/ListingRequestEntity.md b/Docs/ListingRequestEntity.md new file mode 100644 index 0000000..891503a --- /dev/null +++ b/Docs/ListingRequestEntity.md @@ -0,0 +1,9 @@ +# IO.Swagger.Model.ListingRequestEntity +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ListingRequest** | [**ListingRequestDTO**](ListingRequestDTO.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/Docs/NodeConnectionStatusSnapshotDTO.md b/Docs/NodeConnectionStatusSnapshotDTO.md new file mode 100644 index 0000000..c9dd6af --- /dev/null +++ b/Docs/NodeConnectionStatusSnapshotDTO.md @@ -0,0 +1,12 @@ +# IO.Swagger.Model.NodeConnectionStatusSnapshotDTO +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**NodeId** | **string** | The unique ID that identifies the node | [optional] +**Address** | **string** | The API address of the node | [optional] +**ApiPort** | **int?** | The API port used to communicate with the node | [optional] +**StatusSnapshot** | [**ConnectionStatusSnapshotDTO**](ConnectionStatusSnapshotDTO.md) | The connection status snapshot from the node. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/Docs/NodeCountersSnapshotDTO.md b/Docs/NodeCountersSnapshotDTO.md new file mode 100644 index 0000000..6b4dcd8 --- /dev/null +++ b/Docs/NodeCountersSnapshotDTO.md @@ -0,0 +1,12 @@ +# IO.Swagger.Model.NodeCountersSnapshotDTO +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**NodeId** | **string** | The unique ID that identifies the node | [optional] +**Address** | **string** | The API address of the node | [optional] +**ApiPort** | **int?** | The API port used to communicate with the node | [optional] +**Snapshot** | [**CountersSnapshotDTO**](CountersSnapshotDTO.md) | The counters from the node. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/Docs/NodeDTO.md b/Docs/NodeDTO.md new file mode 100644 index 0000000..6c3d946 --- /dev/null +++ b/Docs/NodeDTO.md @@ -0,0 +1,19 @@ +# IO.Swagger.Model.NodeDTO +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**NodeId** | **string** | The id of the node. | [optional] +**Address** | **string** | The node's host/ip address. | [optional] +**ApiPort** | **int?** | The port the node is listening for API requests. | [optional] +**Status** | **string** | The node's status. | [optional] +**Heartbeat** | **string** | the time of the nodes's last heartbeat. | [optional] +**ConnectionRequested** | **string** | The time of the node's last connection request. | [optional] +**Roles** | **List<string>** | The roles of this node. | [optional] +**ActiveThreadCount** | **int?** | The active threads for the NiFi on the node. | [optional] +**Queued** | **string** | The queue the NiFi on the node. | [optional] +**Events** | [**List<NodeEventDTO>**](NodeEventDTO.md) | The node's events. | [optional] +**NodeStartTime** | **string** | The time at which this Node was last refreshed. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/Docs/NodeEntity.md b/Docs/NodeEntity.md new file mode 100644 index 0000000..6c9ac17 --- /dev/null +++ b/Docs/NodeEntity.md @@ -0,0 +1,9 @@ +# IO.Swagger.Model.NodeEntity +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Node** | [**NodeDTO**](NodeDTO.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/Docs/NodeEventDTO.md b/Docs/NodeEventDTO.md new file mode 100644 index 0000000..c2c04c9 --- /dev/null +++ b/Docs/NodeEventDTO.md @@ -0,0 +1,11 @@ +# IO.Swagger.Model.NodeEventDTO +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Timestamp** | **string** | The timestamp of the node event. | [optional] +**Category** | **string** | The category of the node event. | [optional] +**Message** | **string** | The message in the node event. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/Docs/NodePortStatusSnapshotDTO.md b/Docs/NodePortStatusSnapshotDTO.md new file mode 100644 index 0000000..ca3fe2f --- /dev/null +++ b/Docs/NodePortStatusSnapshotDTO.md @@ -0,0 +1,12 @@ +# IO.Swagger.Model.NodePortStatusSnapshotDTO +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**NodeId** | **string** | The unique ID that identifies the node | [optional] +**Address** | **string** | The API address of the node | [optional] +**ApiPort** | **int?** | The API port used to communicate with the node | [optional] +**StatusSnapshot** | [**PortStatusSnapshotDTO**](PortStatusSnapshotDTO.md) | The port status snapshot from the node. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/Docs/NodeProcessGroupStatusSnapshotDTO.md b/Docs/NodeProcessGroupStatusSnapshotDTO.md new file mode 100644 index 0000000..b867927 --- /dev/null +++ b/Docs/NodeProcessGroupStatusSnapshotDTO.md @@ -0,0 +1,12 @@ +# IO.Swagger.Model.NodeProcessGroupStatusSnapshotDTO +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**NodeId** | **string** | The unique ID that identifies the node | [optional] +**Address** | **string** | The API address of the node | [optional] +**ApiPort** | **int?** | The API port used to communicate with the node | [optional] +**StatusSnapshot** | [**ProcessGroupStatusSnapshotDTO**](ProcessGroupStatusSnapshotDTO.md) | The process group status snapshot from the node. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/Docs/NodeProcessorStatusSnapshotDTO.md b/Docs/NodeProcessorStatusSnapshotDTO.md new file mode 100644 index 0000000..f202229 --- /dev/null +++ b/Docs/NodeProcessorStatusSnapshotDTO.md @@ -0,0 +1,12 @@ +# IO.Swagger.Model.NodeProcessorStatusSnapshotDTO +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**NodeId** | **string** | The unique ID that identifies the node | [optional] +**Address** | **string** | The API address of the node | [optional] +**ApiPort** | **int?** | The API port used to communicate with the node | [optional] +**StatusSnapshot** | [**ProcessorStatusSnapshotDTO**](ProcessorStatusSnapshotDTO.md) | The processor status snapshot from the node. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/Docs/NodeRemoteProcessGroupStatusSnapshotDTO.md b/Docs/NodeRemoteProcessGroupStatusSnapshotDTO.md new file mode 100644 index 0000000..2f065f1 --- /dev/null +++ b/Docs/NodeRemoteProcessGroupStatusSnapshotDTO.md @@ -0,0 +1,12 @@ +# IO.Swagger.Model.NodeRemoteProcessGroupStatusSnapshotDTO +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**NodeId** | **string** | The unique ID that identifies the node | [optional] +**Address** | **string** | The API address of the node | [optional] +**ApiPort** | **int?** | The API port used to communicate with the node | [optional] +**StatusSnapshot** | [**RemoteProcessGroupStatusSnapshotDTO**](RemoteProcessGroupStatusSnapshotDTO.md) | The remote process group status snapshot from the node. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/Docs/NodeSearchResultDTO.md b/Docs/NodeSearchResultDTO.md new file mode 100644 index 0000000..d9a799d --- /dev/null +++ b/Docs/NodeSearchResultDTO.md @@ -0,0 +1,10 @@ +# IO.Swagger.Model.NodeSearchResultDTO +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | **string** | The id of the node that matched the search. | [optional] +**Address** | **string** | The address of the node that matched the search. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/Docs/NodeStatusSnapshotsDTO.md b/Docs/NodeStatusSnapshotsDTO.md new file mode 100644 index 0000000..78487ea --- /dev/null +++ b/Docs/NodeStatusSnapshotsDTO.md @@ -0,0 +1,12 @@ +# IO.Swagger.Model.NodeStatusSnapshotsDTO +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**NodeId** | **string** | The id of the node. | [optional] +**Address** | **string** | The node's host/ip address. | [optional] +**ApiPort** | **int?** | The port the node is listening for API requests. | [optional] +**StatusSnapshots** | [**List<StatusSnapshotDTO>**](StatusSnapshotDTO.md) | A list of StatusSnapshotDTO objects that provide the actual metric values for the component for this node. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/Docs/NodeSystemDiagnosticsSnapshotDTO.md b/Docs/NodeSystemDiagnosticsSnapshotDTO.md new file mode 100644 index 0000000..1cf4ef8 --- /dev/null +++ b/Docs/NodeSystemDiagnosticsSnapshotDTO.md @@ -0,0 +1,12 @@ +# IO.Swagger.Model.NodeSystemDiagnosticsSnapshotDTO +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**NodeId** | **string** | The unique ID that identifies the node | [optional] +**Address** | **string** | The API address of the node | [optional] +**ApiPort** | **int?** | The API port used to communicate with the node | [optional] +**Snapshot** | [**SystemDiagnosticsSnapshotDTO**](SystemDiagnosticsSnapshotDTO.md) | The System Diagnostics snapshot from the node. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/Docs/OutputPortsApi.md b/Docs/OutputPortsApi.md new file mode 100644 index 0000000..ca89e3e --- /dev/null +++ b/Docs/OutputPortsApi.md @@ -0,0 +1,258 @@ +# IO.Swagger.Api.OutputPortsApi + +All URIs are relative to *http://localhost/nifi-api* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**GetOutputPort**](OutputPortsApi.md#getoutputport) | **GET** /output-ports/{id} | Gets an output port +[**RemoveOutputPort**](OutputPortsApi.md#removeoutputport) | **DELETE** /output-ports/{id} | Deletes an output port +[**UpdateOutputPort**](OutputPortsApi.md#updateoutputport) | **PUT** /output-ports/{id} | Updates an output port +[**UpdateRunStatus**](OutputPortsApi.md#updaterunstatus) | **PUT** /output-ports/{id}/run-status | Updates run status of an output-port + + + +# **GetOutputPort** +> PortEntity GetOutputPort (string id) + +Gets an output port + +### Example +```csharp +using System; +using System.Diagnostics; +using IO.Swagger.Api; +using IO.Swagger.Client; +using IO.Swagger.Model; + +namespace Example +{ + public class GetOutputPortExample + { + public void main() + { + var apiInstance = new OutputPortsApi(); + var id = id_example; // string | The output port id. + + try + { + // Gets an output port + PortEntity result = apiInstance.GetOutputPort(id); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling OutputPortsApi.GetOutputPort: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **string**| The output port id. | + +### Return type + +[**PortEntity**](PortEntity.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **RemoveOutputPort** +> PortEntity RemoveOutputPort (string id, string version = null, string clientId = null, bool? disconnectedNodeAcknowledged = null) + +Deletes an output port + +### Example +```csharp +using System; +using System.Diagnostics; +using IO.Swagger.Api; +using IO.Swagger.Client; +using IO.Swagger.Model; + +namespace Example +{ + public class RemoveOutputPortExample + { + public void main() + { + var apiInstance = new OutputPortsApi(); + var id = id_example; // string | The output port id. + var version = version_example; // string | The revision is used to verify the client is working with the latest version of the flow. (optional) + var clientId = clientId_example; // string | If the client id is not specified, new one will be generated. This value (whether specified or generated) is included in the response. (optional) + var disconnectedNodeAcknowledged = true; // bool? | Acknowledges that this node is disconnected to allow for mutable requests to proceed. (optional) (default to false) + + try + { + // Deletes an output port + PortEntity result = apiInstance.RemoveOutputPort(id, version, clientId, disconnectedNodeAcknowledged); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling OutputPortsApi.RemoveOutputPort: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **string**| The output port id. | + **version** | **string**| The revision is used to verify the client is working with the latest version of the flow. | [optional] + **clientId** | **string**| If the client id is not specified, new one will be generated. This value (whether specified or generated) is included in the response. | [optional] + **disconnectedNodeAcknowledged** | **bool?**| Acknowledges that this node is disconnected to allow for mutable requests to proceed. | [optional] [default to false] + +### Return type + +[**PortEntity**](PortEntity.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **UpdateOutputPort** +> PortEntity UpdateOutputPort (string id, PortEntity body) + +Updates an output port + +### Example +```csharp +using System; +using System.Diagnostics; +using IO.Swagger.Api; +using IO.Swagger.Client; +using IO.Swagger.Model; + +namespace Example +{ + public class UpdateOutputPortExample + { + public void main() + { + var apiInstance = new OutputPortsApi(); + var id = id_example; // string | The output port id. + var body = new PortEntity(); // PortEntity | The output port configuration details. + + try + { + // Updates an output port + PortEntity result = apiInstance.UpdateOutputPort(id, body); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling OutputPortsApi.UpdateOutputPort: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **string**| The output port id. | + **body** | [**PortEntity**](PortEntity.md)| The output port configuration details. | + +### Return type + +[**PortEntity**](PortEntity.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **UpdateRunStatus** +> ProcessorEntity UpdateRunStatus (string id, PortRunStatusEntity body) + +Updates run status of an output-port + +### Example +```csharp +using System; +using System.Diagnostics; +using IO.Swagger.Api; +using IO.Swagger.Client; +using IO.Swagger.Model; + +namespace Example +{ + public class UpdateRunStatusExample + { + public void main() + { + var apiInstance = new OutputPortsApi(); + var id = id_example; // string | The port id. + var body = new PortRunStatusEntity(); // PortRunStatusEntity | The port run status. + + try + { + // Updates run status of an output-port + ProcessorEntity result = apiInstance.UpdateRunStatus(id, body); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling OutputPortsApi.UpdateRunStatus: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **string**| The port id. | + **body** | [**PortRunStatusEntity**](PortRunStatusEntity.md)| The port run status. | + +### Return type + +[**ProcessorEntity**](ProcessorEntity.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/Docs/OutputPortsEntity.md b/Docs/OutputPortsEntity.md new file mode 100644 index 0000000..5afe325 --- /dev/null +++ b/Docs/OutputPortsEntity.md @@ -0,0 +1,9 @@ +# IO.Swagger.Model.OutputPortsEntity +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**OutputPorts** | [**List<PortEntity>**](PortEntity.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/Docs/PeerDTO.md b/Docs/PeerDTO.md new file mode 100644 index 0000000..e82c19f --- /dev/null +++ b/Docs/PeerDTO.md @@ -0,0 +1,12 @@ +# IO.Swagger.Model.PeerDTO +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Hostname** | **string** | The hostname of this peer. | [optional] +**Port** | **int?** | The port number of this peer. | [optional] +**Secure** | **bool?** | Returns if this peer connection is secure. | [optional] +**FlowFileCount** | **int?** | The number of flowFiles this peer holds. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/Docs/PeersEntity.md b/Docs/PeersEntity.md new file mode 100644 index 0000000..4fe815f --- /dev/null +++ b/Docs/PeersEntity.md @@ -0,0 +1,9 @@ +# IO.Swagger.Model.PeersEntity +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Peers** | [**List<PeerDTO>**](PeerDTO.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/Docs/Permissions.md b/Docs/Permissions.md new file mode 100644 index 0000000..6d35dde --- /dev/null +++ b/Docs/Permissions.md @@ -0,0 +1,11 @@ +# IO.Swagger.Model.Permissions +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**CanRead** | **bool?** | Indicates whether the user can read a given resource. | [optional] +**CanWrite** | **bool?** | Indicates whether the user can write a given resource. | [optional] +**CanDelete** | **bool?** | Indicates whether the user can delete a given resource. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/Docs/PermissionsDTO.md b/Docs/PermissionsDTO.md new file mode 100644 index 0000000..ea76d1f --- /dev/null +++ b/Docs/PermissionsDTO.md @@ -0,0 +1,10 @@ +# IO.Swagger.Model.PermissionsDTO +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**CanRead** | **bool?** | Indicates whether the user can read a given resource. | [optional] +**CanWrite** | **bool?** | Indicates whether the user can write a given resource. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/Docs/PoliciesApi.md b/Docs/PoliciesApi.md new file mode 100644 index 0000000..e0c479f --- /dev/null +++ b/Docs/PoliciesApi.md @@ -0,0 +1,320 @@ +# IO.Swagger.Api.PoliciesApi + +All URIs are relative to *http://localhost/nifi-api* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**CreateAccessPolicy**](PoliciesApi.md#createaccesspolicy) | **POST** /policies | Creates an access policy +[**GetAccessPolicy**](PoliciesApi.md#getaccesspolicy) | **GET** /policies/{id} | Gets an access policy +[**GetAccessPolicyForResource**](PoliciesApi.md#getaccesspolicyforresource) | **GET** /policies/{action}/{resource} | Gets an access policy for the specified action and resource +[**RemoveAccessPolicy**](PoliciesApi.md#removeaccesspolicy) | **DELETE** /policies/{id} | Deletes an access policy +[**UpdateAccessPolicy**](PoliciesApi.md#updateaccesspolicy) | **PUT** /policies/{id} | Updates a access policy + + + +# **CreateAccessPolicy** +> AccessPolicyEntity CreateAccessPolicy (AccessPolicyEntity body) + +Creates an access policy + +### Example +```csharp +using System; +using System.Diagnostics; +using IO.Swagger.Api; +using IO.Swagger.Client; +using IO.Swagger.Model; + +namespace Example +{ + public class CreateAccessPolicyExample + { + public void main() + { + var apiInstance = new PoliciesApi(); + var body = new AccessPolicyEntity(); // AccessPolicyEntity | The access policy configuration details. + + try + { + // Creates an access policy + AccessPolicyEntity result = apiInstance.CreateAccessPolicy(body); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling PoliciesApi.CreateAccessPolicy: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **body** | [**AccessPolicyEntity**](AccessPolicyEntity.md)| The access policy configuration details. | + +### Return type + +[**AccessPolicyEntity**](AccessPolicyEntity.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **GetAccessPolicy** +> AccessPolicyEntity GetAccessPolicy (string id) + +Gets an access policy + +### Example +```csharp +using System; +using System.Diagnostics; +using IO.Swagger.Api; +using IO.Swagger.Client; +using IO.Swagger.Model; + +namespace Example +{ + public class GetAccessPolicyExample + { + public void main() + { + var apiInstance = new PoliciesApi(); + var id = id_example; // string | The access policy id. + + try + { + // Gets an access policy + AccessPolicyEntity result = apiInstance.GetAccessPolicy(id); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling PoliciesApi.GetAccessPolicy: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **string**| The access policy id. | + +### Return type + +[**AccessPolicyEntity**](AccessPolicyEntity.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **GetAccessPolicyForResource** +> AccessPolicyEntity GetAccessPolicyForResource (string action, string resource) + +Gets an access policy for the specified action and resource + +Will return the effective policy if no component specific policy exists for the specified action and resource. Must have Read permissions to the policy with the desired action and resource. Permissions for the policy that is returned will be indicated in the response. This means the client could be authorized to get the policy for a given component but the effective policy may be inherited from an ancestor Process Group. If the client does not have permissions to that policy, the response will not include the policy and the permissions in the response will be marked accordingly. If the client does not have permissions to the policy of the desired action and resource a 403 response will be returned. + +### Example +```csharp +using System; +using System.Diagnostics; +using IO.Swagger.Api; +using IO.Swagger.Client; +using IO.Swagger.Model; + +namespace Example +{ + public class GetAccessPolicyForResourceExample + { + public void main() + { + var apiInstance = new PoliciesApi(); + var action = action_example; // string | The request action. + var resource = resource_example; // string | The resource of the policy. + + try + { + // Gets an access policy for the specified action and resource + AccessPolicyEntity result = apiInstance.GetAccessPolicyForResource(action, resource); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling PoliciesApi.GetAccessPolicyForResource: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **action** | **string**| The request action. | + **resource** | **string**| The resource of the policy. | + +### Return type + +[**AccessPolicyEntity**](AccessPolicyEntity.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **RemoveAccessPolicy** +> AccessPolicyEntity RemoveAccessPolicy (string id, string version = null, string clientId = null, bool? disconnectedNodeAcknowledged = null) + +Deletes an access policy + +### Example +```csharp +using System; +using System.Diagnostics; +using IO.Swagger.Api; +using IO.Swagger.Client; +using IO.Swagger.Model; + +namespace Example +{ + public class RemoveAccessPolicyExample + { + public void main() + { + var apiInstance = new PoliciesApi(); + var id = id_example; // string | The access policy id. + var version = version_example; // string | The revision is used to verify the client is working with the latest version of the flow. (optional) + var clientId = clientId_example; // string | If the client id is not specified, new one will be generated. This value (whether specified or generated) is included in the response. (optional) + var disconnectedNodeAcknowledged = true; // bool? | Acknowledges that this node is disconnected to allow for mutable requests to proceed. (optional) (default to false) + + try + { + // Deletes an access policy + AccessPolicyEntity result = apiInstance.RemoveAccessPolicy(id, version, clientId, disconnectedNodeAcknowledged); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling PoliciesApi.RemoveAccessPolicy: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **string**| The access policy id. | + **version** | **string**| The revision is used to verify the client is working with the latest version of the flow. | [optional] + **clientId** | **string**| If the client id is not specified, new one will be generated. This value (whether specified or generated) is included in the response. | [optional] + **disconnectedNodeAcknowledged** | **bool?**| Acknowledges that this node is disconnected to allow for mutable requests to proceed. | [optional] [default to false] + +### Return type + +[**AccessPolicyEntity**](AccessPolicyEntity.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **UpdateAccessPolicy** +> AccessPolicyEntity UpdateAccessPolicy (string id, AccessPolicyEntity body) + +Updates a access policy + +### Example +```csharp +using System; +using System.Diagnostics; +using IO.Swagger.Api; +using IO.Swagger.Client; +using IO.Swagger.Model; + +namespace Example +{ + public class UpdateAccessPolicyExample + { + public void main() + { + var apiInstance = new PoliciesApi(); + var id = id_example; // string | The access policy id. + var body = new AccessPolicyEntity(); // AccessPolicyEntity | The access policy configuration details. + + try + { + // Updates a access policy + AccessPolicyEntity result = apiInstance.UpdateAccessPolicy(id, body); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling PoliciesApi.UpdateAccessPolicy: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **string**| The access policy id. | + **body** | [**AccessPolicyEntity**](AccessPolicyEntity.md)| The access policy configuration details. | + +### Return type + +[**AccessPolicyEntity**](AccessPolicyEntity.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/Docs/PortDTO.md b/Docs/PortDTO.md new file mode 100644 index 0000000..574e721 --- /dev/null +++ b/Docs/PortDTO.md @@ -0,0 +1,21 @@ +# IO.Swagger.Model.PortDTO +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | **string** | The id of the component. | [optional] +**VersionedComponentId** | **string** | The ID of the corresponding component that is under version control | [optional] +**ParentGroupId** | **string** | The id of parent process group of this component if applicable. | [optional] +**Position** | [**PositionDTO**](PositionDTO.md) | The position of this component in the UI if applicable. | [optional] +**Name** | **string** | The name of the port. | [optional] +**Comments** | **string** | The comments for the port. | [optional] +**State** | **string** | The state of the port. | [optional] +**Type** | **string** | The type of port. | [optional] +**Transmitting** | **bool?** | Whether the port has incoming or output connections to a remote NiFi. This is only applicable when the port is running in the root group. | [optional] +**ConcurrentlySchedulableTaskCount** | **int?** | The number of tasks that should be concurrently scheduled for the port. | [optional] +**UserAccessControl** | **List<string>** | The users that are allowed to access the port. | [optional] +**GroupAccessControl** | **List<string>** | The user groups that are allowed to access the port. | [optional] +**ValidationErrors** | **List<string>** | Gets the validation errors from this port. These validation errors represent the problems with the port that must be resolved before it can be started. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/Docs/PortEntity.md b/Docs/PortEntity.md new file mode 100644 index 0000000..c2cf021 --- /dev/null +++ b/Docs/PortEntity.md @@ -0,0 +1,19 @@ +# IO.Swagger.Model.PortEntity +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Revision** | [**RevisionDTO**](RevisionDTO.md) | The revision for this request/response. The revision is required for any mutable flow requests and is included in all responses. | [optional] +**Id** | **string** | The id of the component. | [optional] +**Uri** | **string** | The URI for futures requests to the component. | [optional] +**Position** | [**PositionDTO**](PositionDTO.md) | The position of this component in the UI if applicable. | [optional] +**Permissions** | [**PermissionsDTO**](PermissionsDTO.md) | The permissions for this component. | [optional] +**Bulletins** | [**List<BulletinEntity>**](BulletinEntity.md) | The bulletins for this component. | [optional] +**DisconnectedNodeAcknowledged** | **bool?** | Acknowledges that this node is disconnected to allow for mutable requests to proceed. | [optional] +**Component** | [**PortDTO**](PortDTO.md) | | [optional] +**Status** | [**PortStatusDTO**](PortStatusDTO.md) | The status of the port. | [optional] +**PortType** | **string** | | [optional] +**OperatePermissions** | [**PermissionsDTO**](PermissionsDTO.md) | The permissions for this component operations. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/Docs/PortRunStatusEntity.md b/Docs/PortRunStatusEntity.md new file mode 100644 index 0000000..bdd1ac9 --- /dev/null +++ b/Docs/PortRunStatusEntity.md @@ -0,0 +1,11 @@ +# IO.Swagger.Model.PortRunStatusEntity +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Revision** | [**RevisionDTO**](RevisionDTO.md) | The revision for this request/response. The revision is required for any mutable flow requests and is included in all responses. | [optional] +**State** | **string** | The run status of the Port. | [optional] +**DisconnectedNodeAcknowledged** | **bool?** | Acknowledges that this node is disconnected to allow for mutable requests to proceed. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/Docs/PortStatusDTO.md b/Docs/PortStatusDTO.md new file mode 100644 index 0000000..d3d462e --- /dev/null +++ b/Docs/PortStatusDTO.md @@ -0,0 +1,16 @@ +# IO.Swagger.Model.PortStatusDTO +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | **string** | The id of the port. | [optional] +**GroupId** | **string** | The id of the parent process group of the port. | [optional] +**Name** | **string** | The name of the port. | [optional] +**Transmitting** | **bool?** | Whether the port has incoming or outgoing connections to a remote NiFi. | [optional] +**RunStatus** | **string** | The run status of the port. | [optional] +**StatsLastRefreshed** | **string** | The time the status for the process group was last refreshed. | [optional] +**AggregateSnapshot** | [**PortStatusSnapshotDTO**](PortStatusSnapshotDTO.md) | A status snapshot that represents the aggregate stats of all nodes in the cluster. If the NiFi instance is a standalone instance, rather than a cluster, this represents the stats of the single instance. | [optional] +**NodeSnapshots** | [**List<NodePortStatusSnapshotDTO>**](NodePortStatusSnapshotDTO.md) | A status snapshot for each node in the cluster. If the NiFi instance is a standalone instance, rather than a cluster, this may be null. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/Docs/PortStatusEntity.md b/Docs/PortStatusEntity.md new file mode 100644 index 0000000..651f660 --- /dev/null +++ b/Docs/PortStatusEntity.md @@ -0,0 +1,10 @@ +# IO.Swagger.Model.PortStatusEntity +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**PortStatus** | [**PortStatusDTO**](PortStatusDTO.md) | | [optional] +**CanRead** | **bool?** | Indicates whether the user can read a given resource. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/Docs/PortStatusSnapshotDTO.md b/Docs/PortStatusSnapshotDTO.md new file mode 100644 index 0000000..93ac67e --- /dev/null +++ b/Docs/PortStatusSnapshotDTO.md @@ -0,0 +1,20 @@ +# IO.Swagger.Model.PortStatusSnapshotDTO +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | **string** | The id of the port. | [optional] +**GroupId** | **string** | The id of the parent process group of the port. | [optional] +**Name** | **string** | The name of the port. | [optional] +**ActiveThreadCount** | **int?** | The active thread count for the port. | [optional] +**FlowFilesIn** | **int?** | The number of FlowFiles that have been accepted in the last 5 minutes. | [optional] +**BytesIn** | **long?** | The size of hte FlowFiles that have been accepted in the last 5 minutes. | [optional] +**Input** | **string** | The count/size of flowfiles that have been accepted in the last 5 minutes. | [optional] +**FlowFilesOut** | **int?** | The number of FlowFiles that have been processed in the last 5 minutes. | [optional] +**BytesOut** | **long?** | The number of bytes that have been processed in the last 5 minutes. | [optional] +**Output** | **string** | The count/size of flowfiles that have been processed in the last 5 minutes. | [optional] +**Transmitting** | **bool?** | Whether the port has incoming or outgoing connections to a remote NiFi. | [optional] +**RunStatus** | **string** | The run status of the port. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/Docs/PortStatusSnapshotEntity.md b/Docs/PortStatusSnapshotEntity.md new file mode 100644 index 0000000..62f04aa --- /dev/null +++ b/Docs/PortStatusSnapshotEntity.md @@ -0,0 +1,11 @@ +# IO.Swagger.Model.PortStatusSnapshotEntity +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | **string** | The id of the port. | [optional] +**PortStatusSnapshot** | [**PortStatusSnapshotDTO**](PortStatusSnapshotDTO.md) | | [optional] +**CanRead** | **bool?** | Indicates whether the user can read a given resource. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/Docs/Position.md b/Docs/Position.md new file mode 100644 index 0000000..0aa0a36 --- /dev/null +++ b/Docs/Position.md @@ -0,0 +1,10 @@ +# IO.Swagger.Model.Position +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**X** | **double?** | The x coordinate. | [optional] +**Y** | **double?** | The y coordinate. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/Docs/PositionDTO.md b/Docs/PositionDTO.md new file mode 100644 index 0000000..bd19e3b --- /dev/null +++ b/Docs/PositionDTO.md @@ -0,0 +1,10 @@ +# IO.Swagger.Model.PositionDTO +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**X** | **double?** | The x coordinate. | [optional] +**Y** | **double?** | The y coordinate. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/Docs/PreviousValueDTO.md b/Docs/PreviousValueDTO.md new file mode 100644 index 0000000..782728d --- /dev/null +++ b/Docs/PreviousValueDTO.md @@ -0,0 +1,11 @@ +# IO.Swagger.Model.PreviousValueDTO +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**PreviousValue** | **string** | The previous value. | [optional] +**Timestamp** | **string** | The timestamp when the value was modified. | [optional] +**UserIdentity** | **string** | The user who changed the previous value. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/Docs/PrioritizerTypesEntity.md b/Docs/PrioritizerTypesEntity.md new file mode 100644 index 0000000..512f2fa --- /dev/null +++ b/Docs/PrioritizerTypesEntity.md @@ -0,0 +1,9 @@ +# IO.Swagger.Model.PrioritizerTypesEntity +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**PrioritizerTypes** | [**List<DocumentedTypeDTO>**](DocumentedTypeDTO.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/Docs/ProcessGroupDTO.md b/Docs/ProcessGroupDTO.md new file mode 100644 index 0000000..5dffcde --- /dev/null +++ b/Docs/ProcessGroupDTO.md @@ -0,0 +1,30 @@ +# IO.Swagger.Model.ProcessGroupDTO +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | **string** | The id of the component. | [optional] +**VersionedComponentId** | **string** | The ID of the corresponding component that is under version control | [optional] +**ParentGroupId** | **string** | The id of parent process group of this component if applicable. | [optional] +**Position** | [**PositionDTO**](PositionDTO.md) | The position of this component in the UI if applicable. | [optional] +**Name** | **string** | The name of the process group. | [optional] +**Comments** | **string** | The comments for the process group. | [optional] +**Variables** | **Dictionary<string, string>** | The variables that are configured for the Process Group. Note that this map contains only those variables that are defined on this Process Group and not any variables that are defined in the parent Process Group, etc. I.e., this Map will not contain all variables that are accessible by components in this Process Group by rather only the variables that are defined for this Process Group itself. | [optional] +**VersionControlInformation** | [**VersionControlInformationDTO**](VersionControlInformationDTO.md) | The Version Control information that indicates which Flow Registry, and where in the Flow Registry, this Process Group is tracking to; or null if this Process Group is not under version control | [optional] +**RunningCount** | **int?** | The number of running components in this process group. | [optional] +**StoppedCount** | **int?** | The number of stopped components in the process group. | [optional] +**InvalidCount** | **int?** | The number of invalid components in the process group. | [optional] +**DisabledCount** | **int?** | The number of disabled components in the process group. | [optional] +**ActiveRemotePortCount** | **int?** | The number of active remote ports in the process group. | [optional] +**InactiveRemotePortCount** | **int?** | The number of inactive remote ports in the process group. | [optional] +**UpToDateCount** | **int?** | The number of up to date versioned process groups in the process group. | [optional] +**LocallyModifiedCount** | **int?** | The number of locally modified versioned process groups in the process group. | [optional] +**StaleCount** | **int?** | The number of stale versioned process groups in the process group. | [optional] +**LocallyModifiedAndStaleCount** | **int?** | The number of locally modified and stale versioned process groups in the process group. | [optional] +**SyncFailureCount** | **int?** | The number of versioned process groups in the process group that are unable to sync to a registry. | [optional] +**InputPortCount** | **int?** | The number of input ports in the process group. | [optional] +**OutputPortCount** | **int?** | The number of output ports in the process group. | [optional] +**Contents** | [**FlowSnippetDTO**](FlowSnippetDTO.md) | The contents of this process group. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/Docs/ProcessGroupEntity.md b/Docs/ProcessGroupEntity.md new file mode 100644 index 0000000..5a25059 --- /dev/null +++ b/Docs/ProcessGroupEntity.md @@ -0,0 +1,32 @@ +# IO.Swagger.Model.ProcessGroupEntity +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Revision** | [**RevisionDTO**](RevisionDTO.md) | The revision for this request/response. The revision is required for any mutable flow requests and is included in all responses. | [optional] +**Id** | **string** | The id of the component. | [optional] +**Uri** | **string** | The URI for futures requests to the component. | [optional] +**Position** | [**PositionDTO**](PositionDTO.md) | The position of this component in the UI if applicable. | [optional] +**Permissions** | [**PermissionsDTO**](PermissionsDTO.md) | The permissions for this component. | [optional] +**Bulletins** | [**List<BulletinEntity>**](BulletinEntity.md) | The bulletins for this component. | [optional] +**DisconnectedNodeAcknowledged** | **bool?** | Acknowledges that this node is disconnected to allow for mutable requests to proceed. | [optional] +**Component** | [**ProcessGroupDTO**](ProcessGroupDTO.md) | | [optional] +**Status** | [**ProcessGroupStatusDTO**](ProcessGroupStatusDTO.md) | The status of the process group. | [optional] +**VersionedFlowSnapshot** | [**VersionedFlowSnapshot**](VersionedFlowSnapshot.md) | Returns the Versioned Flow that describes the contents of the Versioned Flow to be imported | [optional] +**RunningCount** | **int?** | The number of running components in this process group. | [optional] +**StoppedCount** | **int?** | The number of stopped components in the process group. | [optional] +**InvalidCount** | **int?** | The number of invalid components in the process group. | [optional] +**DisabledCount** | **int?** | The number of disabled components in the process group. | [optional] +**ActiveRemotePortCount** | **int?** | The number of active remote ports in the process group. | [optional] +**InactiveRemotePortCount** | **int?** | The number of inactive remote ports in the process group. | [optional] +**VersionedFlowState** | **string** | The current state of the Process Group, as it relates to the Versioned Flow | [optional] +**UpToDateCount** | **int?** | The number of up to date versioned process groups in the process group. | [optional] +**LocallyModifiedCount** | **int?** | The number of locally modified versioned process groups in the process group. | [optional] +**StaleCount** | **int?** | The number of stale versioned process groups in the process group. | [optional] +**LocallyModifiedAndStaleCount** | **int?** | The number of locally modified and stale versioned process groups in the process group. | [optional] +**SyncFailureCount** | **int?** | The number of versioned process groups in the process group that are unable to sync to a registry. | [optional] +**InputPortCount** | **int?** | The number of input ports in the process group. | [optional] +**OutputPortCount** | **int?** | The number of output ports in the process group. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/Docs/ProcessGroupFlowDTO.md b/Docs/ProcessGroupFlowDTO.md new file mode 100644 index 0000000..2a3a833 --- /dev/null +++ b/Docs/ProcessGroupFlowDTO.md @@ -0,0 +1,14 @@ +# IO.Swagger.Model.ProcessGroupFlowDTO +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | **string** | The id of the component. | [optional] +**Uri** | **string** | The URI for futures requests to the component. | [optional] +**ParentGroupId** | **string** | The id of parent process group of this component if applicable. | [optional] +**Breadcrumb** | [**FlowBreadcrumbEntity**](FlowBreadcrumbEntity.md) | The breadcrumb of the process group. | [optional] +**Flow** | [**FlowDTO**](FlowDTO.md) | The flow structure starting at this Process Group. | [optional] +**LastRefreshed** | **string** | The time the flow for the process group was last refreshed. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/Docs/ProcessGroupFlowEntity.md b/Docs/ProcessGroupFlowEntity.md new file mode 100644 index 0000000..8e1affd --- /dev/null +++ b/Docs/ProcessGroupFlowEntity.md @@ -0,0 +1,10 @@ +# IO.Swagger.Model.ProcessGroupFlowEntity +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Permissions** | [**PermissionsDTO**](PermissionsDTO.md) | The access policy for this process group. | [optional] +**ProcessGroupFlow** | [**ProcessGroupFlowDTO**](ProcessGroupFlowDTO.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/Docs/ProcessGroupStatusDTO.md b/Docs/ProcessGroupStatusDTO.md new file mode 100644 index 0000000..da6b81a --- /dev/null +++ b/Docs/ProcessGroupStatusDTO.md @@ -0,0 +1,13 @@ +# IO.Swagger.Model.ProcessGroupStatusDTO +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | **string** | The ID of the Process Group | [optional] +**Name** | **string** | The name of the Process Group | [optional] +**StatsLastRefreshed** | **string** | The time the status for the process group was last refreshed. | [optional] +**AggregateSnapshot** | [**ProcessGroupStatusSnapshotDTO**](ProcessGroupStatusSnapshotDTO.md) | The aggregate status of all nodes in the cluster | [optional] +**NodeSnapshots** | [**List<NodeProcessGroupStatusSnapshotDTO>**](NodeProcessGroupStatusSnapshotDTO.md) | The status reported by each node in the cluster. If the NiFi instance is a standalone instance, rather than a clustered instance, this value may be null. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/Docs/ProcessGroupStatusEntity.md b/Docs/ProcessGroupStatusEntity.md new file mode 100644 index 0000000..fe397e5 --- /dev/null +++ b/Docs/ProcessGroupStatusEntity.md @@ -0,0 +1,10 @@ +# IO.Swagger.Model.ProcessGroupStatusEntity +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ProcessGroupStatus** | [**ProcessGroupStatusDTO**](ProcessGroupStatusDTO.md) | | [optional] +**CanRead** | **bool?** | Indicates whether the user can read a given resource. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/Docs/ProcessGroupStatusSnapshotDTO.md b/Docs/ProcessGroupStatusSnapshotDTO.md new file mode 100644 index 0000000..1657855 --- /dev/null +++ b/Docs/ProcessGroupStatusSnapshotDTO.md @@ -0,0 +1,43 @@ +# IO.Swagger.Model.ProcessGroupStatusSnapshotDTO +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | **string** | The id of the process group. | [optional] +**Name** | **string** | The name of this process group. | [optional] +**ConnectionStatusSnapshots** | [**List<ConnectionStatusSnapshotEntity>**](ConnectionStatusSnapshotEntity.md) | The status of all connections in the process group. | [optional] +**ProcessorStatusSnapshots** | [**List<ProcessorStatusSnapshotEntity>**](ProcessorStatusSnapshotEntity.md) | The status of all processors in the process group. | [optional] +**ProcessGroupStatusSnapshots** | [**List<ProcessGroupStatusSnapshotEntity>**](ProcessGroupStatusSnapshotEntity.md) | The status of all process groups in the process group. | [optional] +**RemoteProcessGroupStatusSnapshots** | [**List<RemoteProcessGroupStatusSnapshotEntity>**](RemoteProcessGroupStatusSnapshotEntity.md) | The status of all remote process groups in the process group. | [optional] +**InputPortStatusSnapshots** | [**List<PortStatusSnapshotEntity>**](PortStatusSnapshotEntity.md) | The status of all input ports in the process group. | [optional] +**OutputPortStatusSnapshots** | [**List<PortStatusSnapshotEntity>**](PortStatusSnapshotEntity.md) | The status of all output ports in the process group. | [optional] +**VersionedFlowState** | **string** | The current state of the Process Group, as it relates to the Versioned Flow | [optional] +**FlowFilesIn** | **int?** | The number of FlowFiles that have come into this ProcessGroup in the last 5 minutes | [optional] +**BytesIn** | **long?** | The number of bytes that have come into this ProcessGroup in the last 5 minutes | [optional] +**Input** | **string** | The input count/size for the process group in the last 5 minutes (pretty printed). | [optional] +**FlowFilesQueued** | **int?** | The number of FlowFiles that are queued up in this ProcessGroup right now | [optional] +**BytesQueued** | **long?** | The number of bytes that are queued up in this ProcessGroup right now | [optional] +**Queued** | **string** | The count/size that is queued in the the process group. | [optional] +**QueuedCount** | **string** | The count that is queued for the process group. | [optional] +**QueuedSize** | **string** | The size that is queued for the process group. | [optional] +**BytesRead** | **long?** | The number of bytes read by components in this ProcessGroup in the last 5 minutes | [optional] +**Read** | **string** | The number of bytes read in the last 5 minutes. | [optional] +**BytesWritten** | **long?** | The number of bytes written by components in this ProcessGroup in the last 5 minutes | [optional] +**Written** | **string** | The number of bytes written in the last 5 minutes. | [optional] +**FlowFilesOut** | **int?** | The number of FlowFiles transferred out of this ProcessGroup in the last 5 minutes | [optional] +**BytesOut** | **long?** | The number of bytes transferred out of this ProcessGroup in the last 5 minutes | [optional] +**Output** | **string** | The output count/size for the process group in the last 5 minutes. | [optional] +**FlowFilesTransferred** | **int?** | The number of FlowFiles transferred in this ProcessGroup in the last 5 minutes | [optional] +**BytesTransferred** | **long?** | The number of bytes transferred in this ProcessGroup in the last 5 minutes | [optional] +**Transferred** | **string** | The count/size transferred to/from queues in the process group in the last 5 minutes. | [optional] +**BytesReceived** | **long?** | The number of bytes received from external sources by components within this ProcessGroup in the last 5 minutes | [optional] +**FlowFilesReceived** | **int?** | The number of FlowFiles received from external sources by components within this ProcessGroup in the last 5 minutes | [optional] +**Received** | **string** | The count/size sent to the process group in the last 5 minutes. | [optional] +**BytesSent** | **long?** | The number of bytes sent to an external sink by components within this ProcessGroup in the last 5 minutes | [optional] +**FlowFilesSent** | **int?** | The number of FlowFiles sent to an external sink by components within this ProcessGroup in the last 5 minutes | [optional] +**Sent** | **string** | The count/size sent from this process group in the last 5 minutes. | [optional] +**ActiveThreadCount** | **int?** | The active thread count for this process group. | [optional] +**TerminatedThreadCount** | **int?** | The number of threads currently terminated for the process group. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/Docs/ProcessGroupStatusSnapshotEntity.md b/Docs/ProcessGroupStatusSnapshotEntity.md new file mode 100644 index 0000000..35c48aa --- /dev/null +++ b/Docs/ProcessGroupStatusSnapshotEntity.md @@ -0,0 +1,11 @@ +# IO.Swagger.Model.ProcessGroupStatusSnapshotEntity +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | **string** | The id of the process group. | [optional] +**ProcessGroupStatusSnapshot** | [**ProcessGroupStatusSnapshotDTO**](ProcessGroupStatusSnapshotDTO.md) | | [optional] +**CanRead** | **bool?** | Indicates whether the user can read a given resource. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/Docs/ProcessGroupsApi.md b/Docs/ProcessGroupsApi.md new file mode 100644 index 0000000..2bbf9a7 --- /dev/null +++ b/Docs/ProcessGroupsApi.md @@ -0,0 +1,1928 @@ +# IO.Swagger.Api.ProcessGroupsApi + +All URIs are relative to *http://localhost/nifi-api* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**CopySnippet**](ProcessGroupsApi.md#copysnippet) | **POST** /process-groups/{id}/snippet-instance | Copies a snippet and discards it. +[**CreateConnection**](ProcessGroupsApi.md#createconnection) | **POST** /process-groups/{id}/connections | Creates a connection +[**CreateControllerService**](ProcessGroupsApi.md#createcontrollerservice) | **POST** /process-groups/{id}/controller-services | Creates a new controller service +[**CreateFunnel**](ProcessGroupsApi.md#createfunnel) | **POST** /process-groups/{id}/funnels | Creates a funnel +[**CreateInputPort**](ProcessGroupsApi.md#createinputport) | **POST** /process-groups/{id}/input-ports | Creates an input port +[**CreateLabel**](ProcessGroupsApi.md#createlabel) | **POST** /process-groups/{id}/labels | Creates a label +[**CreateOutputPort**](ProcessGroupsApi.md#createoutputport) | **POST** /process-groups/{id}/output-ports | Creates an output port +[**CreateProcessGroup**](ProcessGroupsApi.md#createprocessgroup) | **POST** /process-groups/{id}/process-groups | Creates a process group +[**CreateProcessor**](ProcessGroupsApi.md#createprocessor) | **POST** /process-groups/{id}/processors | Creates a new processor +[**CreateRemoteProcessGroup**](ProcessGroupsApi.md#createremoteprocessgroup) | **POST** /process-groups/{id}/remote-process-groups | Creates a new process group +[**CreateTemplate**](ProcessGroupsApi.md#createtemplate) | **POST** /process-groups/{id}/templates | Creates a template and discards the specified snippet. +[**DeleteVariableRegistryUpdateRequest**](ProcessGroupsApi.md#deletevariableregistryupdaterequest) | **DELETE** /process-groups/{groupId}/variable-registry/update-requests/{updateId} | Deletes an update request for a process group's variable registry. If the request is not yet complete, it will automatically be cancelled. +[**GetConnections**](ProcessGroupsApi.md#getconnections) | **GET** /process-groups/{id}/connections | Gets all connections +[**GetFunnels**](ProcessGroupsApi.md#getfunnels) | **GET** /process-groups/{id}/funnels | Gets all funnels +[**GetInputPorts**](ProcessGroupsApi.md#getinputports) | **GET** /process-groups/{id}/input-ports | Gets all input ports +[**GetLabels**](ProcessGroupsApi.md#getlabels) | **GET** /process-groups/{id}/labels | Gets all labels +[**GetLocalModifications**](ProcessGroupsApi.md#getlocalmodifications) | **GET** /process-groups/{id}/local-modifications | Gets a list of local modifications to the Process Group since it was last synchronized with the Flow Registry +[**GetOutputPorts**](ProcessGroupsApi.md#getoutputports) | **GET** /process-groups/{id}/output-ports | Gets all output ports +[**GetProcessGroup**](ProcessGroupsApi.md#getprocessgroup) | **GET** /process-groups/{id} | Gets a process group +[**GetProcessGroups**](ProcessGroupsApi.md#getprocessgroups) | **GET** /process-groups/{id}/process-groups | Gets all process groups +[**GetProcessors**](ProcessGroupsApi.md#getprocessors) | **GET** /process-groups/{id}/processors | Gets all processors +[**GetRemoteProcessGroups**](ProcessGroupsApi.md#getremoteprocessgroups) | **GET** /process-groups/{id}/remote-process-groups | Gets all remote process groups +[**GetVariableRegistry**](ProcessGroupsApi.md#getvariableregistry) | **GET** /process-groups/{id}/variable-registry | Gets a process group's variable registry +[**GetVariableRegistryUpdateRequest**](ProcessGroupsApi.md#getvariableregistryupdaterequest) | **GET** /process-groups/{groupId}/variable-registry/update-requests/{updateId} | Gets a process group's variable registry +[**ImportTemplate**](ProcessGroupsApi.md#importtemplate) | **POST** /process-groups/{id}/templates/import | Imports a template +[**InstantiateTemplate**](ProcessGroupsApi.md#instantiatetemplate) | **POST** /process-groups/{id}/template-instance | Instantiates a template +[**RemoveProcessGroup**](ProcessGroupsApi.md#removeprocessgroup) | **DELETE** /process-groups/{id} | Deletes a process group +[**SubmitUpdateVariableRegistryRequest**](ProcessGroupsApi.md#submitupdatevariableregistryrequest) | **POST** /process-groups/{id}/variable-registry/update-requests | Submits a request to update a process group's variable registry +[**UpdateProcessGroup**](ProcessGroupsApi.md#updateprocessgroup) | **PUT** /process-groups/{id} | Updates a process group +[**UpdateVariableRegistry**](ProcessGroupsApi.md#updatevariableregistry) | **PUT** /process-groups/{id}/variable-registry | Updates the contents of a Process Group's variable Registry +[**UploadTemplate**](ProcessGroupsApi.md#uploadtemplate) | **POST** /process-groups/{id}/templates/upload | Uploads a template + + + +# **CopySnippet** +> FlowEntity CopySnippet (string id, CopySnippetRequestEntity body) + +Copies a snippet and discards it. + +### Example +```csharp +using System; +using System.Diagnostics; +using IO.Swagger.Api; +using IO.Swagger.Client; +using IO.Swagger.Model; + +namespace Example +{ + public class CopySnippetExample + { + public void main() + { + var apiInstance = new ProcessGroupsApi(); + var id = id_example; // string | The process group id. + var body = new CopySnippetRequestEntity(); // CopySnippetRequestEntity | The copy snippet request. + + try + { + // Copies a snippet and discards it. + FlowEntity result = apiInstance.CopySnippet(id, body); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling ProcessGroupsApi.CopySnippet: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **string**| The process group id. | + **body** | [**CopySnippetRequestEntity**](CopySnippetRequestEntity.md)| The copy snippet request. | + +### Return type + +[**FlowEntity**](FlowEntity.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **CreateConnection** +> ConnectionEntity CreateConnection (string id, ConnectionEntity body) + +Creates a connection + +### Example +```csharp +using System; +using System.Diagnostics; +using IO.Swagger.Api; +using IO.Swagger.Client; +using IO.Swagger.Model; + +namespace Example +{ + public class CreateConnectionExample + { + public void main() + { + var apiInstance = new ProcessGroupsApi(); + var id = id_example; // string | The process group id. + var body = new ConnectionEntity(); // ConnectionEntity | The connection configuration details. + + try + { + // Creates a connection + ConnectionEntity result = apiInstance.CreateConnection(id, body); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling ProcessGroupsApi.CreateConnection: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **string**| The process group id. | + **body** | [**ConnectionEntity**](ConnectionEntity.md)| The connection configuration details. | + +### Return type + +[**ConnectionEntity**](ConnectionEntity.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **CreateControllerService** +> ControllerServiceEntity CreateControllerService (string id, ControllerServiceEntity body) + +Creates a new controller service + +### Example +```csharp +using System; +using System.Diagnostics; +using IO.Swagger.Api; +using IO.Swagger.Client; +using IO.Swagger.Model; + +namespace Example +{ + public class CreateControllerServiceExample + { + public void main() + { + var apiInstance = new ProcessGroupsApi(); + var id = id_example; // string | The process group id. + var body = new ControllerServiceEntity(); // ControllerServiceEntity | The controller service configuration details. + + try + { + // Creates a new controller service + ControllerServiceEntity result = apiInstance.CreateControllerService(id, body); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling ProcessGroupsApi.CreateControllerService: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **string**| The process group id. | + **body** | [**ControllerServiceEntity**](ControllerServiceEntity.md)| The controller service configuration details. | + +### Return type + +[**ControllerServiceEntity**](ControllerServiceEntity.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **CreateFunnel** +> FunnelEntity CreateFunnel (string id, FunnelEntity body) + +Creates a funnel + +### Example +```csharp +using System; +using System.Diagnostics; +using IO.Swagger.Api; +using IO.Swagger.Client; +using IO.Swagger.Model; + +namespace Example +{ + public class CreateFunnelExample + { + public void main() + { + var apiInstance = new ProcessGroupsApi(); + var id = id_example; // string | The process group id. + var body = new FunnelEntity(); // FunnelEntity | The funnel configuration details. + + try + { + // Creates a funnel + FunnelEntity result = apiInstance.CreateFunnel(id, body); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling ProcessGroupsApi.CreateFunnel: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **string**| The process group id. | + **body** | [**FunnelEntity**](FunnelEntity.md)| The funnel configuration details. | + +### Return type + +[**FunnelEntity**](FunnelEntity.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **CreateInputPort** +> PortEntity CreateInputPort (string id, PortEntity body) + +Creates an input port + +### Example +```csharp +using System; +using System.Diagnostics; +using IO.Swagger.Api; +using IO.Swagger.Client; +using IO.Swagger.Model; + +namespace Example +{ + public class CreateInputPortExample + { + public void main() + { + var apiInstance = new ProcessGroupsApi(); + var id = id_example; // string | The process group id. + var body = new PortEntity(); // PortEntity | The input port configuration details. + + try + { + // Creates an input port + PortEntity result = apiInstance.CreateInputPort(id, body); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling ProcessGroupsApi.CreateInputPort: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **string**| The process group id. | + **body** | [**PortEntity**](PortEntity.md)| The input port configuration details. | + +### Return type + +[**PortEntity**](PortEntity.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **CreateLabel** +> LabelEntity CreateLabel (string id, LabelEntity body) + +Creates a label + +### Example +```csharp +using System; +using System.Diagnostics; +using IO.Swagger.Api; +using IO.Swagger.Client; +using IO.Swagger.Model; + +namespace Example +{ + public class CreateLabelExample + { + public void main() + { + var apiInstance = new ProcessGroupsApi(); + var id = id_example; // string | The process group id. + var body = new LabelEntity(); // LabelEntity | The label configuration details. + + try + { + // Creates a label + LabelEntity result = apiInstance.CreateLabel(id, body); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling ProcessGroupsApi.CreateLabel: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **string**| The process group id. | + **body** | [**LabelEntity**](LabelEntity.md)| The label configuration details. | + +### Return type + +[**LabelEntity**](LabelEntity.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **CreateOutputPort** +> PortEntity CreateOutputPort (string id, PortEntity body) + +Creates an output port + +### Example +```csharp +using System; +using System.Diagnostics; +using IO.Swagger.Api; +using IO.Swagger.Client; +using IO.Swagger.Model; + +namespace Example +{ + public class CreateOutputPortExample + { + public void main() + { + var apiInstance = new ProcessGroupsApi(); + var id = id_example; // string | The process group id. + var body = new PortEntity(); // PortEntity | The output port configuration. + + try + { + // Creates an output port + PortEntity result = apiInstance.CreateOutputPort(id, body); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling ProcessGroupsApi.CreateOutputPort: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **string**| The process group id. | + **body** | [**PortEntity**](PortEntity.md)| The output port configuration. | + +### Return type + +[**PortEntity**](PortEntity.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **CreateProcessGroup** +> ProcessGroupEntity CreateProcessGroup (string id, ProcessGroupEntity body) + +Creates a process group + +### Example +```csharp +using System; +using System.Diagnostics; +using IO.Swagger.Api; +using IO.Swagger.Client; +using IO.Swagger.Model; + +namespace Example +{ + public class CreateProcessGroupExample + { + public void main() + { + var apiInstance = new ProcessGroupsApi(); + var id = id_example; // string | The process group id. + var body = new ProcessGroupEntity(); // ProcessGroupEntity | The process group configuration details. + + try + { + // Creates a process group + ProcessGroupEntity result = apiInstance.CreateProcessGroup(id, body); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling ProcessGroupsApi.CreateProcessGroup: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **string**| The process group id. | + **body** | [**ProcessGroupEntity**](ProcessGroupEntity.md)| The process group configuration details. | + +### Return type + +[**ProcessGroupEntity**](ProcessGroupEntity.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **CreateProcessor** +> ProcessorEntity CreateProcessor (string id, ProcessorEntity body) + +Creates a new processor + +### Example +```csharp +using System; +using System.Diagnostics; +using IO.Swagger.Api; +using IO.Swagger.Client; +using IO.Swagger.Model; + +namespace Example +{ + public class CreateProcessorExample + { + public void main() + { + var apiInstance = new ProcessGroupsApi(); + var id = id_example; // string | The process group id. + var body = new ProcessorEntity(); // ProcessorEntity | The processor configuration details. + + try + { + // Creates a new processor + ProcessorEntity result = apiInstance.CreateProcessor(id, body); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling ProcessGroupsApi.CreateProcessor: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **string**| The process group id. | + **body** | [**ProcessorEntity**](ProcessorEntity.md)| The processor configuration details. | + +### Return type + +[**ProcessorEntity**](ProcessorEntity.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **CreateRemoteProcessGroup** +> RemoteProcessGroupEntity CreateRemoteProcessGroup (string id, RemoteProcessGroupEntity body) + +Creates a new process group + +### Example +```csharp +using System; +using System.Diagnostics; +using IO.Swagger.Api; +using IO.Swagger.Client; +using IO.Swagger.Model; + +namespace Example +{ + public class CreateRemoteProcessGroupExample + { + public void main() + { + var apiInstance = new ProcessGroupsApi(); + var id = id_example; // string | The process group id. + var body = new RemoteProcessGroupEntity(); // RemoteProcessGroupEntity | The remote process group configuration details. + + try + { + // Creates a new process group + RemoteProcessGroupEntity result = apiInstance.CreateRemoteProcessGroup(id, body); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling ProcessGroupsApi.CreateRemoteProcessGroup: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **string**| The process group id. | + **body** | [**RemoteProcessGroupEntity**](RemoteProcessGroupEntity.md)| The remote process group configuration details. | + +### Return type + +[**RemoteProcessGroupEntity**](RemoteProcessGroupEntity.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **CreateTemplate** +> TemplateEntity CreateTemplate (string id, CreateTemplateRequestEntity body) + +Creates a template and discards the specified snippet. + +### Example +```csharp +using System; +using System.Diagnostics; +using IO.Swagger.Api; +using IO.Swagger.Client; +using IO.Swagger.Model; + +namespace Example +{ + public class CreateTemplateExample + { + public void main() + { + var apiInstance = new ProcessGroupsApi(); + var id = id_example; // string | The process group id. + var body = new CreateTemplateRequestEntity(); // CreateTemplateRequestEntity | The create template request. + + try + { + // Creates a template and discards the specified snippet. + TemplateEntity result = apiInstance.CreateTemplate(id, body); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling ProcessGroupsApi.CreateTemplate: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **string**| The process group id. | + **body** | [**CreateTemplateRequestEntity**](CreateTemplateRequestEntity.md)| The create template request. | + +### Return type + +[**TemplateEntity**](TemplateEntity.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **DeleteVariableRegistryUpdateRequest** +> VariableRegistryUpdateRequestEntity DeleteVariableRegistryUpdateRequest (string groupId, string updateId, bool? disconnectedNodeAcknowledged = null) + +Deletes an update request for a process group's variable registry. If the request is not yet complete, it will automatically be cancelled. + +Note: This endpoint is subject to change as NiFi and it's REST API evolve. + +### Example +```csharp +using System; +using System.Diagnostics; +using IO.Swagger.Api; +using IO.Swagger.Client; +using IO.Swagger.Model; + +namespace Example +{ + public class DeleteVariableRegistryUpdateRequestExample + { + public void main() + { + var apiInstance = new ProcessGroupsApi(); + var groupId = groupId_example; // string | The process group id. + var updateId = updateId_example; // string | The ID of the Variable Registry Update Request + var disconnectedNodeAcknowledged = true; // bool? | Acknowledges that this node is disconnected to allow for mutable requests to proceed. (optional) (default to false) + + try + { + // Deletes an update request for a process group's variable registry. If the request is not yet complete, it will automatically be cancelled. + VariableRegistryUpdateRequestEntity result = apiInstance.DeleteVariableRegistryUpdateRequest(groupId, updateId, disconnectedNodeAcknowledged); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling ProcessGroupsApi.DeleteVariableRegistryUpdateRequest: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **groupId** | **string**| The process group id. | + **updateId** | **string**| The ID of the Variable Registry Update Request | + **disconnectedNodeAcknowledged** | **bool?**| Acknowledges that this node is disconnected to allow for mutable requests to proceed. | [optional] [default to false] + +### Return type + +[**VariableRegistryUpdateRequestEntity**](VariableRegistryUpdateRequestEntity.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **GetConnections** +> ConnectionsEntity GetConnections (string id) + +Gets all connections + +### Example +```csharp +using System; +using System.Diagnostics; +using IO.Swagger.Api; +using IO.Swagger.Client; +using IO.Swagger.Model; + +namespace Example +{ + public class GetConnectionsExample + { + public void main() + { + var apiInstance = new ProcessGroupsApi(); + var id = id_example; // string | The process group id. + + try + { + // Gets all connections + ConnectionsEntity result = apiInstance.GetConnections(id); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling ProcessGroupsApi.GetConnections: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **string**| The process group id. | + +### Return type + +[**ConnectionsEntity**](ConnectionsEntity.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **GetFunnels** +> FunnelsEntity GetFunnels (string id) + +Gets all funnels + +### Example +```csharp +using System; +using System.Diagnostics; +using IO.Swagger.Api; +using IO.Swagger.Client; +using IO.Swagger.Model; + +namespace Example +{ + public class GetFunnelsExample + { + public void main() + { + var apiInstance = new ProcessGroupsApi(); + var id = id_example; // string | The process group id. + + try + { + // Gets all funnels + FunnelsEntity result = apiInstance.GetFunnels(id); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling ProcessGroupsApi.GetFunnels: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **string**| The process group id. | + +### Return type + +[**FunnelsEntity**](FunnelsEntity.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **GetInputPorts** +> InputPortsEntity GetInputPorts (string id) + +Gets all input ports + +### Example +```csharp +using System; +using System.Diagnostics; +using IO.Swagger.Api; +using IO.Swagger.Client; +using IO.Swagger.Model; + +namespace Example +{ + public class GetInputPortsExample + { + public void main() + { + var apiInstance = new ProcessGroupsApi(); + var id = id_example; // string | The process group id. + + try + { + // Gets all input ports + InputPortsEntity result = apiInstance.GetInputPorts(id); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling ProcessGroupsApi.GetInputPorts: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **string**| The process group id. | + +### Return type + +[**InputPortsEntity**](InputPortsEntity.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **GetLabels** +> LabelsEntity GetLabels (string id) + +Gets all labels + +### Example +```csharp +using System; +using System.Diagnostics; +using IO.Swagger.Api; +using IO.Swagger.Client; +using IO.Swagger.Model; + +namespace Example +{ + public class GetLabelsExample + { + public void main() + { + var apiInstance = new ProcessGroupsApi(); + var id = id_example; // string | The process group id. + + try + { + // Gets all labels + LabelsEntity result = apiInstance.GetLabels(id); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling ProcessGroupsApi.GetLabels: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **string**| The process group id. | + +### Return type + +[**LabelsEntity**](LabelsEntity.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **GetLocalModifications** +> FlowComparisonEntity GetLocalModifications (string id) + +Gets a list of local modifications to the Process Group since it was last synchronized with the Flow Registry + +### Example +```csharp +using System; +using System.Diagnostics; +using IO.Swagger.Api; +using IO.Swagger.Client; +using IO.Swagger.Model; + +namespace Example +{ + public class GetLocalModificationsExample + { + public void main() + { + var apiInstance = new ProcessGroupsApi(); + var id = id_example; // string | The process group id. + + try + { + // Gets a list of local modifications to the Process Group since it was last synchronized with the Flow Registry + FlowComparisonEntity result = apiInstance.GetLocalModifications(id); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling ProcessGroupsApi.GetLocalModifications: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **string**| The process group id. | + +### Return type + +[**FlowComparisonEntity**](FlowComparisonEntity.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **GetOutputPorts** +> OutputPortsEntity GetOutputPorts (string id) + +Gets all output ports + +### Example +```csharp +using System; +using System.Diagnostics; +using IO.Swagger.Api; +using IO.Swagger.Client; +using IO.Swagger.Model; + +namespace Example +{ + public class GetOutputPortsExample + { + public void main() + { + var apiInstance = new ProcessGroupsApi(); + var id = id_example; // string | The process group id. + + try + { + // Gets all output ports + OutputPortsEntity result = apiInstance.GetOutputPorts(id); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling ProcessGroupsApi.GetOutputPorts: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **string**| The process group id. | + +### Return type + +[**OutputPortsEntity**](OutputPortsEntity.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **GetProcessGroup** +> ProcessGroupEntity GetProcessGroup (string id) + +Gets a process group + +### Example +```csharp +using System; +using System.Diagnostics; +using IO.Swagger.Api; +using IO.Swagger.Client; +using IO.Swagger.Model; + +namespace Example +{ + public class GetProcessGroupExample + { + public void main() + { + var apiInstance = new ProcessGroupsApi(); + var id = id_example; // string | The process group id. + + try + { + // Gets a process group + ProcessGroupEntity result = apiInstance.GetProcessGroup(id); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling ProcessGroupsApi.GetProcessGroup: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **string**| The process group id. | + +### Return type + +[**ProcessGroupEntity**](ProcessGroupEntity.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **GetProcessGroups** +> ProcessGroupsEntity GetProcessGroups (string id) + +Gets all process groups + +### Example +```csharp +using System; +using System.Diagnostics; +using IO.Swagger.Api; +using IO.Swagger.Client; +using IO.Swagger.Model; + +namespace Example +{ + public class GetProcessGroupsExample + { + public void main() + { + var apiInstance = new ProcessGroupsApi(); + var id = id_example; // string | The process group id. + + try + { + // Gets all process groups + ProcessGroupsEntity result = apiInstance.GetProcessGroups(id); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling ProcessGroupsApi.GetProcessGroups: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **string**| The process group id. | + +### Return type + +[**ProcessGroupsEntity**](ProcessGroupsEntity.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **GetProcessors** +> ProcessorsEntity GetProcessors (string id, bool? includeDescendantGroups = null) + +Gets all processors + +### Example +```csharp +using System; +using System.Diagnostics; +using IO.Swagger.Api; +using IO.Swagger.Client; +using IO.Swagger.Model; + +namespace Example +{ + public class GetProcessorsExample + { + public void main() + { + var apiInstance = new ProcessGroupsApi(); + var id = id_example; // string | The process group id. + var includeDescendantGroups = true; // bool? | Whether or not to include processors from descendant process groups (optional) (default to false) + + try + { + // Gets all processors + ProcessorsEntity result = apiInstance.GetProcessors(id, includeDescendantGroups); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling ProcessGroupsApi.GetProcessors: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **string**| The process group id. | + **includeDescendantGroups** | **bool?**| Whether or not to include processors from descendant process groups | [optional] [default to false] + +### Return type + +[**ProcessorsEntity**](ProcessorsEntity.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **GetRemoteProcessGroups** +> RemoteProcessGroupsEntity GetRemoteProcessGroups (string id) + +Gets all remote process groups + +### Example +```csharp +using System; +using System.Diagnostics; +using IO.Swagger.Api; +using IO.Swagger.Client; +using IO.Swagger.Model; + +namespace Example +{ + public class GetRemoteProcessGroupsExample + { + public void main() + { + var apiInstance = new ProcessGroupsApi(); + var id = id_example; // string | The process group id. + + try + { + // Gets all remote process groups + RemoteProcessGroupsEntity result = apiInstance.GetRemoteProcessGroups(id); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling ProcessGroupsApi.GetRemoteProcessGroups: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **string**| The process group id. | + +### Return type + +[**RemoteProcessGroupsEntity**](RemoteProcessGroupsEntity.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **GetVariableRegistry** +> VariableRegistryEntity GetVariableRegistry (string id, bool? includeAncestorGroups = null) + +Gets a process group's variable registry + +Note: This endpoint is subject to change as NiFi and it's REST API evolve. + +### Example +```csharp +using System; +using System.Diagnostics; +using IO.Swagger.Api; +using IO.Swagger.Client; +using IO.Swagger.Model; + +namespace Example +{ + public class GetVariableRegistryExample + { + public void main() + { + var apiInstance = new ProcessGroupsApi(); + var id = id_example; // string | The process group id. + var includeAncestorGroups = true; // bool? | Whether or not to include ancestor groups (optional) (default to true) + + try + { + // Gets a process group's variable registry + VariableRegistryEntity result = apiInstance.GetVariableRegistry(id, includeAncestorGroups); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling ProcessGroupsApi.GetVariableRegistry: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **string**| The process group id. | + **includeAncestorGroups** | **bool?**| Whether or not to include ancestor groups | [optional] [default to true] + +### Return type + +[**VariableRegistryEntity**](VariableRegistryEntity.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **GetVariableRegistryUpdateRequest** +> VariableRegistryUpdateRequestEntity GetVariableRegistryUpdateRequest (string groupId, string updateId) + +Gets a process group's variable registry + +Note: This endpoint is subject to change as NiFi and it's REST API evolve. + +### Example +```csharp +using System; +using System.Diagnostics; +using IO.Swagger.Api; +using IO.Swagger.Client; +using IO.Swagger.Model; + +namespace Example +{ + public class GetVariableRegistryUpdateRequestExample + { + public void main() + { + var apiInstance = new ProcessGroupsApi(); + var groupId = groupId_example; // string | The process group id. + var updateId = updateId_example; // string | The ID of the Variable Registry Update Request + + try + { + // Gets a process group's variable registry + VariableRegistryUpdateRequestEntity result = apiInstance.GetVariableRegistryUpdateRequest(groupId, updateId); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling ProcessGroupsApi.GetVariableRegistryUpdateRequest: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **groupId** | **string**| The process group id. | + **updateId** | **string**| The ID of the Variable Registry Update Request | + +### Return type + +[**VariableRegistryUpdateRequestEntity**](VariableRegistryUpdateRequestEntity.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **ImportTemplate** +> TemplateEntity ImportTemplate (string id) + +Imports a template + +### Example +```csharp +using System; +using System.Diagnostics; +using IO.Swagger.Api; +using IO.Swagger.Client; +using IO.Swagger.Model; + +namespace Example +{ + public class ImportTemplateExample + { + public void main() + { + var apiInstance = new ProcessGroupsApi(); + var id = id_example; // string | The process group id. + + try + { + // Imports a template + TemplateEntity result = apiInstance.ImportTemplate(id); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling ProcessGroupsApi.ImportTemplate: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **string**| The process group id. | + +### Return type + +[**TemplateEntity**](TemplateEntity.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/xml + - **Accept**: application/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **InstantiateTemplate** +> FlowEntity InstantiateTemplate (string id, InstantiateTemplateRequestEntity body) + +Instantiates a template + +### Example +```csharp +using System; +using System.Diagnostics; +using IO.Swagger.Api; +using IO.Swagger.Client; +using IO.Swagger.Model; + +namespace Example +{ + public class InstantiateTemplateExample + { + public void main() + { + var apiInstance = new ProcessGroupsApi(); + var id = id_example; // string | The process group id. + var body = new InstantiateTemplateRequestEntity(); // InstantiateTemplateRequestEntity | The instantiate template request. + + try + { + // Instantiates a template + FlowEntity result = apiInstance.InstantiateTemplate(id, body); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling ProcessGroupsApi.InstantiateTemplate: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **string**| The process group id. | + **body** | [**InstantiateTemplateRequestEntity**](InstantiateTemplateRequestEntity.md)| The instantiate template request. | + +### Return type + +[**FlowEntity**](FlowEntity.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **RemoveProcessGroup** +> ProcessGroupEntity RemoveProcessGroup (string id, string version = null, string clientId = null, bool? disconnectedNodeAcknowledged = null) + +Deletes a process group + +### Example +```csharp +using System; +using System.Diagnostics; +using IO.Swagger.Api; +using IO.Swagger.Client; +using IO.Swagger.Model; + +namespace Example +{ + public class RemoveProcessGroupExample + { + public void main() + { + var apiInstance = new ProcessGroupsApi(); + var id = id_example; // string | The process group id. + var version = version_example; // string | The revision is used to verify the client is working with the latest version of the flow. (optional) + var clientId = clientId_example; // string | If the client id is not specified, new one will be generated. This value (whether specified or generated) is included in the response. (optional) + var disconnectedNodeAcknowledged = true; // bool? | Acknowledges that this node is disconnected to allow for mutable requests to proceed. (optional) (default to false) + + try + { + // Deletes a process group + ProcessGroupEntity result = apiInstance.RemoveProcessGroup(id, version, clientId, disconnectedNodeAcknowledged); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling ProcessGroupsApi.RemoveProcessGroup: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **string**| The process group id. | + **version** | **string**| The revision is used to verify the client is working with the latest version of the flow. | [optional] + **clientId** | **string**| If the client id is not specified, new one will be generated. This value (whether specified or generated) is included in the response. | [optional] + **disconnectedNodeAcknowledged** | **bool?**| Acknowledges that this node is disconnected to allow for mutable requests to proceed. | [optional] [default to false] + +### Return type + +[**ProcessGroupEntity**](ProcessGroupEntity.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **SubmitUpdateVariableRegistryRequest** +> VariableRegistryUpdateRequestEntity SubmitUpdateVariableRegistryRequest (string id, VariableRegistryEntity body) + +Submits a request to update a process group's variable registry + +Note: This endpoint is subject to change as NiFi and it's REST API evolve. + +### Example +```csharp +using System; +using System.Diagnostics; +using IO.Swagger.Api; +using IO.Swagger.Client; +using IO.Swagger.Model; + +namespace Example +{ + public class SubmitUpdateVariableRegistryRequestExample + { + public void main() + { + var apiInstance = new ProcessGroupsApi(); + var id = id_example; // string | The process group id. + var body = new VariableRegistryEntity(); // VariableRegistryEntity | The variable registry configuration details. + + try + { + // Submits a request to update a process group's variable registry + VariableRegistryUpdateRequestEntity result = apiInstance.SubmitUpdateVariableRegistryRequest(id, body); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling ProcessGroupsApi.SubmitUpdateVariableRegistryRequest: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **string**| The process group id. | + **body** | [**VariableRegistryEntity**](VariableRegistryEntity.md)| The variable registry configuration details. | + +### Return type + +[**VariableRegistryUpdateRequestEntity**](VariableRegistryUpdateRequestEntity.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **UpdateProcessGroup** +> ProcessGroupEntity UpdateProcessGroup (string id, ProcessGroupEntity body) + +Updates a process group + +### Example +```csharp +using System; +using System.Diagnostics; +using IO.Swagger.Api; +using IO.Swagger.Client; +using IO.Swagger.Model; + +namespace Example +{ + public class UpdateProcessGroupExample + { + public void main() + { + var apiInstance = new ProcessGroupsApi(); + var id = id_example; // string | The process group id. + var body = new ProcessGroupEntity(); // ProcessGroupEntity | The process group configuration details. + + try + { + // Updates a process group + ProcessGroupEntity result = apiInstance.UpdateProcessGroup(id, body); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling ProcessGroupsApi.UpdateProcessGroup: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **string**| The process group id. | + **body** | [**ProcessGroupEntity**](ProcessGroupEntity.md)| The process group configuration details. | + +### Return type + +[**ProcessGroupEntity**](ProcessGroupEntity.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **UpdateVariableRegistry** +> VariableRegistryEntity UpdateVariableRegistry (string id, VariableRegistryEntity body) + +Updates the contents of a Process Group's variable Registry + +Note: This endpoint is subject to change as NiFi and it's REST API evolve. + +### Example +```csharp +using System; +using System.Diagnostics; +using IO.Swagger.Api; +using IO.Swagger.Client; +using IO.Swagger.Model; + +namespace Example +{ + public class UpdateVariableRegistryExample + { + public void main() + { + var apiInstance = new ProcessGroupsApi(); + var id = id_example; // string | The process group id. + var body = new VariableRegistryEntity(); // VariableRegistryEntity | The variable registry configuration details. + + try + { + // Updates the contents of a Process Group's variable Registry + VariableRegistryEntity result = apiInstance.UpdateVariableRegistry(id, body); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling ProcessGroupsApi.UpdateVariableRegistry: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **string**| The process group id. | + **body** | [**VariableRegistryEntity**](VariableRegistryEntity.md)| The variable registry configuration details. | + +### Return type + +[**VariableRegistryEntity**](VariableRegistryEntity.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **UploadTemplate** +> TemplateEntity UploadTemplate (string id, System.IO.Stream template, bool? body = null) + +Uploads a template + +### Example +```csharp +using System; +using System.Diagnostics; +using IO.Swagger.Api; +using IO.Swagger.Client; +using IO.Swagger.Model; + +namespace Example +{ + public class UploadTemplateExample + { + public void main() + { + var apiInstance = new ProcessGroupsApi(); + var id = id_example; // string | The process group id. + var template = new System.IO.Stream(); // System.IO.Stream | The binary content of the template file being uploaded. + var body = true; // bool? | Acknowledges that this node is disconnected to allow for mutable requests to proceed. (optional) + + try + { + // Uploads a template + TemplateEntity result = apiInstance.UploadTemplate(id, template, body); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling ProcessGroupsApi.UploadTemplate: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **string**| The process group id. | + **template** | **System.IO.Stream**| The binary content of the template file being uploaded. | + **body** | **bool?**| Acknowledges that this node is disconnected to allow for mutable requests to proceed. | [optional] + +### Return type + +[**TemplateEntity**](TemplateEntity.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: multipart/form-data + - **Accept**: application/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/Docs/ProcessGroupsEntity.md b/Docs/ProcessGroupsEntity.md new file mode 100644 index 0000000..d28e79c --- /dev/null +++ b/Docs/ProcessGroupsEntity.md @@ -0,0 +1,9 @@ +# IO.Swagger.Model.ProcessGroupsEntity +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ProcessGroups** | [**List<ProcessGroupEntity>**](ProcessGroupEntity.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/Docs/ProcessorConfigDTO.md b/Docs/ProcessorConfigDTO.md new file mode 100644 index 0000000..cd2eed0 --- /dev/null +++ b/Docs/ProcessorConfigDTO.md @@ -0,0 +1,25 @@ +# IO.Swagger.Model.ProcessorConfigDTO +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Properties** | **Dictionary<string, string>** | The properties for the processor. Properties whose value is not set will only contain the property name. | [optional] +**Descriptors** | [**Dictionary<string, PropertyDescriptorDTO>**](PropertyDescriptorDTO.md) | Descriptors for the processor's properties. | [optional] +**SchedulingPeriod** | **string** | The frequency with which to schedule the processor. The format of the value will depend on th value of schedulingStrategy. | [optional] +**SchedulingStrategy** | **string** | Indcates whether the prcessor should be scheduled to run in event or timer driven mode. | [optional] +**ExecutionNode** | **string** | Indicates the node where the process will execute. | [optional] +**PenaltyDuration** | **string** | The amount of time that is used when the process penalizes a flowfile. | [optional] +**YieldDuration** | **string** | The amount of time that must elapse before this processor is scheduled again after yielding. | [optional] +**BulletinLevel** | **string** | The level at which the processor will report bulletins. | [optional] +**RunDurationMillis** | **long?** | The run duration for the processor in milliseconds. | [optional] +**ConcurrentlySchedulableTaskCount** | **int?** | The number of tasks that should be concurrently schedule for the processor. If the processor doesn't allow parallol processing then any positive input will be ignored. | [optional] +**AutoTerminatedRelationships** | **List<string>** | The names of all relationships that cause a flow file to be terminated if the relationship is not connected elsewhere. This property differs from the 'isAutoTerminate' property of the RelationshipDTO in that the RelationshipDTO is meant to depict the current configuration, whereas this property can be set in a DTO when updating a Processor in order to change which Relationships should be auto-terminated. | [optional] +**Comments** | **string** | The comments for the processor. | [optional] +**CustomUiUrl** | **string** | The URL for the processor's custom configuration UI if applicable. | [optional] +**LossTolerant** | **bool?** | Whether the processor is loss tolerant. | [optional] +**AnnotationData** | **string** | The annotation data for the processor used to relay configuration between a custom UI and the procesosr. | [optional] +**DefaultConcurrentTasks** | **Dictionary<string, string>** | Maps default values for concurrent tasks for each applicable scheduling strategy. | [optional] +**DefaultSchedulingPeriod** | **Dictionary<string, string>** | Maps default values for scheduling period for each applicable scheduling strategy. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/Docs/ProcessorDTO.md b/Docs/ProcessorDTO.md new file mode 100644 index 0000000..b938901 --- /dev/null +++ b/Docs/ProcessorDTO.md @@ -0,0 +1,32 @@ +# IO.Swagger.Model.ProcessorDTO +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | **string** | The id of the component. | [optional] +**VersionedComponentId** | **string** | The ID of the corresponding component that is under version control | [optional] +**ParentGroupId** | **string** | The id of parent process group of this component if applicable. | [optional] +**Position** | [**PositionDTO**](PositionDTO.md) | The position of this component in the UI if applicable. | [optional] +**Name** | **string** | The name of the processor. | [optional] +**Type** | **string** | The type of the processor. | [optional] +**Bundle** | [**BundleDTO**](BundleDTO.md) | The details of the artifact that bundled this processor type. | [optional] +**State** | **string** | The state of the processor | [optional] +**Style** | **Dictionary<string, string>** | Styles for the processor (background-color : #eee). | [optional] +**Relationships** | [**List<RelationshipDTO>**](RelationshipDTO.md) | The available relationships that the processor currently supports. | [optional] +**Description** | **string** | The description of the processor. | [optional] +**SupportsParallelProcessing** | **bool?** | Whether the processor supports parallel processing. | [optional] +**SupportsEventDriven** | **bool?** | Whether the processor supports event driven scheduling. | [optional] +**SupportsBatching** | **bool?** | Whether the processor supports batching. This makes the run duration settings available. | [optional] +**PersistsState** | **bool?** | Whether the processor persists state. | [optional] +**Restricted** | **bool?** | Whether the processor requires elevated privileges. | [optional] +**Deprecated** | **bool?** | Whether the processor has been deprecated. | [optional] +**ExecutionNodeRestricted** | **bool?** | Indicates if the execution node of a processor is restricted to run only on the primary node | [optional] +**MultipleVersionsAvailable** | **bool?** | Whether the processor has multiple versions available. | [optional] +**InputRequirement** | **string** | The input requirement for this processor. | [optional] +**Config** | [**ProcessorConfigDTO**](ProcessorConfigDTO.md) | The configuration details for the processor. These details will be included in a response if the verbose flag is included in a request. | [optional] +**ValidationErrors** | **List<string>** | The validation errors for the processor. These validation errors represent the problems with the processor that must be resolved before it can be started. | [optional] +**ValidationStatus** | **string** | Indicates whether the Processor is valid, invalid, or still in the process of validating (i.e., it is unknown whether or not the Processor is valid) | [optional] +**ExtensionMissing** | **bool?** | Whether the underlying extension is missing. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/Docs/ProcessorEntity.md b/Docs/ProcessorEntity.md new file mode 100644 index 0000000..19e8d87 --- /dev/null +++ b/Docs/ProcessorEntity.md @@ -0,0 +1,19 @@ +# IO.Swagger.Model.ProcessorEntity +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Revision** | [**RevisionDTO**](RevisionDTO.md) | The revision for this request/response. The revision is required for any mutable flow requests and is included in all responses. | [optional] +**Id** | **string** | The id of the component. | [optional] +**Uri** | **string** | The URI for futures requests to the component. | [optional] +**Position** | [**PositionDTO**](PositionDTO.md) | The position of this component in the UI if applicable. | [optional] +**Permissions** | [**PermissionsDTO**](PermissionsDTO.md) | The permissions for this component. | [optional] +**Bulletins** | [**List<BulletinEntity>**](BulletinEntity.md) | The bulletins for this component. | [optional] +**DisconnectedNodeAcknowledged** | **bool?** | Acknowledges that this node is disconnected to allow for mutable requests to proceed. | [optional] +**Component** | [**ProcessorDTO**](ProcessorDTO.md) | | [optional] +**InputRequirement** | **string** | The input requirement for this processor. | [optional] +**Status** | [**ProcessorStatusDTO**](ProcessorStatusDTO.md) | | [optional] +**OperatePermissions** | [**PermissionsDTO**](PermissionsDTO.md) | The permissions for this component operations. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/Docs/ProcessorRunStatusEntity.md b/Docs/ProcessorRunStatusEntity.md new file mode 100644 index 0000000..52ab616 --- /dev/null +++ b/Docs/ProcessorRunStatusEntity.md @@ -0,0 +1,11 @@ +# IO.Swagger.Model.ProcessorRunStatusEntity +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Revision** | [**RevisionDTO**](RevisionDTO.md) | The revision for this request/response. The revision is required for any mutable flow requests and is included in all responses. | [optional] +**State** | **string** | The run status of the Processor. | [optional] +**DisconnectedNodeAcknowledged** | **bool?** | Acknowledges that this node is disconnected to allow for mutable requests to proceed. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/Docs/ProcessorStatusDTO.md b/Docs/ProcessorStatusDTO.md new file mode 100644 index 0000000..0df7cb3 --- /dev/null +++ b/Docs/ProcessorStatusDTO.md @@ -0,0 +1,16 @@ +# IO.Swagger.Model.ProcessorStatusDTO +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**GroupId** | **string** | The unique ID of the process group that the Processor belongs to | [optional] +**Id** | **string** | The unique ID of the Processor | [optional] +**Name** | **string** | The name of the Processor | [optional] +**Type** | **string** | The type of the Processor | [optional] +**RunStatus** | **string** | The run status of the Processor | [optional] +**StatsLastRefreshed** | **string** | The timestamp of when the stats were last refreshed | [optional] +**AggregateSnapshot** | [**ProcessorStatusSnapshotDTO**](ProcessorStatusSnapshotDTO.md) | A status snapshot that represents the aggregate stats of all nodes in the cluster. If the NiFi instance is a standalone instance, rather than a cluster, this represents the stats of the single instance. | [optional] +**NodeSnapshots** | [**List<NodeProcessorStatusSnapshotDTO>**](NodeProcessorStatusSnapshotDTO.md) | A status snapshot for each node in the cluster. If the NiFi instance is a standalone instance, rather than a cluster, this may be null. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/Docs/ProcessorStatusEntity.md b/Docs/ProcessorStatusEntity.md new file mode 100644 index 0000000..a839a7d --- /dev/null +++ b/Docs/ProcessorStatusEntity.md @@ -0,0 +1,10 @@ +# IO.Swagger.Model.ProcessorStatusEntity +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ProcessorStatus** | [**ProcessorStatusDTO**](ProcessorStatusDTO.md) | | [optional] +**CanRead** | **bool?** | Indicates whether the user can read a given resource. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/Docs/ProcessorStatusSnapshotDTO.md b/Docs/ProcessorStatusSnapshotDTO.md new file mode 100644 index 0000000..bc8df33 --- /dev/null +++ b/Docs/ProcessorStatusSnapshotDTO.md @@ -0,0 +1,30 @@ +# IO.Swagger.Model.ProcessorStatusSnapshotDTO +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | **string** | The id of the processor. | [optional] +**GroupId** | **string** | The id of the parent process group to which the processor belongs. | [optional] +**Name** | **string** | The name of the prcessor. | [optional] +**Type** | **string** | The type of the processor. | [optional] +**RunStatus** | **string** | The state of the processor. | [optional] +**ExecutionNode** | **string** | Indicates the node where the process will execute. | [optional] +**BytesRead** | **long?** | The number of bytes read by this Processor in the last 5 mintues | [optional] +**BytesWritten** | **long?** | The number of bytes written by this Processor in the last 5 minutes | [optional] +**Read** | **string** | The number of bytes read in the last 5 minutes. | [optional] +**Written** | **string** | The number of bytes written in the last 5 minutes. | [optional] +**FlowFilesIn** | **int?** | The number of FlowFiles that have been accepted in the last 5 minutes | [optional] +**BytesIn** | **long?** | The size of the FlowFiles that have been accepted in the last 5 minutes | [optional] +**Input** | **string** | The count/size of flowfiles that have been accepted in the last 5 minutes. | [optional] +**FlowFilesOut** | **int?** | The number of FlowFiles transferred to a Connection in the last 5 minutes | [optional] +**BytesOut** | **long?** | The size of the FlowFiles transferred to a Connection in the last 5 minutes | [optional] +**Output** | **string** | The count/size of flowfiles that have been processed in the last 5 minutes. | [optional] +**TaskCount** | **int?** | The number of times this Processor has run in the last 5 minutes | [optional] +**TasksDurationNanos** | **long?** | The number of nanoseconds that this Processor has spent running in the last 5 minutes | [optional] +**Tasks** | **string** | The total number of task this connectable has completed over the last 5 minutes. | [optional] +**TasksDuration** | **string** | The total duration of all tasks for this connectable over the last 5 minutes. | [optional] +**ActiveThreadCount** | **int?** | The number of threads currently executing in the processor. | [optional] +**TerminatedThreadCount** | **int?** | The number of threads currently terminated for the processor. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/Docs/ProcessorStatusSnapshotEntity.md b/Docs/ProcessorStatusSnapshotEntity.md new file mode 100644 index 0000000..f8d3143 --- /dev/null +++ b/Docs/ProcessorStatusSnapshotEntity.md @@ -0,0 +1,11 @@ +# IO.Swagger.Model.ProcessorStatusSnapshotEntity +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | **string** | The id of the processor. | [optional] +**ProcessorStatusSnapshot** | [**ProcessorStatusSnapshotDTO**](ProcessorStatusSnapshotDTO.md) | | [optional] +**CanRead** | **bool?** | Indicates whether the user can read a given resource. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/Docs/ProcessorTypesEntity.md b/Docs/ProcessorTypesEntity.md new file mode 100644 index 0000000..65d9853 --- /dev/null +++ b/Docs/ProcessorTypesEntity.md @@ -0,0 +1,9 @@ +# IO.Swagger.Model.ProcessorTypesEntity +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ProcessorTypes** | [**List<DocumentedTypeDTO>**](DocumentedTypeDTO.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/Docs/ProcessorsApi.md b/Docs/ProcessorsApi.md new file mode 100644 index 0000000..787d70e --- /dev/null +++ b/Docs/ProcessorsApi.md @@ -0,0 +1,564 @@ +# IO.Swagger.Api.ProcessorsApi + +All URIs are relative to *http://localhost/nifi-api* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**ClearState**](ProcessorsApi.md#clearstate) | **POST** /processors/{id}/state/clear-requests | Clears the state for a processor +[**DeleteProcessor**](ProcessorsApi.md#deleteprocessor) | **DELETE** /processors/{id} | Deletes a processor +[**GetProcessor**](ProcessorsApi.md#getprocessor) | **GET** /processors/{id} | Gets a processor +[**GetProcessorDiagnostics**](ProcessorsApi.md#getprocessordiagnostics) | **GET** /processors/{id}/diagnostics | Gets diagnostics information about a processor +[**GetPropertyDescriptor**](ProcessorsApi.md#getpropertydescriptor) | **GET** /processors/{id}/descriptors | Gets the descriptor for a processor property +[**GetState**](ProcessorsApi.md#getstate) | **GET** /processors/{id}/state | Gets the state for a processor +[**TerminateProcessor**](ProcessorsApi.md#terminateprocessor) | **DELETE** /processors/{id}/threads | Terminates a processor, essentially \"deleting\" its threads and any active tasks +[**UpdateProcessor**](ProcessorsApi.md#updateprocessor) | **PUT** /processors/{id} | Updates a processor +[**UpdateRunStatus**](ProcessorsApi.md#updaterunstatus) | **PUT** /processors/{id}/run-status | Updates run status of a processor + + + +# **ClearState** +> ComponentStateEntity ClearState (string id) + +Clears the state for a processor + +### Example +```csharp +using System; +using System.Diagnostics; +using IO.Swagger.Api; +using IO.Swagger.Client; +using IO.Swagger.Model; + +namespace Example +{ + public class ClearStateExample + { + public void main() + { + var apiInstance = new ProcessorsApi(); + var id = id_example; // string | The processor id. + + try + { + // Clears the state for a processor + ComponentStateEntity result = apiInstance.ClearState(id); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling ProcessorsApi.ClearState: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **string**| The processor id. | + +### Return type + +[**ComponentStateEntity**](ComponentStateEntity.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **DeleteProcessor** +> ProcessorEntity DeleteProcessor (string id, string version = null, string clientId = null, bool? disconnectedNodeAcknowledged = null) + +Deletes a processor + +### Example +```csharp +using System; +using System.Diagnostics; +using IO.Swagger.Api; +using IO.Swagger.Client; +using IO.Swagger.Model; + +namespace Example +{ + public class DeleteProcessorExample + { + public void main() + { + var apiInstance = new ProcessorsApi(); + var id = id_example; // string | The processor id. + var version = version_example; // string | The revision is used to verify the client is working with the latest version of the flow. (optional) + var clientId = clientId_example; // string | If the client id is not specified, new one will be generated. This value (whether specified or generated) is included in the response. (optional) + var disconnectedNodeAcknowledged = true; // bool? | Acknowledges that this node is disconnected to allow for mutable requests to proceed. (optional) (default to false) + + try + { + // Deletes a processor + ProcessorEntity result = apiInstance.DeleteProcessor(id, version, clientId, disconnectedNodeAcknowledged); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling ProcessorsApi.DeleteProcessor: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **string**| The processor id. | + **version** | **string**| The revision is used to verify the client is working with the latest version of the flow. | [optional] + **clientId** | **string**| If the client id is not specified, new one will be generated. This value (whether specified or generated) is included in the response. | [optional] + **disconnectedNodeAcknowledged** | **bool?**| Acknowledges that this node is disconnected to allow for mutable requests to proceed. | [optional] [default to false] + +### Return type + +[**ProcessorEntity**](ProcessorEntity.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **GetProcessor** +> ProcessorEntity GetProcessor (string id) + +Gets a processor + +### Example +```csharp +using System; +using System.Diagnostics; +using IO.Swagger.Api; +using IO.Swagger.Client; +using IO.Swagger.Model; + +namespace Example +{ + public class GetProcessorExample + { + public void main() + { + var apiInstance = new ProcessorsApi(); + var id = id_example; // string | The processor id. + + try + { + // Gets a processor + ProcessorEntity result = apiInstance.GetProcessor(id); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling ProcessorsApi.GetProcessor: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **string**| The processor id. | + +### Return type + +[**ProcessorEntity**](ProcessorEntity.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **GetProcessorDiagnostics** +> ProcessorEntity GetProcessorDiagnostics (string id) + +Gets diagnostics information about a processor + +Note: This endpoint is subject to change as NiFi and it's REST API evolve. + +### Example +```csharp +using System; +using System.Diagnostics; +using IO.Swagger.Api; +using IO.Swagger.Client; +using IO.Swagger.Model; + +namespace Example +{ + public class GetProcessorDiagnosticsExample + { + public void main() + { + var apiInstance = new ProcessorsApi(); + var id = id_example; // string | The processor id. + + try + { + // Gets diagnostics information about a processor + ProcessorEntity result = apiInstance.GetProcessorDiagnostics(id); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling ProcessorsApi.GetProcessorDiagnostics: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **string**| The processor id. | + +### Return type + +[**ProcessorEntity**](ProcessorEntity.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **GetPropertyDescriptor** +> PropertyDescriptorEntity GetPropertyDescriptor (string id, string propertyName, string clientId = null) + +Gets the descriptor for a processor property + +### Example +```csharp +using System; +using System.Diagnostics; +using IO.Swagger.Api; +using IO.Swagger.Client; +using IO.Swagger.Model; + +namespace Example +{ + public class GetPropertyDescriptorExample + { + public void main() + { + var apiInstance = new ProcessorsApi(); + var id = id_example; // string | The processor id. + var propertyName = propertyName_example; // string | The property name. + var clientId = clientId_example; // string | If the client id is not specified, new one will be generated. This value (whether specified or generated) is included in the response. (optional) + + try + { + // Gets the descriptor for a processor property + PropertyDescriptorEntity result = apiInstance.GetPropertyDescriptor(id, propertyName, clientId); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling ProcessorsApi.GetPropertyDescriptor: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **string**| The processor id. | + **propertyName** | **string**| The property name. | + **clientId** | **string**| If the client id is not specified, new one will be generated. This value (whether specified or generated) is included in the response. | [optional] + +### Return type + +[**PropertyDescriptorEntity**](PropertyDescriptorEntity.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **GetState** +> ComponentStateEntity GetState (string id) + +Gets the state for a processor + +### Example +```csharp +using System; +using System.Diagnostics; +using IO.Swagger.Api; +using IO.Swagger.Client; +using IO.Swagger.Model; + +namespace Example +{ + public class GetStateExample + { + public void main() + { + var apiInstance = new ProcessorsApi(); + var id = id_example; // string | The processor id. + + try + { + // Gets the state for a processor + ComponentStateEntity result = apiInstance.GetState(id); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling ProcessorsApi.GetState: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **string**| The processor id. | + +### Return type + +[**ComponentStateEntity**](ComponentStateEntity.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **TerminateProcessor** +> ProcessorEntity TerminateProcessor (string id) + +Terminates a processor, essentially \"deleting\" its threads and any active tasks + +### Example +```csharp +using System; +using System.Diagnostics; +using IO.Swagger.Api; +using IO.Swagger.Client; +using IO.Swagger.Model; + +namespace Example +{ + public class TerminateProcessorExample + { + public void main() + { + var apiInstance = new ProcessorsApi(); + var id = id_example; // string | The processor id. + + try + { + // Terminates a processor, essentially \"deleting\" its threads and any active tasks + ProcessorEntity result = apiInstance.TerminateProcessor(id); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling ProcessorsApi.TerminateProcessor: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **string**| The processor id. | + +### Return type + +[**ProcessorEntity**](ProcessorEntity.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **UpdateProcessor** +> ProcessorEntity UpdateProcessor (string id, ProcessorEntity body) + +Updates a processor + +### Example +```csharp +using System; +using System.Diagnostics; +using IO.Swagger.Api; +using IO.Swagger.Client; +using IO.Swagger.Model; + +namespace Example +{ + public class UpdateProcessorExample + { + public void main() + { + var apiInstance = new ProcessorsApi(); + var id = id_example; // string | The processor id. + var body = new ProcessorEntity(); // ProcessorEntity | The processor configuration details. + + try + { + // Updates a processor + ProcessorEntity result = apiInstance.UpdateProcessor(id, body); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling ProcessorsApi.UpdateProcessor: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **string**| The processor id. | + **body** | [**ProcessorEntity**](ProcessorEntity.md)| The processor configuration details. | + +### Return type + +[**ProcessorEntity**](ProcessorEntity.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **UpdateRunStatus** +> ProcessorEntity UpdateRunStatus (string id, ProcessorRunStatusEntity body) + +Updates run status of a processor + +### Example +```csharp +using System; +using System.Diagnostics; +using IO.Swagger.Api; +using IO.Swagger.Client; +using IO.Swagger.Model; + +namespace Example +{ + public class UpdateRunStatusExample + { + public void main() + { + var apiInstance = new ProcessorsApi(); + var id = id_example; // string | The processor id. + var body = new ProcessorRunStatusEntity(); // ProcessorRunStatusEntity | The processor run status. + + try + { + // Updates run status of a processor + ProcessorEntity result = apiInstance.UpdateRunStatus(id, body); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling ProcessorsApi.UpdateRunStatus: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **string**| The processor id. | + **body** | [**ProcessorRunStatusEntity**](ProcessorRunStatusEntity.md)| The processor run status. | + +### Return type + +[**ProcessorEntity**](ProcessorEntity.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/Docs/ProcessorsEntity.md b/Docs/ProcessorsEntity.md new file mode 100644 index 0000000..ddb2a0a --- /dev/null +++ b/Docs/ProcessorsEntity.md @@ -0,0 +1,9 @@ +# IO.Swagger.Model.ProcessorsEntity +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Processors** | [**List<ProcessorEntity>**](ProcessorEntity.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/Docs/PropertyDescriptorDTO.md b/Docs/PropertyDescriptorDTO.md new file mode 100644 index 0000000..d0aa533 --- /dev/null +++ b/Docs/PropertyDescriptorDTO.md @@ -0,0 +1,20 @@ +# IO.Swagger.Model.PropertyDescriptorDTO +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Name** | **string** | The name for the property. | [optional] +**DisplayName** | **string** | The human readable name for the property. | [optional] +**Description** | **string** | The description for the property. Used to relay additional details to a user or provide a mechanism of documenting intent. | [optional] +**DefaultValue** | **string** | The default value for the property. | [optional] +**AllowableValues** | [**List<AllowableValueEntity>**](AllowableValueEntity.md) | Allowable values for the property. If empty then the allowed values are not constrained. | [optional] +**Required** | **bool?** | Whether the property is required. | [optional] +**Sensitive** | **bool?** | Whether the property is sensitive and protected whenever stored or represented. | [optional] +**Dynamic** | **bool?** | Whether the property is dynamic (user-defined). | [optional] +**SupportsEl** | **bool?** | Whether the property supports expression language. | [optional] +**ExpressionLanguageScope** | **string** | Scope of the Expression Language evaluation for the property. | [optional] +**IdentifiesControllerService** | **string** | If the property identifies a controller service this returns the fully qualified type. | [optional] +**IdentifiesControllerServiceBundle** | [**BundleDTO**](BundleDTO.md) | If the property identifies a controller service this returns the bundle of the type, null otherwise. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/Docs/PropertyDescriptorEntity.md b/Docs/PropertyDescriptorEntity.md new file mode 100644 index 0000000..ba4af50 --- /dev/null +++ b/Docs/PropertyDescriptorEntity.md @@ -0,0 +1,9 @@ +# IO.Swagger.Model.PropertyDescriptorEntity +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**PropertyDescriptor** | [**PropertyDescriptorDTO**](PropertyDescriptorDTO.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/Docs/PropertyHistoryDTO.md b/Docs/PropertyHistoryDTO.md new file mode 100644 index 0000000..cdfd1bd --- /dev/null +++ b/Docs/PropertyHistoryDTO.md @@ -0,0 +1,9 @@ +# IO.Swagger.Model.PropertyHistoryDTO +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**PreviousValues** | [**List<PreviousValueDTO>**](PreviousValueDTO.md) | Previous values for a given property. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/Docs/ProvenanceApi.md b/Docs/ProvenanceApi.md new file mode 100644 index 0000000..3260584 --- /dev/null +++ b/Docs/ProvenanceApi.md @@ -0,0 +1,440 @@ +# IO.Swagger.Api.ProvenanceApi + +All URIs are relative to *http://localhost/nifi-api* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**DeleteLineage**](ProvenanceApi.md#deletelineage) | **DELETE** /provenance/lineage/{id} | Deletes a lineage query +[**DeleteProvenance**](ProvenanceApi.md#deleteprovenance) | **DELETE** /provenance/{id} | Deletes a provenance query +[**GetLineage**](ProvenanceApi.md#getlineage) | **GET** /provenance/lineage/{id} | Gets a lineage query +[**GetProvenance**](ProvenanceApi.md#getprovenance) | **GET** /provenance/{id} | Gets a provenance query +[**GetSearchOptions**](ProvenanceApi.md#getsearchoptions) | **GET** /provenance/search-options | Gets the searchable attributes for provenance events +[**SubmitLineageRequest**](ProvenanceApi.md#submitlineagerequest) | **POST** /provenance/lineage | Submits a lineage query +[**SubmitProvenanceRequest**](ProvenanceApi.md#submitprovenancerequest) | **POST** /provenance | Submits a provenance query + + + +# **DeleteLineage** +> LineageEntity DeleteLineage (string id, string clusterNodeId = null) + +Deletes a lineage query + +### Example +```csharp +using System; +using System.Diagnostics; +using IO.Swagger.Api; +using IO.Swagger.Client; +using IO.Swagger.Model; + +namespace Example +{ + public class DeleteLineageExample + { + public void main() + { + var apiInstance = new ProvenanceApi(); + var id = id_example; // string | The id of the lineage query. + var clusterNodeId = clusterNodeId_example; // string | The id of the node where this query exists if clustered. (optional) + + try + { + // Deletes a lineage query + LineageEntity result = apiInstance.DeleteLineage(id, clusterNodeId); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling ProvenanceApi.DeleteLineage: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **string**| The id of the lineage query. | + **clusterNodeId** | **string**| The id of the node where this query exists if clustered. | [optional] + +### Return type + +[**LineageEntity**](LineageEntity.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **DeleteProvenance** +> ProvenanceEntity DeleteProvenance (string id, string clusterNodeId = null) + +Deletes a provenance query + +### Example +```csharp +using System; +using System.Diagnostics; +using IO.Swagger.Api; +using IO.Swagger.Client; +using IO.Swagger.Model; + +namespace Example +{ + public class DeleteProvenanceExample + { + public void main() + { + var apiInstance = new ProvenanceApi(); + var id = id_example; // string | The id of the provenance query. + var clusterNodeId = clusterNodeId_example; // string | The id of the node where this query exists if clustered. (optional) + + try + { + // Deletes a provenance query + ProvenanceEntity result = apiInstance.DeleteProvenance(id, clusterNodeId); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling ProvenanceApi.DeleteProvenance: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **string**| The id of the provenance query. | + **clusterNodeId** | **string**| The id of the node where this query exists if clustered. | [optional] + +### Return type + +[**ProvenanceEntity**](ProvenanceEntity.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **GetLineage** +> LineageEntity GetLineage (string id, string clusterNodeId = null) + +Gets a lineage query + +### Example +```csharp +using System; +using System.Diagnostics; +using IO.Swagger.Api; +using IO.Swagger.Client; +using IO.Swagger.Model; + +namespace Example +{ + public class GetLineageExample + { + public void main() + { + var apiInstance = new ProvenanceApi(); + var id = id_example; // string | The id of the lineage query. + var clusterNodeId = clusterNodeId_example; // string | The id of the node where this query exists if clustered. (optional) + + try + { + // Gets a lineage query + LineageEntity result = apiInstance.GetLineage(id, clusterNodeId); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling ProvenanceApi.GetLineage: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **string**| The id of the lineage query. | + **clusterNodeId** | **string**| The id of the node where this query exists if clustered. | [optional] + +### Return type + +[**LineageEntity**](LineageEntity.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **GetProvenance** +> ProvenanceEntity GetProvenance (string id, string clusterNodeId = null, bool? summarize = null, bool? incrementalResults = null) + +Gets a provenance query + +### Example +```csharp +using System; +using System.Diagnostics; +using IO.Swagger.Api; +using IO.Swagger.Client; +using IO.Swagger.Model; + +namespace Example +{ + public class GetProvenanceExample + { + public void main() + { + var apiInstance = new ProvenanceApi(); + var id = id_example; // string | The id of the provenance query. + var clusterNodeId = clusterNodeId_example; // string | The id of the node where this query exists if clustered. (optional) + var summarize = true; // bool? | Whether or not incremental results are returned. If false, provenance events are only returned once the query completes. This property is true by default. (optional) (default to false) + var incrementalResults = true; // bool? | Whether or not to summarize provenance events returned. This property is false by default. (optional) (default to true) + + try + { + // Gets a provenance query + ProvenanceEntity result = apiInstance.GetProvenance(id, clusterNodeId, summarize, incrementalResults); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling ProvenanceApi.GetProvenance: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **string**| The id of the provenance query. | + **clusterNodeId** | **string**| The id of the node where this query exists if clustered. | [optional] + **summarize** | **bool?**| Whether or not incremental results are returned. If false, provenance events are only returned once the query completes. This property is true by default. | [optional] [default to false] + **incrementalResults** | **bool?**| Whether or not to summarize provenance events returned. This property is false by default. | [optional] [default to true] + +### Return type + +[**ProvenanceEntity**](ProvenanceEntity.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **GetSearchOptions** +> ProvenanceOptionsEntity GetSearchOptions () + +Gets the searchable attributes for provenance events + +### Example +```csharp +using System; +using System.Diagnostics; +using IO.Swagger.Api; +using IO.Swagger.Client; +using IO.Swagger.Model; + +namespace Example +{ + public class GetSearchOptionsExample + { + public void main() + { + var apiInstance = new ProvenanceApi(); + + try + { + // Gets the searchable attributes for provenance events + ProvenanceOptionsEntity result = apiInstance.GetSearchOptions(); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling ProvenanceApi.GetSearchOptions: " + e.Message ); + } + } + } +} +``` + +### Parameters +This endpoint does not need any parameter. + +### Return type + +[**ProvenanceOptionsEntity**](ProvenanceOptionsEntity.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **SubmitLineageRequest** +> LineageEntity SubmitLineageRequest (LineageEntity body) + +Submits a lineage query + +Lineage queries may be long running so this endpoint submits a request. The response will include the current state of the query. If the request is not completed the URI in the response can be used at a later time to get the updated state of the query. Once the query has completed the lineage request should be deleted by the client who originally submitted it. + +### Example +```csharp +using System; +using System.Diagnostics; +using IO.Swagger.Api; +using IO.Swagger.Client; +using IO.Swagger.Model; + +namespace Example +{ + public class SubmitLineageRequestExample + { + public void main() + { + var apiInstance = new ProvenanceApi(); + var body = new LineageEntity(); // LineageEntity | The lineage query details. + + try + { + // Submits a lineage query + LineageEntity result = apiInstance.SubmitLineageRequest(body); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling ProvenanceApi.SubmitLineageRequest: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **body** | [**LineageEntity**](LineageEntity.md)| The lineage query details. | + +### Return type + +[**LineageEntity**](LineageEntity.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **SubmitProvenanceRequest** +> ProvenanceEntity SubmitProvenanceRequest (ProvenanceEntity body) + +Submits a provenance query + +Provenance queries may be long running so this endpoint submits a request. The response will include the current state of the query. If the request is not completed the URI in the response can be used at a later time to get the updated state of the query. Once the query has completed the provenance request should be deleted by the client who originally submitted it. + +### Example +```csharp +using System; +using System.Diagnostics; +using IO.Swagger.Api; +using IO.Swagger.Client; +using IO.Swagger.Model; + +namespace Example +{ + public class SubmitProvenanceRequestExample + { + public void main() + { + var apiInstance = new ProvenanceApi(); + var body = new ProvenanceEntity(); // ProvenanceEntity | The provenance query details. + + try + { + // Submits a provenance query + ProvenanceEntity result = apiInstance.SubmitProvenanceRequest(body); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling ProvenanceApi.SubmitProvenanceRequest: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **body** | [**ProvenanceEntity**](ProvenanceEntity.md)| The provenance query details. | + +### Return type + +[**ProvenanceEntity**](ProvenanceEntity.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/Docs/ProvenanceDTO.md b/Docs/ProvenanceDTO.md new file mode 100644 index 0000000..6fbb652 --- /dev/null +++ b/Docs/ProvenanceDTO.md @@ -0,0 +1,16 @@ +# IO.Swagger.Model.ProvenanceDTO +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | **string** | The id of the provenance query. | [optional] +**Uri** | **string** | The URI for this query. Used for obtaining/deleting the request at a later time | [optional] +**SubmissionTime** | **string** | The timestamp when the query was submitted. | [optional] +**Expiration** | **string** | The timestamp when the query will expire. | [optional] +**PercentCompleted** | **int?** | The current percent complete. | [optional] +**Finished** | **bool?** | Whether the query has finished. | [optional] +**Request** | [**ProvenanceRequestDTO**](ProvenanceRequestDTO.md) | The provenance request. | [optional] +**Results** | [**ProvenanceResultsDTO**](ProvenanceResultsDTO.md) | The provenance results. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/Docs/ProvenanceEntity.md b/Docs/ProvenanceEntity.md new file mode 100644 index 0000000..98637fe --- /dev/null +++ b/Docs/ProvenanceEntity.md @@ -0,0 +1,9 @@ +# IO.Swagger.Model.ProvenanceEntity +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Provenance** | [**ProvenanceDTO**](ProvenanceDTO.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/Docs/ProvenanceEventDTO.md b/Docs/ProvenanceEventDTO.md new file mode 100644 index 0000000..20b40e5 --- /dev/null +++ b/Docs/ProvenanceEventDTO.md @@ -0,0 +1,49 @@ +# IO.Swagger.Model.ProvenanceEventDTO +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | **string** | The event uuid. | [optional] +**EventId** | **long?** | The event id. This is a one up number thats unique per node. | [optional] +**EventTime** | **string** | The timestamp of the event. | [optional] +**EventDuration** | **long?** | The event duration in milliseconds. | [optional] +**LineageDuration** | **long?** | The duration since the lineage began, in milliseconds. | [optional] +**EventType** | **string** | The type of the event. | [optional] +**FlowFileUuid** | **string** | The uuid of the flowfile for the event. | [optional] +**FileSize** | **string** | The size of the flowfile for the event. | [optional] +**FileSizeBytes** | **long?** | The size of the flowfile in bytes for the event. | [optional] +**ClusterNodeId** | **string** | The identifier for the node where the event originated. | [optional] +**ClusterNodeAddress** | **string** | The label for the node where the event originated. | [optional] +**GroupId** | **string** | The id of the group that the component resides in. If the component is no longer in the flow, the group id will not be set. | [optional] +**ComponentId** | **string** | The id of the component that generated the event. | [optional] +**ComponentType** | **string** | The type of the component that generated the event. | [optional] +**ComponentName** | **string** | The name of the component that generated the event. | [optional] +**SourceSystemFlowFileId** | **string** | The source system flowfile id. | [optional] +**AlternateIdentifierUri** | **string** | The alternate identifier uri for the fileflow for the event. | [optional] +**Attributes** | [**List<AttributeDTO>**](AttributeDTO.md) | The attributes of the flowfile for the event. | [optional] +**ParentUuids** | **List<string>** | The parent uuids for the event. | [optional] +**ChildUuids** | **List<string>** | The child uuids for the event. | [optional] +**TransitUri** | **string** | The source/destination system uri if the event was a RECEIVE/SEND. | [optional] +**Relationship** | **string** | The relationship to which the flowfile was routed if the event is of type ROUTE. | [optional] +**Details** | **string** | The event details. | [optional] +**ContentEqual** | **bool?** | Whether the input and output content claim is the same. | [optional] +**InputContentAvailable** | **bool?** | Whether the input content is still available. | [optional] +**InputContentClaimSection** | **string** | The section in which the input content claim lives. | [optional] +**InputContentClaimContainer** | **string** | The container in which the input content claim lives. | [optional] +**InputContentClaimIdentifier** | **string** | The identifier of the input content claim. | [optional] +**InputContentClaimOffset** | **long?** | The offset into the input content claim where the flowfiles content begins. | [optional] +**InputContentClaimFileSize** | **string** | The file size of the input content claim formatted. | [optional] +**InputContentClaimFileSizeBytes** | **long?** | The file size of the intput content claim in bytes. | [optional] +**OutputContentAvailable** | **bool?** | Whether the output content is still available. | [optional] +**OutputContentClaimSection** | **string** | The section in which the output content claim lives. | [optional] +**OutputContentClaimContainer** | **string** | The container in which the output content claim lives. | [optional] +**OutputContentClaimIdentifier** | **string** | The identifier of the output content claim. | [optional] +**OutputContentClaimOffset** | **long?** | The offset into the output content claim where the flowfiles content begins. | [optional] +**OutputContentClaimFileSize** | **string** | The file size of the output content claim formatted. | [optional] +**OutputContentClaimFileSizeBytes** | **long?** | The file size of the output content claim in bytes. | [optional] +**ReplayAvailable** | **bool?** | Whether or not replay is available. | [optional] +**ReplayExplanation** | **string** | Explanation as to why replay is unavailable. | [optional] +**SourceConnectionIdentifier** | **string** | The identifier of the queue/connection from which the flowfile was pulled to genereate this event. May be null if the queue/connection is unknown or the flowfile was generated from this event. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/Docs/ProvenanceEventEntity.md b/Docs/ProvenanceEventEntity.md new file mode 100644 index 0000000..6728b48 --- /dev/null +++ b/Docs/ProvenanceEventEntity.md @@ -0,0 +1,9 @@ +# IO.Swagger.Model.ProvenanceEventEntity +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ProvenanceEvent** | [**ProvenanceEventDTO**](ProvenanceEventDTO.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/Docs/ProvenanceEventsApi.md b/Docs/ProvenanceEventsApi.md new file mode 100644 index 0000000..1691c94 --- /dev/null +++ b/Docs/ProvenanceEventsApi.md @@ -0,0 +1,254 @@ +# IO.Swagger.Api.ProvenanceEventsApi + +All URIs are relative to *http://localhost/nifi-api* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**GetInputContent**](ProvenanceEventsApi.md#getinputcontent) | **GET** /provenance-events/{id}/content/input | Gets the input content for a provenance event +[**GetOutputContent**](ProvenanceEventsApi.md#getoutputcontent) | **GET** /provenance-events/{id}/content/output | Gets the output content for a provenance event +[**GetProvenanceEvent**](ProvenanceEventsApi.md#getprovenanceevent) | **GET** /provenance-events/{id} | Gets a provenance event +[**SubmitReplay**](ProvenanceEventsApi.md#submitreplay) | **POST** /provenance-events/replays | Replays content from a provenance event + + + +# **GetInputContent** +> StreamingOutput GetInputContent (string id, string clusterNodeId = null) + +Gets the input content for a provenance event + +### Example +```csharp +using System; +using System.Diagnostics; +using IO.Swagger.Api; +using IO.Swagger.Client; +using IO.Swagger.Model; + +namespace Example +{ + public class GetInputContentExample + { + public void main() + { + var apiInstance = new ProvenanceEventsApi(); + var id = id_example; // string | The provenance event id. + var clusterNodeId = clusterNodeId_example; // string | The id of the node where the content exists if clustered. (optional) + + try + { + // Gets the input content for a provenance event + StreamingOutput result = apiInstance.GetInputContent(id, clusterNodeId); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling ProvenanceEventsApi.GetInputContent: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **string**| The provenance event id. | + **clusterNodeId** | **string**| The id of the node where the content exists if clustered. | [optional] + +### Return type + +[**StreamingOutput**](StreamingOutput.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: */* + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **GetOutputContent** +> StreamingOutput GetOutputContent (string id, string clusterNodeId = null) + +Gets the output content for a provenance event + +### Example +```csharp +using System; +using System.Diagnostics; +using IO.Swagger.Api; +using IO.Swagger.Client; +using IO.Swagger.Model; + +namespace Example +{ + public class GetOutputContentExample + { + public void main() + { + var apiInstance = new ProvenanceEventsApi(); + var id = id_example; // string | The provenance event id. + var clusterNodeId = clusterNodeId_example; // string | The id of the node where the content exists if clustered. (optional) + + try + { + // Gets the output content for a provenance event + StreamingOutput result = apiInstance.GetOutputContent(id, clusterNodeId); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling ProvenanceEventsApi.GetOutputContent: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **string**| The provenance event id. | + **clusterNodeId** | **string**| The id of the node where the content exists if clustered. | [optional] + +### Return type + +[**StreamingOutput**](StreamingOutput.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: */* + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **GetProvenanceEvent** +> ProvenanceEventEntity GetProvenanceEvent (string id, string clusterNodeId = null) + +Gets a provenance event + +### Example +```csharp +using System; +using System.Diagnostics; +using IO.Swagger.Api; +using IO.Swagger.Client; +using IO.Swagger.Model; + +namespace Example +{ + public class GetProvenanceEventExample + { + public void main() + { + var apiInstance = new ProvenanceEventsApi(); + var id = id_example; // string | The provenance event id. + var clusterNodeId = clusterNodeId_example; // string | The id of the node where this event exists if clustered. (optional) + + try + { + // Gets a provenance event + ProvenanceEventEntity result = apiInstance.GetProvenanceEvent(id, clusterNodeId); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling ProvenanceEventsApi.GetProvenanceEvent: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **string**| The provenance event id. | + **clusterNodeId** | **string**| The id of the node where this event exists if clustered. | [optional] + +### Return type + +[**ProvenanceEventEntity**](ProvenanceEventEntity.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **SubmitReplay** +> ProvenanceEventEntity SubmitReplay (SubmitReplayRequestEntity body) + +Replays content from a provenance event + +### Example +```csharp +using System; +using System.Diagnostics; +using IO.Swagger.Api; +using IO.Swagger.Client; +using IO.Swagger.Model; + +namespace Example +{ + public class SubmitReplayExample + { + public void main() + { + var apiInstance = new ProvenanceEventsApi(); + var body = new SubmitReplayRequestEntity(); // SubmitReplayRequestEntity | The replay request. + + try + { + // Replays content from a provenance event + ProvenanceEventEntity result = apiInstance.SubmitReplay(body); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling ProvenanceEventsApi.SubmitReplay: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **body** | [**SubmitReplayRequestEntity**](SubmitReplayRequestEntity.md)| The replay request. | + +### Return type + +[**ProvenanceEventEntity**](ProvenanceEventEntity.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/Docs/ProvenanceLinkDTO.md b/Docs/ProvenanceLinkDTO.md new file mode 100644 index 0000000..e758368 --- /dev/null +++ b/Docs/ProvenanceLinkDTO.md @@ -0,0 +1,13 @@ +# IO.Swagger.Model.ProvenanceLinkDTO +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**SourceId** | **string** | The source node id of the link. | [optional] +**TargetId** | **string** | The target node id of the link. | [optional] +**FlowFileUuid** | **string** | The flowfile uuid that traversed the link. | [optional] +**Timestamp** | **string** | The timestamp of the link (based on the destination). | [optional] +**Millis** | **long?** | The timestamp of this link in milliseconds. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/Docs/ProvenanceNodeDTO.md b/Docs/ProvenanceNodeDTO.md new file mode 100644 index 0000000..1528e5d --- /dev/null +++ b/Docs/ProvenanceNodeDTO.md @@ -0,0 +1,17 @@ +# IO.Swagger.Model.ProvenanceNodeDTO +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | **string** | The id of the node. | [optional] +**FlowFileUuid** | **string** | The uuid of the flowfile associated with the provenance event. | [optional] +**ParentUuids** | **List<string>** | The uuid of the parent flowfiles of the provenance event. | [optional] +**ChildUuids** | **List<string>** | The uuid of the childrent flowfiles of the provenance event. | [optional] +**ClusterNodeIdentifier** | **string** | The identifier of the node that this event/flowfile originated from. | [optional] +**Type** | **string** | The type of the node. | [optional] +**EventType** | **string** | If the type is EVENT, this is the type of event. | [optional] +**Millis** | **long?** | The timestamp of the node in milliseconds. | [optional] +**Timestamp** | **string** | The timestamp of the node formatted. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/Docs/ProvenanceOptionsDTO.md b/Docs/ProvenanceOptionsDTO.md new file mode 100644 index 0000000..e551982 --- /dev/null +++ b/Docs/ProvenanceOptionsDTO.md @@ -0,0 +1,9 @@ +# IO.Swagger.Model.ProvenanceOptionsDTO +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**SearchableFields** | [**List<ProvenanceSearchableFieldDTO>**](ProvenanceSearchableFieldDTO.md) | The available searchable field for the NiFi. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/Docs/ProvenanceOptionsEntity.md b/Docs/ProvenanceOptionsEntity.md new file mode 100644 index 0000000..40b7632 --- /dev/null +++ b/Docs/ProvenanceOptionsEntity.md @@ -0,0 +1,9 @@ +# IO.Swagger.Model.ProvenanceOptionsEntity +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ProvenanceOptions** | [**ProvenanceOptionsDTO**](ProvenanceOptionsDTO.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/Docs/ProvenanceRequestDTO.md b/Docs/ProvenanceRequestDTO.md new file mode 100644 index 0000000..e0ea4f7 --- /dev/null +++ b/Docs/ProvenanceRequestDTO.md @@ -0,0 +1,17 @@ +# IO.Swagger.Model.ProvenanceRequestDTO +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**SearchTerms** | **Dictionary<string, string>** | The search terms used to perform the search. | [optional] +**ClusterNodeId** | **string** | The id of the node in the cluster where this provenance originated. | [optional] +**StartDate** | **string** | The earliest event time to include in the query. | [optional] +**EndDate** | **string** | The latest event time to include in the query. | [optional] +**MinimumFileSize** | **string** | The minimum file size to include in the query. | [optional] +**MaximumFileSize** | **string** | The maximum file size to include in the query. | [optional] +**MaxResults** | **int?** | The maximum number of results to include. | [optional] +**Summarize** | **bool?** | Whether or not to summarize provenance events returned. This property is false by default. | [optional] +**IncrementalResults** | **bool?** | Whether or not incremental results are returned. If false, provenance events are only returned once the query completes. This property is true by default. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/Docs/ProvenanceResultsDTO.md b/Docs/ProvenanceResultsDTO.md new file mode 100644 index 0000000..477320b --- /dev/null +++ b/Docs/ProvenanceResultsDTO.md @@ -0,0 +1,15 @@ +# IO.Swagger.Model.ProvenanceResultsDTO +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ProvenanceEvents** | [**List<ProvenanceEventDTO>**](ProvenanceEventDTO.md) | The provenance events that matched the search criteria. | [optional] +**Total** | **string** | The total number of results formatted. | [optional] +**TotalCount** | **long?** | The total number of results. | [optional] +**Generated** | **string** | Then the search was performed. | [optional] +**OldestEvent** | **string** | The oldest event available in the provenance repository. | [optional] +**TimeOffset** | **int?** | The time offset of the server that's used for event time. | [optional] +**Errors** | **List<string>** | Any errors that occurred while performing the provenance request. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/Docs/ProvenanceSearchableFieldDTO.md b/Docs/ProvenanceSearchableFieldDTO.md new file mode 100644 index 0000000..3c0fd80 --- /dev/null +++ b/Docs/ProvenanceSearchableFieldDTO.md @@ -0,0 +1,12 @@ +# IO.Swagger.Model.ProvenanceSearchableFieldDTO +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | **string** | The id of the searchable field. | [optional] +**Field** | **string** | The searchable field. | [optional] +**Label** | **string** | The label for the searchable field. | [optional] +**Type** | **string** | The type of the searchable field. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/Docs/QueueSizeDTO.md b/Docs/QueueSizeDTO.md new file mode 100644 index 0000000..26062a4 --- /dev/null +++ b/Docs/QueueSizeDTO.md @@ -0,0 +1,10 @@ +# IO.Swagger.Model.QueueSizeDTO +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ByteCount** | **long?** | The size of objects in a queue. | [optional] +**ObjectCount** | **int?** | The count of objects in a queue. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/Docs/RegistryClientEntity.md b/Docs/RegistryClientEntity.md new file mode 100644 index 0000000..9955ebc --- /dev/null +++ b/Docs/RegistryClientEntity.md @@ -0,0 +1,16 @@ +# IO.Swagger.Model.RegistryClientEntity +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Revision** | [**RevisionDTO**](RevisionDTO.md) | The revision for this request/response. The revision is required for any mutable flow requests and is included in all responses. | [optional] +**Id** | **string** | The id of the component. | [optional] +**Uri** | **string** | The URI for futures requests to the component. | [optional] +**Position** | [**PositionDTO**](PositionDTO.md) | The position of this component in the UI if applicable. | [optional] +**Permissions** | [**PermissionsDTO**](PermissionsDTO.md) | The permissions for this component. | [optional] +**Bulletins** | [**List<BulletinEntity>**](BulletinEntity.md) | The bulletins for this component. | [optional] +**DisconnectedNodeAcknowledged** | **bool?** | Acknowledges that this node is disconnected to allow for mutable requests to proceed. | [optional] +**Component** | [**RegistryDTO**](RegistryDTO.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/Docs/RegistryClientsEntity.md b/Docs/RegistryClientsEntity.md new file mode 100644 index 0000000..1e34023 --- /dev/null +++ b/Docs/RegistryClientsEntity.md @@ -0,0 +1,9 @@ +# IO.Swagger.Model.RegistryClientsEntity +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Registries** | [**List<RegistryClientEntity>**](RegistryClientEntity.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/Docs/RegistryDTO.md b/Docs/RegistryDTO.md new file mode 100644 index 0000000..90c8e10 --- /dev/null +++ b/Docs/RegistryDTO.md @@ -0,0 +1,12 @@ +# IO.Swagger.Model.RegistryDTO +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | **string** | The registry identifier | [optional] +**Name** | **string** | The registry name | [optional] +**Description** | **string** | The registry description | [optional] +**Uri** | **string** | The registry URI | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/Docs/RelationshipDTO.md b/Docs/RelationshipDTO.md new file mode 100644 index 0000000..f1a65df --- /dev/null +++ b/Docs/RelationshipDTO.md @@ -0,0 +1,11 @@ +# IO.Swagger.Model.RelationshipDTO +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Name** | **string** | The relationship name. | [optional] +**Description** | **string** | The relationship description. | [optional] +**AutoTerminate** | **bool?** | Whether or not flowfiles sent to this relationship should auto terminate. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/Docs/RemotePortRunStatusEntity.md b/Docs/RemotePortRunStatusEntity.md new file mode 100644 index 0000000..b379cf1 --- /dev/null +++ b/Docs/RemotePortRunStatusEntity.md @@ -0,0 +1,11 @@ +# IO.Swagger.Model.RemotePortRunStatusEntity +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Revision** | [**RevisionDTO**](RevisionDTO.md) | The revision for this request/response. The revision is required for any mutable flow requests and is included in all responses. | [optional] +**State** | **string** | The run status of the RemotePort. | [optional] +**DisconnectedNodeAcknowledged** | **bool?** | Acknowledges that this node is disconnected to allow for mutable requests to proceed. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/Docs/RemoteProcessGroupContentsDTO.md b/Docs/RemoteProcessGroupContentsDTO.md new file mode 100644 index 0000000..7158270 --- /dev/null +++ b/Docs/RemoteProcessGroupContentsDTO.md @@ -0,0 +1,10 @@ +# IO.Swagger.Model.RemoteProcessGroupContentsDTO +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**InputPorts** | [**List<RemoteProcessGroupPortDTO>**](RemoteProcessGroupPortDTO.md) | The input ports to which data can be sent. | [optional] +**OutputPorts** | [**List<RemoteProcessGroupPortDTO>**](RemoteProcessGroupPortDTO.md) | The output ports from which data can be retrieved. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/Docs/RemoteProcessGroupDTO.md b/Docs/RemoteProcessGroupDTO.md new file mode 100644 index 0000000..1018e63 --- /dev/null +++ b/Docs/RemoteProcessGroupDTO.md @@ -0,0 +1,36 @@ +# IO.Swagger.Model.RemoteProcessGroupDTO +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | **string** | The id of the component. | [optional] +**VersionedComponentId** | **string** | The ID of the corresponding component that is under version control | [optional] +**ParentGroupId** | **string** | The id of parent process group of this component if applicable. | [optional] +**Position** | [**PositionDTO**](PositionDTO.md) | The position of this component in the UI if applicable. | [optional] +**TargetUri** | **string** | The target URI of the remote process group. If target uri is not set, but uris are set, then returns the first url in the urls. If neither target uri nor uris are set, then returns null. | [optional] +**TargetUris** | **string** | The target URI of the remote process group. If target uris is not set but target uri is set, then returns a collection containing the single target uri. If neither target uris nor uris are set, then returns null. | [optional] +**TargetSecure** | **bool?** | Whether the target is running securely. | [optional] +**Name** | **string** | The name of the remote process group. | [optional] +**Comments** | **string** | The comments for the remote process group. | [optional] +**CommunicationsTimeout** | **string** | The time period used for the timeout when communicating with the target. | [optional] +**YieldDuration** | **string** | When yielding, this amount of time must elapse before the remote process group is scheduled again. | [optional] +**TransportProtocol** | **string** | | [optional] +**LocalNetworkInterface** | **string** | The local network interface to send/receive data. If not specified, any local address is used. If clustered, all nodes must have an interface with this identifier. | [optional] +**ProxyHost** | **string** | | [optional] +**ProxyPort** | **int?** | | [optional] +**ProxyUser** | **string** | | [optional] +**ProxyPassword** | **string** | | [optional] +**AuthorizationIssues** | **List<string>** | Any remote authorization issues for the remote process group. | [optional] +**ValidationErrors** | **List<string>** | The validation errors for the remote process group. These validation errors represent the problems with the remote process group that must be resolved before it can transmit. | [optional] +**Transmitting** | **bool?** | Whether the remote process group is actively transmitting. | [optional] +**InputPortCount** | **int?** | The number of remote input ports currently available on the target. | [optional] +**OutputPortCount** | **int?** | The number of remote output ports currently available on the target. | [optional] +**ActiveRemoteInputPortCount** | **int?** | The number of active remote input ports. | [optional] +**InactiveRemoteInputPortCount** | **int?** | The number of inactive remote input ports. | [optional] +**ActiveRemoteOutputPortCount** | **int?** | The number of active remote output ports. | [optional] +**InactiveRemoteOutputPortCount** | **int?** | The number of inactive remote output ports. | [optional] +**FlowRefreshed** | **string** | The timestamp when this remote process group was last refreshed. | [optional] +**Contents** | [**RemoteProcessGroupContentsDTO**](RemoteProcessGroupContentsDTO.md) | The contents of the remote process group. Will contain available input/output ports. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/Docs/RemoteProcessGroupEntity.md b/Docs/RemoteProcessGroupEntity.md new file mode 100644 index 0000000..e94cf34 --- /dev/null +++ b/Docs/RemoteProcessGroupEntity.md @@ -0,0 +1,20 @@ +# IO.Swagger.Model.RemoteProcessGroupEntity +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Revision** | [**RevisionDTO**](RevisionDTO.md) | The revision for this request/response. The revision is required for any mutable flow requests and is included in all responses. | [optional] +**Id** | **string** | The id of the component. | [optional] +**Uri** | **string** | The URI for futures requests to the component. | [optional] +**Position** | [**PositionDTO**](PositionDTO.md) | The position of this component in the UI if applicable. | [optional] +**Permissions** | [**PermissionsDTO**](PermissionsDTO.md) | The permissions for this component. | [optional] +**Bulletins** | [**List<BulletinEntity>**](BulletinEntity.md) | The bulletins for this component. | [optional] +**DisconnectedNodeAcknowledged** | **bool?** | Acknowledges that this node is disconnected to allow for mutable requests to proceed. | [optional] +**Component** | [**RemoteProcessGroupDTO**](RemoteProcessGroupDTO.md) | | [optional] +**Status** | [**RemoteProcessGroupStatusDTO**](RemoteProcessGroupStatusDTO.md) | The status of the remote process group. | [optional] +**InputPortCount** | **int?** | The number of remote input ports currently available on the target. | [optional] +**OutputPortCount** | **int?** | The number of remote output ports currently available on the target. | [optional] +**OperatePermissions** | [**PermissionsDTO**](PermissionsDTO.md) | The permissions for this component operations. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/Docs/RemoteProcessGroupPortDTO.md b/Docs/RemoteProcessGroupPortDTO.md new file mode 100644 index 0000000..a3b1879 --- /dev/null +++ b/Docs/RemoteProcessGroupPortDTO.md @@ -0,0 +1,21 @@ +# IO.Swagger.Model.RemoteProcessGroupPortDTO +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | **string** | The id of the port. | [optional] +**TargetId** | **string** | The id of the target port. | [optional] +**VersionedComponentId** | **string** | The ID of the corresponding component that is under version control | [optional] +**GroupId** | **string** | The id of the remote process group that the port resides in. | [optional] +**Name** | **string** | The name of the target port. | [optional] +**Comments** | **string** | The comments as configured on the target port. | [optional] +**ConcurrentlySchedulableTaskCount** | **int?** | The number of task that may transmit flowfiles to the target port concurrently. | [optional] +**Transmitting** | **bool?** | Whether the remote port is configured for transmission. | [optional] +**UseCompression** | **bool?** | Whether the flowfiles are compressed when sent to the target port. | [optional] +**Exists** | **bool?** | Whether the target port exists. | [optional] +**TargetRunning** | **bool?** | Whether the target port is running. | [optional] +**Connected** | **bool?** | Whether the port has either an incoming or outgoing connection. | [optional] +**BatchSettings** | [**BatchSettingsDTO**](BatchSettingsDTO.md) | The batch settings for data transmission. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/Docs/RemoteProcessGroupPortEntity.md b/Docs/RemoteProcessGroupPortEntity.md new file mode 100644 index 0000000..020b09d --- /dev/null +++ b/Docs/RemoteProcessGroupPortEntity.md @@ -0,0 +1,17 @@ +# IO.Swagger.Model.RemoteProcessGroupPortEntity +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Revision** | [**RevisionDTO**](RevisionDTO.md) | The revision for this request/response. The revision is required for any mutable flow requests and is included in all responses. | [optional] +**Id** | **string** | The id of the component. | [optional] +**Uri** | **string** | The URI for futures requests to the component. | [optional] +**Position** | [**PositionDTO**](PositionDTO.md) | The position of this component in the UI if applicable. | [optional] +**Permissions** | [**PermissionsDTO**](PermissionsDTO.md) | The permissions for this component. | [optional] +**Bulletins** | [**List<BulletinEntity>**](BulletinEntity.md) | The bulletins for this component. | [optional] +**DisconnectedNodeAcknowledged** | **bool?** | Acknowledges that this node is disconnected to allow for mutable requests to proceed. | [optional] +**RemoteProcessGroupPort** | [**RemoteProcessGroupPortDTO**](RemoteProcessGroupPortDTO.md) | | [optional] +**OperatePermissions** | [**PermissionsDTO**](PermissionsDTO.md) | The permissions for this component operations. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/Docs/RemoteProcessGroupStatusDTO.md b/Docs/RemoteProcessGroupStatusDTO.md new file mode 100644 index 0000000..00971aa --- /dev/null +++ b/Docs/RemoteProcessGroupStatusDTO.md @@ -0,0 +1,17 @@ +# IO.Swagger.Model.RemoteProcessGroupStatusDTO +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**GroupId** | **string** | The unique ID of the process group that the Processor belongs to | [optional] +**Id** | **string** | The unique ID of the Processor | [optional] +**Name** | **string** | The name of the remote process group. | [optional] +**TargetUri** | **string** | The URI of the target system. | [optional] +**TransmissionStatus** | **string** | The transmission status of the remote process group. | [optional] +**StatsLastRefreshed** | **string** | The time the status for the process group was last refreshed. | [optional] +**ValidationStatus** | **string** | Indicates whether the component is valid, invalid, or still in the process of validating (i.e., it is unknown whether or not the component is valid) | [optional] +**AggregateSnapshot** | [**RemoteProcessGroupStatusSnapshotDTO**](RemoteProcessGroupStatusSnapshotDTO.md) | A status snapshot that represents the aggregate stats of all nodes in the cluster. If the NiFi instance is a standalone instance, rather than a cluster, this represents the stats of the single instance. | [optional] +**NodeSnapshots** | [**List<NodeRemoteProcessGroupStatusSnapshotDTO>**](NodeRemoteProcessGroupStatusSnapshotDTO.md) | A status snapshot for each node in the cluster. If the NiFi instance is a standalone instance, rather than a cluster, this may be null. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/Docs/RemoteProcessGroupStatusEntity.md b/Docs/RemoteProcessGroupStatusEntity.md new file mode 100644 index 0000000..07e247b --- /dev/null +++ b/Docs/RemoteProcessGroupStatusEntity.md @@ -0,0 +1,10 @@ +# IO.Swagger.Model.RemoteProcessGroupStatusEntity +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**RemoteProcessGroupStatus** | [**RemoteProcessGroupStatusDTO**](RemoteProcessGroupStatusDTO.md) | | [optional] +**CanRead** | **bool?** | Indicates whether the user can read a given resource. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/Docs/RemoteProcessGroupStatusSnapshotDTO.md b/Docs/RemoteProcessGroupStatusSnapshotDTO.md new file mode 100644 index 0000000..7576cde --- /dev/null +++ b/Docs/RemoteProcessGroupStatusSnapshotDTO.md @@ -0,0 +1,20 @@ +# IO.Swagger.Model.RemoteProcessGroupStatusSnapshotDTO +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | **string** | The id of the remote process group. | [optional] +**GroupId** | **string** | The id of the parent process group the remote process group resides in. | [optional] +**Name** | **string** | The name of the remote process group. | [optional] +**TargetUri** | **string** | The URI of the target system. | [optional] +**TransmissionStatus** | **string** | The transmission status of the remote process group. | [optional] +**ActiveThreadCount** | **int?** | The number of active threads for the remote process group. | [optional] +**FlowFilesSent** | **int?** | The number of FlowFiles sent to the remote process group in the last 5 minutes. | [optional] +**BytesSent** | **long?** | The size of the FlowFiles sent to the remote process group in the last 5 minutes. | [optional] +**Sent** | **string** | The count/size of the flowfiles sent to the remote process group in the last 5 minutes. | [optional] +**FlowFilesReceived** | **int?** | The number of FlowFiles received from the remote process group in the last 5 minutes. | [optional] +**BytesReceived** | **long?** | The size of the FlowFiles received from the remote process group in the last 5 minutes. | [optional] +**Received** | **string** | The count/size of the flowfiles received from the remote process group in the last 5 minutes. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/Docs/RemoteProcessGroupStatusSnapshotEntity.md b/Docs/RemoteProcessGroupStatusSnapshotEntity.md new file mode 100644 index 0000000..6381a56 --- /dev/null +++ b/Docs/RemoteProcessGroupStatusSnapshotEntity.md @@ -0,0 +1,11 @@ +# IO.Swagger.Model.RemoteProcessGroupStatusSnapshotEntity +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | **string** | The id of the remote process group. | [optional] +**RemoteProcessGroupStatusSnapshot** | [**RemoteProcessGroupStatusSnapshotDTO**](RemoteProcessGroupStatusSnapshotDTO.md) | | [optional] +**CanRead** | **bool?** | Indicates whether the user can read a given resource. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/Docs/RemoteProcessGroupsApi.md b/Docs/RemoteProcessGroupsApi.md new file mode 100644 index 0000000..fba3b4e --- /dev/null +++ b/Docs/RemoteProcessGroupsApi.md @@ -0,0 +1,522 @@ +# IO.Swagger.Api.RemoteProcessGroupsApi + +All URIs are relative to *http://localhost/nifi-api* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**GetRemoteProcessGroup**](RemoteProcessGroupsApi.md#getremoteprocessgroup) | **GET** /remote-process-groups/{id} | Gets a remote process group +[**RemoveRemoteProcessGroup**](RemoteProcessGroupsApi.md#removeremoteprocessgroup) | **DELETE** /remote-process-groups/{id} | Deletes a remote process group +[**UpdateRemoteProcessGroup**](RemoteProcessGroupsApi.md#updateremoteprocessgroup) | **PUT** /remote-process-groups/{id} | Updates a remote process group +[**UpdateRemoteProcessGroupInputPort**](RemoteProcessGroupsApi.md#updateremoteprocessgroupinputport) | **PUT** /remote-process-groups/{id}/input-ports/{port-id} | Updates a remote port +[**UpdateRemoteProcessGroupInputPortRunStatus**](RemoteProcessGroupsApi.md#updateremoteprocessgroupinputportrunstatus) | **PUT** /remote-process-groups/{id}/input-ports/{port-id}/run-status | Updates run status of a remote port +[**UpdateRemoteProcessGroupOutputPort**](RemoteProcessGroupsApi.md#updateremoteprocessgroupoutputport) | **PUT** /remote-process-groups/{id}/output-ports/{port-id} | Updates a remote port +[**UpdateRemoteProcessGroupOutputPortRunStatus**](RemoteProcessGroupsApi.md#updateremoteprocessgroupoutputportrunstatus) | **PUT** /remote-process-groups/{id}/output-ports/{port-id}/run-status | Updates run status of a remote port +[**UpdateRemoteProcessGroupRunStatus**](RemoteProcessGroupsApi.md#updateremoteprocessgrouprunstatus) | **PUT** /remote-process-groups/{id}/run-status | Updates run status of a remote process group + + + +# **GetRemoteProcessGroup** +> RemoteProcessGroupEntity GetRemoteProcessGroup (string id) + +Gets a remote process group + +### Example +```csharp +using System; +using System.Diagnostics; +using IO.Swagger.Api; +using IO.Swagger.Client; +using IO.Swagger.Model; + +namespace Example +{ + public class GetRemoteProcessGroupExample + { + public void main() + { + var apiInstance = new RemoteProcessGroupsApi(); + var id = id_example; // string | The remote process group id. + + try + { + // Gets a remote process group + RemoteProcessGroupEntity result = apiInstance.GetRemoteProcessGroup(id); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling RemoteProcessGroupsApi.GetRemoteProcessGroup: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **string**| The remote process group id. | + +### Return type + +[**RemoteProcessGroupEntity**](RemoteProcessGroupEntity.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **RemoveRemoteProcessGroup** +> RemoteProcessGroupEntity RemoveRemoteProcessGroup (string id, string version = null, string clientId = null, bool? disconnectedNodeAcknowledged = null) + +Deletes a remote process group + +### Example +```csharp +using System; +using System.Diagnostics; +using IO.Swagger.Api; +using IO.Swagger.Client; +using IO.Swagger.Model; + +namespace Example +{ + public class RemoveRemoteProcessGroupExample + { + public void main() + { + var apiInstance = new RemoteProcessGroupsApi(); + var id = id_example; // string | The remote process group id. + var version = version_example; // string | The revision is used to verify the client is working with the latest version of the flow. (optional) + var clientId = clientId_example; // string | If the client id is not specified, new one will be generated. This value (whether specified or generated) is included in the response. (optional) + var disconnectedNodeAcknowledged = true; // bool? | Acknowledges that this node is disconnected to allow for mutable requests to proceed. (optional) (default to false) + + try + { + // Deletes a remote process group + RemoteProcessGroupEntity result = apiInstance.RemoveRemoteProcessGroup(id, version, clientId, disconnectedNodeAcknowledged); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling RemoteProcessGroupsApi.RemoveRemoteProcessGroup: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **string**| The remote process group id. | + **version** | **string**| The revision is used to verify the client is working with the latest version of the flow. | [optional] + **clientId** | **string**| If the client id is not specified, new one will be generated. This value (whether specified or generated) is included in the response. | [optional] + **disconnectedNodeAcknowledged** | **bool?**| Acknowledges that this node is disconnected to allow for mutable requests to proceed. | [optional] [default to false] + +### Return type + +[**RemoteProcessGroupEntity**](RemoteProcessGroupEntity.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **UpdateRemoteProcessGroup** +> RemoteProcessGroupEntity UpdateRemoteProcessGroup (string id, RemoteProcessGroupEntity body) + +Updates a remote process group + +### Example +```csharp +using System; +using System.Diagnostics; +using IO.Swagger.Api; +using IO.Swagger.Client; +using IO.Swagger.Model; + +namespace Example +{ + public class UpdateRemoteProcessGroupExample + { + public void main() + { + var apiInstance = new RemoteProcessGroupsApi(); + var id = id_example; // string | The remote process group id. + var body = new RemoteProcessGroupEntity(); // RemoteProcessGroupEntity | The remote process group. + + try + { + // Updates a remote process group + RemoteProcessGroupEntity result = apiInstance.UpdateRemoteProcessGroup(id, body); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling RemoteProcessGroupsApi.UpdateRemoteProcessGroup: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **string**| The remote process group id. | + **body** | [**RemoteProcessGroupEntity**](RemoteProcessGroupEntity.md)| The remote process group. | + +### Return type + +[**RemoteProcessGroupEntity**](RemoteProcessGroupEntity.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **UpdateRemoteProcessGroupInputPort** +> RemoteProcessGroupPortEntity UpdateRemoteProcessGroupInputPort (string id, string portId, RemoteProcessGroupPortEntity body) + +Updates a remote port + +Note: This endpoint is subject to change as NiFi and it's REST API evolve. + +### Example +```csharp +using System; +using System.Diagnostics; +using IO.Swagger.Api; +using IO.Swagger.Client; +using IO.Swagger.Model; + +namespace Example +{ + public class UpdateRemoteProcessGroupInputPortExample + { + public void main() + { + var apiInstance = new RemoteProcessGroupsApi(); + var id = id_example; // string | The remote process group id. + var portId = portId_example; // string | The remote process group port id. + var body = new RemoteProcessGroupPortEntity(); // RemoteProcessGroupPortEntity | The remote process group port. + + try + { + // Updates a remote port + RemoteProcessGroupPortEntity result = apiInstance.UpdateRemoteProcessGroupInputPort(id, portId, body); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling RemoteProcessGroupsApi.UpdateRemoteProcessGroupInputPort: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **string**| The remote process group id. | + **portId** | **string**| The remote process group port id. | + **body** | [**RemoteProcessGroupPortEntity**](RemoteProcessGroupPortEntity.md)| The remote process group port. | + +### Return type + +[**RemoteProcessGroupPortEntity**](RemoteProcessGroupPortEntity.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **UpdateRemoteProcessGroupInputPortRunStatus** +> RemoteProcessGroupPortEntity UpdateRemoteProcessGroupInputPortRunStatus (string id, string portId, RemotePortRunStatusEntity body) + +Updates run status of a remote port + +Note: This endpoint is subject to change as NiFi and it's REST API evolve. + +### Example +```csharp +using System; +using System.Diagnostics; +using IO.Swagger.Api; +using IO.Swagger.Client; +using IO.Swagger.Model; + +namespace Example +{ + public class UpdateRemoteProcessGroupInputPortRunStatusExample + { + public void main() + { + var apiInstance = new RemoteProcessGroupsApi(); + var id = id_example; // string | The remote process group id. + var portId = portId_example; // string | The remote process group port id. + var body = new RemotePortRunStatusEntity(); // RemotePortRunStatusEntity | The remote process group port. + + try + { + // Updates run status of a remote port + RemoteProcessGroupPortEntity result = apiInstance.UpdateRemoteProcessGroupInputPortRunStatus(id, portId, body); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling RemoteProcessGroupsApi.UpdateRemoteProcessGroupInputPortRunStatus: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **string**| The remote process group id. | + **portId** | **string**| The remote process group port id. | + **body** | [**RemotePortRunStatusEntity**](RemotePortRunStatusEntity.md)| The remote process group port. | + +### Return type + +[**RemoteProcessGroupPortEntity**](RemoteProcessGroupPortEntity.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **UpdateRemoteProcessGroupOutputPort** +> RemoteProcessGroupPortEntity UpdateRemoteProcessGroupOutputPort (string id, string portId, RemoteProcessGroupPortEntity body) + +Updates a remote port + +Note: This endpoint is subject to change as NiFi and it's REST API evolve. + +### Example +```csharp +using System; +using System.Diagnostics; +using IO.Swagger.Api; +using IO.Swagger.Client; +using IO.Swagger.Model; + +namespace Example +{ + public class UpdateRemoteProcessGroupOutputPortExample + { + public void main() + { + var apiInstance = new RemoteProcessGroupsApi(); + var id = id_example; // string | The remote process group id. + var portId = portId_example; // string | The remote process group port id. + var body = new RemoteProcessGroupPortEntity(); // RemoteProcessGroupPortEntity | The remote process group port. + + try + { + // Updates a remote port + RemoteProcessGroupPortEntity result = apiInstance.UpdateRemoteProcessGroupOutputPort(id, portId, body); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling RemoteProcessGroupsApi.UpdateRemoteProcessGroupOutputPort: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **string**| The remote process group id. | + **portId** | **string**| The remote process group port id. | + **body** | [**RemoteProcessGroupPortEntity**](RemoteProcessGroupPortEntity.md)| The remote process group port. | + +### Return type + +[**RemoteProcessGroupPortEntity**](RemoteProcessGroupPortEntity.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **UpdateRemoteProcessGroupOutputPortRunStatus** +> RemoteProcessGroupPortEntity UpdateRemoteProcessGroupOutputPortRunStatus (string id, string portId, RemotePortRunStatusEntity body) + +Updates run status of a remote port + +Note: This endpoint is subject to change as NiFi and it's REST API evolve. + +### Example +```csharp +using System; +using System.Diagnostics; +using IO.Swagger.Api; +using IO.Swagger.Client; +using IO.Swagger.Model; + +namespace Example +{ + public class UpdateRemoteProcessGroupOutputPortRunStatusExample + { + public void main() + { + var apiInstance = new RemoteProcessGroupsApi(); + var id = id_example; // string | The remote process group id. + var portId = portId_example; // string | The remote process group port id. + var body = new RemotePortRunStatusEntity(); // RemotePortRunStatusEntity | The remote process group port. + + try + { + // Updates run status of a remote port + RemoteProcessGroupPortEntity result = apiInstance.UpdateRemoteProcessGroupOutputPortRunStatus(id, portId, body); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling RemoteProcessGroupsApi.UpdateRemoteProcessGroupOutputPortRunStatus: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **string**| The remote process group id. | + **portId** | **string**| The remote process group port id. | + **body** | [**RemotePortRunStatusEntity**](RemotePortRunStatusEntity.md)| The remote process group port. | + +### Return type + +[**RemoteProcessGroupPortEntity**](RemoteProcessGroupPortEntity.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **UpdateRemoteProcessGroupRunStatus** +> RemoteProcessGroupEntity UpdateRemoteProcessGroupRunStatus (string id, RemotePortRunStatusEntity body) + +Updates run status of a remote process group + +### Example +```csharp +using System; +using System.Diagnostics; +using IO.Swagger.Api; +using IO.Swagger.Client; +using IO.Swagger.Model; + +namespace Example +{ + public class UpdateRemoteProcessGroupRunStatusExample + { + public void main() + { + var apiInstance = new RemoteProcessGroupsApi(); + var id = id_example; // string | The remote process group id. + var body = new RemotePortRunStatusEntity(); // RemotePortRunStatusEntity | The remote process group run status. + + try + { + // Updates run status of a remote process group + RemoteProcessGroupEntity result = apiInstance.UpdateRemoteProcessGroupRunStatus(id, body); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling RemoteProcessGroupsApi.UpdateRemoteProcessGroupRunStatus: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **string**| The remote process group id. | + **body** | [**RemotePortRunStatusEntity**](RemotePortRunStatusEntity.md)| The remote process group run status. | + +### Return type + +[**RemoteProcessGroupEntity**](RemoteProcessGroupEntity.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/Docs/RemoteProcessGroupsEntity.md b/Docs/RemoteProcessGroupsEntity.md new file mode 100644 index 0000000..53bfe88 --- /dev/null +++ b/Docs/RemoteProcessGroupsEntity.md @@ -0,0 +1,9 @@ +# IO.Swagger.Model.RemoteProcessGroupsEntity +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**RemoteProcessGroups** | [**List<RemoteProcessGroupEntity>**](RemoteProcessGroupEntity.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/Docs/ReportingTaskDTO.md b/Docs/ReportingTaskDTO.md new file mode 100644 index 0000000..32e2f8a --- /dev/null +++ b/Docs/ReportingTaskDTO.md @@ -0,0 +1,32 @@ +# IO.Swagger.Model.ReportingTaskDTO +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | **string** | The id of the component. | [optional] +**VersionedComponentId** | **string** | The ID of the corresponding component that is under version control | [optional] +**ParentGroupId** | **string** | The id of parent process group of this component if applicable. | [optional] +**Position** | [**PositionDTO**](PositionDTO.md) | The position of this component in the UI if applicable. | [optional] +**Name** | **string** | The name of the reporting task. | [optional] +**Type** | **string** | The fully qualified type of the reporting task. | [optional] +**Bundle** | [**BundleDTO**](BundleDTO.md) | The details of the artifact that bundled this processor type. | [optional] +**State** | **string** | The state of the reporting task. | [optional] +**Comments** | **string** | The comments of the reporting task. | [optional] +**PersistsState** | **bool?** | Whether the reporting task persists state. | [optional] +**Restricted** | **bool?** | Whether the reporting task requires elevated privileges. | [optional] +**Deprecated** | **bool?** | Whether the reporting task has been deprecated. | [optional] +**MultipleVersionsAvailable** | **bool?** | Whether the reporting task has multiple versions available. | [optional] +**SchedulingPeriod** | **string** | The frequency with which to schedule the reporting task. The format of the value willd epend on the valud of the schedulingStrategy. | [optional] +**SchedulingStrategy** | **string** | The scheduling strategy that determines how the schedulingPeriod value should be interpreted. | [optional] +**DefaultSchedulingPeriod** | **Dictionary<string, string>** | The default scheduling period for the different scheduling strategies. | [optional] +**Properties** | **Dictionary<string, string>** | The properties of the reporting task. | [optional] +**Descriptors** | [**Dictionary<string, PropertyDescriptorDTO>**](PropertyDescriptorDTO.md) | The descriptors for the reporting tasks properties. | [optional] +**CustomUiUrl** | **string** | The URL for the custom configuration UI for the reporting task. | [optional] +**AnnotationData** | **string** | The annotation data for the repoting task. This is how the custom UI relays configuration to the reporting task. | [optional] +**ValidationErrors** | **List<string>** | Gets the validation errors from the reporting task. These validation errors represent the problems with the reporting task that must be resolved before it can be scheduled to run. | [optional] +**ValidationStatus** | **string** | Indicates whether the Processor is valid, invalid, or still in the process of validating (i.e., it is unknown whether or not the Processor is valid) | [optional] +**ActiveThreadCount** | **int?** | The number of active threads for the reporting task. | [optional] +**ExtensionMissing** | **bool?** | Whether the underlying extension is missing. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/Docs/ReportingTaskEntity.md b/Docs/ReportingTaskEntity.md new file mode 100644 index 0000000..bd75d4b --- /dev/null +++ b/Docs/ReportingTaskEntity.md @@ -0,0 +1,18 @@ +# IO.Swagger.Model.ReportingTaskEntity +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Revision** | [**RevisionDTO**](RevisionDTO.md) | The revision for this request/response. The revision is required for any mutable flow requests and is included in all responses. | [optional] +**Id** | **string** | The id of the component. | [optional] +**Uri** | **string** | The URI for futures requests to the component. | [optional] +**Position** | [**PositionDTO**](PositionDTO.md) | The position of this component in the UI if applicable. | [optional] +**Permissions** | [**PermissionsDTO**](PermissionsDTO.md) | The permissions for this component. | [optional] +**Bulletins** | [**List<BulletinEntity>**](BulletinEntity.md) | The bulletins for this component. | [optional] +**DisconnectedNodeAcknowledged** | **bool?** | Acknowledges that this node is disconnected to allow for mutable requests to proceed. | [optional] +**Component** | [**ReportingTaskDTO**](ReportingTaskDTO.md) | | [optional] +**OperatePermissions** | [**PermissionsDTO**](PermissionsDTO.md) | The permissions for this component operations. | [optional] +**Status** | [**ReportingTaskStatusDTO**](ReportingTaskStatusDTO.md) | The status for this ReportingTask. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/Docs/ReportingTaskRunStatusEntity.md b/Docs/ReportingTaskRunStatusEntity.md new file mode 100644 index 0000000..4ec6bbe --- /dev/null +++ b/Docs/ReportingTaskRunStatusEntity.md @@ -0,0 +1,11 @@ +# IO.Swagger.Model.ReportingTaskRunStatusEntity +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Revision** | [**RevisionDTO**](RevisionDTO.md) | The revision for this request/response. The revision is required for any mutable flow requests and is included in all responses. | [optional] +**State** | **string** | The run status of the ReportingTask. | [optional] +**DisconnectedNodeAcknowledged** | **bool?** | Acknowledges that this node is disconnected to allow for mutable requests to proceed. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/Docs/ReportingTaskStatusDTO.md b/Docs/ReportingTaskStatusDTO.md new file mode 100644 index 0000000..7db2c8c --- /dev/null +++ b/Docs/ReportingTaskStatusDTO.md @@ -0,0 +1,11 @@ +# IO.Swagger.Model.ReportingTaskStatusDTO +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**RunStatus** | **string** | The run status of this ReportingTask | [optional] +**ValidationStatus** | **string** | Indicates whether the component is valid, invalid, or still in the process of validating (i.e., it is unknown whether or not the component is valid) | [optional] +**ActiveThreadCount** | **int?** | The number of active threads for the component. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/Docs/ReportingTaskTypesEntity.md b/Docs/ReportingTaskTypesEntity.md new file mode 100644 index 0000000..42f2557 --- /dev/null +++ b/Docs/ReportingTaskTypesEntity.md @@ -0,0 +1,9 @@ +# IO.Swagger.Model.ReportingTaskTypesEntity +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ReportingTaskTypes** | [**List<DocumentedTypeDTO>**](DocumentedTypeDTO.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/Docs/ReportingTasksApi.md b/Docs/ReportingTasksApi.md new file mode 100644 index 0000000..38bb1ab --- /dev/null +++ b/Docs/ReportingTasksApi.md @@ -0,0 +1,440 @@ +# IO.Swagger.Api.ReportingTasksApi + +All URIs are relative to *http://localhost/nifi-api* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**ClearState**](ReportingTasksApi.md#clearstate) | **POST** /reporting-tasks/{id}/state/clear-requests | Clears the state for a reporting task +[**GetPropertyDescriptor**](ReportingTasksApi.md#getpropertydescriptor) | **GET** /reporting-tasks/{id}/descriptors | Gets a reporting task property descriptor +[**GetReportingTask**](ReportingTasksApi.md#getreportingtask) | **GET** /reporting-tasks/{id} | Gets a reporting task +[**GetState**](ReportingTasksApi.md#getstate) | **GET** /reporting-tasks/{id}/state | Gets the state for a reporting task +[**RemoveReportingTask**](ReportingTasksApi.md#removereportingtask) | **DELETE** /reporting-tasks/{id} | Deletes a reporting task +[**UpdateReportingTask**](ReportingTasksApi.md#updatereportingtask) | **PUT** /reporting-tasks/{id} | Updates a reporting task +[**UpdateRunStatus**](ReportingTasksApi.md#updaterunstatus) | **PUT** /reporting-tasks/{id}/run-status | Updates run status of a reporting task + + + +# **ClearState** +> ComponentStateEntity ClearState (string id) + +Clears the state for a reporting task + +### Example +```csharp +using System; +using System.Diagnostics; +using IO.Swagger.Api; +using IO.Swagger.Client; +using IO.Swagger.Model; + +namespace Example +{ + public class ClearStateExample + { + public void main() + { + var apiInstance = new ReportingTasksApi(); + var id = id_example; // string | The reporting task id. + + try + { + // Clears the state for a reporting task + ComponentStateEntity result = apiInstance.ClearState(id); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling ReportingTasksApi.ClearState: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **string**| The reporting task id. | + +### Return type + +[**ComponentStateEntity**](ComponentStateEntity.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **GetPropertyDescriptor** +> PropertyDescriptorEntity GetPropertyDescriptor (string id, string propertyName) + +Gets a reporting task property descriptor + +### Example +```csharp +using System; +using System.Diagnostics; +using IO.Swagger.Api; +using IO.Swagger.Client; +using IO.Swagger.Model; + +namespace Example +{ + public class GetPropertyDescriptorExample + { + public void main() + { + var apiInstance = new ReportingTasksApi(); + var id = id_example; // string | The reporting task id. + var propertyName = propertyName_example; // string | The property name. + + try + { + // Gets a reporting task property descriptor + PropertyDescriptorEntity result = apiInstance.GetPropertyDescriptor(id, propertyName); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling ReportingTasksApi.GetPropertyDescriptor: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **string**| The reporting task id. | + **propertyName** | **string**| The property name. | + +### Return type + +[**PropertyDescriptorEntity**](PropertyDescriptorEntity.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **GetReportingTask** +> ReportingTaskEntity GetReportingTask (string id) + +Gets a reporting task + +### Example +```csharp +using System; +using System.Diagnostics; +using IO.Swagger.Api; +using IO.Swagger.Client; +using IO.Swagger.Model; + +namespace Example +{ + public class GetReportingTaskExample + { + public void main() + { + var apiInstance = new ReportingTasksApi(); + var id = id_example; // string | The reporting task id. + + try + { + // Gets a reporting task + ReportingTaskEntity result = apiInstance.GetReportingTask(id); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling ReportingTasksApi.GetReportingTask: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **string**| The reporting task id. | + +### Return type + +[**ReportingTaskEntity**](ReportingTaskEntity.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **GetState** +> ComponentStateEntity GetState (string id) + +Gets the state for a reporting task + +### Example +```csharp +using System; +using System.Diagnostics; +using IO.Swagger.Api; +using IO.Swagger.Client; +using IO.Swagger.Model; + +namespace Example +{ + public class GetStateExample + { + public void main() + { + var apiInstance = new ReportingTasksApi(); + var id = id_example; // string | The reporting task id. + + try + { + // Gets the state for a reporting task + ComponentStateEntity result = apiInstance.GetState(id); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling ReportingTasksApi.GetState: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **string**| The reporting task id. | + +### Return type + +[**ComponentStateEntity**](ComponentStateEntity.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **RemoveReportingTask** +> ReportingTaskEntity RemoveReportingTask (string id, string version = null, string clientId = null, bool? disconnectedNodeAcknowledged = null) + +Deletes a reporting task + +### Example +```csharp +using System; +using System.Diagnostics; +using IO.Swagger.Api; +using IO.Swagger.Client; +using IO.Swagger.Model; + +namespace Example +{ + public class RemoveReportingTaskExample + { + public void main() + { + var apiInstance = new ReportingTasksApi(); + var id = id_example; // string | The reporting task id. + var version = version_example; // string | The revision is used to verify the client is working with the latest version of the flow. (optional) + var clientId = clientId_example; // string | If the client id is not specified, new one will be generated. This value (whether specified or generated) is included in the response. (optional) + var disconnectedNodeAcknowledged = true; // bool? | Acknowledges that this node is disconnected to allow for mutable requests to proceed. (optional) (default to false) + + try + { + // Deletes a reporting task + ReportingTaskEntity result = apiInstance.RemoveReportingTask(id, version, clientId, disconnectedNodeAcknowledged); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling ReportingTasksApi.RemoveReportingTask: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **string**| The reporting task id. | + **version** | **string**| The revision is used to verify the client is working with the latest version of the flow. | [optional] + **clientId** | **string**| If the client id is not specified, new one will be generated. This value (whether specified or generated) is included in the response. | [optional] + **disconnectedNodeAcknowledged** | **bool?**| Acknowledges that this node is disconnected to allow for mutable requests to proceed. | [optional] [default to false] + +### Return type + +[**ReportingTaskEntity**](ReportingTaskEntity.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **UpdateReportingTask** +> ReportingTaskEntity UpdateReportingTask (string id, ReportingTaskEntity body) + +Updates a reporting task + +### Example +```csharp +using System; +using System.Diagnostics; +using IO.Swagger.Api; +using IO.Swagger.Client; +using IO.Swagger.Model; + +namespace Example +{ + public class UpdateReportingTaskExample + { + public void main() + { + var apiInstance = new ReportingTasksApi(); + var id = id_example; // string | The reporting task id. + var body = new ReportingTaskEntity(); // ReportingTaskEntity | The reporting task configuration details. + + try + { + // Updates a reporting task + ReportingTaskEntity result = apiInstance.UpdateReportingTask(id, body); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling ReportingTasksApi.UpdateReportingTask: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **string**| The reporting task id. | + **body** | [**ReportingTaskEntity**](ReportingTaskEntity.md)| The reporting task configuration details. | + +### Return type + +[**ReportingTaskEntity**](ReportingTaskEntity.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **UpdateRunStatus** +> ReportingTaskEntity UpdateRunStatus (string id, ReportingTaskRunStatusEntity body) + +Updates run status of a reporting task + +### Example +```csharp +using System; +using System.Diagnostics; +using IO.Swagger.Api; +using IO.Swagger.Client; +using IO.Swagger.Model; + +namespace Example +{ + public class UpdateRunStatusExample + { + public void main() + { + var apiInstance = new ReportingTasksApi(); + var id = id_example; // string | The reporting task id. + var body = new ReportingTaskRunStatusEntity(); // ReportingTaskRunStatusEntity | The reporting task run status. + + try + { + // Updates run status of a reporting task + ReportingTaskEntity result = apiInstance.UpdateRunStatus(id, body); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling ReportingTasksApi.UpdateRunStatus: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **string**| The reporting task id. | + **body** | [**ReportingTaskRunStatusEntity**](ReportingTaskRunStatusEntity.md)| The reporting task run status. | + +### Return type + +[**ReportingTaskEntity**](ReportingTaskEntity.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/Docs/ReportingTasksEntity.md b/Docs/ReportingTasksEntity.md new file mode 100644 index 0000000..e4fc008 --- /dev/null +++ b/Docs/ReportingTasksEntity.md @@ -0,0 +1,9 @@ +# IO.Swagger.Model.ReportingTasksEntity +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ReportingTasks** | [**List<ReportingTaskEntity>**](ReportingTaskEntity.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/Docs/RequiredPermissionDTO.md b/Docs/RequiredPermissionDTO.md new file mode 100644 index 0000000..a44e543 --- /dev/null +++ b/Docs/RequiredPermissionDTO.md @@ -0,0 +1,10 @@ +# IO.Swagger.Model.RequiredPermissionDTO +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | **string** | The required sub-permission necessary for this restriction. | [optional] +**Label** | **string** | The label for the required sub-permission necessary for this restriction. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/Docs/ResourceDTO.md b/Docs/ResourceDTO.md new file mode 100644 index 0000000..dcc500e --- /dev/null +++ b/Docs/ResourceDTO.md @@ -0,0 +1,10 @@ +# IO.Swagger.Model.ResourceDTO +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Identifier** | **string** | The identifier of the resource. | [optional] +**Name** | **string** | The name of the resource. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/Docs/ResourcesApi.md b/Docs/ResourcesApi.md new file mode 100644 index 0000000..a87f4a1 --- /dev/null +++ b/Docs/ResourcesApi.md @@ -0,0 +1,64 @@ +# IO.Swagger.Api.ResourcesApi + +All URIs are relative to *http://localhost/nifi-api* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**GetResources**](ResourcesApi.md#getresources) | **GET** /resources | Gets the available resources that support access/authorization policies + + + +# **GetResources** +> ResourcesEntity GetResources () + +Gets the available resources that support access/authorization policies + +### Example +```csharp +using System; +using System.Diagnostics; +using IO.Swagger.Api; +using IO.Swagger.Client; +using IO.Swagger.Model; + +namespace Example +{ + public class GetResourcesExample + { + public void main() + { + var apiInstance = new ResourcesApi(); + + try + { + // Gets the available resources that support access/authorization policies + ResourcesEntity result = apiInstance.GetResources(); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling ResourcesApi.GetResources: " + e.Message ); + } + } + } +} +``` + +### Parameters +This endpoint does not need any parameter. + +### Return type + +[**ResourcesEntity**](ResourcesEntity.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/Docs/ResourcesEntity.md b/Docs/ResourcesEntity.md new file mode 100644 index 0000000..099ea4b --- /dev/null +++ b/Docs/ResourcesEntity.md @@ -0,0 +1,9 @@ +# IO.Swagger.Model.ResourcesEntity +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Resources** | [**List<ResourceDTO>**](ResourceDTO.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/Docs/RevisionDTO.md b/Docs/RevisionDTO.md new file mode 100644 index 0000000..1b78194 --- /dev/null +++ b/Docs/RevisionDTO.md @@ -0,0 +1,11 @@ +# IO.Swagger.Model.RevisionDTO +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ClientId** | **string** | A client identifier used to make a request. By including a client identifier, the API can allow multiple requests without needing the current revision. Due to the asynchronous nature of requests/responses this was implemented to allow the client to make numerous requests without having to wait for the previous response to come back | [optional] +**Version** | **long?** | NiFi employs an optimistic locking strategy where the client must include a revision in their request when performing an update. In a response to a mutable flow request, this field represents the updated base version. | [optional] +**LastModifier** | **string** | The user that last modified the flow. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/Docs/ScheduleComponentsEntity.md b/Docs/ScheduleComponentsEntity.md new file mode 100644 index 0000000..eb7bd36 --- /dev/null +++ b/Docs/ScheduleComponentsEntity.md @@ -0,0 +1,12 @@ +# IO.Swagger.Model.ScheduleComponentsEntity +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | **string** | The id of the ProcessGroup | [optional] +**State** | **string** | The desired state of the descendant components | [optional] +**Components** | [**Dictionary<string, RevisionDTO>**](RevisionDTO.md) | Optional components to schedule. If not specified, all authorized descendant components will be used. | [optional] +**DisconnectedNodeAcknowledged** | **bool?** | Acknowledges that this node is disconnected to allow for mutable requests to proceed. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/Docs/SearchResultGroupDTO.md b/Docs/SearchResultGroupDTO.md new file mode 100644 index 0000000..786d5e5 --- /dev/null +++ b/Docs/SearchResultGroupDTO.md @@ -0,0 +1,10 @@ +# IO.Swagger.Model.SearchResultGroupDTO +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | **string** | The id of the group. | +**Name** | **string** | The name of the group. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/Docs/SearchResultsDTO.md b/Docs/SearchResultsDTO.md new file mode 100644 index 0000000..57ff603 --- /dev/null +++ b/Docs/SearchResultsDTO.md @@ -0,0 +1,15 @@ +# IO.Swagger.Model.SearchResultsDTO +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ProcessorResults** | [**List<ComponentSearchResultDTO>**](ComponentSearchResultDTO.md) | The processors that matched the search. | [optional] +**ConnectionResults** | [**List<ComponentSearchResultDTO>**](ComponentSearchResultDTO.md) | The connections that matched the search. | [optional] +**ProcessGroupResults** | [**List<ComponentSearchResultDTO>**](ComponentSearchResultDTO.md) | The process groups that matched the search. | [optional] +**InputPortResults** | [**List<ComponentSearchResultDTO>**](ComponentSearchResultDTO.md) | The input ports that matched the search. | [optional] +**OutputPortResults** | [**List<ComponentSearchResultDTO>**](ComponentSearchResultDTO.md) | The output ports that matched the search. | [optional] +**RemoteProcessGroupResults** | [**List<ComponentSearchResultDTO>**](ComponentSearchResultDTO.md) | The remote process groups that matched the search. | [optional] +**FunnelResults** | [**List<ComponentSearchResultDTO>**](ComponentSearchResultDTO.md) | The funnels that matched the search. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/Docs/SearchResultsEntity.md b/Docs/SearchResultsEntity.md new file mode 100644 index 0000000..f2bcf8e --- /dev/null +++ b/Docs/SearchResultsEntity.md @@ -0,0 +1,9 @@ +# IO.Swagger.Model.SearchResultsEntity +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**SearchResultsDTO** | [**SearchResultsDTO**](SearchResultsDTO.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/Docs/SiteToSiteApi.md b/Docs/SiteToSiteApi.md new file mode 100644 index 0000000..c79bd50 --- /dev/null +++ b/Docs/SiteToSiteApi.md @@ -0,0 +1,120 @@ +# IO.Swagger.Api.SiteToSiteApi + +All URIs are relative to *http://localhost/nifi-api* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**GetPeers**](SiteToSiteApi.md#getpeers) | **GET** /site-to-site/peers | Returns the available Peers and its status of this NiFi +[**GetSiteToSiteDetails**](SiteToSiteApi.md#getsitetositedetails) | **GET** /site-to-site | Returns the details about this NiFi necessary to communicate via site to site + + + +# **GetPeers** +> PeersEntity GetPeers () + +Returns the available Peers and its status of this NiFi + +### Example +```csharp +using System; +using System.Diagnostics; +using IO.Swagger.Api; +using IO.Swagger.Client; +using IO.Swagger.Model; + +namespace Example +{ + public class GetPeersExample + { + public void main() + { + var apiInstance = new SiteToSiteApi(); + + try + { + // Returns the available Peers and its status of this NiFi + PeersEntity result = apiInstance.GetPeers(); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling SiteToSiteApi.GetPeers: " + e.Message ); + } + } + } +} +``` + +### Parameters +This endpoint does not need any parameter. + +### Return type + +[**PeersEntity**](PeersEntity.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json, application/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **GetSiteToSiteDetails** +> ControllerEntity GetSiteToSiteDetails () + +Returns the details about this NiFi necessary to communicate via site to site + +### Example +```csharp +using System; +using System.Diagnostics; +using IO.Swagger.Api; +using IO.Swagger.Client; +using IO.Swagger.Model; + +namespace Example +{ + public class GetSiteToSiteDetailsExample + { + public void main() + { + var apiInstance = new SiteToSiteApi(); + + try + { + // Returns the details about this NiFi necessary to communicate via site to site + ControllerEntity result = apiInstance.GetSiteToSiteDetails(); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling SiteToSiteApi.GetSiteToSiteDetails: " + e.Message ); + } + } + } +} +``` + +### Parameters +This endpoint does not need any parameter. + +### Return type + +[**ControllerEntity**](ControllerEntity.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/Docs/SnippetDTO.md b/Docs/SnippetDTO.md new file mode 100644 index 0000000..bdb919a --- /dev/null +++ b/Docs/SnippetDTO.md @@ -0,0 +1,19 @@ +# IO.Swagger.Model.SnippetDTO +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | **string** | The id of the snippet. | [optional] +**Uri** | **string** | The URI of the snippet. | [optional] +**ParentGroupId** | **string** | The group id for the components in the snippet. | [optional] +**ProcessGroups** | [**Dictionary<string, RevisionDTO>**](RevisionDTO.md) | The ids of the process groups in this snippet. These ids will be populated within each response. They can be specified when creating a snippet. However, once a snippet has been created its contents cannot be modified (these ids are ignored during update requests). | [optional] +**RemoteProcessGroups** | [**Dictionary<string, RevisionDTO>**](RevisionDTO.md) | The ids of the remote process groups in this snippet. These ids will be populated within each response. They can be specified when creating a snippet. However, once a snippet has been created its contents cannot be modified (these ids are ignored during update requests). | [optional] +**Processors** | [**Dictionary<string, RevisionDTO>**](RevisionDTO.md) | The ids of the processors in this snippet. These ids will be populated within each response. They can be specified when creating a snippet. However, once a snippet has been created its contents cannot be modified (these ids are ignored during update requests). | [optional] +**InputPorts** | [**Dictionary<string, RevisionDTO>**](RevisionDTO.md) | The ids of the input ports in this snippet. These ids will be populated within each response. They can be specified when creating a snippet. However, once a snippet has been created its contents cannot be modified (these ids are ignored during update requests). | [optional] +**OutputPorts** | [**Dictionary<string, RevisionDTO>**](RevisionDTO.md) | The ids of the output ports in this snippet. These ids will be populated within each response. They can be specified when creating a snippet. However, once a snippet has been created its contents cannot be modified (these ids are ignored during update requests). | [optional] +**Connections** | [**Dictionary<string, RevisionDTO>**](RevisionDTO.md) | The ids of the connections in this snippet. These ids will be populated within each response. They can be specified when creating a snippet. However, once a snippet has been created its contents cannot be modified (these ids are ignored during update requests). | [optional] +**Labels** | [**Dictionary<string, RevisionDTO>**](RevisionDTO.md) | The ids of the labels in this snippet. These ids will be populated within each response. They can be specified when creating a snippet. However, once a snippet has been created its contents cannot be modified (these ids are ignored during update requests). | [optional] +**Funnels** | [**Dictionary<string, RevisionDTO>**](RevisionDTO.md) | The ids of the funnels in this snippet. These ids will be populated within each response. They can be specified when creating a snippet. However, once a snippet has been created its contents cannot be modified (these ids are ignored during update requests). | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/Docs/SnippetEntity.md b/Docs/SnippetEntity.md new file mode 100644 index 0000000..57fb4d8 --- /dev/null +++ b/Docs/SnippetEntity.md @@ -0,0 +1,10 @@ +# IO.Swagger.Model.SnippetEntity +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Snippet** | [**SnippetDTO**](SnippetDTO.md) | The snippet. | [optional] +**DisconnectedNodeAcknowledged** | **bool?** | Acknowledges that this node is disconnected to allow for mutable requests to proceed. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/Docs/SnippetsApi.md b/Docs/SnippetsApi.md new file mode 100644 index 0000000..369835e --- /dev/null +++ b/Docs/SnippetsApi.md @@ -0,0 +1,192 @@ +# IO.Swagger.Api.SnippetsApi + +All URIs are relative to *http://localhost/nifi-api* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**CreateSnippet**](SnippetsApi.md#createsnippet) | **POST** /snippets | Creates a snippet. The snippet will be automatically discarded if not used in a subsequent request after 1 minute. +[**DeleteSnippet**](SnippetsApi.md#deletesnippet) | **DELETE** /snippets/{id} | Deletes the components in a snippet and discards the snippet +[**UpdateSnippet**](SnippetsApi.md#updatesnippet) | **PUT** /snippets/{id} | Move's the components in this Snippet into a new Process Group and discards the snippet + + + +# **CreateSnippet** +> SnippetEntity CreateSnippet (SnippetEntity body) + +Creates a snippet. The snippet will be automatically discarded if not used in a subsequent request after 1 minute. + +### Example +```csharp +using System; +using System.Diagnostics; +using IO.Swagger.Api; +using IO.Swagger.Client; +using IO.Swagger.Model; + +namespace Example +{ + public class CreateSnippetExample + { + public void main() + { + var apiInstance = new SnippetsApi(); + var body = new SnippetEntity(); // SnippetEntity | The snippet configuration details. + + try + { + // Creates a snippet. The snippet will be automatically discarded if not used in a subsequent request after 1 minute. + SnippetEntity result = apiInstance.CreateSnippet(body); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling SnippetsApi.CreateSnippet: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **body** | [**SnippetEntity**](SnippetEntity.md)| The snippet configuration details. | + +### Return type + +[**SnippetEntity**](SnippetEntity.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **DeleteSnippet** +> SnippetEntity DeleteSnippet (string id, bool? disconnectedNodeAcknowledged = null) + +Deletes the components in a snippet and discards the snippet + +### Example +```csharp +using System; +using System.Diagnostics; +using IO.Swagger.Api; +using IO.Swagger.Client; +using IO.Swagger.Model; + +namespace Example +{ + public class DeleteSnippetExample + { + public void main() + { + var apiInstance = new SnippetsApi(); + var id = id_example; // string | The snippet id. + var disconnectedNodeAcknowledged = true; // bool? | Acknowledges that this node is disconnected to allow for mutable requests to proceed. (optional) (default to false) + + try + { + // Deletes the components in a snippet and discards the snippet + SnippetEntity result = apiInstance.DeleteSnippet(id, disconnectedNodeAcknowledged); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling SnippetsApi.DeleteSnippet: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **string**| The snippet id. | + **disconnectedNodeAcknowledged** | **bool?**| Acknowledges that this node is disconnected to allow for mutable requests to proceed. | [optional] [default to false] + +### Return type + +[**SnippetEntity**](SnippetEntity.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **UpdateSnippet** +> SnippetEntity UpdateSnippet (string id, SnippetEntity body) + +Move's the components in this Snippet into a new Process Group and discards the snippet + +### Example +```csharp +using System; +using System.Diagnostics; +using IO.Swagger.Api; +using IO.Swagger.Client; +using IO.Swagger.Model; + +namespace Example +{ + public class UpdateSnippetExample + { + public void main() + { + var apiInstance = new SnippetsApi(); + var id = id_example; // string | The snippet id. + var body = new SnippetEntity(); // SnippetEntity | The snippet configuration details. + + try + { + // Move's the components in this Snippet into a new Process Group and discards the snippet + SnippetEntity result = apiInstance.UpdateSnippet(id, body); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling SnippetsApi.UpdateSnippet: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **string**| The snippet id. | + **body** | [**SnippetEntity**](SnippetEntity.md)| The snippet configuration details. | + +### Return type + +[**SnippetEntity**](SnippetEntity.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/Docs/StartVersionControlRequestEntity.md b/Docs/StartVersionControlRequestEntity.md new file mode 100644 index 0000000..3016534 --- /dev/null +++ b/Docs/StartVersionControlRequestEntity.md @@ -0,0 +1,11 @@ +# IO.Swagger.Model.StartVersionControlRequestEntity +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**VersionedFlow** | [**VersionedFlowDTO**](VersionedFlowDTO.md) | The versioned flow | [optional] +**ProcessGroupRevision** | [**RevisionDTO**](RevisionDTO.md) | The Revision of the Process Group under Version Control | [optional] +**DisconnectedNodeAcknowledged** | **bool?** | Acknowledges that this node is disconnected to allow for mutable requests to proceed. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/Docs/StateEntryDTO.md b/Docs/StateEntryDTO.md new file mode 100644 index 0000000..e05d398 --- /dev/null +++ b/Docs/StateEntryDTO.md @@ -0,0 +1,12 @@ +# IO.Swagger.Model.StateEntryDTO +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Key** | **string** | The key for this state. | [optional] +**Value** | **string** | The value for this state. | [optional] +**ClusterNodeId** | **string** | The identifier for the node where the state originated. | [optional] +**ClusterNodeAddress** | **string** | The label for the node where the state originated. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/Docs/StateMapDTO.md b/Docs/StateMapDTO.md new file mode 100644 index 0000000..e128d5f --- /dev/null +++ b/Docs/StateMapDTO.md @@ -0,0 +1,11 @@ +# IO.Swagger.Model.StateMapDTO +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Scope** | **string** | The scope of this StateMap. | [optional] +**TotalEntryCount** | **int?** | The total number of state entries. When the state map is lengthy, only of portion of the entries are returned. | [optional] +**State** | [**List<StateEntryDTO>**](StateEntryDTO.md) | The state. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/Docs/StatusDescriptorDTO.md b/Docs/StatusDescriptorDTO.md new file mode 100644 index 0000000..aa269f7 --- /dev/null +++ b/Docs/StatusDescriptorDTO.md @@ -0,0 +1,12 @@ +# IO.Swagger.Model.StatusDescriptorDTO +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Field** | **string** | The name of the status field. | [optional] +**Label** | **string** | The label for the status field. | [optional] +**Description** | **string** | The description of the status field. | [optional] +**Formatter** | **string** | The formatter for the status descriptor. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/Docs/StatusHistoryDTO.md b/Docs/StatusHistoryDTO.md new file mode 100644 index 0000000..cbd7172 --- /dev/null +++ b/Docs/StatusHistoryDTO.md @@ -0,0 +1,13 @@ +# IO.Swagger.Model.StatusHistoryDTO +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Generated** | **string** | When the status history was generated. | [optional] +**ComponentDetails** | **Dictionary<string, string>** | A Map of key/value pairs that describe the component that the status history belongs to | [optional] +**FieldDescriptors** | [**List<StatusDescriptorDTO>**](StatusDescriptorDTO.md) | The Descriptors that provide information on each of the metrics provided in the status history | [optional] +**AggregateSnapshots** | [**List<StatusSnapshotDTO>**](StatusSnapshotDTO.md) | A list of StatusSnapshotDTO objects that provide the actual metric values for the component. If the NiFi instance is clustered, this will represent the aggregate status across all nodes. If the NiFi instance is not clustered, this will represent the status of the entire NiFi instance. | [optional] +**NodeSnapshots** | [**List<NodeStatusSnapshotsDTO>**](NodeStatusSnapshotsDTO.md) | The NodeStatusSnapshotsDTO objects that provide the actual metric values for the component, for each node. If the NiFi instance is not clustered, this value will be null. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/Docs/StatusHistoryEntity.md b/Docs/StatusHistoryEntity.md new file mode 100644 index 0000000..89abf0a --- /dev/null +++ b/Docs/StatusHistoryEntity.md @@ -0,0 +1,10 @@ +# IO.Swagger.Model.StatusHistoryEntity +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**StatusHistory** | [**StatusHistoryDTO**](StatusHistoryDTO.md) | | [optional] +**CanRead** | **bool?** | Indicates whether the user can read a given resource. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/Docs/StatusSnapshotDTO.md b/Docs/StatusSnapshotDTO.md new file mode 100644 index 0000000..3090dac --- /dev/null +++ b/Docs/StatusSnapshotDTO.md @@ -0,0 +1,10 @@ +# IO.Swagger.Model.StatusSnapshotDTO +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Timestamp** | **DateTime?** | The timestamp of the snapshot. | [optional] +**StatusMetrics** | **Dictionary<string, long?>** | The status metrics. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/Docs/StorageUsageDTO.md b/Docs/StorageUsageDTO.md new file mode 100644 index 0000000..25b72e7 --- /dev/null +++ b/Docs/StorageUsageDTO.md @@ -0,0 +1,16 @@ +# IO.Swagger.Model.StorageUsageDTO +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Identifier** | **string** | The identifier of this storage location. The identifier will correspond to the identifier keyed in the storage configuration. | [optional] +**FreeSpace** | **string** | Amount of free space. | [optional] +**TotalSpace** | **string** | Amount of total space. | [optional] +**UsedSpace** | **string** | Amount of used space. | [optional] +**FreeSpaceBytes** | **long?** | The number of bytes of free space. | [optional] +**TotalSpaceBytes** | **long?** | The number of bytes of total space. | [optional] +**UsedSpaceBytes** | **long?** | The number of bytes of used space. | [optional] +**Utilization** | **string** | Utilization of this storage location. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/Docs/StreamingOutput.md b/Docs/StreamingOutput.md new file mode 100644 index 0000000..6eb1894 --- /dev/null +++ b/Docs/StreamingOutput.md @@ -0,0 +1,8 @@ +# IO.Swagger.Model.StreamingOutput +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/Docs/SubmitReplayRequestEntity.md b/Docs/SubmitReplayRequestEntity.md new file mode 100644 index 0000000..29823b0 --- /dev/null +++ b/Docs/SubmitReplayRequestEntity.md @@ -0,0 +1,10 @@ +# IO.Swagger.Model.SubmitReplayRequestEntity +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**EventId** | **long?** | The event identifier | [optional] +**ClusterNodeId** | **string** | The identifier of the node where to submit the replay request. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/Docs/SystemDiagnosticsApi.md b/Docs/SystemDiagnosticsApi.md new file mode 100644 index 0000000..8b47b17 --- /dev/null +++ b/Docs/SystemDiagnosticsApi.md @@ -0,0 +1,70 @@ +# IO.Swagger.Api.SystemDiagnosticsApi + +All URIs are relative to *http://localhost/nifi-api* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**GetSystemDiagnostics**](SystemDiagnosticsApi.md#getsystemdiagnostics) | **GET** /system-diagnostics | Gets the diagnostics for the system NiFi is running on + + + +# **GetSystemDiagnostics** +> SystemDiagnosticsEntity GetSystemDiagnostics (bool? nodewise = null, string clusterNodeId = null) + +Gets the diagnostics for the system NiFi is running on + +### Example +```csharp +using System; +using System.Diagnostics; +using IO.Swagger.Api; +using IO.Swagger.Client; +using IO.Swagger.Model; + +namespace Example +{ + public class GetSystemDiagnosticsExample + { + public void main() + { + var apiInstance = new SystemDiagnosticsApi(); + var nodewise = true; // bool? | Whether or not to include the breakdown per node. Optional, defaults to false (optional) (default to false) + var clusterNodeId = clusterNodeId_example; // string | The id of the node where to get the status. (optional) + + try + { + // Gets the diagnostics for the system NiFi is running on + SystemDiagnosticsEntity result = apiInstance.GetSystemDiagnostics(nodewise, clusterNodeId); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling SystemDiagnosticsApi.GetSystemDiagnostics: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **nodewise** | **bool?**| Whether or not to include the breakdown per node. Optional, defaults to false | [optional] [default to false] + **clusterNodeId** | **string**| The id of the node where to get the status. | [optional] + +### Return type + +[**SystemDiagnosticsEntity**](SystemDiagnosticsEntity.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/Docs/SystemDiagnosticsDTO.md b/Docs/SystemDiagnosticsDTO.md new file mode 100644 index 0000000..a395c36 --- /dev/null +++ b/Docs/SystemDiagnosticsDTO.md @@ -0,0 +1,10 @@ +# IO.Swagger.Model.SystemDiagnosticsDTO +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AggregateSnapshot** | [**SystemDiagnosticsSnapshotDTO**](SystemDiagnosticsSnapshotDTO.md) | A systems diagnostic snapshot that represents the aggregate values of all nodes in the cluster. If the NiFi instance is a standalone instance, rather than a cluster, this represents the stats of the single instance. | [optional] +**NodeSnapshots** | [**List<NodeSystemDiagnosticsSnapshotDTO>**](NodeSystemDiagnosticsSnapshotDTO.md) | A systems diagnostics snapshot for each node in the cluster. If the NiFi instance is a standalone instance, rather than a cluster, this may be null. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/Docs/SystemDiagnosticsEntity.md b/Docs/SystemDiagnosticsEntity.md new file mode 100644 index 0000000..26bd566 --- /dev/null +++ b/Docs/SystemDiagnosticsEntity.md @@ -0,0 +1,9 @@ +# IO.Swagger.Model.SystemDiagnosticsEntity +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**SystemDiagnostics** | [**SystemDiagnosticsDTO**](SystemDiagnosticsDTO.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/Docs/SystemDiagnosticsSnapshotDTO.md b/Docs/SystemDiagnosticsSnapshotDTO.md new file mode 100644 index 0000000..5957b85 --- /dev/null +++ b/Docs/SystemDiagnosticsSnapshotDTO.md @@ -0,0 +1,37 @@ +# IO.Swagger.Model.SystemDiagnosticsSnapshotDTO +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**TotalNonHeap** | **string** | Total size of non heap. | [optional] +**TotalNonHeapBytes** | **long?** | Total number of bytes allocated to the JVM not used for heap | [optional] +**UsedNonHeap** | **string** | Amount of use non heap. | [optional] +**UsedNonHeapBytes** | **long?** | Total number of bytes used by the JVM not in the heap space | [optional] +**FreeNonHeap** | **string** | Amount of free non heap. | [optional] +**FreeNonHeapBytes** | **long?** | Total number of free non-heap bytes available to the JVM | [optional] +**MaxNonHeap** | **string** | Maximum size of non heap. | [optional] +**MaxNonHeapBytes** | **long?** | The maximum number of bytes that the JVM can use for non-heap purposes | [optional] +**NonHeapUtilization** | **string** | Utilization of non heap. | [optional] +**TotalHeap** | **string** | Total size of heap. | [optional] +**TotalHeapBytes** | **long?** | The total number of bytes that are available for the JVM heap to use | [optional] +**UsedHeap** | **string** | Amount of used heap. | [optional] +**UsedHeapBytes** | **long?** | The number of bytes of JVM heap that are currently being used | [optional] +**FreeHeap** | **string** | Amount of free heap. | [optional] +**FreeHeapBytes** | **long?** | The number of bytes that are allocated to the JVM heap but not currently being used | [optional] +**MaxHeap** | **string** | Maximum size of heap. | [optional] +**MaxHeapBytes** | **long?** | The maximum number of bytes that can be used by the JVM | [optional] +**HeapUtilization** | **string** | Utilization of heap. | [optional] +**AvailableProcessors** | **int?** | Number of available processors if supported by the underlying system. | [optional] +**ProcessorLoadAverage** | **double?** | The processor load average if supported by the underlying system. | [optional] +**TotalThreads** | **int?** | Total number of threads. | [optional] +**DaemonThreads** | **int?** | Number of daemon threads. | [optional] +**Uptime** | **string** | The uptime of the Java virtual machine | [optional] +**FlowFileRepositoryStorageUsage** | [**StorageUsageDTO**](StorageUsageDTO.md) | The flowfile repository storage usage. | [optional] +**ContentRepositoryStorageUsage** | [**List<StorageUsageDTO>**](StorageUsageDTO.md) | The content repository storage usage. | [optional] +**ProvenanceRepositoryStorageUsage** | [**List<StorageUsageDTO>**](StorageUsageDTO.md) | The provenance repository storage usage. | [optional] +**GarbageCollection** | [**List<GarbageCollectionDTO>**](GarbageCollectionDTO.md) | The garbage collection details. | [optional] +**StatsLastRefreshed** | **string** | When the diagnostics were generated. | [optional] +**VersionInfo** | [**VersionInfoDTO**](VersionInfoDTO.md) | The nifi, os, java, and build version information | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/Docs/TemplateDTO.md b/Docs/TemplateDTO.md new file mode 100644 index 0000000..b71b6d0 --- /dev/null +++ b/Docs/TemplateDTO.md @@ -0,0 +1,16 @@ +# IO.Swagger.Model.TemplateDTO +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Uri** | **string** | The URI for the template. | [optional] +**Id** | **string** | The id of the template. | [optional] +**GroupId** | **string** | The id of the Process Group that the template belongs to. | [optional] +**Name** | **string** | The name of the template. | [optional] +**Description** | **string** | The description of the template. | [optional] +**Timestamp** | **string** | The timestamp when this template was created. | [optional] +**EncodingVersion** | **string** | The encoding version of this template. | [optional] +**Snippet** | [**FlowSnippetDTO**](FlowSnippetDTO.md) | The contents of the template. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/Docs/TemplateEntity.md b/Docs/TemplateEntity.md new file mode 100644 index 0000000..0be2914 --- /dev/null +++ b/Docs/TemplateEntity.md @@ -0,0 +1,16 @@ +# IO.Swagger.Model.TemplateEntity +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Revision** | [**RevisionDTO**](RevisionDTO.md) | The revision for this request/response. The revision is required for any mutable flow requests and is included in all responses. | [optional] +**Id** | **string** | The id of the component. | [optional] +**Uri** | **string** | The URI for futures requests to the component. | [optional] +**Position** | [**PositionDTO**](PositionDTO.md) | The position of this component in the UI if applicable. | [optional] +**Permissions** | [**PermissionsDTO**](PermissionsDTO.md) | The permissions for this component. | [optional] +**Bulletins** | [**List<BulletinEntity>**](BulletinEntity.md) | The bulletins for this component. | [optional] +**DisconnectedNodeAcknowledged** | **bool?** | Acknowledges that this node is disconnected to allow for mutable requests to proceed. | [optional] +**Template** | [**TemplateDTO**](TemplateDTO.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/Docs/TemplatesApi.md b/Docs/TemplatesApi.md new file mode 100644 index 0000000..431dc9c --- /dev/null +++ b/Docs/TemplatesApi.md @@ -0,0 +1,130 @@ +# IO.Swagger.Api.TemplatesApi + +All URIs are relative to *http://localhost/nifi-api* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**ExportTemplate**](TemplatesApi.md#exporttemplate) | **GET** /templates/{id}/download | Exports a template +[**RemoveTemplate**](TemplatesApi.md#removetemplate) | **DELETE** /templates/{id} | Deletes a template + + + +# **ExportTemplate** +> string ExportTemplate (string id) + +Exports a template + +### Example +```csharp +using System; +using System.Diagnostics; +using IO.Swagger.Api; +using IO.Swagger.Client; +using IO.Swagger.Model; + +namespace Example +{ + public class ExportTemplateExample + { + public void main() + { + var apiInstance = new TemplatesApi(); + var id = id_example; // string | The template id. + + try + { + // Exports a template + string result = apiInstance.ExportTemplate(id); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling TemplatesApi.ExportTemplate: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **string**| The template id. | + +### Return type + +**string** + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **RemoveTemplate** +> TemplateEntity RemoveTemplate (string id, bool? disconnectedNodeAcknowledged = null) + +Deletes a template + +### Example +```csharp +using System; +using System.Diagnostics; +using IO.Swagger.Api; +using IO.Swagger.Client; +using IO.Swagger.Model; + +namespace Example +{ + public class RemoveTemplateExample + { + public void main() + { + var apiInstance = new TemplatesApi(); + var id = id_example; // string | The template id. + var disconnectedNodeAcknowledged = true; // bool? | Acknowledges that this node is disconnected to allow for mutable requests to proceed. (optional) (default to false) + + try + { + // Deletes a template + TemplateEntity result = apiInstance.RemoveTemplate(id, disconnectedNodeAcknowledged); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling TemplatesApi.RemoveTemplate: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **string**| The template id. | + **disconnectedNodeAcknowledged** | **bool?**| Acknowledges that this node is disconnected to allow for mutable requests to proceed. | [optional] [default to false] + +### Return type + +[**TemplateEntity**](TemplateEntity.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/Docs/TemplatesEntity.md b/Docs/TemplatesEntity.md new file mode 100644 index 0000000..bdea8c7 --- /dev/null +++ b/Docs/TemplatesEntity.md @@ -0,0 +1,10 @@ +# IO.Swagger.Model.TemplatesEntity +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Templates** | [**List<TemplateEntity>**](TemplateEntity.md) | | [optional] +**Generated** | **string** | When this content was generated. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/Docs/TenantDTO.md b/Docs/TenantDTO.md new file mode 100644 index 0000000..83d0ef3 --- /dev/null +++ b/Docs/TenantDTO.md @@ -0,0 +1,14 @@ +# IO.Swagger.Model.TenantDTO +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | **string** | The id of the component. | [optional] +**VersionedComponentId** | **string** | The ID of the corresponding component that is under version control | [optional] +**ParentGroupId** | **string** | The id of parent process group of this component if applicable. | [optional] +**Position** | [**PositionDTO**](PositionDTO.md) | The position of this component in the UI if applicable. | [optional] +**Identity** | **string** | The identity of the tenant. | [optional] +**Configurable** | **bool?** | Whether this tenant is configurable. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/Docs/TenantEntity.md b/Docs/TenantEntity.md new file mode 100644 index 0000000..215408a --- /dev/null +++ b/Docs/TenantEntity.md @@ -0,0 +1,16 @@ +# IO.Swagger.Model.TenantEntity +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Revision** | [**RevisionDTO**](RevisionDTO.md) | The revision for this request/response. The revision is required for any mutable flow requests and is included in all responses. | [optional] +**Id** | **string** | The id of the component. | [optional] +**Uri** | **string** | The URI for futures requests to the component. | [optional] +**Position** | [**PositionDTO**](PositionDTO.md) | The position of this component in the UI if applicable. | [optional] +**Permissions** | [**PermissionsDTO**](PermissionsDTO.md) | The permissions for this component. | [optional] +**Bulletins** | [**List<BulletinEntity>**](BulletinEntity.md) | The bulletins for this component. | [optional] +**DisconnectedNodeAcknowledged** | **bool?** | Acknowledges that this node is disconnected to allow for mutable requests to proceed. | [optional] +**Component** | [**TenantDTO**](TenantDTO.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/Docs/TenantsApi.md b/Docs/TenantsApi.md new file mode 100644 index 0000000..a6969df --- /dev/null +++ b/Docs/TenantsApi.md @@ -0,0 +1,698 @@ +# IO.Swagger.Api.TenantsApi + +All URIs are relative to *http://localhost/nifi-api* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**CreateUser**](TenantsApi.md#createuser) | **POST** /tenants/users | Creates a user +[**CreateUserGroup**](TenantsApi.md#createusergroup) | **POST** /tenants/user-groups | Creates a user group +[**GetUser**](TenantsApi.md#getuser) | **GET** /tenants/users/{id} | Gets a user +[**GetUserGroup**](TenantsApi.md#getusergroup) | **GET** /tenants/user-groups/{id} | Gets a user group +[**GetUserGroups**](TenantsApi.md#getusergroups) | **GET** /tenants/user-groups | Gets all user groups +[**GetUsers**](TenantsApi.md#getusers) | **GET** /tenants/users | Gets all users +[**RemoveUser**](TenantsApi.md#removeuser) | **DELETE** /tenants/users/{id} | Deletes a user +[**RemoveUserGroup**](TenantsApi.md#removeusergroup) | **DELETE** /tenants/user-groups/{id} | Deletes a user group +[**SearchTenants**](TenantsApi.md#searchtenants) | **GET** /tenants/search-results | Searches for a tenant with the specified identity +[**UpdateUser**](TenantsApi.md#updateuser) | **PUT** /tenants/users/{id} | Updates a user +[**UpdateUserGroup**](TenantsApi.md#updateusergroup) | **PUT** /tenants/user-groups/{id} | Updates a user group + + + +# **CreateUser** +> UserEntity CreateUser (UserEntity body) + +Creates a user + +Note: This endpoint is subject to change as NiFi and it's REST API evolve. + +### Example +```csharp +using System; +using System.Diagnostics; +using IO.Swagger.Api; +using IO.Swagger.Client; +using IO.Swagger.Model; + +namespace Example +{ + public class CreateUserExample + { + public void main() + { + var apiInstance = new TenantsApi(); + var body = new UserEntity(); // UserEntity | The user configuration details. + + try + { + // Creates a user + UserEntity result = apiInstance.CreateUser(body); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling TenantsApi.CreateUser: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **body** | [**UserEntity**](UserEntity.md)| The user configuration details. | + +### Return type + +[**UserEntity**](UserEntity.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **CreateUserGroup** +> UserGroupEntity CreateUserGroup (UserGroupEntity body) + +Creates a user group + +Note: This endpoint is subject to change as NiFi and it's REST API evolve. + +### Example +```csharp +using System; +using System.Diagnostics; +using IO.Swagger.Api; +using IO.Swagger.Client; +using IO.Swagger.Model; + +namespace Example +{ + public class CreateUserGroupExample + { + public void main() + { + var apiInstance = new TenantsApi(); + var body = new UserGroupEntity(); // UserGroupEntity | The user group configuration details. + + try + { + // Creates a user group + UserGroupEntity result = apiInstance.CreateUserGroup(body); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling TenantsApi.CreateUserGroup: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **body** | [**UserGroupEntity**](UserGroupEntity.md)| The user group configuration details. | + +### Return type + +[**UserGroupEntity**](UserGroupEntity.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **GetUser** +> UserEntity GetUser (string id) + +Gets a user + +Note: This endpoint is subject to change as NiFi and it's REST API evolve. + +### Example +```csharp +using System; +using System.Diagnostics; +using IO.Swagger.Api; +using IO.Swagger.Client; +using IO.Swagger.Model; + +namespace Example +{ + public class GetUserExample + { + public void main() + { + var apiInstance = new TenantsApi(); + var id = id_example; // string | The user id. + + try + { + // Gets a user + UserEntity result = apiInstance.GetUser(id); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling TenantsApi.GetUser: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **string**| The user id. | + +### Return type + +[**UserEntity**](UserEntity.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **GetUserGroup** +> UserGroupEntity GetUserGroup (string id) + +Gets a user group + +Note: This endpoint is subject to change as NiFi and it's REST API evolve. + +### Example +```csharp +using System; +using System.Diagnostics; +using IO.Swagger.Api; +using IO.Swagger.Client; +using IO.Swagger.Model; + +namespace Example +{ + public class GetUserGroupExample + { + public void main() + { + var apiInstance = new TenantsApi(); + var id = id_example; // string | The user group id. + + try + { + // Gets a user group + UserGroupEntity result = apiInstance.GetUserGroup(id); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling TenantsApi.GetUserGroup: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **string**| The user group id. | + +### Return type + +[**UserGroupEntity**](UserGroupEntity.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **GetUserGroups** +> UserGroupsEntity GetUserGroups () + +Gets all user groups + +Note: This endpoint is subject to change as NiFi and it's REST API evolve. + +### Example +```csharp +using System; +using System.Diagnostics; +using IO.Swagger.Api; +using IO.Swagger.Client; +using IO.Swagger.Model; + +namespace Example +{ + public class GetUserGroupsExample + { + public void main() + { + var apiInstance = new TenantsApi(); + + try + { + // Gets all user groups + UserGroupsEntity result = apiInstance.GetUserGroups(); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling TenantsApi.GetUserGroups: " + e.Message ); + } + } + } +} +``` + +### Parameters +This endpoint does not need any parameter. + +### Return type + +[**UserGroupsEntity**](UserGroupsEntity.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **GetUsers** +> UsersEntity GetUsers () + +Gets all users + +Note: This endpoint is subject to change as NiFi and it's REST API evolve. + +### Example +```csharp +using System; +using System.Diagnostics; +using IO.Swagger.Api; +using IO.Swagger.Client; +using IO.Swagger.Model; + +namespace Example +{ + public class GetUsersExample + { + public void main() + { + var apiInstance = new TenantsApi(); + + try + { + // Gets all users + UsersEntity result = apiInstance.GetUsers(); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling TenantsApi.GetUsers: " + e.Message ); + } + } + } +} +``` + +### Parameters +This endpoint does not need any parameter. + +### Return type + +[**UsersEntity**](UsersEntity.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **RemoveUser** +> UserEntity RemoveUser (string id, string version = null, string clientId = null, bool? disconnectedNodeAcknowledged = null) + +Deletes a user + +Note: This endpoint is subject to change as NiFi and it's REST API evolve. + +### Example +```csharp +using System; +using System.Diagnostics; +using IO.Swagger.Api; +using IO.Swagger.Client; +using IO.Swagger.Model; + +namespace Example +{ + public class RemoveUserExample + { + public void main() + { + var apiInstance = new TenantsApi(); + var id = id_example; // string | The user id. + var version = version_example; // string | The revision is used to verify the client is working with the latest version of the flow. (optional) + var clientId = clientId_example; // string | If the client id is not specified, new one will be generated. This value (whether specified or generated) is included in the response. (optional) + var disconnectedNodeAcknowledged = true; // bool? | Acknowledges that this node is disconnected to allow for mutable requests to proceed. (optional) (default to false) + + try + { + // Deletes a user + UserEntity result = apiInstance.RemoveUser(id, version, clientId, disconnectedNodeAcknowledged); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling TenantsApi.RemoveUser: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **string**| The user id. | + **version** | **string**| The revision is used to verify the client is working with the latest version of the flow. | [optional] + **clientId** | **string**| If the client id is not specified, new one will be generated. This value (whether specified or generated) is included in the response. | [optional] + **disconnectedNodeAcknowledged** | **bool?**| Acknowledges that this node is disconnected to allow for mutable requests to proceed. | [optional] [default to false] + +### Return type + +[**UserEntity**](UserEntity.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **RemoveUserGroup** +> UserGroupEntity RemoveUserGroup (string id, string version = null, string clientId = null, bool? disconnectedNodeAcknowledged = null) + +Deletes a user group + +Note: This endpoint is subject to change as NiFi and it's REST API evolve. + +### Example +```csharp +using System; +using System.Diagnostics; +using IO.Swagger.Api; +using IO.Swagger.Client; +using IO.Swagger.Model; + +namespace Example +{ + public class RemoveUserGroupExample + { + public void main() + { + var apiInstance = new TenantsApi(); + var id = id_example; // string | The user group id. + var version = version_example; // string | The revision is used to verify the client is working with the latest version of the flow. (optional) + var clientId = clientId_example; // string | If the client id is not specified, new one will be generated. This value (whether specified or generated) is included in the response. (optional) + var disconnectedNodeAcknowledged = true; // bool? | Acknowledges that this node is disconnected to allow for mutable requests to proceed. (optional) (default to false) + + try + { + // Deletes a user group + UserGroupEntity result = apiInstance.RemoveUserGroup(id, version, clientId, disconnectedNodeAcknowledged); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling TenantsApi.RemoveUserGroup: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **string**| The user group id. | + **version** | **string**| The revision is used to verify the client is working with the latest version of the flow. | [optional] + **clientId** | **string**| If the client id is not specified, new one will be generated. This value (whether specified or generated) is included in the response. | [optional] + **disconnectedNodeAcknowledged** | **bool?**| Acknowledges that this node is disconnected to allow for mutable requests to proceed. | [optional] [default to false] + +### Return type + +[**UserGroupEntity**](UserGroupEntity.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **SearchTenants** +> TenantsEntity SearchTenants (string q) + +Searches for a tenant with the specified identity + +Note: This endpoint is subject to change as NiFi and it's REST API evolve. + +### Example +```csharp +using System; +using System.Diagnostics; +using IO.Swagger.Api; +using IO.Swagger.Client; +using IO.Swagger.Model; + +namespace Example +{ + public class SearchTenantsExample + { + public void main() + { + var apiInstance = new TenantsApi(); + var q = q_example; // string | Identity to search for. + + try + { + // Searches for a tenant with the specified identity + TenantsEntity result = apiInstance.SearchTenants(q); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling TenantsApi.SearchTenants: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **q** | **string**| Identity to search for. | + +### Return type + +[**TenantsEntity**](TenantsEntity.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **UpdateUser** +> UserEntity UpdateUser (string id, UserEntity body) + +Updates a user + +Note: This endpoint is subject to change as NiFi and it's REST API evolve. + +### Example +```csharp +using System; +using System.Diagnostics; +using IO.Swagger.Api; +using IO.Swagger.Client; +using IO.Swagger.Model; + +namespace Example +{ + public class UpdateUserExample + { + public void main() + { + var apiInstance = new TenantsApi(); + var id = id_example; // string | The user id. + var body = new UserEntity(); // UserEntity | The user configuration details. + + try + { + // Updates a user + UserEntity result = apiInstance.UpdateUser(id, body); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling TenantsApi.UpdateUser: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **string**| The user id. | + **body** | [**UserEntity**](UserEntity.md)| The user configuration details. | + +### Return type + +[**UserEntity**](UserEntity.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **UpdateUserGroup** +> UserGroupEntity UpdateUserGroup (string id, UserGroupEntity body) + +Updates a user group + +Note: This endpoint is subject to change as NiFi and it's REST API evolve. + +### Example +```csharp +using System; +using System.Diagnostics; +using IO.Swagger.Api; +using IO.Swagger.Client; +using IO.Swagger.Model; + +namespace Example +{ + public class UpdateUserGroupExample + { + public void main() + { + var apiInstance = new TenantsApi(); + var id = id_example; // string | The user group id. + var body = new UserGroupEntity(); // UserGroupEntity | The user group configuration details. + + try + { + // Updates a user group + UserGroupEntity result = apiInstance.UpdateUserGroup(id, body); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling TenantsApi.UpdateUserGroup: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **string**| The user group id. | + **body** | [**UserGroupEntity**](UserGroupEntity.md)| The user group configuration details. | + +### Return type + +[**UserGroupEntity**](UserGroupEntity.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/Docs/TenantsEntity.md b/Docs/TenantsEntity.md new file mode 100644 index 0000000..9ff2921 --- /dev/null +++ b/Docs/TenantsEntity.md @@ -0,0 +1,10 @@ +# IO.Swagger.Model.TenantsEntity +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Users** | [**List<TenantEntity>**](TenantEntity.md) | | [optional] +**UserGroups** | [**List<TenantEntity>**](TenantEntity.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/Docs/TransactionResultEntity.md b/Docs/TransactionResultEntity.md new file mode 100644 index 0000000..5130865 --- /dev/null +++ b/Docs/TransactionResultEntity.md @@ -0,0 +1,11 @@ +# IO.Swagger.Model.TransactionResultEntity +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**FlowFileSent** | **int?** | | [optional] +**ResponseCode** | **int?** | | [optional] +**Message** | **string** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/Docs/UpdateControllerServiceReferenceRequestEntity.md b/Docs/UpdateControllerServiceReferenceRequestEntity.md new file mode 100644 index 0000000..6c14143 --- /dev/null +++ b/Docs/UpdateControllerServiceReferenceRequestEntity.md @@ -0,0 +1,12 @@ +# IO.Swagger.Model.UpdateControllerServiceReferenceRequestEntity +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | **string** | The identifier of the Controller Service. | [optional] +**State** | **string** | The new state of the references for the controller service. | [optional] +**ReferencingComponentRevisions** | [**Dictionary<string, RevisionDTO>**](RevisionDTO.md) | The revisions for all referencing components. | [optional] +**DisconnectedNodeAcknowledged** | **bool?** | Acknowledges that this node is disconnected to allow for mutable requests to proceed. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/Docs/UriBuilder.md b/Docs/UriBuilder.md new file mode 100644 index 0000000..8c60426 --- /dev/null +++ b/Docs/UriBuilder.md @@ -0,0 +1,8 @@ +# IO.Swagger.Model.UriBuilder +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/Docs/UserDTO.md b/Docs/UserDTO.md new file mode 100644 index 0000000..6a9c35d --- /dev/null +++ b/Docs/UserDTO.md @@ -0,0 +1,16 @@ +# IO.Swagger.Model.UserDTO +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | **string** | The id of the component. | [optional] +**VersionedComponentId** | **string** | The ID of the corresponding component that is under version control | [optional] +**ParentGroupId** | **string** | The id of parent process group of this component if applicable. | [optional] +**Position** | [**PositionDTO**](PositionDTO.md) | The position of this component in the UI if applicable. | [optional] +**Identity** | **string** | The identity of the tenant. | [optional] +**Configurable** | **bool?** | Whether this tenant is configurable. | [optional] +**UserGroups** | [**List<TenantEntity>**](TenantEntity.md) | The groups to which the user belongs. This field is read only and it provided for convenience. | [optional] +**AccessPolicies** | [**List<AccessPolicySummaryEntity>**](AccessPolicySummaryEntity.md) | The access policies this user belongs to. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/Docs/UserEntity.md b/Docs/UserEntity.md new file mode 100644 index 0000000..f711fe4 --- /dev/null +++ b/Docs/UserEntity.md @@ -0,0 +1,16 @@ +# IO.Swagger.Model.UserEntity +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Revision** | [**RevisionDTO**](RevisionDTO.md) | The revision for this request/response. The revision is required for any mutable flow requests and is included in all responses. | [optional] +**Id** | **string** | The id of the component. | [optional] +**Uri** | **string** | The URI for futures requests to the component. | [optional] +**Position** | [**PositionDTO**](PositionDTO.md) | The position of this component in the UI if applicable. | [optional] +**Permissions** | [**PermissionsDTO**](PermissionsDTO.md) | The permissions for this component. | [optional] +**Bulletins** | [**List<BulletinEntity>**](BulletinEntity.md) | The bulletins for this component. | [optional] +**DisconnectedNodeAcknowledged** | **bool?** | Acknowledges that this node is disconnected to allow for mutable requests to proceed. | [optional] +**Component** | [**UserDTO**](UserDTO.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/Docs/UserGroupDTO.md b/Docs/UserGroupDTO.md new file mode 100644 index 0000000..dd58110 --- /dev/null +++ b/Docs/UserGroupDTO.md @@ -0,0 +1,16 @@ +# IO.Swagger.Model.UserGroupDTO +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | **string** | The id of the component. | [optional] +**VersionedComponentId** | **string** | The ID of the corresponding component that is under version control | [optional] +**ParentGroupId** | **string** | The id of parent process group of this component if applicable. | [optional] +**Position** | [**PositionDTO**](PositionDTO.md) | The position of this component in the UI if applicable. | [optional] +**Identity** | **string** | The identity of the tenant. | [optional] +**Configurable** | **bool?** | Whether this tenant is configurable. | [optional] +**Users** | [**List<TenantEntity>**](TenantEntity.md) | The users that belong to the user group. | [optional] +**AccessPolicies** | [**List<AccessPolicyEntity>**](AccessPolicyEntity.md) | The access policies this user group belongs to. This field was incorrectly defined as an AccessPolicyEntity. For compatibility reasons the field will remain of this type, however only the fields that are present in the AccessPolicySummaryEntity will be populated here. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/Docs/UserGroupEntity.md b/Docs/UserGroupEntity.md new file mode 100644 index 0000000..e3a1b91 --- /dev/null +++ b/Docs/UserGroupEntity.md @@ -0,0 +1,16 @@ +# IO.Swagger.Model.UserGroupEntity +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Revision** | [**RevisionDTO**](RevisionDTO.md) | The revision for this request/response. The revision is required for any mutable flow requests and is included in all responses. | [optional] +**Id** | **string** | The id of the component. | [optional] +**Uri** | **string** | The URI for futures requests to the component. | [optional] +**Position** | [**PositionDTO**](PositionDTO.md) | The position of this component in the UI if applicable. | [optional] +**Permissions** | [**PermissionsDTO**](PermissionsDTO.md) | The permissions for this component. | [optional] +**Bulletins** | [**List<BulletinEntity>**](BulletinEntity.md) | The bulletins for this component. | [optional] +**DisconnectedNodeAcknowledged** | **bool?** | Acknowledges that this node is disconnected to allow for mutable requests to proceed. | [optional] +**Component** | [**UserGroupDTO**](UserGroupDTO.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/Docs/UserGroupsEntity.md b/Docs/UserGroupsEntity.md new file mode 100644 index 0000000..f0e91ed --- /dev/null +++ b/Docs/UserGroupsEntity.md @@ -0,0 +1,9 @@ +# IO.Swagger.Model.UserGroupsEntity +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**UserGroups** | [**List<UserGroupEntity>**](UserGroupEntity.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/Docs/UsersEntity.md b/Docs/UsersEntity.md new file mode 100644 index 0000000..8bb2496 --- /dev/null +++ b/Docs/UsersEntity.md @@ -0,0 +1,10 @@ +# IO.Swagger.Model.UsersEntity +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Generated** | **string** | When this content was generated. | [optional] +**Users** | [**List<UserEntity>**](UserEntity.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/Docs/VariableDTO.md b/Docs/VariableDTO.md new file mode 100644 index 0000000..9895b1f --- /dev/null +++ b/Docs/VariableDTO.md @@ -0,0 +1,12 @@ +# IO.Swagger.Model.VariableDTO +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Name** | **string** | The name of the variable | [optional] +**Value** | **string** | The value of the variable | [optional] +**ProcessGroupId** | **string** | The ID of the Process Group where this Variable is defined | [optional] +**AffectedComponents** | [**List<AffectedComponentEntity>**](AffectedComponentEntity.md) | A set of all components that will be affected if the value of this variable is changed | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/Docs/VariableEntity.md b/Docs/VariableEntity.md new file mode 100644 index 0000000..a2bb479 --- /dev/null +++ b/Docs/VariableEntity.md @@ -0,0 +1,10 @@ +# IO.Swagger.Model.VariableEntity +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Variable** | [**VariableDTO**](VariableDTO.md) | The variable information | [optional] +**CanWrite** | **bool?** | Indicates whether the user can write a given resource. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/Docs/VariableRegistryDTO.md b/Docs/VariableRegistryDTO.md new file mode 100644 index 0000000..a3ee72e --- /dev/null +++ b/Docs/VariableRegistryDTO.md @@ -0,0 +1,10 @@ +# IO.Swagger.Model.VariableRegistryDTO +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Variables** | [**List<VariableEntity>**](VariableEntity.md) | The variables that are available in this Variable Registry | [optional] +**ProcessGroupId** | **string** | The UUID of the Process Group that this Variable Registry belongs to | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/Docs/VariableRegistryEntity.md b/Docs/VariableRegistryEntity.md new file mode 100644 index 0000000..0679c28 --- /dev/null +++ b/Docs/VariableRegistryEntity.md @@ -0,0 +1,11 @@ +# IO.Swagger.Model.VariableRegistryEntity +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ProcessGroupRevision** | [**RevisionDTO**](RevisionDTO.md) | The revision of the Process Group that the Variable Registry belongs to | [optional] +**VariableRegistry** | [**VariableRegistryDTO**](VariableRegistryDTO.md) | The Variable Registry. | [optional] +**DisconnectedNodeAcknowledged** | **bool?** | Acknowledges that this node is disconnected to allow for mutable requests to proceed. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/Docs/VariableRegistryUpdateRequestDTO.md b/Docs/VariableRegistryUpdateRequestDTO.md new file mode 100644 index 0000000..d05c93f --- /dev/null +++ b/Docs/VariableRegistryUpdateRequestDTO.md @@ -0,0 +1,17 @@ +# IO.Swagger.Model.VariableRegistryUpdateRequestDTO +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**RequestId** | **string** | The unique ID of this request. | [optional] +**ProcessGroupId** | **string** | The unique ID of the Process Group that the variable registry belongs to | [optional] +**Uri** | **string** | The URI for future requests to this drop request. | [optional] +**SubmissionTime** | **string** | The time at which this request was submitted. | [optional] +**LastUpdated** | **string** | The last time this request was updated. | [optional] +**Complete** | **bool?** | Whether or not this request has completed | [optional] +**FailureReason** | **string** | An explanation of why this request failed, or null if this request has not failed | [optional] +**UpdateSteps** | [**List<VariableRegistryUpdateStepDTO>**](VariableRegistryUpdateStepDTO.md) | The steps that are required in order to complete the request, along with the status of each | [optional] +**AffectedComponents** | [**List<AffectedComponentEntity>**](AffectedComponentEntity.md) | A set of all components that will be affected if the value of this variable is changed | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/Docs/VariableRegistryUpdateRequestEntity.md b/Docs/VariableRegistryUpdateRequestEntity.md new file mode 100644 index 0000000..4c92c6c --- /dev/null +++ b/Docs/VariableRegistryUpdateRequestEntity.md @@ -0,0 +1,10 @@ +# IO.Swagger.Model.VariableRegistryUpdateRequestEntity +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Request** | [**VariableRegistryUpdateRequestDTO**](VariableRegistryUpdateRequestDTO.md) | The Variable Registry Update Request | [optional] +**ProcessGroupRevision** | [**RevisionDTO**](RevisionDTO.md) | The revision for the Process Group that owns this variable registry. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/Docs/VariableRegistryUpdateStepDTO.md b/Docs/VariableRegistryUpdateStepDTO.md new file mode 100644 index 0000000..2da6654 --- /dev/null +++ b/Docs/VariableRegistryUpdateStepDTO.md @@ -0,0 +1,11 @@ +# IO.Swagger.Model.VariableRegistryUpdateStepDTO +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Description** | **string** | Explanation of what happens in this step | [optional] +**Complete** | **bool?** | Whether or not this step has completed | [optional] +**FailureReason** | **string** | An explanation of why this step failed, or null if this step did not fail | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/Docs/VersionControlComponentMappingEntity.md b/Docs/VersionControlComponentMappingEntity.md new file mode 100644 index 0000000..bc4748f --- /dev/null +++ b/Docs/VersionControlComponentMappingEntity.md @@ -0,0 +1,12 @@ +# IO.Swagger.Model.VersionControlComponentMappingEntity +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**VersionControlComponentMapping** | **Dictionary<string, string>** | The mapping of Versioned Component Identifiers to instance ID's | [optional] +**ProcessGroupRevision** | [**RevisionDTO**](RevisionDTO.md) | The revision of the Process Group | [optional] +**DisconnectedNodeAcknowledged** | **bool?** | Acknowledges that this node is disconnected to allow for mutable requests to proceed. | [optional] +**VersionControlInformation** | [**VersionControlInformationDTO**](VersionControlInformationDTO.md) | The Version Control information | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/Docs/VersionControlInformationDTO.md b/Docs/VersionControlInformationDTO.md new file mode 100644 index 0000000..aa8b79e --- /dev/null +++ b/Docs/VersionControlInformationDTO.md @@ -0,0 +1,19 @@ +# IO.Swagger.Model.VersionControlInformationDTO +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**GroupId** | **string** | The ID of the Process Group that is under version control | [optional] +**RegistryId** | **string** | The ID of the registry that the flow is stored in | [optional] +**RegistryName** | **string** | The name of the registry that the flow is stored in | [optional] +**BucketId** | **string** | The ID of the bucket that the flow is stored in | [optional] +**BucketName** | **string** | The name of the bucket that the flow is stored in | [optional] +**FlowId** | **string** | The ID of the flow | [optional] +**FlowName** | **string** | The name of the flow | [optional] +**FlowDescription** | **string** | The description of the flow | [optional] +**Version** | **int?** | The version of the flow | [optional] +**State** | **string** | The current state of the Process Group, as it relates to the Versioned Flow | [optional] +**StateExplanation** | **string** | Explanation of why the group is in the specified state | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/Docs/VersionControlInformationEntity.md b/Docs/VersionControlInformationEntity.md new file mode 100644 index 0000000..bf583ee --- /dev/null +++ b/Docs/VersionControlInformationEntity.md @@ -0,0 +1,11 @@ +# IO.Swagger.Model.VersionControlInformationEntity +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**VersionControlInformation** | [**VersionControlInformationDTO**](VersionControlInformationDTO.md) | The Version Control information | [optional] +**ProcessGroupRevision** | [**RevisionDTO**](RevisionDTO.md) | The Revision for the Process Group | [optional] +**DisconnectedNodeAcknowledged** | **bool?** | Acknowledges that this node is disconnected to allow for mutable requests to proceed. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/Docs/VersionInfoDTO.md b/Docs/VersionInfoDTO.md new file mode 100644 index 0000000..d379e34 --- /dev/null +++ b/Docs/VersionInfoDTO.md @@ -0,0 +1,18 @@ +# IO.Swagger.Model.VersionInfoDTO +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**NiFiVersion** | **string** | The version of this NiFi. | [optional] +**JavaVendor** | **string** | Java JVM vendor | [optional] +**JavaVersion** | **string** | Java version | [optional] +**OsName** | **string** | Host operating system name | [optional] +**OsVersion** | **string** | Host operating system version | [optional] +**OsArchitecture** | **string** | Host operating system architecture | [optional] +**BuildTag** | **string** | Build tag | [optional] +**BuildRevision** | **string** | Build revision or commit hash | [optional] +**BuildBranch** | **string** | Build branch | [optional] +**BuildTimestamp** | **DateTime?** | Build timestamp | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/Docs/VersionedConnection.md b/Docs/VersionedConnection.md new file mode 100644 index 0000000..26e55dd --- /dev/null +++ b/Docs/VersionedConnection.md @@ -0,0 +1,27 @@ +# IO.Swagger.Model.VersionedConnection +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Identifier** | **string** | The component's unique identifier | [optional] +**Name** | **string** | The component's name | [optional] +**Comments** | **string** | The user-supplied comments for the component | [optional] +**Position** | [**Position**](Position.md) | The component's position on the graph | [optional] +**Source** | [**ConnectableComponent**](ConnectableComponent.md) | The source of the connection. | [optional] +**Destination** | [**ConnectableComponent**](ConnectableComponent.md) | The destination of the connection. | [optional] +**LabelIndex** | **int?** | The index of the bend point where to place the connection label. | [optional] +**ZIndex** | **long?** | The z index of the connection. | [optional] +**SelectedRelationships** | **List<string>** | The selected relationship that comprise the connection. | [optional] +**BackPressureObjectThreshold** | **long?** | The object count threshold for determining when back pressure is applied. Updating this value is a passive change in the sense that it won't impact whether existing files over the limit are affected but it does help feeder processors to stop pushing too much into this work queue. | [optional] +**BackPressureDataSizeThreshold** | **string** | The object data size threshold for determining when back pressure is applied. Updating this value is a passive change in the sense that it won't impact whether existing files over the limit are affected but it does help feeder processors to stop pushing too much into this work queue. | [optional] +**FlowFileExpiration** | **string** | The amount of time a flow file may be in the flow before it will be automatically aged out of the flow. Once a flow file reaches this age it will be terminated from the flow the next time a processor attempts to start work on it. | [optional] +**Prioritizers** | **List<string>** | The comparators used to prioritize the queue. | [optional] +**Bends** | [**List<Position>**](Position.md) | The bend points on the connection. | [optional] +**LoadBalanceStrategy** | **string** | The Strategy to use for load balancing data across the cluster, or null, if no Load Balance Strategy has been specified. | [optional] +**PartitioningAttribute** | **string** | The attribute to use for partitioning data as it is load balanced across the cluster. If the Load Balance Strategy is configured to use PARTITION_BY_ATTRIBUTE, the value returned by this method is the name of the FlowFile Attribute that will be used to determine which node in the cluster should receive a given FlowFile. If the Load Balance Strategy is unset or is set to any other value, the Partitioning Attribute has no effect. | [optional] +**LoadBalanceCompression** | **string** | Whether or not compression should be used when transferring FlowFiles between nodes | [optional] +**ComponentType** | **string** | | [optional] +**GroupIdentifier** | **string** | The ID of the Process Group that this component belongs to | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/Docs/VersionedControllerService.md b/Docs/VersionedControllerService.md new file mode 100644 index 0000000..fab9491 --- /dev/null +++ b/Docs/VersionedControllerService.md @@ -0,0 +1,20 @@ +# IO.Swagger.Model.VersionedControllerService +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Identifier** | **string** | The component's unique identifier | [optional] +**Name** | **string** | The component's name | [optional] +**Comments** | **string** | The user-supplied comments for the component | [optional] +**Position** | [**Position**](Position.md) | The component's position on the graph | [optional] +**Type** | **string** | The type of the controller service. | [optional] +**Bundle** | [**Bundle**](Bundle.md) | The details of the artifact that bundled this processor type. | [optional] +**ControllerServiceApis** | [**List<ControllerServiceAPI>**](ControllerServiceAPI.md) | Lists the APIs this Controller Service implements. | [optional] +**Properties** | **Dictionary<string, string>** | The properties of the controller service. | [optional] +**PropertyDescriptors** | [**Dictionary<string, VersionedPropertyDescriptor>**](VersionedPropertyDescriptor.md) | The property descriptors for the processor. | [optional] +**AnnotationData** | **string** | The annotation for the controller service. This is how the custom UI relays configuration to the controller service. | [optional] +**ComponentType** | **string** | | [optional] +**GroupIdentifier** | **string** | The ID of the Process Group that this component belongs to | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/Docs/VersionedFlow.md b/Docs/VersionedFlow.md new file mode 100644 index 0000000..7a37e6f --- /dev/null +++ b/Docs/VersionedFlow.md @@ -0,0 +1,19 @@ +# IO.Swagger.Model.VersionedFlow +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Link** | [**Link**](Link.md) | An WebLink to this entity. | [optional] +**Identifier** | **string** | An ID to uniquely identify this object. | [optional] +**Name** | **string** | The name of the item. | +**Description** | **string** | A description of the item. | [optional] +**BucketIdentifier** | **string** | The identifier of the bucket this items belongs to. This cannot be changed after the item is created. | +**BucketName** | **string** | The name of the bucket this items belongs to. | [optional] +**CreatedTimestamp** | **long?** | The timestamp of when the item was created, as milliseconds since epoch. | [optional] +**ModifiedTimestamp** | **long?** | The timestamp of when the item was last modified, as milliseconds since epoch. | [optional] +**Type** | **string** | The type of item. | +**Permissions** | [**Permissions**](Permissions.md) | The access that the current user has to the bucket containing this item. | [optional] +**VersionCount** | **long?** | The number of versions of this flow. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/Docs/VersionedFlowCoordinates.md b/Docs/VersionedFlowCoordinates.md new file mode 100644 index 0000000..4b5210e --- /dev/null +++ b/Docs/VersionedFlowCoordinates.md @@ -0,0 +1,13 @@ +# IO.Swagger.Model.VersionedFlowCoordinates +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**RegistryUrl** | **string** | The URL of the Flow Registry that contains the flow | [optional] +**BucketId** | **string** | The UUID of the bucket that the flow resides in | [optional] +**FlowId** | **string** | The UUID of the flow | [optional] +**Version** | **int?** | The version of the flow | [optional] +**Latest** | **bool?** | Whether or not these coordinates point to the latest version of the flow | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/Docs/VersionedFlowDTO.md b/Docs/VersionedFlowDTO.md new file mode 100644 index 0000000..c5bad25 --- /dev/null +++ b/Docs/VersionedFlowDTO.md @@ -0,0 +1,14 @@ +# IO.Swagger.Model.VersionedFlowDTO +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**RegistryId** | **string** | The ID of the registry that the flow is tracked to | [optional] +**BucketId** | **string** | The ID of the bucket where the flow is stored | [optional] +**FlowId** | **string** | The ID of the flow | [optional] +**FlowName** | **string** | The name of the flow | [optional] +**Description** | **string** | A description of the flow | [optional] +**Comments** | **string** | Comments for the changeset | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/Docs/VersionedFlowEntity.md b/Docs/VersionedFlowEntity.md new file mode 100644 index 0000000..c11f6ce --- /dev/null +++ b/Docs/VersionedFlowEntity.md @@ -0,0 +1,9 @@ +# IO.Swagger.Model.VersionedFlowEntity +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**VersionedFlow** | [**VersionedFlowDTO**](VersionedFlowDTO.md) | The versioned flow | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/Docs/VersionedFlowSnapshot.md b/Docs/VersionedFlowSnapshot.md new file mode 100644 index 0000000..f7c110b --- /dev/null +++ b/Docs/VersionedFlowSnapshot.md @@ -0,0 +1,13 @@ +# IO.Swagger.Model.VersionedFlowSnapshot +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**SnapshotMetadata** | [**VersionedFlowSnapshotMetadata**](VersionedFlowSnapshotMetadata.md) | The metadata for this snapshot | +**FlowContents** | [**VersionedProcessGroup**](VersionedProcessGroup.md) | The contents of the versioned flow | +**Flow** | [**VersionedFlow**](VersionedFlow.md) | The flow this snapshot is for | [optional] +**Bucket** | [**Bucket**](Bucket.md) | The bucket where the flow is located | [optional] +**Latest** | **bool?** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/Docs/VersionedFlowSnapshotEntity.md b/Docs/VersionedFlowSnapshotEntity.md new file mode 100644 index 0000000..5a53abe --- /dev/null +++ b/Docs/VersionedFlowSnapshotEntity.md @@ -0,0 +1,13 @@ +# IO.Swagger.Model.VersionedFlowSnapshotEntity +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**VersionedFlowSnapshot** | [**VersionedFlowSnapshot**](VersionedFlowSnapshot.md) | The versioned flow snapshot | [optional] +**ProcessGroupRevision** | [**RevisionDTO**](RevisionDTO.md) | The Revision of the Process Group under Version Control | [optional] +**RegistryId** | **string** | The ID of the Registry that this flow belongs to | [optional] +**UpdateDescendantVersionedFlows** | **bool?** | If the Process Group to be updated has a child or descendant Process Group that is also under Version Control, this specifies whether or not the contents of that child/descendant Process Group should be updated. | [optional] +**DisconnectedNodeAcknowledged** | **bool?** | Acknowledges that this node is disconnected to allow for mutable requests to proceed. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/Docs/VersionedFlowSnapshotMetadata.md b/Docs/VersionedFlowSnapshotMetadata.md new file mode 100644 index 0000000..16d10a0 --- /dev/null +++ b/Docs/VersionedFlowSnapshotMetadata.md @@ -0,0 +1,15 @@ +# IO.Swagger.Model.VersionedFlowSnapshotMetadata +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Link** | [**Link**](Link.md) | An WebLink to this entity. | [optional] +**BucketIdentifier** | **string** | The identifier of the bucket this snapshot belongs to. | +**FlowIdentifier** | **string** | The identifier of the flow this snapshot belongs to. | +**Version** | **int?** | The version of this snapshot of the flow. | +**Timestamp** | **long?** | The timestamp when the flow was saved, as milliseconds since epoch. | [optional] +**Author** | **string** | The user that created this snapshot of the flow. | [optional] +**Comments** | **string** | The comments provided by the user when creating the snapshot. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/Docs/VersionedFlowSnapshotMetadataEntity.md b/Docs/VersionedFlowSnapshotMetadataEntity.md new file mode 100644 index 0000000..fac1c58 --- /dev/null +++ b/Docs/VersionedFlowSnapshotMetadataEntity.md @@ -0,0 +1,10 @@ +# IO.Swagger.Model.VersionedFlowSnapshotMetadataEntity +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**VersionedFlowSnapshotMetadata** | [**VersionedFlowSnapshotMetadata**](VersionedFlowSnapshotMetadata.md) | The collection of versioned flow snapshot metadata | [optional] +**RegistryId** | **string** | The ID of the Registry that this flow belongs to | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/Docs/VersionedFlowSnapshotMetadataSetEntity.md b/Docs/VersionedFlowSnapshotMetadataSetEntity.md new file mode 100644 index 0000000..7d11800 --- /dev/null +++ b/Docs/VersionedFlowSnapshotMetadataSetEntity.md @@ -0,0 +1,9 @@ +# IO.Swagger.Model.VersionedFlowSnapshotMetadataSetEntity +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**VersionedFlowSnapshotMetadataSet** | [**List<VersionedFlowSnapshotMetadataEntity>**](VersionedFlowSnapshotMetadataEntity.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/Docs/VersionedFlowUpdateRequestDTO.md b/Docs/VersionedFlowUpdateRequestDTO.md new file mode 100644 index 0000000..caec92e --- /dev/null +++ b/Docs/VersionedFlowUpdateRequestDTO.md @@ -0,0 +1,17 @@ +# IO.Swagger.Model.VersionedFlowUpdateRequestDTO +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**RequestId** | **string** | The unique ID of this request. | [optional] +**ProcessGroupId** | **string** | The unique ID of the Process Group that the variable registry belongs to | [optional] +**Uri** | **string** | The URI for future requests to this drop request. | [optional] +**LastUpdated** | **string** | The last time this request was updated. | [optional] +**Complete** | **bool?** | Whether or not this request has completed | [optional] +**FailureReason** | **string** | An explanation of why this request failed, or null if this request has not failed | [optional] +**PercentCompleted** | **int?** | The percentage complete for the request, between 0 and 100 | [optional] +**State** | **string** | The state of the request | [optional] +**VersionControlInformation** | [**VersionControlInformationDTO**](VersionControlInformationDTO.md) | The VersionControlInformation that describes where the Versioned Flow is located; this may not be populated until the request is completed. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/Docs/VersionedFlowUpdateRequestEntity.md b/Docs/VersionedFlowUpdateRequestEntity.md new file mode 100644 index 0000000..45473de --- /dev/null +++ b/Docs/VersionedFlowUpdateRequestEntity.md @@ -0,0 +1,10 @@ +# IO.Swagger.Model.VersionedFlowUpdateRequestEntity +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Request** | [**VersionedFlowUpdateRequestDTO**](VersionedFlowUpdateRequestDTO.md) | The Versioned Flow Update Request | [optional] +**ProcessGroupRevision** | [**RevisionDTO**](RevisionDTO.md) | The revision for the Process Group that owns this variable registry. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/Docs/VersionedFlowsEntity.md b/Docs/VersionedFlowsEntity.md new file mode 100644 index 0000000..f19f7d4 --- /dev/null +++ b/Docs/VersionedFlowsEntity.md @@ -0,0 +1,9 @@ +# IO.Swagger.Model.VersionedFlowsEntity +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**VersionedFlows** | [**List<VersionedFlowEntity>**](VersionedFlowEntity.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/Docs/VersionedFunnel.md b/Docs/VersionedFunnel.md new file mode 100644 index 0000000..acbe4ab --- /dev/null +++ b/Docs/VersionedFunnel.md @@ -0,0 +1,14 @@ +# IO.Swagger.Model.VersionedFunnel +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Identifier** | **string** | The component's unique identifier | [optional] +**Name** | **string** | The component's name | [optional] +**Comments** | **string** | The user-supplied comments for the component | [optional] +**Position** | [**Position**](Position.md) | The component's position on the graph | [optional] +**ComponentType** | **string** | | [optional] +**GroupIdentifier** | **string** | The ID of the Process Group that this component belongs to | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/Docs/VersionedLabel.md b/Docs/VersionedLabel.md new file mode 100644 index 0000000..32bce90 --- /dev/null +++ b/Docs/VersionedLabel.md @@ -0,0 +1,18 @@ +# IO.Swagger.Model.VersionedLabel +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Identifier** | **string** | The component's unique identifier | [optional] +**Name** | **string** | The component's name | [optional] +**Comments** | **string** | The user-supplied comments for the component | [optional] +**Position** | [**Position**](Position.md) | The component's position on the graph | [optional] +**Label** | **string** | The text that appears in the label. | [optional] +**Width** | **double?** | The width of the label in pixels when at a 1:1 scale. | [optional] +**Height** | **double?** | The height of the label in pixels when at a 1:1 scale. | [optional] +**Style** | **Dictionary<string, string>** | The styles for this label (font-size : 12px, background-color : #eee, etc). | [optional] +**ComponentType** | **string** | | [optional] +**GroupIdentifier** | **string** | The ID of the Process Group that this component belongs to | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/Docs/VersionedPort.md b/Docs/VersionedPort.md new file mode 100644 index 0000000..5c27219 --- /dev/null +++ b/Docs/VersionedPort.md @@ -0,0 +1,16 @@ +# IO.Swagger.Model.VersionedPort +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Identifier** | **string** | The component's unique identifier | [optional] +**Name** | **string** | The component's name | [optional] +**Comments** | **string** | The user-supplied comments for the component | [optional] +**Position** | [**Position**](Position.md) | The component's position on the graph | [optional] +**Type** | **string** | The type of port. | [optional] +**ConcurrentlySchedulableTaskCount** | **int?** | The number of tasks that should be concurrently scheduled for the port. | [optional] +**ComponentType** | **string** | | [optional] +**GroupIdentifier** | **string** | The ID of the Process Group that this component belongs to | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/Docs/VersionedProcessGroup.md b/Docs/VersionedProcessGroup.md new file mode 100644 index 0000000..7908616 --- /dev/null +++ b/Docs/VersionedProcessGroup.md @@ -0,0 +1,25 @@ +# IO.Swagger.Model.VersionedProcessGroup +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Identifier** | **string** | The component's unique identifier | [optional] +**Name** | **string** | The component's name | [optional] +**Comments** | **string** | The user-supplied comments for the component | [optional] +**Position** | [**Position**](Position.md) | The component's position on the graph | [optional] +**ProcessGroups** | [**List<VersionedProcessGroup>**](VersionedProcessGroup.md) | The child Process Groups | [optional] +**RemoteProcessGroups** | [**List<VersionedRemoteProcessGroup>**](VersionedRemoteProcessGroup.md) | The Remote Process Groups | [optional] +**Processors** | [**List<VersionedProcessor>**](VersionedProcessor.md) | The Processors | [optional] +**InputPorts** | [**List<VersionedPort>**](VersionedPort.md) | The Input Ports | [optional] +**OutputPorts** | [**List<VersionedPort>**](VersionedPort.md) | The Output Ports | [optional] +**Connections** | [**List<VersionedConnection>**](VersionedConnection.md) | The Connections | [optional] +**Labels** | [**List<VersionedLabel>**](VersionedLabel.md) | The Labels | [optional] +**Funnels** | [**List<VersionedFunnel>**](VersionedFunnel.md) | The Funnels | [optional] +**ControllerServices** | [**List<VersionedControllerService>**](VersionedControllerService.md) | The Controller Services | [optional] +**VersionedFlowCoordinates** | [**VersionedFlowCoordinates**](VersionedFlowCoordinates.md) | The coordinates where the remote flow is stored, or null if the Process Group is not directly under Version Control | [optional] +**Variables** | **Dictionary<string, string>** | The Variables in the Variable Registry for this Process Group (not including any ancestor or descendant Process Groups) | [optional] +**ComponentType** | **string** | | [optional] +**GroupIdentifier** | **string** | The ID of the Process Group that this component belongs to | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/Docs/VersionedProcessor.md b/Docs/VersionedProcessor.md new file mode 100644 index 0000000..e099731 --- /dev/null +++ b/Docs/VersionedProcessor.md @@ -0,0 +1,29 @@ +# IO.Swagger.Model.VersionedProcessor +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Identifier** | **string** | The component's unique identifier | [optional] +**Name** | **string** | The component's name | [optional] +**Comments** | **string** | The user-supplied comments for the component | [optional] +**Position** | [**Position**](Position.md) | The component's position on the graph | [optional] +**Bundle** | [**Bundle**](Bundle.md) | Information about the bundle from which the component came | [optional] +**Style** | **Dictionary<string, string>** | Stylistic data for rendering in a UI | [optional] +**Type** | **string** | The type of Processor | [optional] +**Properties** | **Dictionary<string, string>** | The properties for the processor. Properties whose value is not set will only contain the property name. | [optional] +**PropertyDescriptors** | [**Dictionary<string, VersionedPropertyDescriptor>**](VersionedPropertyDescriptor.md) | The property descriptors for the processor. | [optional] +**AnnotationData** | **string** | The annotation data for the processor used to relay configuration between a custom UI and the procesosr. | [optional] +**SchedulingPeriod** | **string** | The frequency with which to schedule the processor. The format of the value will depend on th value of schedulingStrategy. | [optional] +**SchedulingStrategy** | **string** | Indcates whether the prcessor should be scheduled to run in event or timer driven mode. | [optional] +**ExecutionNode** | **string** | Indicates the node where the process will execute. | [optional] +**PenaltyDuration** | **string** | The amout of time that is used when the process penalizes a flowfile. | [optional] +**YieldDuration** | **string** | The amount of time that must elapse before this processor is scheduled again after yielding. | [optional] +**BulletinLevel** | **string** | The level at which the processor will report bulletins. | [optional] +**RunDurationMillis** | **long?** | The run duration for the processor in milliseconds. | [optional] +**ConcurrentlySchedulableTaskCount** | **int?** | The number of tasks that should be concurrently schedule for the processor. If the processor doesn't allow parallol processing then any positive input will be ignored. | [optional] +**AutoTerminatedRelationships** | **List<string>** | The names of all relationships that cause a flow file to be terminated if the relationship is not connected elsewhere. This property differs from the 'isAutoTerminate' property of the RelationshipDTO in that the RelationshipDTO is meant to depict the current configuration, whereas this property can be set in a DTO when updating a Processor in order to change which Relationships should be auto-terminated. | [optional] +**ComponentType** | **string** | | [optional] +**GroupIdentifier** | **string** | The ID of the Process Group that this component belongs to | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/Docs/VersionedPropertyDescriptor.md b/Docs/VersionedPropertyDescriptor.md new file mode 100644 index 0000000..666c269 --- /dev/null +++ b/Docs/VersionedPropertyDescriptor.md @@ -0,0 +1,12 @@ +# IO.Swagger.Model.VersionedPropertyDescriptor +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Name** | **string** | The name of the property | [optional] +**DisplayName** | **string** | The display name of the property | [optional] +**IdentifiesControllerService** | **bool?** | Whether or not the property provides the identifier of a Controller Service | [optional] +**Sensitive** | **bool?** | Whether or not the property is considered sensitive | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/Docs/VersionedRemoteGroupPort.md b/Docs/VersionedRemoteGroupPort.md new file mode 100644 index 0000000..fab715e --- /dev/null +++ b/Docs/VersionedRemoteGroupPort.md @@ -0,0 +1,19 @@ +# IO.Swagger.Model.VersionedRemoteGroupPort +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Identifier** | **string** | The component's unique identifier | [optional] +**Name** | **string** | The component's name | [optional] +**Comments** | **string** | The user-supplied comments for the component | [optional] +**Position** | [**Position**](Position.md) | The component's position on the graph | [optional] +**RemoteGroupId** | **string** | The id of the remote process group that the port resides in. | [optional] +**ConcurrentlySchedulableTaskCount** | **int?** | The number of task that may transmit flowfiles to the target port concurrently. | [optional] +**UseCompression** | **bool?** | Whether the flowfiles are compressed when sent to the target port. | [optional] +**BatchSize** | [**BatchSize**](BatchSize.md) | The batch settings for data transmission. | [optional] +**ComponentType** | **string** | | [optional] +**TargetId** | **string** | The ID of the port on the target NiFi instance | [optional] +**GroupIdentifier** | **string** | The ID of the Process Group that this component belongs to | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/Docs/VersionedRemoteProcessGroup.md b/Docs/VersionedRemoteProcessGroup.md new file mode 100644 index 0000000..87a0d09 --- /dev/null +++ b/Docs/VersionedRemoteProcessGroup.md @@ -0,0 +1,25 @@ +# IO.Swagger.Model.VersionedRemoteProcessGroup +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Identifier** | **string** | The component's unique identifier | [optional] +**Name** | **string** | The component's name | [optional] +**Comments** | **string** | The user-supplied comments for the component | [optional] +**Position** | [**Position**](Position.md) | The component's position on the graph | [optional] +**TargetUri** | **string** | [DEPRECATED] The target URI of the remote process group. If target uri is not set, but uris are set, then returns the first uri in the uris. If neither target uri nor uris are set, then returns null. | [optional] +**TargetUris** | **string** | The target URIs of the remote process group. If target uris is not set but target uri is set, then returns the single target uri. If neither target uris nor target uri is set, then returns null. | [optional] +**CommunicationsTimeout** | **string** | The time period used for the timeout when communicating with the target. | [optional] +**YieldDuration** | **string** | When yielding, this amount of time must elapse before the remote process group is scheduled again. | [optional] +**TransportProtocol** | **string** | The Transport Protocol that is used for Site-to-Site communications | [optional] +**LocalNetworkInterface** | **string** | The local network interface to send/receive data. If not specified, any local address is used. If clustered, all nodes must have an interface with this identifier. | [optional] +**ProxyHost** | **string** | | [optional] +**ProxyPort** | **int?** | | [optional] +**ProxyUser** | **string** | | [optional] +**InputPorts** | [**List<VersionedRemoteGroupPort>**](VersionedRemoteGroupPort.md) | A Set of Input Ports that can be connected to, in order to send data to the remote NiFi instance | [optional] +**OutputPorts** | [**List<VersionedRemoteGroupPort>**](VersionedRemoteGroupPort.md) | A Set of Output Ports that can be connected to, in order to pull data from the remote NiFi instance | [optional] +**ComponentType** | **string** | | [optional] +**GroupIdentifier** | **string** | The ID of the Process Group that this component belongs to | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/Docs/VersionsApi.md b/Docs/VersionsApi.md new file mode 100644 index 0000000..0b6c1cd --- /dev/null +++ b/Docs/VersionsApi.md @@ -0,0 +1,835 @@ +# IO.Swagger.Api.VersionsApi + +All URIs are relative to *http://localhost/nifi-api* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**CreateVersionControlRequest**](VersionsApi.md#createversioncontrolrequest) | **POST** /versions/active-requests | Create a version control request +[**DeleteRevertRequest**](VersionsApi.md#deleterevertrequest) | **DELETE** /versions/revert-requests/{id} | Deletes the Revert Request with the given ID +[**DeleteUpdateRequest**](VersionsApi.md#deleteupdaterequest) | **DELETE** /versions/update-requests/{id} | Deletes the Update Request with the given ID +[**DeleteVersionControlRequest**](VersionsApi.md#deleteversioncontrolrequest) | **DELETE** /versions/active-requests/{id} | Deletes the version control request with the given ID +[**GetRevertRequest**](VersionsApi.md#getrevertrequest) | **GET** /versions/revert-requests/{id} | Returns the Revert Request with the given ID +[**GetUpdateRequest**](VersionsApi.md#getupdaterequest) | **GET** /versions/update-requests/{id} | Returns the Update Request with the given ID +[**GetVersionInformation**](VersionsApi.md#getversioninformation) | **GET** /versions/process-groups/{id} | Gets the Version Control information for a process group +[**InitiateRevertFlowVersion**](VersionsApi.md#initiaterevertflowversion) | **POST** /versions/revert-requests/process-groups/{id} | Initiate the Revert Request of a Process Group with the given ID +[**InitiateVersionControlUpdate**](VersionsApi.md#initiateversioncontrolupdate) | **POST** /versions/update-requests/process-groups/{id} | Initiate the Update Request of a Process Group with the given ID +[**SaveToFlowRegistry**](VersionsApi.md#savetoflowregistry) | **POST** /versions/process-groups/{id} | Save the Process Group with the given ID +[**StopVersionControl**](VersionsApi.md#stopversioncontrol) | **DELETE** /versions/process-groups/{id} | Stops version controlling the Process Group with the given ID +[**UpdateFlowVersion**](VersionsApi.md#updateflowversion) | **PUT** /versions/process-groups/{id} | Update the version of a Process Group with the given ID +[**UpdateVersionControlRequest**](VersionsApi.md#updateversioncontrolrequest) | **PUT** /versions/active-requests/{id} | Updates the request with the given ID + + + +# **CreateVersionControlRequest** +> string CreateVersionControlRequest (CreateActiveRequestEntity body) + +Create a version control request + +Creates a request so that a Process Group can be placed under Version Control or have its Version Control configuration changed. Creating this request will prevent any other threads from simultaneously saving local changes to Version Control. It will not, however, actually save the local flow to the Flow Registry. A POST to /versions/process-groups/{id} should be used to initiate saving of the local flow to the Flow Registry. Note: This endpoint is subject to change as NiFi and it's REST API evolve. + +### Example +```csharp +using System; +using System.Diagnostics; +using IO.Swagger.Api; +using IO.Swagger.Client; +using IO.Swagger.Model; + +namespace Example +{ + public class CreateVersionControlRequestExample + { + public void main() + { + var apiInstance = new VersionsApi(); + var body = new CreateActiveRequestEntity(); // CreateActiveRequestEntity | The versioned flow details. + + try + { + // Create a version control request + string result = apiInstance.CreateVersionControlRequest(body); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling VersionsApi.CreateVersionControlRequest: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **body** | [**CreateActiveRequestEntity**](CreateActiveRequestEntity.md)| The versioned flow details. | + +### Return type + +**string** + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: text/plain + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **DeleteRevertRequest** +> VersionedFlowUpdateRequestEntity DeleteRevertRequest (string id, bool? disconnectedNodeAcknowledged = null) + +Deletes the Revert Request with the given ID + +Deletes the Revert Request with the given ID. After a request is created via a POST to /versions/revert-requests/process-groups/{id}, it is expected that the client will properly clean up the request by DELETE'ing it, once the Revert process has completed. If the request is deleted before the request completes, then the Revert request will finish the step that it is currently performing and then will cancel any subsequent steps. Note: This endpoint is subject to change as NiFi and it's REST API evolve. + +### Example +```csharp +using System; +using System.Diagnostics; +using IO.Swagger.Api; +using IO.Swagger.Client; +using IO.Swagger.Model; + +namespace Example +{ + public class DeleteRevertRequestExample + { + public void main() + { + var apiInstance = new VersionsApi(); + var id = id_example; // string | The ID of the Revert Request + var disconnectedNodeAcknowledged = true; // bool? | Acknowledges that this node is disconnected to allow for mutable requests to proceed. (optional) (default to false) + + try + { + // Deletes the Revert Request with the given ID + VersionedFlowUpdateRequestEntity result = apiInstance.DeleteRevertRequest(id, disconnectedNodeAcknowledged); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling VersionsApi.DeleteRevertRequest: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **string**| The ID of the Revert Request | + **disconnectedNodeAcknowledged** | **bool?**| Acknowledges that this node is disconnected to allow for mutable requests to proceed. | [optional] [default to false] + +### Return type + +[**VersionedFlowUpdateRequestEntity**](VersionedFlowUpdateRequestEntity.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **DeleteUpdateRequest** +> VersionedFlowUpdateRequestEntity DeleteUpdateRequest (string id, bool? disconnectedNodeAcknowledged = null) + +Deletes the Update Request with the given ID + +Deletes the Update Request with the given ID. After a request is created via a POST to /versions/update-requests/process-groups/{id}, it is expected that the client will properly clean up the request by DELETE'ing it, once the Update process has completed. If the request is deleted before the request completes, then the Update request will finish the step that it is currently performing and then will cancel any subsequent steps. Note: This endpoint is subject to change as NiFi and it's REST API evolve. + +### Example +```csharp +using System; +using System.Diagnostics; +using IO.Swagger.Api; +using IO.Swagger.Client; +using IO.Swagger.Model; + +namespace Example +{ + public class DeleteUpdateRequestExample + { + public void main() + { + var apiInstance = new VersionsApi(); + var id = id_example; // string | The ID of the Update Request + var disconnectedNodeAcknowledged = true; // bool? | Acknowledges that this node is disconnected to allow for mutable requests to proceed. (optional) (default to false) + + try + { + // Deletes the Update Request with the given ID + VersionedFlowUpdateRequestEntity result = apiInstance.DeleteUpdateRequest(id, disconnectedNodeAcknowledged); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling VersionsApi.DeleteUpdateRequest: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **string**| The ID of the Update Request | + **disconnectedNodeAcknowledged** | **bool?**| Acknowledges that this node is disconnected to allow for mutable requests to proceed. | [optional] [default to false] + +### Return type + +[**VersionedFlowUpdateRequestEntity**](VersionedFlowUpdateRequestEntity.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **DeleteVersionControlRequest** +> void DeleteVersionControlRequest (string id, bool? disconnectedNodeAcknowledged = null) + +Deletes the version control request with the given ID + +Deletes the Version Control Request with the given ID. This will allow other threads to save flows to the Flow Registry. See also the documentation for POSTing to /versions/active-requests for information regarding why this is done. Note: This endpoint is subject to change as NiFi and it's REST API evolve. + +### Example +```csharp +using System; +using System.Diagnostics; +using IO.Swagger.Api; +using IO.Swagger.Client; +using IO.Swagger.Model; + +namespace Example +{ + public class DeleteVersionControlRequestExample + { + public void main() + { + var apiInstance = new VersionsApi(); + var id = id_example; // string | The request ID. + var disconnectedNodeAcknowledged = true; // bool? | Acknowledges that this node is disconnected to allow for mutable requests to proceed. (optional) (default to false) + + try + { + // Deletes the version control request with the given ID + apiInstance.DeleteVersionControlRequest(id, disconnectedNodeAcknowledged); + } + catch (Exception e) + { + Debug.Print("Exception when calling VersionsApi.DeleteVersionControlRequest: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **string**| The request ID. | + **disconnectedNodeAcknowledged** | **bool?**| Acknowledges that this node is disconnected to allow for mutable requests to proceed. | [optional] [default to false] + +### Return type + +void (empty response body) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **GetRevertRequest** +> VersionedFlowUpdateRequestEntity GetRevertRequest (string id) + +Returns the Revert Request with the given ID + +Returns the Revert Request with the given ID. Once a Revert Request has been created by performing a POST to /versions/revert-requests/process-groups/{id}, that request can subsequently be retrieved via this endpoint, and the request that is fetched will contain the updated state, such as percent complete, the current state of the request, and any failures. Note: This endpoint is subject to change as NiFi and it's REST API evolve. + +### Example +```csharp +using System; +using System.Diagnostics; +using IO.Swagger.Api; +using IO.Swagger.Client; +using IO.Swagger.Model; + +namespace Example +{ + public class GetRevertRequestExample + { + public void main() + { + var apiInstance = new VersionsApi(); + var id = id_example; // string | The ID of the Revert Request + + try + { + // Returns the Revert Request with the given ID + VersionedFlowUpdateRequestEntity result = apiInstance.GetRevertRequest(id); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling VersionsApi.GetRevertRequest: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **string**| The ID of the Revert Request | + +### Return type + +[**VersionedFlowUpdateRequestEntity**](VersionedFlowUpdateRequestEntity.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **GetUpdateRequest** +> VersionedFlowUpdateRequestEntity GetUpdateRequest (string id) + +Returns the Update Request with the given ID + +Returns the Update Request with the given ID. Once an Update Request has been created by performing a POST to /versions/update-requests/process-groups/{id}, that request can subsequently be retrieved via this endpoint, and the request that is fetched will contain the updated state, such as percent complete, the current state of the request, and any failures. Note: This endpoint is subject to change as NiFi and it's REST API evolve. + +### Example +```csharp +using System; +using System.Diagnostics; +using IO.Swagger.Api; +using IO.Swagger.Client; +using IO.Swagger.Model; + +namespace Example +{ + public class GetUpdateRequestExample + { + public void main() + { + var apiInstance = new VersionsApi(); + var id = id_example; // string | The ID of the Update Request + + try + { + // Returns the Update Request with the given ID + VersionedFlowUpdateRequestEntity result = apiInstance.GetUpdateRequest(id); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling VersionsApi.GetUpdateRequest: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **string**| The ID of the Update Request | + +### Return type + +[**VersionedFlowUpdateRequestEntity**](VersionedFlowUpdateRequestEntity.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **GetVersionInformation** +> VersionControlInformationEntity GetVersionInformation (string id) + +Gets the Version Control information for a process group + +Note: This endpoint is subject to change as NiFi and it's REST API evolve. + +### Example +```csharp +using System; +using System.Diagnostics; +using IO.Swagger.Api; +using IO.Swagger.Client; +using IO.Swagger.Model; + +namespace Example +{ + public class GetVersionInformationExample + { + public void main() + { + var apiInstance = new VersionsApi(); + var id = id_example; // string | The process group id. + + try + { + // Gets the Version Control information for a process group + VersionControlInformationEntity result = apiInstance.GetVersionInformation(id); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling VersionsApi.GetVersionInformation: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **string**| The process group id. | + +### Return type + +[**VersionControlInformationEntity**](VersionControlInformationEntity.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **InitiateRevertFlowVersion** +> VersionedFlowUpdateRequestEntity InitiateRevertFlowVersion (string id, VersionControlInformationEntity body) + +Initiate the Revert Request of a Process Group with the given ID + +For a Process Group that is already under Version Control, this will initiate the action of reverting any local changes that have been made to the Process Group since it was last synchronized with the Flow Registry. This will result in the flow matching the Versioned Flow that exists in the Flow Registry. This can be a lengthy process, as it will stop any Processors and disable any Controller Services necessary to perform the action and then restart them. As a result, the endpoint will immediately return a VersionedFlowUpdateRequestEntity, and the process of updating the flow will occur asynchronously in the background. The client may then periodically poll the status of the request by issuing a GET request to /versions/revert-requests/{requestId}. Once the request is completed, the client is expected to issue a DELETE request to /versions/revert-requests/{requestId}. Note: This endpoint is subject to change as NiFi and it's REST API evolve. + +### Example +```csharp +using System; +using System.Diagnostics; +using IO.Swagger.Api; +using IO.Swagger.Client; +using IO.Swagger.Model; + +namespace Example +{ + public class InitiateRevertFlowVersionExample + { + public void main() + { + var apiInstance = new VersionsApi(); + var id = id_example; // string | The process group id. + var body = new VersionControlInformationEntity(); // VersionControlInformationEntity | The controller service configuration details. + + try + { + // Initiate the Revert Request of a Process Group with the given ID + VersionedFlowUpdateRequestEntity result = apiInstance.InitiateRevertFlowVersion(id, body); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling VersionsApi.InitiateRevertFlowVersion: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **string**| The process group id. | + **body** | [**VersionControlInformationEntity**](VersionControlInformationEntity.md)| The controller service configuration details. | + +### Return type + +[**VersionedFlowUpdateRequestEntity**](VersionedFlowUpdateRequestEntity.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **InitiateVersionControlUpdate** +> VersionedFlowUpdateRequestEntity InitiateVersionControlUpdate (string id, VersionControlInformationEntity body) + +Initiate the Update Request of a Process Group with the given ID + +For a Process Group that is already under Version Control, this will initiate the action of changing from a specific version of the flow in the Flow Registry to a different version of the flow. This can be a lengthy process, as it will stop any Processors and disable any Controller Services necessary to perform the action and then restart them. As a result, the endpoint will immediately return a VersionedFlowUpdateRequestEntity, and the process of updating the flow will occur asynchronously in the background. The client may then periodically poll the status of the request by issuing a GET request to /versions/update-requests/{requestId}. Once the request is completed, the client is expected to issue a DELETE request to /versions/update-requests/{requestId}. Note: This endpoint is subject to change as NiFi and it's REST API evolve. + +### Example +```csharp +using System; +using System.Diagnostics; +using IO.Swagger.Api; +using IO.Swagger.Client; +using IO.Swagger.Model; + +namespace Example +{ + public class InitiateVersionControlUpdateExample + { + public void main() + { + var apiInstance = new VersionsApi(); + var id = id_example; // string | The process group id. + var body = new VersionControlInformationEntity(); // VersionControlInformationEntity | The controller service configuration details. + + try + { + // Initiate the Update Request of a Process Group with the given ID + VersionedFlowUpdateRequestEntity result = apiInstance.InitiateVersionControlUpdate(id, body); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling VersionsApi.InitiateVersionControlUpdate: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **string**| The process group id. | + **body** | [**VersionControlInformationEntity**](VersionControlInformationEntity.md)| The controller service configuration details. | + +### Return type + +[**VersionedFlowUpdateRequestEntity**](VersionedFlowUpdateRequestEntity.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **SaveToFlowRegistry** +> VersionControlInformationEntity SaveToFlowRegistry (string id, StartVersionControlRequestEntity body) + +Save the Process Group with the given ID + +Begins version controlling the Process Group with the given ID or commits changes to the Versioned Flow, depending on if the provided VersionControlInformation includes a flowId. Note: This endpoint is subject to change as NiFi and it's REST API evolve. + +### Example +```csharp +using System; +using System.Diagnostics; +using IO.Swagger.Api; +using IO.Swagger.Client; +using IO.Swagger.Model; + +namespace Example +{ + public class SaveToFlowRegistryExample + { + public void main() + { + var apiInstance = new VersionsApi(); + var id = id_example; // string | The process group id. + var body = new StartVersionControlRequestEntity(); // StartVersionControlRequestEntity | The versioned flow details. + + try + { + // Save the Process Group with the given ID + VersionControlInformationEntity result = apiInstance.SaveToFlowRegistry(id, body); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling VersionsApi.SaveToFlowRegistry: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **string**| The process group id. | + **body** | [**StartVersionControlRequestEntity**](StartVersionControlRequestEntity.md)| The versioned flow details. | + +### Return type + +[**VersionControlInformationEntity**](VersionControlInformationEntity.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **StopVersionControl** +> VersionControlInformationEntity StopVersionControl (string id, string version = null, string clientId = null, bool? disconnectedNodeAcknowledged = null) + +Stops version controlling the Process Group with the given ID + +Stops version controlling the Process Group with the given ID. The Process Group will no longer track to any Versioned Flow. Note: This endpoint is subject to change as NiFi and it's REST API evolve. + +### Example +```csharp +using System; +using System.Diagnostics; +using IO.Swagger.Api; +using IO.Swagger.Client; +using IO.Swagger.Model; + +namespace Example +{ + public class StopVersionControlExample + { + public void main() + { + var apiInstance = new VersionsApi(); + var id = id_example; // string | The process group id. + var version = version_example; // string | The version is used to verify the client is working with the latest version of the flow. (optional) + var clientId = clientId_example; // string | If the client id is not specified, a new one will be generated. This value (whether specified or generated) is included in the response. (optional) + var disconnectedNodeAcknowledged = true; // bool? | Acknowledges that this node is disconnected to allow for mutable requests to proceed. (optional) (default to false) + + try + { + // Stops version controlling the Process Group with the given ID + VersionControlInformationEntity result = apiInstance.StopVersionControl(id, version, clientId, disconnectedNodeAcknowledged); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling VersionsApi.StopVersionControl: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **string**| The process group id. | + **version** | **string**| The version is used to verify the client is working with the latest version of the flow. | [optional] + **clientId** | **string**| If the client id is not specified, a new one will be generated. This value (whether specified or generated) is included in the response. | [optional] + **disconnectedNodeAcknowledged** | **bool?**| Acknowledges that this node is disconnected to allow for mutable requests to proceed. | [optional] [default to false] + +### Return type + +[**VersionControlInformationEntity**](VersionControlInformationEntity.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **UpdateFlowVersion** +> VersionControlInformationEntity UpdateFlowVersion (string id, VersionedFlowSnapshotEntity body) + +Update the version of a Process Group with the given ID + +For a Process Group that is already under Version Control, this will update the version of the flow to a different version. This endpoint expects that the given snapshot will not modify any Processor that is currently running or any Controller Service that is enabled. Note: This endpoint is subject to change as NiFi and it's REST API evolve. + +### Example +```csharp +using System; +using System.Diagnostics; +using IO.Swagger.Api; +using IO.Swagger.Client; +using IO.Swagger.Model; + +namespace Example +{ + public class UpdateFlowVersionExample + { + public void main() + { + var apiInstance = new VersionsApi(); + var id = id_example; // string | The process group id. + var body = new VersionedFlowSnapshotEntity(); // VersionedFlowSnapshotEntity | The controller service configuration details. + + try + { + // Update the version of a Process Group with the given ID + VersionControlInformationEntity result = apiInstance.UpdateFlowVersion(id, body); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling VersionsApi.UpdateFlowVersion: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **string**| The process group id. | + **body** | [**VersionedFlowSnapshotEntity**](VersionedFlowSnapshotEntity.md)| The controller service configuration details. | + +### Return type + +[**VersionControlInformationEntity**](VersionControlInformationEntity.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **UpdateVersionControlRequest** +> VersionControlInformationEntity UpdateVersionControlRequest (string id, VersionControlComponentMappingEntity body) + +Updates the request with the given ID + +Note: This endpoint is subject to change as NiFi and it's REST API evolve. + +### Example +```csharp +using System; +using System.Diagnostics; +using IO.Swagger.Api; +using IO.Swagger.Client; +using IO.Swagger.Model; + +namespace Example +{ + public class UpdateVersionControlRequestExample + { + public void main() + { + var apiInstance = new VersionsApi(); + var id = id_example; // string | The request ID. + var body = new VersionControlComponentMappingEntity(); // VersionControlComponentMappingEntity | The version control component mapping. + + try + { + // Updates the request with the given ID + VersionControlInformationEntity result = apiInstance.UpdateVersionControlRequest(id, body); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling VersionsApi.UpdateVersionControlRequest: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **string**| The request ID. | + **body** | [**VersionControlComponentMappingEntity**](VersionControlComponentMappingEntity.md)| The version control component mapping. | + +### Return type + +[**VersionControlInformationEntity**](VersionControlInformationEntity.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/NiFi.Swagger.SystemDiagnosticsApiExample/App.config b/NiFi.Swagger.SystemDiagnosticsApiExample/App.config new file mode 100644 index 0000000..1e646c8 --- /dev/null +++ b/NiFi.Swagger.SystemDiagnosticsApiExample/App.config @@ -0,0 +1,14 @@ + + + + + + + + + + + + + + diff --git a/NiFi.Swagger.SystemDiagnosticsApiExample/NiFi.Swagger.SystemDiagnosticsApiExample.csproj b/NiFi.Swagger.SystemDiagnosticsApiExample/NiFi.Swagger.SystemDiagnosticsApiExample.csproj new file mode 100644 index 0000000..adbf7cf --- /dev/null +++ b/NiFi.Swagger.SystemDiagnosticsApiExample/NiFi.Swagger.SystemDiagnosticsApiExample.csproj @@ -0,0 +1,61 @@ + + + + + Debug + AnyCPU + {434F0520-BA70-45EB-ACB5-225E7AD56FC4} + Exe + NiFi.Swagger.SystemDiagnosticsApiExample + NiFi.Swagger.SystemDiagnosticsApiExample + v4.6 + 512 + true + true + + + + AnyCPU + true + full + false + bin\Debug\ + DEBUG;TRACE + prompt + 4 + + + AnyCPU + pdbonly + true + bin\Release\ + TRACE + prompt + 4 + + + + + + + + + + + + + + + + + + + + + + {b2551395-4d42-49e1-b061-8f7e2ff9987c} + NiFi.Swagger + + + + \ No newline at end of file diff --git a/NiFi.Swagger.SystemDiagnosticsApiExample/Program.cs b/NiFi.Swagger.SystemDiagnosticsApiExample/Program.cs new file mode 100644 index 0000000..4a86f36 --- /dev/null +++ b/NiFi.Swagger.SystemDiagnosticsApiExample/Program.cs @@ -0,0 +1,34 @@ + +namespace NiFi.Swagger.SystemDiagnosticsApiExample +{ + using System; + + using NiFi.Swagger.Api; + using NiFi.Swagger.Client; + using Console = System.Console; + + class Program + { + static void Main(string[] args) + { + try + { + var config = new Configuration + { + BasePath = "http://localhost:8080/nifi-api" + }; + + var systemApi = new SystemDiagnosticsApi(config); + + var localDiagnostics = systemApi.GetSystemDiagnostics(); + Console.WriteLine(localDiagnostics.ToJson()); + + Console.ReadKey(); + } + catch (Exception e) + { + Console.WriteLine(e); + } + } + } +} diff --git a/NiFi.Swagger.SystemDiagnosticsApiExample/Properties/AssemblyInfo.cs b/NiFi.Swagger.SystemDiagnosticsApiExample/Properties/AssemblyInfo.cs new file mode 100644 index 0000000..5741d5c --- /dev/null +++ b/NiFi.Swagger.SystemDiagnosticsApiExample/Properties/AssemblyInfo.cs @@ -0,0 +1,36 @@ +using System.Reflection; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +// General Information about an assembly is controlled through the following +// set of attributes. Change these attribute values to modify the information +// associated with an assembly. +[assembly: AssemblyTitle("NiFi.Swagger.SystemDiagnosticsApiExample")] +[assembly: AssemblyDescription("")] +[assembly: AssemblyConfiguration("")] +[assembly: AssemblyCompany("")] +[assembly: AssemblyProduct("NiFi.Swagger.SystemDiagnosticsApiExample")] +[assembly: AssemblyCopyright("Copyright © 2019")] +[assembly: AssemblyTrademark("")] +[assembly: AssemblyCulture("")] + +// Setting ComVisible to false makes the types in this assembly not visible +// to COM components. If you need to access a type in this assembly from +// COM, set the ComVisible attribute to true on that type. +[assembly: ComVisible(false)] + +// The following GUID is for the ID of the typelib if this project is exposed to COM +[assembly: Guid("434f0520-ba70-45eb-acb5-225e7ad56fc4")] + +// Version information for an assembly consists of the following four values: +// +// Major Version +// Minor Version +// Build Number +// Revision +// +// You can specify all the values or you can default the Build and Revision Numbers +// by using the '*' as shown below: +// [assembly: AssemblyVersion("1.0.*")] +[assembly: AssemblyVersion("1.0.0.0")] +[assembly: AssemblyFileVersion("1.0.0.0")] diff --git a/NiFi.Swagger/Api/AccessApi.cs b/NiFi.Swagger/Api/AccessApi.cs new file mode 100644 index 0000000..edad15e --- /dev/null +++ b/NiFi.Swagger/Api/AccessApi.cs @@ -0,0 +1,2233 @@ +/* + * NiFi Rest Api + * + * The Rest Api provides programmatic access to command and control a NiFi instance in real time. Start and stop processors, monitor queues, query provenance data, and more. Each endpoint below includes a description, definitions of the expected input and output, potential response codes, and the authorizations required to invoke each service. + * + * OpenAPI spec version: 1.9.1 + * Contact: dev@nifi.apache.org + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +namespace NiFi.Swagger.Api +{ + using System; + using System.Collections.Generic; + using System.Collections.ObjectModel; + using System.Linq; + + using NiFi.Swagger.Client; + using NiFi.Swagger.Model; + + using RestSharp; + + /// + /// Represents a collection of functions to interact with the API endpoints + /// + public interface IAccessApi : IApiAccessor + { + #region Synchronous Operations + /// + /// Creates a token for accessing the REST API via username/password + /// + /// + /// The token returned is formatted as a JSON Web Token (JWT). The token is base64 encoded and comprised of three parts. The header, the body, and the signature. The expiration of the token is a contained within the body. The token can be used in the Authorization header in the format 'Authorization: Bearer <token>'. + /// + /// Thrown when fails to make API call + /// (optional) + /// (optional) + /// string + string CreateAccessToken (string username = null, string password = null); + + /// + /// Creates a token for accessing the REST API via username/password + /// + /// + /// The token returned is formatted as a JSON Web Token (JWT). The token is base64 encoded and comprised of three parts. The header, the body, and the signature. The expiration of the token is a contained within the body. The token can be used in the Authorization header in the format 'Authorization: Bearer <token>'. + /// + /// Thrown when fails to make API call + /// (optional) + /// (optional) + /// ApiResponse of string + ApiResponse CreateAccessTokenWithHttpInfo (string username = null, string password = null); + /// + /// Creates a token for accessing the REST API via Kerberos ticket exchange / SPNEGO negotiation + /// + /// + /// The token returned is formatted as a JSON Web Token (JWT). The token is base64 encoded and comprised of three parts. The header, the body, and the signature. The expiration of the token is a contained within the body. The token can be used in the Authorization header in the format 'Authorization: Bearer <token>'. + /// + /// Thrown when fails to make API call + /// string + string CreateAccessTokenFromTicket (); + + /// + /// Creates a token for accessing the REST API via Kerberos ticket exchange / SPNEGO negotiation + /// + /// + /// The token returned is formatted as a JSON Web Token (JWT). The token is base64 encoded and comprised of three parts. The header, the body, and the signature. The expiration of the token is a contained within the body. The token can be used in the Authorization header in the format 'Authorization: Bearer <token>'. + /// + /// Thrown when fails to make API call + /// ApiResponse of string + ApiResponse CreateAccessTokenFromTicketWithHttpInfo (); + /// + /// Creates a single use access token for downloading FlowFile content. + /// + /// + /// The token returned is a base64 encoded string. It is valid for a single request up to five minutes from being issued. It is used as a query parameter name 'access_token'. + /// + /// Thrown when fails to make API call + /// string + string CreateDownloadToken (); + + /// + /// Creates a single use access token for downloading FlowFile content. + /// + /// + /// The token returned is a base64 encoded string. It is valid for a single request up to five minutes from being issued. It is used as a query parameter name 'access_token'. + /// + /// Thrown when fails to make API call + /// ApiResponse of string + ApiResponse CreateDownloadTokenWithHttpInfo (); + /// + /// Creates a single use access token for accessing a NiFi UI extension. + /// + /// + /// The token returned is a base64 encoded string. It is valid for a single request up to five minutes from being issued. It is used as a query parameter name 'access_token'. + /// + /// Thrown when fails to make API call + /// string + string CreateUiExtensionToken (); + + /// + /// Creates a single use access token for accessing a NiFi UI extension. + /// + /// + /// The token returned is a base64 encoded string. It is valid for a single request up to five minutes from being issued. It is used as a query parameter name 'access_token'. + /// + /// Thrown when fails to make API call + /// ApiResponse of string + ApiResponse CreateUiExtensionTokenWithHttpInfo (); + /// + /// Gets the status the client's access + /// + /// + /// Note: This endpoint is subject to change as NiFi and it's REST API evolve. + /// + /// Thrown when fails to make API call + /// AccessStatusEntity + AccessStatusEntity GetAccessStatus (); + + /// + /// Gets the status the client's access + /// + /// + /// Note: This endpoint is subject to change as NiFi and it's REST API evolve. + /// + /// Thrown when fails to make API call + /// ApiResponse of AccessStatusEntity + ApiResponse GetAccessStatusWithHttpInfo (); + /// + /// Retrieves the access configuration for this NiFi + /// + /// + /// + /// + /// Thrown when fails to make API call + /// AccessConfigurationEntity + AccessConfigurationEntity GetLoginConfig (); + + /// + /// Retrieves the access configuration for this NiFi + /// + /// + /// + /// + /// Thrown when fails to make API call + /// ApiResponse of AccessConfigurationEntity + ApiResponse GetLoginConfigWithHttpInfo (); + /// + /// Redirect/callback URI for processing the result of the Apache Knox login sequence. + /// + /// + /// Note: This endpoint is subject to change as NiFi and it's REST API evolve. + /// + /// Thrown when fails to make API call + /// + void KnoxCallback (); + + /// + /// Redirect/callback URI for processing the result of the Apache Knox login sequence. + /// + /// + /// Note: This endpoint is subject to change as NiFi and it's REST API evolve. + /// + /// Thrown when fails to make API call + /// ApiResponse of Object(void) + ApiResponse KnoxCallbackWithHttpInfo (); + /// + /// Performs a logout in the Apache Knox. + /// + /// + /// Note: This endpoint is subject to change as NiFi and it's REST API evolve. + /// + /// Thrown when fails to make API call + /// + void KnoxLogout (); + + /// + /// Performs a logout in the Apache Knox. + /// + /// + /// Note: This endpoint is subject to change as NiFi and it's REST API evolve. + /// + /// Thrown when fails to make API call + /// ApiResponse of Object(void) + ApiResponse KnoxLogoutWithHttpInfo (); + /// + /// Initiates a request to authenticate through Apache Knox. + /// + /// + /// Note: This endpoint is subject to change as NiFi and it's REST API evolve. + /// + /// Thrown when fails to make API call + /// + void KnoxRequest (); + + /// + /// Initiates a request to authenticate through Apache Knox. + /// + /// + /// Note: This endpoint is subject to change as NiFi and it's REST API evolve. + /// + /// Thrown when fails to make API call + /// ApiResponse of Object(void) + ApiResponse KnoxRequestWithHttpInfo (); + /// + /// Redirect/callback URI for processing the result of the OpenId Connect login sequence. + /// + /// + /// Note: This endpoint is subject to change as NiFi and it's REST API evolve. + /// + /// Thrown when fails to make API call + /// + void OidcCallback (); + + /// + /// Redirect/callback URI for processing the result of the OpenId Connect login sequence. + /// + /// + /// Note: This endpoint is subject to change as NiFi and it's REST API evolve. + /// + /// Thrown when fails to make API call + /// ApiResponse of Object(void) + ApiResponse OidcCallbackWithHttpInfo (); + /// + /// Retrieves a JWT following a successful login sequence using the configured OpenId Connect provider. + /// + /// + /// Note: This endpoint is subject to change as NiFi and it's REST API evolve. + /// + /// Thrown when fails to make API call + /// string + string OidcExchange (); + + /// + /// Retrieves a JWT following a successful login sequence using the configured OpenId Connect provider. + /// + /// + /// Note: This endpoint is subject to change as NiFi and it's REST API evolve. + /// + /// Thrown when fails to make API call + /// ApiResponse of string + ApiResponse OidcExchangeWithHttpInfo (); + /// + /// Performs a logout in the OpenId Provider. + /// + /// + /// Note: This endpoint is subject to change as NiFi and it's REST API evolve. + /// + /// Thrown when fails to make API call + /// + void OidcLogout (); + + /// + /// Performs a logout in the OpenId Provider. + /// + /// + /// Note: This endpoint is subject to change as NiFi and it's REST API evolve. + /// + /// Thrown when fails to make API call + /// ApiResponse of Object(void) + ApiResponse OidcLogoutWithHttpInfo (); + /// + /// Initiates a request to authenticate through the configured OpenId Connect provider. + /// + /// + /// Note: This endpoint is subject to change as NiFi and it's REST API evolve. + /// + /// Thrown when fails to make API call + /// + void OidcRequest (); + + /// + /// Initiates a request to authenticate through the configured OpenId Connect provider. + /// + /// + /// Note: This endpoint is subject to change as NiFi and it's REST API evolve. + /// + /// Thrown when fails to make API call + /// ApiResponse of Object(void) + ApiResponse OidcRequestWithHttpInfo (); + #endregion Synchronous Operations + #region Asynchronous Operations + /// + /// Creates a token for accessing the REST API via username/password + /// + /// + /// The token returned is formatted as a JSON Web Token (JWT). The token is base64 encoded and comprised of three parts. The header, the body, and the signature. The expiration of the token is a contained within the body. The token can be used in the Authorization header in the format 'Authorization: Bearer <token>'. + /// + /// Thrown when fails to make API call + /// (optional) + /// (optional) + /// Task of string + System.Threading.Tasks.Task CreateAccessTokenAsync (string username = null, string password = null); + + /// + /// Creates a token for accessing the REST API via username/password + /// + /// + /// The token returned is formatted as a JSON Web Token (JWT). The token is base64 encoded and comprised of three parts. The header, the body, and the signature. The expiration of the token is a contained within the body. The token can be used in the Authorization header in the format 'Authorization: Bearer <token>'. + /// + /// Thrown when fails to make API call + /// (optional) + /// (optional) + /// Task of ApiResponse (string) + System.Threading.Tasks.Task> CreateAccessTokenAsyncWithHttpInfo (string username = null, string password = null); + /// + /// Creates a token for accessing the REST API via Kerberos ticket exchange / SPNEGO negotiation + /// + /// + /// The token returned is formatted as a JSON Web Token (JWT). The token is base64 encoded and comprised of three parts. The header, the body, and the signature. The expiration of the token is a contained within the body. The token can be used in the Authorization header in the format 'Authorization: Bearer <token>'. + /// + /// Thrown when fails to make API call + /// Task of string + System.Threading.Tasks.Task CreateAccessTokenFromTicketAsync (); + + /// + /// Creates a token for accessing the REST API via Kerberos ticket exchange / SPNEGO negotiation + /// + /// + /// The token returned is formatted as a JSON Web Token (JWT). The token is base64 encoded and comprised of three parts. The header, the body, and the signature. The expiration of the token is a contained within the body. The token can be used in the Authorization header in the format 'Authorization: Bearer <token>'. + /// + /// Thrown when fails to make API call + /// Task of ApiResponse (string) + System.Threading.Tasks.Task> CreateAccessTokenFromTicketAsyncWithHttpInfo (); + /// + /// Creates a single use access token for downloading FlowFile content. + /// + /// + /// The token returned is a base64 encoded string. It is valid for a single request up to five minutes from being issued. It is used as a query parameter name 'access_token'. + /// + /// Thrown when fails to make API call + /// Task of string + System.Threading.Tasks.Task CreateDownloadTokenAsync (); + + /// + /// Creates a single use access token for downloading FlowFile content. + /// + /// + /// The token returned is a base64 encoded string. It is valid for a single request up to five minutes from being issued. It is used as a query parameter name 'access_token'. + /// + /// Thrown when fails to make API call + /// Task of ApiResponse (string) + System.Threading.Tasks.Task> CreateDownloadTokenAsyncWithHttpInfo (); + /// + /// Creates a single use access token for accessing a NiFi UI extension. + /// + /// + /// The token returned is a base64 encoded string. It is valid for a single request up to five minutes from being issued. It is used as a query parameter name 'access_token'. + /// + /// Thrown when fails to make API call + /// Task of string + System.Threading.Tasks.Task CreateUiExtensionTokenAsync (); + + /// + /// Creates a single use access token for accessing a NiFi UI extension. + /// + /// + /// The token returned is a base64 encoded string. It is valid for a single request up to five minutes from being issued. It is used as a query parameter name 'access_token'. + /// + /// Thrown when fails to make API call + /// Task of ApiResponse (string) + System.Threading.Tasks.Task> CreateUiExtensionTokenAsyncWithHttpInfo (); + /// + /// Gets the status the client's access + /// + /// + /// Note: This endpoint is subject to change as NiFi and it's REST API evolve. + /// + /// Thrown when fails to make API call + /// Task of AccessStatusEntity + System.Threading.Tasks.Task GetAccessStatusAsync (); + + /// + /// Gets the status the client's access + /// + /// + /// Note: This endpoint is subject to change as NiFi and it's REST API evolve. + /// + /// Thrown when fails to make API call + /// Task of ApiResponse (AccessStatusEntity) + System.Threading.Tasks.Task> GetAccessStatusAsyncWithHttpInfo (); + /// + /// Retrieves the access configuration for this NiFi + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Task of AccessConfigurationEntity + System.Threading.Tasks.Task GetLoginConfigAsync (); + + /// + /// Retrieves the access configuration for this NiFi + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Task of ApiResponse (AccessConfigurationEntity) + System.Threading.Tasks.Task> GetLoginConfigAsyncWithHttpInfo (); + /// + /// Redirect/callback URI for processing the result of the Apache Knox login sequence. + /// + /// + /// Note: This endpoint is subject to change as NiFi and it's REST API evolve. + /// + /// Thrown when fails to make API call + /// Task of void + System.Threading.Tasks.Task KnoxCallbackAsync (); + + /// + /// Redirect/callback URI for processing the result of the Apache Knox login sequence. + /// + /// + /// Note: This endpoint is subject to change as NiFi and it's REST API evolve. + /// + /// Thrown when fails to make API call + /// Task of ApiResponse + System.Threading.Tasks.Task> KnoxCallbackAsyncWithHttpInfo (); + /// + /// Performs a logout in the Apache Knox. + /// + /// + /// Note: This endpoint is subject to change as NiFi and it's REST API evolve. + /// + /// Thrown when fails to make API call + /// Task of void + System.Threading.Tasks.Task KnoxLogoutAsync (); + + /// + /// Performs a logout in the Apache Knox. + /// + /// + /// Note: This endpoint is subject to change as NiFi and it's REST API evolve. + /// + /// Thrown when fails to make API call + /// Task of ApiResponse + System.Threading.Tasks.Task> KnoxLogoutAsyncWithHttpInfo (); + /// + /// Initiates a request to authenticate through Apache Knox. + /// + /// + /// Note: This endpoint is subject to change as NiFi and it's REST API evolve. + /// + /// Thrown when fails to make API call + /// Task of void + System.Threading.Tasks.Task KnoxRequestAsync (); + + /// + /// Initiates a request to authenticate through Apache Knox. + /// + /// + /// Note: This endpoint is subject to change as NiFi and it's REST API evolve. + /// + /// Thrown when fails to make API call + /// Task of ApiResponse + System.Threading.Tasks.Task> KnoxRequestAsyncWithHttpInfo (); + /// + /// Redirect/callback URI for processing the result of the OpenId Connect login sequence. + /// + /// + /// Note: This endpoint is subject to change as NiFi and it's REST API evolve. + /// + /// Thrown when fails to make API call + /// Task of void + System.Threading.Tasks.Task OidcCallbackAsync (); + + /// + /// Redirect/callback URI for processing the result of the OpenId Connect login sequence. + /// + /// + /// Note: This endpoint is subject to change as NiFi and it's REST API evolve. + /// + /// Thrown when fails to make API call + /// Task of ApiResponse + System.Threading.Tasks.Task> OidcCallbackAsyncWithHttpInfo (); + /// + /// Retrieves a JWT following a successful login sequence using the configured OpenId Connect provider. + /// + /// + /// Note: This endpoint is subject to change as NiFi and it's REST API evolve. + /// + /// Thrown when fails to make API call + /// Task of string + System.Threading.Tasks.Task OidcExchangeAsync (); + + /// + /// Retrieves a JWT following a successful login sequence using the configured OpenId Connect provider. + /// + /// + /// Note: This endpoint is subject to change as NiFi and it's REST API evolve. + /// + /// Thrown when fails to make API call + /// Task of ApiResponse (string) + System.Threading.Tasks.Task> OidcExchangeAsyncWithHttpInfo (); + /// + /// Performs a logout in the OpenId Provider. + /// + /// + /// Note: This endpoint is subject to change as NiFi and it's REST API evolve. + /// + /// Thrown when fails to make API call + /// Task of void + System.Threading.Tasks.Task OidcLogoutAsync (); + + /// + /// Performs a logout in the OpenId Provider. + /// + /// + /// Note: This endpoint is subject to change as NiFi and it's REST API evolve. + /// + /// Thrown when fails to make API call + /// Task of ApiResponse + System.Threading.Tasks.Task> OidcLogoutAsyncWithHttpInfo (); + /// + /// Initiates a request to authenticate through the configured OpenId Connect provider. + /// + /// + /// Note: This endpoint is subject to change as NiFi and it's REST API evolve. + /// + /// Thrown when fails to make API call + /// Task of void + System.Threading.Tasks.Task OidcRequestAsync (); + + /// + /// Initiates a request to authenticate through the configured OpenId Connect provider. + /// + /// + /// Note: This endpoint is subject to change as NiFi and it's REST API evolve. + /// + /// Thrown when fails to make API call + /// Task of ApiResponse + System.Threading.Tasks.Task> OidcRequestAsyncWithHttpInfo (); + #endregion Asynchronous Operations + } + + /// + /// Represents a collection of functions to interact with the API endpoints + /// + public partial class AccessApi : IAccessApi + { + private ExceptionFactory _exceptionFactory = (name, response) => null; + + /// + /// Initializes a new instance of the class. + /// + /// + public AccessApi(String basePath) + { + this.Configuration = new Configuration { BasePath = basePath }; + + this.ExceptionFactory = Configuration.DefaultExceptionFactory; + } + + /// + /// Initializes a new instance of the class + /// using Configuration object + /// + /// An instance of Configuration + /// + public AccessApi(Configuration configuration = null) + { + if (configuration == null) // use the default one in Configuration + this.Configuration = Configuration.Default; + else + this.Configuration = configuration; + + this.ExceptionFactory = Configuration.DefaultExceptionFactory; + } + + /// + /// Gets the base path of the API client. + /// + /// The base path + public String GetBasePath() + { + return this.Configuration.ApiClient.RestClient.BaseUrl.ToString(); + } + + /// + /// Sets the base path of the API client. + /// + /// The base path + [Obsolete("SetBasePath is deprecated, please do 'Configuration.ApiClient = new ApiClient(\"http://new-path\")' instead.")] + public void SetBasePath(String basePath) + { + // do nothing + } + + /// + /// Gets or sets the configuration object + /// + /// An instance of the Configuration + public Configuration Configuration {get; set;} + + /// + /// Provides a factory method hook for the creation of exceptions. + /// + public ExceptionFactory ExceptionFactory + { + get + { + if (this._exceptionFactory != null && this._exceptionFactory.GetInvocationList().Length > 1) + { + throw new InvalidOperationException("Multicast delegate for ExceptionFactory is unsupported."); + } + return this._exceptionFactory; + } + set { this._exceptionFactory = value; } + } + + /// + /// Gets the default header. + /// + /// Dictionary of HTTP header + [Obsolete("DefaultHeader is deprecated, please use Configuration.DefaultHeader instead.")] + public IDictionary DefaultHeader() + { + return new ReadOnlyDictionary(this.Configuration.DefaultHeader); + } + + /// + /// Add default header. + /// + /// Header field name. + /// Header field value. + /// + [Obsolete("AddDefaultHeader is deprecated, please use Configuration.AddDefaultHeader instead.")] + public void AddDefaultHeader(string key, string value) + { + this.Configuration.AddDefaultHeader(key, value); + } + + /// + /// Creates a token for accessing the REST API via username/password The token returned is formatted as a JSON Web Token (JWT). The token is base64 encoded and comprised of three parts. The header, the body, and the signature. The expiration of the token is a contained within the body. The token can be used in the Authorization header in the format 'Authorization: Bearer <token>'. + /// + /// Thrown when fails to make API call + /// (optional) + /// (optional) + /// string + public string CreateAccessToken (string username = null, string password = null) + { + ApiResponse localVarResponse = this.CreateAccessTokenWithHttpInfo(username, password); + return localVarResponse.Data; + } + + /// + /// Creates a token for accessing the REST API via username/password The token returned is formatted as a JSON Web Token (JWT). The token is base64 encoded and comprised of three parts. The header, the body, and the signature. The expiration of the token is a contained within the body. The token can be used in the Authorization header in the format 'Authorization: Bearer <token>'. + /// + /// Thrown when fails to make API call + /// (optional) + /// (optional) + /// ApiResponse of string + public ApiResponse< string > CreateAccessTokenWithHttpInfo (string username = null, string password = null) + { + + var localVarPath = "/access/token"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "application/x-www-form-urlencoded" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "text/plain" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (username != null) localVarFormParams.Add("username", this.Configuration.ApiClient.ParameterToString(username)); // form parameter + if (password != null) localVarFormParams.Add("password", this.Configuration.ApiClient.ParameterToString(password)); // form parameter + + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (this.ExceptionFactory != null) + { + Exception exception = this.ExceptionFactory("CreateAccessToken", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), + (string) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(string))); + } + + /// + /// Creates a token for accessing the REST API via username/password The token returned is formatted as a JSON Web Token (JWT). The token is base64 encoded and comprised of three parts. The header, the body, and the signature. The expiration of the token is a contained within the body. The token can be used in the Authorization header in the format 'Authorization: Bearer <token>'. + /// + /// Thrown when fails to make API call + /// (optional) + /// (optional) + /// Task of string + public async System.Threading.Tasks.Task CreateAccessTokenAsync (string username = null, string password = null) + { + ApiResponse localVarResponse = await this.CreateAccessTokenAsyncWithHttpInfo(username, password); + return localVarResponse.Data; + + } + + /// + /// Creates a token for accessing the REST API via username/password The token returned is formatted as a JSON Web Token (JWT). The token is base64 encoded and comprised of three parts. The header, the body, and the signature. The expiration of the token is a contained within the body. The token can be used in the Authorization header in the format 'Authorization: Bearer <token>'. + /// + /// Thrown when fails to make API call + /// (optional) + /// (optional) + /// Task of ApiResponse (string) + public async System.Threading.Tasks.Task> CreateAccessTokenAsyncWithHttpInfo (string username = null, string password = null) + { + + var localVarPath = "/access/token"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "application/x-www-form-urlencoded" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "text/plain" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (username != null) localVarFormParams.Add("username", this.Configuration.ApiClient.ParameterToString(username)); // form parameter + if (password != null) localVarFormParams.Add("password", this.Configuration.ApiClient.ParameterToString(password)); // form parameter + + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (this.ExceptionFactory != null) + { + Exception exception = this.ExceptionFactory("CreateAccessToken", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), + (string) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(string))); + } + + /// + /// Creates a token for accessing the REST API via Kerberos ticket exchange / SPNEGO negotiation The token returned is formatted as a JSON Web Token (JWT). The token is base64 encoded and comprised of three parts. The header, the body, and the signature. The expiration of the token is a contained within the body. The token can be used in the Authorization header in the format 'Authorization: Bearer <token>'. + /// + /// Thrown when fails to make API call + /// string + public string CreateAccessTokenFromTicket () + { + ApiResponse localVarResponse = this.CreateAccessTokenFromTicketWithHttpInfo(); + return localVarResponse.Data; + } + + /// + /// Creates a token for accessing the REST API via Kerberos ticket exchange / SPNEGO negotiation The token returned is formatted as a JSON Web Token (JWT). The token is base64 encoded and comprised of three parts. The header, the body, and the signature. The expiration of the token is a contained within the body. The token can be used in the Authorization header in the format 'Authorization: Bearer <token>'. + /// + /// Thrown when fails to make API call + /// ApiResponse of string + public ApiResponse< string > CreateAccessTokenFromTicketWithHttpInfo () + { + + var localVarPath = "/access/kerberos"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "text/plain" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "text/plain" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (this.ExceptionFactory != null) + { + Exception exception = this.ExceptionFactory("CreateAccessTokenFromTicket", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), + (string) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(string))); + } + + /// + /// Creates a token for accessing the REST API via Kerberos ticket exchange / SPNEGO negotiation The token returned is formatted as a JSON Web Token (JWT). The token is base64 encoded and comprised of three parts. The header, the body, and the signature. The expiration of the token is a contained within the body. The token can be used in the Authorization header in the format 'Authorization: Bearer <token>'. + /// + /// Thrown when fails to make API call + /// Task of string + public async System.Threading.Tasks.Task CreateAccessTokenFromTicketAsync () + { + ApiResponse localVarResponse = await this.CreateAccessTokenFromTicketAsyncWithHttpInfo(); + return localVarResponse.Data; + + } + + /// + /// Creates a token for accessing the REST API via Kerberos ticket exchange / SPNEGO negotiation The token returned is formatted as a JSON Web Token (JWT). The token is base64 encoded and comprised of three parts. The header, the body, and the signature. The expiration of the token is a contained within the body. The token can be used in the Authorization header in the format 'Authorization: Bearer <token>'. + /// + /// Thrown when fails to make API call + /// Task of ApiResponse (string) + public async System.Threading.Tasks.Task> CreateAccessTokenFromTicketAsyncWithHttpInfo () + { + + var localVarPath = "/access/kerberos"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "text/plain" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "text/plain" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (this.ExceptionFactory != null) + { + Exception exception = this.ExceptionFactory("CreateAccessTokenFromTicket", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), + (string) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(string))); + } + + /// + /// Creates a single use access token for downloading FlowFile content. The token returned is a base64 encoded string. It is valid for a single request up to five minutes from being issued. It is used as a query parameter name 'access_token'. + /// + /// Thrown when fails to make API call + /// string + public string CreateDownloadToken () + { + ApiResponse localVarResponse = this.CreateDownloadTokenWithHttpInfo(); + return localVarResponse.Data; + } + + /// + /// Creates a single use access token for downloading FlowFile content. The token returned is a base64 encoded string. It is valid for a single request up to five minutes from being issued. It is used as a query parameter name 'access_token'. + /// + /// Thrown when fails to make API call + /// ApiResponse of string + public ApiResponse< string > CreateDownloadTokenWithHttpInfo () + { + + var localVarPath = "/access/download-token"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "application/x-www-form-urlencoded" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "text/plain" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (this.ExceptionFactory != null) + { + Exception exception = this.ExceptionFactory("CreateDownloadToken", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), + (string) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(string))); + } + + /// + /// Creates a single use access token for downloading FlowFile content. The token returned is a base64 encoded string. It is valid for a single request up to five minutes from being issued. It is used as a query parameter name 'access_token'. + /// + /// Thrown when fails to make API call + /// Task of string + public async System.Threading.Tasks.Task CreateDownloadTokenAsync () + { + ApiResponse localVarResponse = await this.CreateDownloadTokenAsyncWithHttpInfo(); + return localVarResponse.Data; + + } + + /// + /// Creates a single use access token for downloading FlowFile content. The token returned is a base64 encoded string. It is valid for a single request up to five minutes from being issued. It is used as a query parameter name 'access_token'. + /// + /// Thrown when fails to make API call + /// Task of ApiResponse (string) + public async System.Threading.Tasks.Task> CreateDownloadTokenAsyncWithHttpInfo () + { + + var localVarPath = "/access/download-token"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "application/x-www-form-urlencoded" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "text/plain" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (this.ExceptionFactory != null) + { + Exception exception = this.ExceptionFactory("CreateDownloadToken", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), + (string) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(string))); + } + + /// + /// Creates a single use access token for accessing a NiFi UI extension. The token returned is a base64 encoded string. It is valid for a single request up to five minutes from being issued. It is used as a query parameter name 'access_token'. + /// + /// Thrown when fails to make API call + /// string + public string CreateUiExtensionToken () + { + ApiResponse localVarResponse = this.CreateUiExtensionTokenWithHttpInfo(); + return localVarResponse.Data; + } + + /// + /// Creates a single use access token for accessing a NiFi UI extension. The token returned is a base64 encoded string. It is valid for a single request up to five minutes from being issued. It is used as a query parameter name 'access_token'. + /// + /// Thrown when fails to make API call + /// ApiResponse of string + public ApiResponse< string > CreateUiExtensionTokenWithHttpInfo () + { + + var localVarPath = "/access/ui-extension-token"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "application/x-www-form-urlencoded" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "text/plain" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (this.ExceptionFactory != null) + { + Exception exception = this.ExceptionFactory("CreateUiExtensionToken", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), + (string) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(string))); + } + + /// + /// Creates a single use access token for accessing a NiFi UI extension. The token returned is a base64 encoded string. It is valid for a single request up to five minutes from being issued. It is used as a query parameter name 'access_token'. + /// + /// Thrown when fails to make API call + /// Task of string + public async System.Threading.Tasks.Task CreateUiExtensionTokenAsync () + { + ApiResponse localVarResponse = await this.CreateUiExtensionTokenAsyncWithHttpInfo(); + return localVarResponse.Data; + + } + + /// + /// Creates a single use access token for accessing a NiFi UI extension. The token returned is a base64 encoded string. It is valid for a single request up to five minutes from being issued. It is used as a query parameter name 'access_token'. + /// + /// Thrown when fails to make API call + /// Task of ApiResponse (string) + public async System.Threading.Tasks.Task> CreateUiExtensionTokenAsyncWithHttpInfo () + { + + var localVarPath = "/access/ui-extension-token"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "application/x-www-form-urlencoded" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "text/plain" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (this.ExceptionFactory != null) + { + Exception exception = this.ExceptionFactory("CreateUiExtensionToken", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), + (string) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(string))); + } + + /// + /// Gets the status the client's access Note: This endpoint is subject to change as NiFi and it's REST API evolve. + /// + /// Thrown when fails to make API call + /// AccessStatusEntity + public AccessStatusEntity GetAccessStatus () + { + ApiResponse localVarResponse = this.GetAccessStatusWithHttpInfo(); + return localVarResponse.Data; + } + + /// + /// Gets the status the client's access Note: This endpoint is subject to change as NiFi and it's REST API evolve. + /// + /// Thrown when fails to make API call + /// ApiResponse of AccessStatusEntity + public ApiResponse< AccessStatusEntity > GetAccessStatusWithHttpInfo () + { + + var localVarPath = "/access"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "*/*" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (this.ExceptionFactory != null) + { + Exception exception = this.ExceptionFactory("GetAccessStatus", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), + (AccessStatusEntity) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(AccessStatusEntity))); + } + + /// + /// Gets the status the client's access Note: This endpoint is subject to change as NiFi and it's REST API evolve. + /// + /// Thrown when fails to make API call + /// Task of AccessStatusEntity + public async System.Threading.Tasks.Task GetAccessStatusAsync () + { + ApiResponse localVarResponse = await this.GetAccessStatusAsyncWithHttpInfo(); + return localVarResponse.Data; + + } + + /// + /// Gets the status the client's access Note: This endpoint is subject to change as NiFi and it's REST API evolve. + /// + /// Thrown when fails to make API call + /// Task of ApiResponse (AccessStatusEntity) + public async System.Threading.Tasks.Task> GetAccessStatusAsyncWithHttpInfo () + { + + var localVarPath = "/access"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "*/*" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (this.ExceptionFactory != null) + { + Exception exception = this.ExceptionFactory("GetAccessStatus", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), + (AccessStatusEntity) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(AccessStatusEntity))); + } + + /// + /// Retrieves the access configuration for this NiFi + /// + /// Thrown when fails to make API call + /// AccessConfigurationEntity + public AccessConfigurationEntity GetLoginConfig () + { + ApiResponse localVarResponse = this.GetLoginConfigWithHttpInfo(); + return localVarResponse.Data; + } + + /// + /// Retrieves the access configuration for this NiFi + /// + /// Thrown when fails to make API call + /// ApiResponse of AccessConfigurationEntity + public ApiResponse< AccessConfigurationEntity > GetLoginConfigWithHttpInfo () + { + + var localVarPath = "/access/config"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "*/*" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (this.ExceptionFactory != null) + { + Exception exception = this.ExceptionFactory("GetLoginConfig", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), + (AccessConfigurationEntity) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(AccessConfigurationEntity))); + } + + /// + /// Retrieves the access configuration for this NiFi + /// + /// Thrown when fails to make API call + /// Task of AccessConfigurationEntity + public async System.Threading.Tasks.Task GetLoginConfigAsync () + { + ApiResponse localVarResponse = await this.GetLoginConfigAsyncWithHttpInfo(); + return localVarResponse.Data; + + } + + /// + /// Retrieves the access configuration for this NiFi + /// + /// Thrown when fails to make API call + /// Task of ApiResponse (AccessConfigurationEntity) + public async System.Threading.Tasks.Task> GetLoginConfigAsyncWithHttpInfo () + { + + var localVarPath = "/access/config"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "*/*" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (this.ExceptionFactory != null) + { + Exception exception = this.ExceptionFactory("GetLoginConfig", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), + (AccessConfigurationEntity) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(AccessConfigurationEntity))); + } + + /// + /// Redirect/callback URI for processing the result of the Apache Knox login sequence. Note: This endpoint is subject to change as NiFi and it's REST API evolve. + /// + /// Thrown when fails to make API call + /// + public void KnoxCallback () + { + this.KnoxCallbackWithHttpInfo(); + } + + /// + /// Redirect/callback URI for processing the result of the Apache Knox login sequence. Note: This endpoint is subject to change as NiFi and it's REST API evolve. + /// + /// Thrown when fails to make API call + /// ApiResponse of Object(void) + public ApiResponse KnoxCallbackWithHttpInfo () + { + + var localVarPath = "/access/knox/callback"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "*/*" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "*/*" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (this.ExceptionFactory != null) + { + Exception exception = this.ExceptionFactory("KnoxCallback", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), + null); + } + + /// + /// Redirect/callback URI for processing the result of the Apache Knox login sequence. Note: This endpoint is subject to change as NiFi and it's REST API evolve. + /// + /// Thrown when fails to make API call + /// Task of void + public async System.Threading.Tasks.Task KnoxCallbackAsync () + { + await this.KnoxCallbackAsyncWithHttpInfo(); + + } + + /// + /// Redirect/callback URI for processing the result of the Apache Knox login sequence. Note: This endpoint is subject to change as NiFi and it's REST API evolve. + /// + /// Thrown when fails to make API call + /// Task of ApiResponse + public async System.Threading.Tasks.Task> KnoxCallbackAsyncWithHttpInfo () + { + + var localVarPath = "/access/knox/callback"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "*/*" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "*/*" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (this.ExceptionFactory != null) + { + Exception exception = this.ExceptionFactory("KnoxCallback", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), + null); + } + + /// + /// Performs a logout in the Apache Knox. Note: This endpoint is subject to change as NiFi and it's REST API evolve. + /// + /// Thrown when fails to make API call + /// + public void KnoxLogout () + { + this.KnoxLogoutWithHttpInfo(); + } + + /// + /// Performs a logout in the Apache Knox. Note: This endpoint is subject to change as NiFi and it's REST API evolve. + /// + /// Thrown when fails to make API call + /// ApiResponse of Object(void) + public ApiResponse KnoxLogoutWithHttpInfo () + { + + var localVarPath = "/access/knox/logout"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "*/*" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "*/*" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (this.ExceptionFactory != null) + { + Exception exception = this.ExceptionFactory("KnoxLogout", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), + null); + } + + /// + /// Performs a logout in the Apache Knox. Note: This endpoint is subject to change as NiFi and it's REST API evolve. + /// + /// Thrown when fails to make API call + /// Task of void + public async System.Threading.Tasks.Task KnoxLogoutAsync () + { + await this.KnoxLogoutAsyncWithHttpInfo(); + + } + + /// + /// Performs a logout in the Apache Knox. Note: This endpoint is subject to change as NiFi and it's REST API evolve. + /// + /// Thrown when fails to make API call + /// Task of ApiResponse + public async System.Threading.Tasks.Task> KnoxLogoutAsyncWithHttpInfo () + { + + var localVarPath = "/access/knox/logout"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "*/*" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "*/*" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (this.ExceptionFactory != null) + { + Exception exception = this.ExceptionFactory("KnoxLogout", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), + null); + } + + /// + /// Initiates a request to authenticate through Apache Knox. Note: This endpoint is subject to change as NiFi and it's REST API evolve. + /// + /// Thrown when fails to make API call + /// + public void KnoxRequest () + { + this.KnoxRequestWithHttpInfo(); + } + + /// + /// Initiates a request to authenticate through Apache Knox. Note: This endpoint is subject to change as NiFi and it's REST API evolve. + /// + /// Thrown when fails to make API call + /// ApiResponse of Object(void) + public ApiResponse KnoxRequestWithHttpInfo () + { + + var localVarPath = "/access/knox/request"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "*/*" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "*/*" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (this.ExceptionFactory != null) + { + Exception exception = this.ExceptionFactory("KnoxRequest", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), + null); + } + + /// + /// Initiates a request to authenticate through Apache Knox. Note: This endpoint is subject to change as NiFi and it's REST API evolve. + /// + /// Thrown when fails to make API call + /// Task of void + public async System.Threading.Tasks.Task KnoxRequestAsync () + { + await this.KnoxRequestAsyncWithHttpInfo(); + + } + + /// + /// Initiates a request to authenticate through Apache Knox. Note: This endpoint is subject to change as NiFi and it's REST API evolve. + /// + /// Thrown when fails to make API call + /// Task of ApiResponse + public async System.Threading.Tasks.Task> KnoxRequestAsyncWithHttpInfo () + { + + var localVarPath = "/access/knox/request"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "*/*" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "*/*" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (this.ExceptionFactory != null) + { + Exception exception = this.ExceptionFactory("KnoxRequest", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), + null); + } + + /// + /// Redirect/callback URI for processing the result of the OpenId Connect login sequence. Note: This endpoint is subject to change as NiFi and it's REST API evolve. + /// + /// Thrown when fails to make API call + /// + public void OidcCallback () + { + this.OidcCallbackWithHttpInfo(); + } + + /// + /// Redirect/callback URI for processing the result of the OpenId Connect login sequence. Note: This endpoint is subject to change as NiFi and it's REST API evolve. + /// + /// Thrown when fails to make API call + /// ApiResponse of Object(void) + public ApiResponse OidcCallbackWithHttpInfo () + { + + var localVarPath = "/access/oidc/callback"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "*/*" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "*/*" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (this.ExceptionFactory != null) + { + Exception exception = this.ExceptionFactory("OidcCallback", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), + null); + } + + /// + /// Redirect/callback URI for processing the result of the OpenId Connect login sequence. Note: This endpoint is subject to change as NiFi and it's REST API evolve. + /// + /// Thrown when fails to make API call + /// Task of void + public async System.Threading.Tasks.Task OidcCallbackAsync () + { + await this.OidcCallbackAsyncWithHttpInfo(); + + } + + /// + /// Redirect/callback URI for processing the result of the OpenId Connect login sequence. Note: This endpoint is subject to change as NiFi and it's REST API evolve. + /// + /// Thrown when fails to make API call + /// Task of ApiResponse + public async System.Threading.Tasks.Task> OidcCallbackAsyncWithHttpInfo () + { + + var localVarPath = "/access/oidc/callback"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "*/*" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "*/*" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (this.ExceptionFactory != null) + { + Exception exception = this.ExceptionFactory("OidcCallback", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), + null); + } + + /// + /// Retrieves a JWT following a successful login sequence using the configured OpenId Connect provider. Note: This endpoint is subject to change as NiFi and it's REST API evolve. + /// + /// Thrown when fails to make API call + /// string + public string OidcExchange () + { + ApiResponse localVarResponse = this.OidcExchangeWithHttpInfo(); + return localVarResponse.Data; + } + + /// + /// Retrieves a JWT following a successful login sequence using the configured OpenId Connect provider. Note: This endpoint is subject to change as NiFi and it's REST API evolve. + /// + /// Thrown when fails to make API call + /// ApiResponse of string + public ApiResponse< string > OidcExchangeWithHttpInfo () + { + + var localVarPath = "/access/oidc/exchange"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "*/*" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "text/plain" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (this.ExceptionFactory != null) + { + Exception exception = this.ExceptionFactory("OidcExchange", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), + (string) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(string))); + } + + /// + /// Retrieves a JWT following a successful login sequence using the configured OpenId Connect provider. Note: This endpoint is subject to change as NiFi and it's REST API evolve. + /// + /// Thrown when fails to make API call + /// Task of string + public async System.Threading.Tasks.Task OidcExchangeAsync () + { + ApiResponse localVarResponse = await this.OidcExchangeAsyncWithHttpInfo(); + return localVarResponse.Data; + + } + + /// + /// Retrieves a JWT following a successful login sequence using the configured OpenId Connect provider. Note: This endpoint is subject to change as NiFi and it's REST API evolve. + /// + /// Thrown when fails to make API call + /// Task of ApiResponse (string) + public async System.Threading.Tasks.Task> OidcExchangeAsyncWithHttpInfo () + { + + var localVarPath = "/access/oidc/exchange"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "*/*" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "text/plain" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (this.ExceptionFactory != null) + { + Exception exception = this.ExceptionFactory("OidcExchange", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), + (string) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(string))); + } + + /// + /// Performs a logout in the OpenId Provider. Note: This endpoint is subject to change as NiFi and it's REST API evolve. + /// + /// Thrown when fails to make API call + /// + public void OidcLogout () + { + this.OidcLogoutWithHttpInfo(); + } + + /// + /// Performs a logout in the OpenId Provider. Note: This endpoint is subject to change as NiFi and it's REST API evolve. + /// + /// Thrown when fails to make API call + /// ApiResponse of Object(void) + public ApiResponse OidcLogoutWithHttpInfo () + { + + var localVarPath = "/access/oidc/logout"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "*/*" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "*/*" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (this.ExceptionFactory != null) + { + Exception exception = this.ExceptionFactory("OidcLogout", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), + null); + } + + /// + /// Performs a logout in the OpenId Provider. Note: This endpoint is subject to change as NiFi and it's REST API evolve. + /// + /// Thrown when fails to make API call + /// Task of void + public async System.Threading.Tasks.Task OidcLogoutAsync () + { + await this.OidcLogoutAsyncWithHttpInfo(); + + } + + /// + /// Performs a logout in the OpenId Provider. Note: This endpoint is subject to change as NiFi and it's REST API evolve. + /// + /// Thrown when fails to make API call + /// Task of ApiResponse + public async System.Threading.Tasks.Task> OidcLogoutAsyncWithHttpInfo () + { + + var localVarPath = "/access/oidc/logout"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "*/*" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "*/*" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (this.ExceptionFactory != null) + { + Exception exception = this.ExceptionFactory("OidcLogout", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), + null); + } + + /// + /// Initiates a request to authenticate through the configured OpenId Connect provider. Note: This endpoint is subject to change as NiFi and it's REST API evolve. + /// + /// Thrown when fails to make API call + /// + public void OidcRequest () + { + this.OidcRequestWithHttpInfo(); + } + + /// + /// Initiates a request to authenticate through the configured OpenId Connect provider. Note: This endpoint is subject to change as NiFi and it's REST API evolve. + /// + /// Thrown when fails to make API call + /// ApiResponse of Object(void) + public ApiResponse OidcRequestWithHttpInfo () + { + + var localVarPath = "/access/oidc/request"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "*/*" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "*/*" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (this.ExceptionFactory != null) + { + Exception exception = this.ExceptionFactory("OidcRequest", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), + null); + } + + /// + /// Initiates a request to authenticate through the configured OpenId Connect provider. Note: This endpoint is subject to change as NiFi and it's REST API evolve. + /// + /// Thrown when fails to make API call + /// Task of void + public async System.Threading.Tasks.Task OidcRequestAsync () + { + await this.OidcRequestAsyncWithHttpInfo(); + + } + + /// + /// Initiates a request to authenticate through the configured OpenId Connect provider. Note: This endpoint is subject to change as NiFi and it's REST API evolve. + /// + /// Thrown when fails to make API call + /// Task of ApiResponse + public async System.Threading.Tasks.Task> OidcRequestAsyncWithHttpInfo () + { + + var localVarPath = "/access/oidc/request"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "*/*" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "*/*" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (this.ExceptionFactory != null) + { + Exception exception = this.ExceptionFactory("OidcRequest", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), + null); + } + + } +} diff --git a/NiFi.Swagger/Api/ConnectionsApi.cs b/NiFi.Swagger/Api/ConnectionsApi.cs new file mode 100644 index 0000000..e1a821d --- /dev/null +++ b/NiFi.Swagger/Api/ConnectionsApi.cs @@ -0,0 +1,723 @@ +/* + * NiFi Rest Api + * + * The Rest Api provides programmatic access to command and control a NiFi instance in real time. Start and stop processors, monitor queues, query provenance data, and more. Each endpoint below includes a description, definitions of the expected input and output, potential response codes, and the authorizations required to invoke each service. + * + * OpenAPI spec version: 1.9.1 + * Contact: dev@nifi.apache.org + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +namespace NiFi.Swagger.Api +{ + using System; + using System.Collections.Generic; + using System.Collections.ObjectModel; + using System.Linq; + + using NiFi.Swagger.Client; + using NiFi.Swagger.Model; + + using RestSharp; + + /// + /// Represents a collection of functions to interact with the API endpoints + /// + public interface IConnectionsApi : IApiAccessor + { + #region Synchronous Operations + /// + /// Deletes a connection + /// + /// + /// + /// + /// Thrown when fails to make API call + /// The connection id. + /// The revision is used to verify the client is working with the latest version of the flow. (optional) + /// If the client id is not specified, new one will be generated. This value (whether specified or generated) is included in the response. (optional) + /// Acknowledges that this node is disconnected to allow for mutable requests to proceed. (optional, default to false) + /// ConnectionEntity + ConnectionEntity DeleteConnection (string id, string version = null, string clientId = null, bool? disconnectedNodeAcknowledged = null); + + /// + /// Deletes a connection + /// + /// + /// + /// + /// Thrown when fails to make API call + /// The connection id. + /// The revision is used to verify the client is working with the latest version of the flow. (optional) + /// If the client id is not specified, new one will be generated. This value (whether specified or generated) is included in the response. (optional) + /// Acknowledges that this node is disconnected to allow for mutable requests to proceed. (optional, default to false) + /// ApiResponse of ConnectionEntity + ApiResponse DeleteConnectionWithHttpInfo (string id, string version = null, string clientId = null, bool? disconnectedNodeAcknowledged = null); + /// + /// Gets a connection + /// + /// + /// + /// + /// Thrown when fails to make API call + /// The connection id. + /// ConnectionEntity + ConnectionEntity GetConnection (string id); + + /// + /// Gets a connection + /// + /// + /// + /// + /// Thrown when fails to make API call + /// The connection id. + /// ApiResponse of ConnectionEntity + ApiResponse GetConnectionWithHttpInfo (string id); + /// + /// Updates a connection + /// + /// + /// + /// + /// Thrown when fails to make API call + /// The connection id. + /// The connection configuration details. + /// ConnectionEntity + ConnectionEntity UpdateConnection (string id, ConnectionEntity body); + + /// + /// Updates a connection + /// + /// + /// + /// + /// Thrown when fails to make API call + /// The connection id. + /// The connection configuration details. + /// ApiResponse of ConnectionEntity + ApiResponse UpdateConnectionWithHttpInfo (string id, ConnectionEntity body); + #endregion Synchronous Operations + #region Asynchronous Operations + /// + /// Deletes a connection + /// + /// + /// + /// + /// Thrown when fails to make API call + /// The connection id. + /// The revision is used to verify the client is working with the latest version of the flow. (optional) + /// If the client id is not specified, new one will be generated. This value (whether specified or generated) is included in the response. (optional) + /// Acknowledges that this node is disconnected to allow for mutable requests to proceed. (optional, default to false) + /// Task of ConnectionEntity + System.Threading.Tasks.Task DeleteConnectionAsync (string id, string version = null, string clientId = null, bool? disconnectedNodeAcknowledged = null); + + /// + /// Deletes a connection + /// + /// + /// + /// + /// Thrown when fails to make API call + /// The connection id. + /// The revision is used to verify the client is working with the latest version of the flow. (optional) + /// If the client id is not specified, new one will be generated. This value (whether specified or generated) is included in the response. (optional) + /// Acknowledges that this node is disconnected to allow for mutable requests to proceed. (optional, default to false) + /// Task of ApiResponse (ConnectionEntity) + System.Threading.Tasks.Task> DeleteConnectionAsyncWithHttpInfo (string id, string version = null, string clientId = null, bool? disconnectedNodeAcknowledged = null); + /// + /// Gets a connection + /// + /// + /// + /// + /// Thrown when fails to make API call + /// The connection id. + /// Task of ConnectionEntity + System.Threading.Tasks.Task GetConnectionAsync (string id); + + /// + /// Gets a connection + /// + /// + /// + /// + /// Thrown when fails to make API call + /// The connection id. + /// Task of ApiResponse (ConnectionEntity) + System.Threading.Tasks.Task> GetConnectionAsyncWithHttpInfo (string id); + /// + /// Updates a connection + /// + /// + /// + /// + /// Thrown when fails to make API call + /// The connection id. + /// The connection configuration details. + /// Task of ConnectionEntity + System.Threading.Tasks.Task UpdateConnectionAsync (string id, ConnectionEntity body); + + /// + /// Updates a connection + /// + /// + /// + /// + /// Thrown when fails to make API call + /// The connection id. + /// The connection configuration details. + /// Task of ApiResponse (ConnectionEntity) + System.Threading.Tasks.Task> UpdateConnectionAsyncWithHttpInfo (string id, ConnectionEntity body); + #endregion Asynchronous Operations + } + + /// + /// Represents a collection of functions to interact with the API endpoints + /// + public partial class ConnectionsApi : IConnectionsApi + { + private ExceptionFactory _exceptionFactory = (name, response) => null; + + /// + /// Initializes a new instance of the class. + /// + /// + public ConnectionsApi(String basePath) + { + this.Configuration = new Configuration { BasePath = basePath }; + + this.ExceptionFactory = Configuration.DefaultExceptionFactory; + } + + /// + /// Initializes a new instance of the class + /// using Configuration object + /// + /// An instance of Configuration + /// + public ConnectionsApi(Configuration configuration = null) + { + if (configuration == null) // use the default one in Configuration + this.Configuration = Configuration.Default; + else + this.Configuration = configuration; + + this.ExceptionFactory = Configuration.DefaultExceptionFactory; + } + + /// + /// Gets the base path of the API client. + /// + /// The base path + public String GetBasePath() + { + return this.Configuration.ApiClient.RestClient.BaseUrl.ToString(); + } + + /// + /// Sets the base path of the API client. + /// + /// The base path + [Obsolete("SetBasePath is deprecated, please do 'Configuration.ApiClient = new ApiClient(\"http://new-path\")' instead.")] + public void SetBasePath(String basePath) + { + // do nothing + } + + /// + /// Gets or sets the configuration object + /// + /// An instance of the Configuration + public Configuration Configuration {get; set;} + + /// + /// Provides a factory method hook for the creation of exceptions. + /// + public ExceptionFactory ExceptionFactory + { + get + { + if (this._exceptionFactory != null && this._exceptionFactory.GetInvocationList().Length > 1) + { + throw new InvalidOperationException("Multicast delegate for ExceptionFactory is unsupported."); + } + return this._exceptionFactory; + } + set { this._exceptionFactory = value; } + } + + /// + /// Gets the default header. + /// + /// Dictionary of HTTP header + [Obsolete("DefaultHeader is deprecated, please use Configuration.DefaultHeader instead.")] + public IDictionary DefaultHeader() + { + return new ReadOnlyDictionary(this.Configuration.DefaultHeader); + } + + /// + /// Add default header. + /// + /// Header field name. + /// Header field value. + /// + [Obsolete("AddDefaultHeader is deprecated, please use Configuration.AddDefaultHeader instead.")] + public void AddDefaultHeader(string key, string value) + { + this.Configuration.AddDefaultHeader(key, value); + } + + /// + /// Deletes a connection + /// + /// Thrown when fails to make API call + /// The connection id. + /// The revision is used to verify the client is working with the latest version of the flow. (optional) + /// If the client id is not specified, new one will be generated. This value (whether specified or generated) is included in the response. (optional) + /// Acknowledges that this node is disconnected to allow for mutable requests to proceed. (optional, default to false) + /// ConnectionEntity + public ConnectionEntity DeleteConnection (string id, string version = null, string clientId = null, bool? disconnectedNodeAcknowledged = null) + { + ApiResponse localVarResponse = this.DeleteConnectionWithHttpInfo(id, version, clientId, disconnectedNodeAcknowledged); + return localVarResponse.Data; + } + + /// + /// Deletes a connection + /// + /// Thrown when fails to make API call + /// The connection id. + /// The revision is used to verify the client is working with the latest version of the flow. (optional) + /// If the client id is not specified, new one will be generated. This value (whether specified or generated) is included in the response. (optional) + /// Acknowledges that this node is disconnected to allow for mutable requests to proceed. (optional, default to false) + /// ApiResponse of ConnectionEntity + public ApiResponse< ConnectionEntity > DeleteConnectionWithHttpInfo (string id, string version = null, string clientId = null, bool? disconnectedNodeAcknowledged = null) + { + // verify the required parameter 'id' is set + if (id == null) + throw new ApiException(400, "Missing required parameter 'id' when calling ConnectionsApi->DeleteConnection"); + + var localVarPath = "/connections/{id}"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "*/*" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter + if (version != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "version", version)); // query parameter + if (clientId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "clientId", clientId)); // query parameter + if (disconnectedNodeAcknowledged != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "disconnectedNodeAcknowledged", disconnectedNodeAcknowledged)); // query parameter + + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.DELETE, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (this.ExceptionFactory != null) + { + Exception exception = this.ExceptionFactory("DeleteConnection", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), + (ConnectionEntity) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(ConnectionEntity))); + } + + /// + /// Deletes a connection + /// + /// Thrown when fails to make API call + /// The connection id. + /// The revision is used to verify the client is working with the latest version of the flow. (optional) + /// If the client id is not specified, new one will be generated. This value (whether specified or generated) is included in the response. (optional) + /// Acknowledges that this node is disconnected to allow for mutable requests to proceed. (optional, default to false) + /// Task of ConnectionEntity + public async System.Threading.Tasks.Task DeleteConnectionAsync (string id, string version = null, string clientId = null, bool? disconnectedNodeAcknowledged = null) + { + ApiResponse localVarResponse = await this.DeleteConnectionAsyncWithHttpInfo(id, version, clientId, disconnectedNodeAcknowledged); + return localVarResponse.Data; + + } + + /// + /// Deletes a connection + /// + /// Thrown when fails to make API call + /// The connection id. + /// The revision is used to verify the client is working with the latest version of the flow. (optional) + /// If the client id is not specified, new one will be generated. This value (whether specified or generated) is included in the response. (optional) + /// Acknowledges that this node is disconnected to allow for mutable requests to proceed. (optional, default to false) + /// Task of ApiResponse (ConnectionEntity) + public async System.Threading.Tasks.Task> DeleteConnectionAsyncWithHttpInfo (string id, string version = null, string clientId = null, bool? disconnectedNodeAcknowledged = null) + { + // verify the required parameter 'id' is set + if (id == null) + throw new ApiException(400, "Missing required parameter 'id' when calling ConnectionsApi->DeleteConnection"); + + var localVarPath = "/connections/{id}"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "*/*" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter + if (version != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "version", version)); // query parameter + if (clientId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "clientId", clientId)); // query parameter + if (disconnectedNodeAcknowledged != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "disconnectedNodeAcknowledged", disconnectedNodeAcknowledged)); // query parameter + + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.DELETE, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (this.ExceptionFactory != null) + { + Exception exception = this.ExceptionFactory("DeleteConnection", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), + (ConnectionEntity) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(ConnectionEntity))); + } + + /// + /// Gets a connection + /// + /// Thrown when fails to make API call + /// The connection id. + /// ConnectionEntity + public ConnectionEntity GetConnection (string id) + { + ApiResponse localVarResponse = this.GetConnectionWithHttpInfo(id); + return localVarResponse.Data; + } + + /// + /// Gets a connection + /// + /// Thrown when fails to make API call + /// The connection id. + /// ApiResponse of ConnectionEntity + public ApiResponse< ConnectionEntity > GetConnectionWithHttpInfo (string id) + { + // verify the required parameter 'id' is set + if (id == null) + throw new ApiException(400, "Missing required parameter 'id' when calling ConnectionsApi->GetConnection"); + + var localVarPath = "/connections/{id}"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "*/*" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter + + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (this.ExceptionFactory != null) + { + Exception exception = this.ExceptionFactory("GetConnection", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), + (ConnectionEntity) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(ConnectionEntity))); + } + + /// + /// Gets a connection + /// + /// Thrown when fails to make API call + /// The connection id. + /// Task of ConnectionEntity + public async System.Threading.Tasks.Task GetConnectionAsync (string id) + { + ApiResponse localVarResponse = await this.GetConnectionAsyncWithHttpInfo(id); + return localVarResponse.Data; + + } + + /// + /// Gets a connection + /// + /// Thrown when fails to make API call + /// The connection id. + /// Task of ApiResponse (ConnectionEntity) + public async System.Threading.Tasks.Task> GetConnectionAsyncWithHttpInfo (string id) + { + // verify the required parameter 'id' is set + if (id == null) + throw new ApiException(400, "Missing required parameter 'id' when calling ConnectionsApi->GetConnection"); + + var localVarPath = "/connections/{id}"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "*/*" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter + + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (this.ExceptionFactory != null) + { + Exception exception = this.ExceptionFactory("GetConnection", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), + (ConnectionEntity) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(ConnectionEntity))); + } + + /// + /// Updates a connection + /// + /// Thrown when fails to make API call + /// The connection id. + /// The connection configuration details. + /// ConnectionEntity + public ConnectionEntity UpdateConnection (string id, ConnectionEntity body) + { + ApiResponse localVarResponse = this.UpdateConnectionWithHttpInfo(id, body); + return localVarResponse.Data; + } + + /// + /// Updates a connection + /// + /// Thrown when fails to make API call + /// The connection id. + /// The connection configuration details. + /// ApiResponse of ConnectionEntity + public ApiResponse< ConnectionEntity > UpdateConnectionWithHttpInfo (string id, ConnectionEntity body) + { + // verify the required parameter 'id' is set + if (id == null) + throw new ApiException(400, "Missing required parameter 'id' when calling ConnectionsApi->UpdateConnection"); + // verify the required parameter 'body' is set + if (body == null) + throw new ApiException(400, "Missing required parameter 'body' when calling ConnectionsApi->UpdateConnection"); + + var localVarPath = "/connections/{id}"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "application/json" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter + if (body != null && body.GetType() != typeof(byte[])) + { + localVarPostBody = this.Configuration.ApiClient.Serialize(body); // http body (model) parameter + } + else + { + localVarPostBody = body; // byte array + } + + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.PUT, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (this.ExceptionFactory != null) + { + Exception exception = this.ExceptionFactory("UpdateConnection", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), + (ConnectionEntity) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(ConnectionEntity))); + } + + /// + /// Updates a connection + /// + /// Thrown when fails to make API call + /// The connection id. + /// The connection configuration details. + /// Task of ConnectionEntity + public async System.Threading.Tasks.Task UpdateConnectionAsync (string id, ConnectionEntity body) + { + ApiResponse localVarResponse = await this.UpdateConnectionAsyncWithHttpInfo(id, body); + return localVarResponse.Data; + + } + + /// + /// Updates a connection + /// + /// Thrown when fails to make API call + /// The connection id. + /// The connection configuration details. + /// Task of ApiResponse (ConnectionEntity) + public async System.Threading.Tasks.Task> UpdateConnectionAsyncWithHttpInfo (string id, ConnectionEntity body) + { + // verify the required parameter 'id' is set + if (id == null) + throw new ApiException(400, "Missing required parameter 'id' when calling ConnectionsApi->UpdateConnection"); + // verify the required parameter 'body' is set + if (body == null) + throw new ApiException(400, "Missing required parameter 'body' when calling ConnectionsApi->UpdateConnection"); + + var localVarPath = "/connections/{id}"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "application/json" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter + if (body != null && body.GetType() != typeof(byte[])) + { + localVarPostBody = this.Configuration.ApiClient.Serialize(body); // http body (model) parameter + } + else + { + localVarPostBody = body; // byte array + } + + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.PUT, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (this.ExceptionFactory != null) + { + Exception exception = this.ExceptionFactory("UpdateConnection", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), + (ConnectionEntity) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(ConnectionEntity))); + } + + } +} diff --git a/NiFi.Swagger/Api/ControllerApi.cs b/NiFi.Swagger/Api/ControllerApi.cs new file mode 100644 index 0000000..4267209 --- /dev/null +++ b/NiFi.Swagger/Api/ControllerApi.cs @@ -0,0 +1,2899 @@ +/* + * NiFi Rest Api + * + * The Rest Api provides programmatic access to command and control a NiFi instance in real time. Start and stop processors, monitor queues, query provenance data, and more. Each endpoint below includes a description, definitions of the expected input and output, potential response codes, and the authorizations required to invoke each service. + * + * OpenAPI spec version: 1.9.1 + * Contact: dev@nifi.apache.org + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +namespace NiFi.Swagger.Api +{ + using System; + using System.Collections.Generic; + using System.Collections.ObjectModel; + using System.Linq; + + using NiFi.Swagger.Client; + using NiFi.Swagger.Model; + + using RestSharp; + + /// + /// Represents a collection of functions to interact with the API endpoints + /// + public interface IControllerApi : IApiAccessor + { + #region Synchronous Operations + /// + /// Creates a new bulletin + /// + /// + /// + /// + /// Thrown when fails to make API call + /// The reporting task configuration details. + /// BulletinEntity + BulletinEntity CreateBulletin (BulletinEntity body); + + /// + /// Creates a new bulletin + /// + /// + /// + /// + /// Thrown when fails to make API call + /// The reporting task configuration details. + /// ApiResponse of BulletinEntity + ApiResponse CreateBulletinWithHttpInfo (BulletinEntity body); + /// + /// Creates a new controller service + /// + /// + /// + /// + /// Thrown when fails to make API call + /// The controller service configuration details. + /// ControllerServiceEntity + ControllerServiceEntity CreateControllerService (ControllerServiceEntity body); + + /// + /// Creates a new controller service + /// + /// + /// + /// + /// Thrown when fails to make API call + /// The controller service configuration details. + /// ApiResponse of ControllerServiceEntity + ApiResponse CreateControllerServiceWithHttpInfo (ControllerServiceEntity body); + /// + /// Creates a new registry client + /// + /// + /// + /// + /// Thrown when fails to make API call + /// The registry configuration details. + /// RegistryClientEntity + RegistryClientEntity CreateRegistryClient (RegistryClientEntity body); + + /// + /// Creates a new registry client + /// + /// + /// + /// + /// Thrown when fails to make API call + /// The registry configuration details. + /// ApiResponse of RegistryClientEntity + ApiResponse CreateRegistryClientWithHttpInfo (RegistryClientEntity body); + /// + /// Creates a new reporting task + /// + /// + /// + /// + /// Thrown when fails to make API call + /// The reporting task configuration details. + /// ReportingTaskEntity + ReportingTaskEntity CreateReportingTask (ReportingTaskEntity body); + + /// + /// Creates a new reporting task + /// + /// + /// + /// + /// Thrown when fails to make API call + /// The reporting task configuration details. + /// ApiResponse of ReportingTaskEntity + ApiResponse CreateReportingTaskWithHttpInfo (ReportingTaskEntity body); + /// + /// Purges history + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Purge actions before this date/time. + /// HistoryEntity + HistoryEntity DeleteHistory (string endDate); + + /// + /// Purges history + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Purge actions before this date/time. + /// ApiResponse of HistoryEntity + ApiResponse DeleteHistoryWithHttpInfo (string endDate); + /// + /// Removes a node from the cluster + /// + /// + /// + /// + /// Thrown when fails to make API call + /// The node id. + /// NodeEntity + NodeEntity DeleteNode (string id); + + /// + /// Removes a node from the cluster + /// + /// + /// + /// + /// Thrown when fails to make API call + /// The node id. + /// ApiResponse of NodeEntity + ApiResponse DeleteNodeWithHttpInfo (string id); + /// + /// Deletes a registry client + /// + /// + /// + /// + /// Thrown when fails to make API call + /// The registry id. + /// The revision is used to verify the client is working with the latest version of the flow. (optional) + /// If the client id is not specified, new one will be generated. This value (whether specified or generated) is included in the response. (optional) + /// Acknowledges that this node is disconnected to allow for mutable requests to proceed. (optional, default to false) + /// RegistryClientEntity + RegistryClientEntity DeleteRegistryClient (string id, string version = null, string clientId = null, bool? disconnectedNodeAcknowledged = null); + + /// + /// Deletes a registry client + /// + /// + /// + /// + /// Thrown when fails to make API call + /// The registry id. + /// The revision is used to verify the client is working with the latest version of the flow. (optional) + /// If the client id is not specified, new one will be generated. This value (whether specified or generated) is included in the response. (optional) + /// Acknowledges that this node is disconnected to allow for mutable requests to proceed. (optional, default to false) + /// ApiResponse of RegistryClientEntity + ApiResponse DeleteRegistryClientWithHttpInfo (string id, string version = null, string clientId = null, bool? disconnectedNodeAcknowledged = null); + /// + /// Gets the contents of the cluster + /// + /// + /// Returns the contents of the cluster including all nodes and their status. + /// + /// Thrown when fails to make API call + /// ClusterEntity + ClusterEntity GetCluster (); + + /// + /// Gets the contents of the cluster + /// + /// + /// Returns the contents of the cluster including all nodes and their status. + /// + /// Thrown when fails to make API call + /// ApiResponse of ClusterEntity + ApiResponse GetClusterWithHttpInfo (); + /// + /// Retrieves the configuration for this NiFi Controller + /// + /// + /// + /// + /// Thrown when fails to make API call + /// ControllerConfigurationEntity + ControllerConfigurationEntity GetControllerConfig (); + + /// + /// Retrieves the configuration for this NiFi Controller + /// + /// + /// + /// + /// Thrown when fails to make API call + /// ApiResponse of ControllerConfigurationEntity + ApiResponse GetControllerConfigWithHttpInfo (); + /// + /// Gets a node in the cluster + /// + /// + /// + /// + /// Thrown when fails to make API call + /// The node id. + /// NodeEntity + NodeEntity GetNode (string id); + + /// + /// Gets a node in the cluster + /// + /// + /// + /// + /// Thrown when fails to make API call + /// The node id. + /// ApiResponse of NodeEntity + ApiResponse GetNodeWithHttpInfo (string id); + /// + /// Gets a registry client + /// + /// + /// + /// + /// Thrown when fails to make API call + /// The registry id. + /// RegistryClientEntity + RegistryClientEntity GetRegistryClient (string id); + + /// + /// Gets a registry client + /// + /// + /// + /// + /// Thrown when fails to make API call + /// The registry id. + /// ApiResponse of RegistryClientEntity + ApiResponse GetRegistryClientWithHttpInfo (string id); + /// + /// Gets the listing of available registry clients + /// + /// + /// + /// + /// Thrown when fails to make API call + /// RegistryClientsEntity + RegistryClientsEntity GetRegistryClients (); + + /// + /// Gets the listing of available registry clients + /// + /// + /// + /// + /// Thrown when fails to make API call + /// ApiResponse of RegistryClientsEntity + ApiResponse GetRegistryClientsWithHttpInfo (); + /// + /// Retrieves the configuration for this NiFi + /// + /// + /// + /// + /// Thrown when fails to make API call + /// The controller configuration. + /// ControllerConfigurationEntity + ControllerConfigurationEntity UpdateControllerConfig (ControllerConfigurationEntity body); + + /// + /// Retrieves the configuration for this NiFi + /// + /// + /// + /// + /// Thrown when fails to make API call + /// The controller configuration. + /// ApiResponse of ControllerConfigurationEntity + ApiResponse UpdateControllerConfigWithHttpInfo (ControllerConfigurationEntity body); + /// + /// Updates a node in the cluster + /// + /// + /// + /// + /// Thrown when fails to make API call + /// The node id. + /// The node configuration. The only configuration that will be honored at this endpoint is the status. + /// NodeEntity + NodeEntity UpdateNode (string id, NodeEntity body); + + /// + /// Updates a node in the cluster + /// + /// + /// + /// + /// Thrown when fails to make API call + /// The node id. + /// The node configuration. The only configuration that will be honored at this endpoint is the status. + /// ApiResponse of NodeEntity + ApiResponse UpdateNodeWithHttpInfo (string id, NodeEntity body); + /// + /// Updates a registry client + /// + /// + /// + /// + /// Thrown when fails to make API call + /// The registry id. + /// The registry configuration details. + /// RegistryClientEntity + RegistryClientEntity UpdateRegistryClient (string id, RegistryClientEntity body); + + /// + /// Updates a registry client + /// + /// + /// + /// + /// Thrown when fails to make API call + /// The registry id. + /// The registry configuration details. + /// ApiResponse of RegistryClientEntity + ApiResponse UpdateRegistryClientWithHttpInfo (string id, RegistryClientEntity body); + #endregion Synchronous Operations + #region Asynchronous Operations + /// + /// Creates a new bulletin + /// + /// + /// + /// + /// Thrown when fails to make API call + /// The reporting task configuration details. + /// Task of BulletinEntity + System.Threading.Tasks.Task CreateBulletinAsync (BulletinEntity body); + + /// + /// Creates a new bulletin + /// + /// + /// + /// + /// Thrown when fails to make API call + /// The reporting task configuration details. + /// Task of ApiResponse (BulletinEntity) + System.Threading.Tasks.Task> CreateBulletinAsyncWithHttpInfo (BulletinEntity body); + /// + /// Creates a new controller service + /// + /// + /// + /// + /// Thrown when fails to make API call + /// The controller service configuration details. + /// Task of ControllerServiceEntity + System.Threading.Tasks.Task CreateControllerServiceAsync (ControllerServiceEntity body); + + /// + /// Creates a new controller service + /// + /// + /// + /// + /// Thrown when fails to make API call + /// The controller service configuration details. + /// Task of ApiResponse (ControllerServiceEntity) + System.Threading.Tasks.Task> CreateControllerServiceAsyncWithHttpInfo (ControllerServiceEntity body); + /// + /// Creates a new registry client + /// + /// + /// + /// + /// Thrown when fails to make API call + /// The registry configuration details. + /// Task of RegistryClientEntity + System.Threading.Tasks.Task CreateRegistryClientAsync (RegistryClientEntity body); + + /// + /// Creates a new registry client + /// + /// + /// + /// + /// Thrown when fails to make API call + /// The registry configuration details. + /// Task of ApiResponse (RegistryClientEntity) + System.Threading.Tasks.Task> CreateRegistryClientAsyncWithHttpInfo (RegistryClientEntity body); + /// + /// Creates a new reporting task + /// + /// + /// + /// + /// Thrown when fails to make API call + /// The reporting task configuration details. + /// Task of ReportingTaskEntity + System.Threading.Tasks.Task CreateReportingTaskAsync (ReportingTaskEntity body); + + /// + /// Creates a new reporting task + /// + /// + /// + /// + /// Thrown when fails to make API call + /// The reporting task configuration details. + /// Task of ApiResponse (ReportingTaskEntity) + System.Threading.Tasks.Task> CreateReportingTaskAsyncWithHttpInfo (ReportingTaskEntity body); + /// + /// Purges history + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Purge actions before this date/time. + /// Task of HistoryEntity + System.Threading.Tasks.Task DeleteHistoryAsync (string endDate); + + /// + /// Purges history + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Purge actions before this date/time. + /// Task of ApiResponse (HistoryEntity) + System.Threading.Tasks.Task> DeleteHistoryAsyncWithHttpInfo (string endDate); + /// + /// Removes a node from the cluster + /// + /// + /// + /// + /// Thrown when fails to make API call + /// The node id. + /// Task of NodeEntity + System.Threading.Tasks.Task DeleteNodeAsync (string id); + + /// + /// Removes a node from the cluster + /// + /// + /// + /// + /// Thrown when fails to make API call + /// The node id. + /// Task of ApiResponse (NodeEntity) + System.Threading.Tasks.Task> DeleteNodeAsyncWithHttpInfo (string id); + /// + /// Deletes a registry client + /// + /// + /// + /// + /// Thrown when fails to make API call + /// The registry id. + /// The revision is used to verify the client is working with the latest version of the flow. (optional) + /// If the client id is not specified, new one will be generated. This value (whether specified or generated) is included in the response. (optional) + /// Acknowledges that this node is disconnected to allow for mutable requests to proceed. (optional, default to false) + /// Task of RegistryClientEntity + System.Threading.Tasks.Task DeleteRegistryClientAsync (string id, string version = null, string clientId = null, bool? disconnectedNodeAcknowledged = null); + + /// + /// Deletes a registry client + /// + /// + /// + /// + /// Thrown when fails to make API call + /// The registry id. + /// The revision is used to verify the client is working with the latest version of the flow. (optional) + /// If the client id is not specified, new one will be generated. This value (whether specified or generated) is included in the response. (optional) + /// Acknowledges that this node is disconnected to allow for mutable requests to proceed. (optional, default to false) + /// Task of ApiResponse (RegistryClientEntity) + System.Threading.Tasks.Task> DeleteRegistryClientAsyncWithHttpInfo (string id, string version = null, string clientId = null, bool? disconnectedNodeAcknowledged = null); + /// + /// Gets the contents of the cluster + /// + /// + /// Returns the contents of the cluster including all nodes and their status. + /// + /// Thrown when fails to make API call + /// Task of ClusterEntity + System.Threading.Tasks.Task GetClusterAsync (); + + /// + /// Gets the contents of the cluster + /// + /// + /// Returns the contents of the cluster including all nodes and their status. + /// + /// Thrown when fails to make API call + /// Task of ApiResponse (ClusterEntity) + System.Threading.Tasks.Task> GetClusterAsyncWithHttpInfo (); + /// + /// Retrieves the configuration for this NiFi Controller + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Task of ControllerConfigurationEntity + System.Threading.Tasks.Task GetControllerConfigAsync (); + + /// + /// Retrieves the configuration for this NiFi Controller + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Task of ApiResponse (ControllerConfigurationEntity) + System.Threading.Tasks.Task> GetControllerConfigAsyncWithHttpInfo (); + /// + /// Gets a node in the cluster + /// + /// + /// + /// + /// Thrown when fails to make API call + /// The node id. + /// Task of NodeEntity + System.Threading.Tasks.Task GetNodeAsync (string id); + + /// + /// Gets a node in the cluster + /// + /// + /// + /// + /// Thrown when fails to make API call + /// The node id. + /// Task of ApiResponse (NodeEntity) + System.Threading.Tasks.Task> GetNodeAsyncWithHttpInfo (string id); + /// + /// Gets a registry client + /// + /// + /// + /// + /// Thrown when fails to make API call + /// The registry id. + /// Task of RegistryClientEntity + System.Threading.Tasks.Task GetRegistryClientAsync (string id); + + /// + /// Gets a registry client + /// + /// + /// + /// + /// Thrown when fails to make API call + /// The registry id. + /// Task of ApiResponse (RegistryClientEntity) + System.Threading.Tasks.Task> GetRegistryClientAsyncWithHttpInfo (string id); + /// + /// Gets the listing of available registry clients + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Task of RegistryClientsEntity + System.Threading.Tasks.Task GetRegistryClientsAsync (); + + /// + /// Gets the listing of available registry clients + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Task of ApiResponse (RegistryClientsEntity) + System.Threading.Tasks.Task> GetRegistryClientsAsyncWithHttpInfo (); + /// + /// Retrieves the configuration for this NiFi + /// + /// + /// + /// + /// Thrown when fails to make API call + /// The controller configuration. + /// Task of ControllerConfigurationEntity + System.Threading.Tasks.Task UpdateControllerConfigAsync (ControllerConfigurationEntity body); + + /// + /// Retrieves the configuration for this NiFi + /// + /// + /// + /// + /// Thrown when fails to make API call + /// The controller configuration. + /// Task of ApiResponse (ControllerConfigurationEntity) + System.Threading.Tasks.Task> UpdateControllerConfigAsyncWithHttpInfo (ControllerConfigurationEntity body); + /// + /// Updates a node in the cluster + /// + /// + /// + /// + /// Thrown when fails to make API call + /// The node id. + /// The node configuration. The only configuration that will be honored at this endpoint is the status. + /// Task of NodeEntity + System.Threading.Tasks.Task UpdateNodeAsync (string id, NodeEntity body); + + /// + /// Updates a node in the cluster + /// + /// + /// + /// + /// Thrown when fails to make API call + /// The node id. + /// The node configuration. The only configuration that will be honored at this endpoint is the status. + /// Task of ApiResponse (NodeEntity) + System.Threading.Tasks.Task> UpdateNodeAsyncWithHttpInfo (string id, NodeEntity body); + /// + /// Updates a registry client + /// + /// + /// + /// + /// Thrown when fails to make API call + /// The registry id. + /// The registry configuration details. + /// Task of RegistryClientEntity + System.Threading.Tasks.Task UpdateRegistryClientAsync (string id, RegistryClientEntity body); + + /// + /// Updates a registry client + /// + /// + /// + /// + /// Thrown when fails to make API call + /// The registry id. + /// The registry configuration details. + /// Task of ApiResponse (RegistryClientEntity) + System.Threading.Tasks.Task> UpdateRegistryClientAsyncWithHttpInfo (string id, RegistryClientEntity body); + #endregion Asynchronous Operations + } + + /// + /// Represents a collection of functions to interact with the API endpoints + /// + public partial class ControllerApi : IControllerApi + { + private ExceptionFactory _exceptionFactory = (name, response) => null; + + /// + /// Initializes a new instance of the class. + /// + /// + public ControllerApi(String basePath) + { + this.Configuration = new Configuration { BasePath = basePath }; + + this.ExceptionFactory = Configuration.DefaultExceptionFactory; + } + + /// + /// Initializes a new instance of the class + /// using Configuration object + /// + /// An instance of Configuration + /// + public ControllerApi(Configuration configuration = null) + { + if (configuration == null) // use the default one in Configuration + this.Configuration = Configuration.Default; + else + this.Configuration = configuration; + + this.ExceptionFactory = Configuration.DefaultExceptionFactory; + } + + /// + /// Gets the base path of the API client. + /// + /// The base path + public String GetBasePath() + { + return this.Configuration.ApiClient.RestClient.BaseUrl.ToString(); + } + + /// + /// Sets the base path of the API client. + /// + /// The base path + [Obsolete("SetBasePath is deprecated, please do 'Configuration.ApiClient = new ApiClient(\"http://new-path\")' instead.")] + public void SetBasePath(String basePath) + { + // do nothing + } + + /// + /// Gets or sets the configuration object + /// + /// An instance of the Configuration + public Configuration Configuration {get; set;} + + /// + /// Provides a factory method hook for the creation of exceptions. + /// + public ExceptionFactory ExceptionFactory + { + get + { + if (this._exceptionFactory != null && this._exceptionFactory.GetInvocationList().Length > 1) + { + throw new InvalidOperationException("Multicast delegate for ExceptionFactory is unsupported."); + } + return this._exceptionFactory; + } + set { this._exceptionFactory = value; } + } + + /// + /// Gets the default header. + /// + /// Dictionary of HTTP header + [Obsolete("DefaultHeader is deprecated, please use Configuration.DefaultHeader instead.")] + public IDictionary DefaultHeader() + { + return new ReadOnlyDictionary(this.Configuration.DefaultHeader); + } + + /// + /// Add default header. + /// + /// Header field name. + /// Header field value. + /// + [Obsolete("AddDefaultHeader is deprecated, please use Configuration.AddDefaultHeader instead.")] + public void AddDefaultHeader(string key, string value) + { + this.Configuration.AddDefaultHeader(key, value); + } + + /// + /// Creates a new bulletin + /// + /// Thrown when fails to make API call + /// The reporting task configuration details. + /// BulletinEntity + public BulletinEntity CreateBulletin (BulletinEntity body) + { + ApiResponse localVarResponse = this.CreateBulletinWithHttpInfo(body); + return localVarResponse.Data; + } + + /// + /// Creates a new bulletin + /// + /// Thrown when fails to make API call + /// The reporting task configuration details. + /// ApiResponse of BulletinEntity + public ApiResponse< BulletinEntity > CreateBulletinWithHttpInfo (BulletinEntity body) + { + // verify the required parameter 'body' is set + if (body == null) + throw new ApiException(400, "Missing required parameter 'body' when calling ControllerApi->CreateBulletin"); + + var localVarPath = "/controller/bulletin"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "application/json" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (body != null && body.GetType() != typeof(byte[])) + { + localVarPostBody = this.Configuration.ApiClient.Serialize(body); // http body (model) parameter + } + else + { + localVarPostBody = body; // byte array + } + + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (this.ExceptionFactory != null) + { + Exception exception = this.ExceptionFactory("CreateBulletin", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), + (BulletinEntity) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(BulletinEntity))); + } + + /// + /// Creates a new bulletin + /// + /// Thrown when fails to make API call + /// The reporting task configuration details. + /// Task of BulletinEntity + public async System.Threading.Tasks.Task CreateBulletinAsync (BulletinEntity body) + { + ApiResponse localVarResponse = await this.CreateBulletinAsyncWithHttpInfo(body); + return localVarResponse.Data; + + } + + /// + /// Creates a new bulletin + /// + /// Thrown when fails to make API call + /// The reporting task configuration details. + /// Task of ApiResponse (BulletinEntity) + public async System.Threading.Tasks.Task> CreateBulletinAsyncWithHttpInfo (BulletinEntity body) + { + // verify the required parameter 'body' is set + if (body == null) + throw new ApiException(400, "Missing required parameter 'body' when calling ControllerApi->CreateBulletin"); + + var localVarPath = "/controller/bulletin"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "application/json" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (body != null && body.GetType() != typeof(byte[])) + { + localVarPostBody = this.Configuration.ApiClient.Serialize(body); // http body (model) parameter + } + else + { + localVarPostBody = body; // byte array + } + + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (this.ExceptionFactory != null) + { + Exception exception = this.ExceptionFactory("CreateBulletin", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), + (BulletinEntity) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(BulletinEntity))); + } + + /// + /// Creates a new controller service + /// + /// Thrown when fails to make API call + /// The controller service configuration details. + /// ControllerServiceEntity + public ControllerServiceEntity CreateControllerService (ControllerServiceEntity body) + { + ApiResponse localVarResponse = this.CreateControllerServiceWithHttpInfo(body); + return localVarResponse.Data; + } + + /// + /// Creates a new controller service + /// + /// Thrown when fails to make API call + /// The controller service configuration details. + /// ApiResponse of ControllerServiceEntity + public ApiResponse< ControllerServiceEntity > CreateControllerServiceWithHttpInfo (ControllerServiceEntity body) + { + // verify the required parameter 'body' is set + if (body == null) + throw new ApiException(400, "Missing required parameter 'body' when calling ControllerApi->CreateControllerService"); + + var localVarPath = "/controller/controller-services"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "application/json" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (body != null && body.GetType() != typeof(byte[])) + { + localVarPostBody = this.Configuration.ApiClient.Serialize(body); // http body (model) parameter + } + else + { + localVarPostBody = body; // byte array + } + + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (this.ExceptionFactory != null) + { + Exception exception = this.ExceptionFactory("CreateControllerService", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), + (ControllerServiceEntity) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(ControllerServiceEntity))); + } + + /// + /// Creates a new controller service + /// + /// Thrown when fails to make API call + /// The controller service configuration details. + /// Task of ControllerServiceEntity + public async System.Threading.Tasks.Task CreateControllerServiceAsync (ControllerServiceEntity body) + { + ApiResponse localVarResponse = await this.CreateControllerServiceAsyncWithHttpInfo(body); + return localVarResponse.Data; + + } + + /// + /// Creates a new controller service + /// + /// Thrown when fails to make API call + /// The controller service configuration details. + /// Task of ApiResponse (ControllerServiceEntity) + public async System.Threading.Tasks.Task> CreateControllerServiceAsyncWithHttpInfo (ControllerServiceEntity body) + { + // verify the required parameter 'body' is set + if (body == null) + throw new ApiException(400, "Missing required parameter 'body' when calling ControllerApi->CreateControllerService"); + + var localVarPath = "/controller/controller-services"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "application/json" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (body != null && body.GetType() != typeof(byte[])) + { + localVarPostBody = this.Configuration.ApiClient.Serialize(body); // http body (model) parameter + } + else + { + localVarPostBody = body; // byte array + } + + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (this.ExceptionFactory != null) + { + Exception exception = this.ExceptionFactory("CreateControllerService", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), + (ControllerServiceEntity) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(ControllerServiceEntity))); + } + + /// + /// Creates a new registry client + /// + /// Thrown when fails to make API call + /// The registry configuration details. + /// RegistryClientEntity + public RegistryClientEntity CreateRegistryClient (RegistryClientEntity body) + { + ApiResponse localVarResponse = this.CreateRegistryClientWithHttpInfo(body); + return localVarResponse.Data; + } + + /// + /// Creates a new registry client + /// + /// Thrown when fails to make API call + /// The registry configuration details. + /// ApiResponse of RegistryClientEntity + public ApiResponse< RegistryClientEntity > CreateRegistryClientWithHttpInfo (RegistryClientEntity body) + { + // verify the required parameter 'body' is set + if (body == null) + throw new ApiException(400, "Missing required parameter 'body' when calling ControllerApi->CreateRegistryClient"); + + var localVarPath = "/controller/registry-clients"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "application/json" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (body != null && body.GetType() != typeof(byte[])) + { + localVarPostBody = this.Configuration.ApiClient.Serialize(body); // http body (model) parameter + } + else + { + localVarPostBody = body; // byte array + } + + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (this.ExceptionFactory != null) + { + Exception exception = this.ExceptionFactory("CreateRegistryClient", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), + (RegistryClientEntity) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RegistryClientEntity))); + } + + /// + /// Creates a new registry client + /// + /// Thrown when fails to make API call + /// The registry configuration details. + /// Task of RegistryClientEntity + public async System.Threading.Tasks.Task CreateRegistryClientAsync (RegistryClientEntity body) + { + ApiResponse localVarResponse = await this.CreateRegistryClientAsyncWithHttpInfo(body); + return localVarResponse.Data; + + } + + /// + /// Creates a new registry client + /// + /// Thrown when fails to make API call + /// The registry configuration details. + /// Task of ApiResponse (RegistryClientEntity) + public async System.Threading.Tasks.Task> CreateRegistryClientAsyncWithHttpInfo (RegistryClientEntity body) + { + // verify the required parameter 'body' is set + if (body == null) + throw new ApiException(400, "Missing required parameter 'body' when calling ControllerApi->CreateRegistryClient"); + + var localVarPath = "/controller/registry-clients"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "application/json" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (body != null && body.GetType() != typeof(byte[])) + { + localVarPostBody = this.Configuration.ApiClient.Serialize(body); // http body (model) parameter + } + else + { + localVarPostBody = body; // byte array + } + + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (this.ExceptionFactory != null) + { + Exception exception = this.ExceptionFactory("CreateRegistryClient", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), + (RegistryClientEntity) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RegistryClientEntity))); + } + + /// + /// Creates a new reporting task + /// + /// Thrown when fails to make API call + /// The reporting task configuration details. + /// ReportingTaskEntity + public ReportingTaskEntity CreateReportingTask (ReportingTaskEntity body) + { + ApiResponse localVarResponse = this.CreateReportingTaskWithHttpInfo(body); + return localVarResponse.Data; + } + + /// + /// Creates a new reporting task + /// + /// Thrown when fails to make API call + /// The reporting task configuration details. + /// ApiResponse of ReportingTaskEntity + public ApiResponse< ReportingTaskEntity > CreateReportingTaskWithHttpInfo (ReportingTaskEntity body) + { + // verify the required parameter 'body' is set + if (body == null) + throw new ApiException(400, "Missing required parameter 'body' when calling ControllerApi->CreateReportingTask"); + + var localVarPath = "/controller/reporting-tasks"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "application/json" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (body != null && body.GetType() != typeof(byte[])) + { + localVarPostBody = this.Configuration.ApiClient.Serialize(body); // http body (model) parameter + } + else + { + localVarPostBody = body; // byte array + } + + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (this.ExceptionFactory != null) + { + Exception exception = this.ExceptionFactory("CreateReportingTask", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), + (ReportingTaskEntity) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(ReportingTaskEntity))); + } + + /// + /// Creates a new reporting task + /// + /// Thrown when fails to make API call + /// The reporting task configuration details. + /// Task of ReportingTaskEntity + public async System.Threading.Tasks.Task CreateReportingTaskAsync (ReportingTaskEntity body) + { + ApiResponse localVarResponse = await this.CreateReportingTaskAsyncWithHttpInfo(body); + return localVarResponse.Data; + + } + + /// + /// Creates a new reporting task + /// + /// Thrown when fails to make API call + /// The reporting task configuration details. + /// Task of ApiResponse (ReportingTaskEntity) + public async System.Threading.Tasks.Task> CreateReportingTaskAsyncWithHttpInfo (ReportingTaskEntity body) + { + // verify the required parameter 'body' is set + if (body == null) + throw new ApiException(400, "Missing required parameter 'body' when calling ControllerApi->CreateReportingTask"); + + var localVarPath = "/controller/reporting-tasks"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "application/json" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (body != null && body.GetType() != typeof(byte[])) + { + localVarPostBody = this.Configuration.ApiClient.Serialize(body); // http body (model) parameter + } + else + { + localVarPostBody = body; // byte array + } + + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (this.ExceptionFactory != null) + { + Exception exception = this.ExceptionFactory("CreateReportingTask", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), + (ReportingTaskEntity) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(ReportingTaskEntity))); + } + + /// + /// Purges history + /// + /// Thrown when fails to make API call + /// Purge actions before this date/time. + /// HistoryEntity + public HistoryEntity DeleteHistory (string endDate) + { + ApiResponse localVarResponse = this.DeleteHistoryWithHttpInfo(endDate); + return localVarResponse.Data; + } + + /// + /// Purges history + /// + /// Thrown when fails to make API call + /// Purge actions before this date/time. + /// ApiResponse of HistoryEntity + public ApiResponse< HistoryEntity > DeleteHistoryWithHttpInfo (string endDate) + { + // verify the required parameter 'endDate' is set + if (endDate == null) + throw new ApiException(400, "Missing required parameter 'endDate' when calling ControllerApi->DeleteHistory"); + + var localVarPath = "/controller/history"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "*/*" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (endDate != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "endDate", endDate)); // query parameter + + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.DELETE, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (this.ExceptionFactory != null) + { + Exception exception = this.ExceptionFactory("DeleteHistory", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), + (HistoryEntity) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(HistoryEntity))); + } + + /// + /// Purges history + /// + /// Thrown when fails to make API call + /// Purge actions before this date/time. + /// Task of HistoryEntity + public async System.Threading.Tasks.Task DeleteHistoryAsync (string endDate) + { + ApiResponse localVarResponse = await this.DeleteHistoryAsyncWithHttpInfo(endDate); + return localVarResponse.Data; + + } + + /// + /// Purges history + /// + /// Thrown when fails to make API call + /// Purge actions before this date/time. + /// Task of ApiResponse (HistoryEntity) + public async System.Threading.Tasks.Task> DeleteHistoryAsyncWithHttpInfo (string endDate) + { + // verify the required parameter 'endDate' is set + if (endDate == null) + throw new ApiException(400, "Missing required parameter 'endDate' when calling ControllerApi->DeleteHistory"); + + var localVarPath = "/controller/history"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "*/*" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (endDate != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "endDate", endDate)); // query parameter + + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.DELETE, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (this.ExceptionFactory != null) + { + Exception exception = this.ExceptionFactory("DeleteHistory", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), + (HistoryEntity) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(HistoryEntity))); + } + + /// + /// Removes a node from the cluster + /// + /// Thrown when fails to make API call + /// The node id. + /// NodeEntity + public NodeEntity DeleteNode (string id) + { + ApiResponse localVarResponse = this.DeleteNodeWithHttpInfo(id); + return localVarResponse.Data; + } + + /// + /// Removes a node from the cluster + /// + /// Thrown when fails to make API call + /// The node id. + /// ApiResponse of NodeEntity + public ApiResponse< NodeEntity > DeleteNodeWithHttpInfo (string id) + { + // verify the required parameter 'id' is set + if (id == null) + throw new ApiException(400, "Missing required parameter 'id' when calling ControllerApi->DeleteNode"); + + var localVarPath = "/controller/cluster/nodes/{id}"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "*/*" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter + + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.DELETE, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (this.ExceptionFactory != null) + { + Exception exception = this.ExceptionFactory("DeleteNode", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), + (NodeEntity) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(NodeEntity))); + } + + /// + /// Removes a node from the cluster + /// + /// Thrown when fails to make API call + /// The node id. + /// Task of NodeEntity + public async System.Threading.Tasks.Task DeleteNodeAsync (string id) + { + ApiResponse localVarResponse = await this.DeleteNodeAsyncWithHttpInfo(id); + return localVarResponse.Data; + + } + + /// + /// Removes a node from the cluster + /// + /// Thrown when fails to make API call + /// The node id. + /// Task of ApiResponse (NodeEntity) + public async System.Threading.Tasks.Task> DeleteNodeAsyncWithHttpInfo (string id) + { + // verify the required parameter 'id' is set + if (id == null) + throw new ApiException(400, "Missing required parameter 'id' when calling ControllerApi->DeleteNode"); + + var localVarPath = "/controller/cluster/nodes/{id}"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "*/*" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter + + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.DELETE, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (this.ExceptionFactory != null) + { + Exception exception = this.ExceptionFactory("DeleteNode", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), + (NodeEntity) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(NodeEntity))); + } + + /// + /// Deletes a registry client + /// + /// Thrown when fails to make API call + /// The registry id. + /// The revision is used to verify the client is working with the latest version of the flow. (optional) + /// If the client id is not specified, new one will be generated. This value (whether specified or generated) is included in the response. (optional) + /// Acknowledges that this node is disconnected to allow for mutable requests to proceed. (optional, default to false) + /// RegistryClientEntity + public RegistryClientEntity DeleteRegistryClient (string id, string version = null, string clientId = null, bool? disconnectedNodeAcknowledged = null) + { + ApiResponse localVarResponse = this.DeleteRegistryClientWithHttpInfo(id, version, clientId, disconnectedNodeAcknowledged); + return localVarResponse.Data; + } + + /// + /// Deletes a registry client + /// + /// Thrown when fails to make API call + /// The registry id. + /// The revision is used to verify the client is working with the latest version of the flow. (optional) + /// If the client id is not specified, new one will be generated. This value (whether specified or generated) is included in the response. (optional) + /// Acknowledges that this node is disconnected to allow for mutable requests to proceed. (optional, default to false) + /// ApiResponse of RegistryClientEntity + public ApiResponse< RegistryClientEntity > DeleteRegistryClientWithHttpInfo (string id, string version = null, string clientId = null, bool? disconnectedNodeAcknowledged = null) + { + // verify the required parameter 'id' is set + if (id == null) + throw new ApiException(400, "Missing required parameter 'id' when calling ControllerApi->DeleteRegistryClient"); + + var localVarPath = "/controller/registry-clients/{id}"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "*/*" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter + if (version != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "version", version)); // query parameter + if (clientId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "clientId", clientId)); // query parameter + if (disconnectedNodeAcknowledged != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "disconnectedNodeAcknowledged", disconnectedNodeAcknowledged)); // query parameter + + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.DELETE, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (this.ExceptionFactory != null) + { + Exception exception = this.ExceptionFactory("DeleteRegistryClient", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), + (RegistryClientEntity) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RegistryClientEntity))); + } + + /// + /// Deletes a registry client + /// + /// Thrown when fails to make API call + /// The registry id. + /// The revision is used to verify the client is working with the latest version of the flow. (optional) + /// If the client id is not specified, new one will be generated. This value (whether specified or generated) is included in the response. (optional) + /// Acknowledges that this node is disconnected to allow for mutable requests to proceed. (optional, default to false) + /// Task of RegistryClientEntity + public async System.Threading.Tasks.Task DeleteRegistryClientAsync (string id, string version = null, string clientId = null, bool? disconnectedNodeAcknowledged = null) + { + ApiResponse localVarResponse = await this.DeleteRegistryClientAsyncWithHttpInfo(id, version, clientId, disconnectedNodeAcknowledged); + return localVarResponse.Data; + + } + + /// + /// Deletes a registry client + /// + /// Thrown when fails to make API call + /// The registry id. + /// The revision is used to verify the client is working with the latest version of the flow. (optional) + /// If the client id is not specified, new one will be generated. This value (whether specified or generated) is included in the response. (optional) + /// Acknowledges that this node is disconnected to allow for mutable requests to proceed. (optional, default to false) + /// Task of ApiResponse (RegistryClientEntity) + public async System.Threading.Tasks.Task> DeleteRegistryClientAsyncWithHttpInfo (string id, string version = null, string clientId = null, bool? disconnectedNodeAcknowledged = null) + { + // verify the required parameter 'id' is set + if (id == null) + throw new ApiException(400, "Missing required parameter 'id' when calling ControllerApi->DeleteRegistryClient"); + + var localVarPath = "/controller/registry-clients/{id}"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "*/*" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter + if (version != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "version", version)); // query parameter + if (clientId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "clientId", clientId)); // query parameter + if (disconnectedNodeAcknowledged != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "disconnectedNodeAcknowledged", disconnectedNodeAcknowledged)); // query parameter + + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.DELETE, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (this.ExceptionFactory != null) + { + Exception exception = this.ExceptionFactory("DeleteRegistryClient", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), + (RegistryClientEntity) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RegistryClientEntity))); + } + + /// + /// Gets the contents of the cluster Returns the contents of the cluster including all nodes and their status. + /// + /// Thrown when fails to make API call + /// ClusterEntity + public ClusterEntity GetCluster () + { + ApiResponse localVarResponse = this.GetClusterWithHttpInfo(); + return localVarResponse.Data; + } + + /// + /// Gets the contents of the cluster Returns the contents of the cluster including all nodes and their status. + /// + /// Thrown when fails to make API call + /// ApiResponse of ClusterEntity + public ApiResponse< ClusterEntity > GetClusterWithHttpInfo () + { + + var localVarPath = "/controller/cluster"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "*/*" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (this.ExceptionFactory != null) + { + Exception exception = this.ExceptionFactory("GetCluster", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), + (ClusterEntity) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(ClusterEntity))); + } + + /// + /// Gets the contents of the cluster Returns the contents of the cluster including all nodes and their status. + /// + /// Thrown when fails to make API call + /// Task of ClusterEntity + public async System.Threading.Tasks.Task GetClusterAsync () + { + ApiResponse localVarResponse = await this.GetClusterAsyncWithHttpInfo(); + return localVarResponse.Data; + + } + + /// + /// Gets the contents of the cluster Returns the contents of the cluster including all nodes and their status. + /// + /// Thrown when fails to make API call + /// Task of ApiResponse (ClusterEntity) + public async System.Threading.Tasks.Task> GetClusterAsyncWithHttpInfo () + { + + var localVarPath = "/controller/cluster"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "*/*" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (this.ExceptionFactory != null) + { + Exception exception = this.ExceptionFactory("GetCluster", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), + (ClusterEntity) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(ClusterEntity))); + } + + /// + /// Retrieves the configuration for this NiFi Controller + /// + /// Thrown when fails to make API call + /// ControllerConfigurationEntity + public ControllerConfigurationEntity GetControllerConfig () + { + ApiResponse localVarResponse = this.GetControllerConfigWithHttpInfo(); + return localVarResponse.Data; + } + + /// + /// Retrieves the configuration for this NiFi Controller + /// + /// Thrown when fails to make API call + /// ApiResponse of ControllerConfigurationEntity + public ApiResponse< ControllerConfigurationEntity > GetControllerConfigWithHttpInfo () + { + + var localVarPath = "/controller/config"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "*/*" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (this.ExceptionFactory != null) + { + Exception exception = this.ExceptionFactory("GetControllerConfig", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), + (ControllerConfigurationEntity) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(ControllerConfigurationEntity))); + } + + /// + /// Retrieves the configuration for this NiFi Controller + /// + /// Thrown when fails to make API call + /// Task of ControllerConfigurationEntity + public async System.Threading.Tasks.Task GetControllerConfigAsync () + { + ApiResponse localVarResponse = await this.GetControllerConfigAsyncWithHttpInfo(); + return localVarResponse.Data; + + } + + /// + /// Retrieves the configuration for this NiFi Controller + /// + /// Thrown when fails to make API call + /// Task of ApiResponse (ControllerConfigurationEntity) + public async System.Threading.Tasks.Task> GetControllerConfigAsyncWithHttpInfo () + { + + var localVarPath = "/controller/config"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "*/*" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (this.ExceptionFactory != null) + { + Exception exception = this.ExceptionFactory("GetControllerConfig", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), + (ControllerConfigurationEntity) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(ControllerConfigurationEntity))); + } + + /// + /// Gets a node in the cluster + /// + /// Thrown when fails to make API call + /// The node id. + /// NodeEntity + public NodeEntity GetNode (string id) + { + ApiResponse localVarResponse = this.GetNodeWithHttpInfo(id); + return localVarResponse.Data; + } + + /// + /// Gets a node in the cluster + /// + /// Thrown when fails to make API call + /// The node id. + /// ApiResponse of NodeEntity + public ApiResponse< NodeEntity > GetNodeWithHttpInfo (string id) + { + // verify the required parameter 'id' is set + if (id == null) + throw new ApiException(400, "Missing required parameter 'id' when calling ControllerApi->GetNode"); + + var localVarPath = "/controller/cluster/nodes/{id}"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "*/*" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter + + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (this.ExceptionFactory != null) + { + Exception exception = this.ExceptionFactory("GetNode", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), + (NodeEntity) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(NodeEntity))); + } + + /// + /// Gets a node in the cluster + /// + /// Thrown when fails to make API call + /// The node id. + /// Task of NodeEntity + public async System.Threading.Tasks.Task GetNodeAsync (string id) + { + ApiResponse localVarResponse = await this.GetNodeAsyncWithHttpInfo(id); + return localVarResponse.Data; + + } + + /// + /// Gets a node in the cluster + /// + /// Thrown when fails to make API call + /// The node id. + /// Task of ApiResponse (NodeEntity) + public async System.Threading.Tasks.Task> GetNodeAsyncWithHttpInfo (string id) + { + // verify the required parameter 'id' is set + if (id == null) + throw new ApiException(400, "Missing required parameter 'id' when calling ControllerApi->GetNode"); + + var localVarPath = "/controller/cluster/nodes/{id}"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "*/*" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter + + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (this.ExceptionFactory != null) + { + Exception exception = this.ExceptionFactory("GetNode", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), + (NodeEntity) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(NodeEntity))); + } + + /// + /// Gets a registry client + /// + /// Thrown when fails to make API call + /// The registry id. + /// RegistryClientEntity + public RegistryClientEntity GetRegistryClient (string id) + { + ApiResponse localVarResponse = this.GetRegistryClientWithHttpInfo(id); + return localVarResponse.Data; + } + + /// + /// Gets a registry client + /// + /// Thrown when fails to make API call + /// The registry id. + /// ApiResponse of RegistryClientEntity + public ApiResponse< RegistryClientEntity > GetRegistryClientWithHttpInfo (string id) + { + // verify the required parameter 'id' is set + if (id == null) + throw new ApiException(400, "Missing required parameter 'id' when calling ControllerApi->GetRegistryClient"); + + var localVarPath = "/controller/registry-clients/{id}"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "*/*" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter + + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (this.ExceptionFactory != null) + { + Exception exception = this.ExceptionFactory("GetRegistryClient", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), + (RegistryClientEntity) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RegistryClientEntity))); + } + + /// + /// Gets a registry client + /// + /// Thrown when fails to make API call + /// The registry id. + /// Task of RegistryClientEntity + public async System.Threading.Tasks.Task GetRegistryClientAsync (string id) + { + ApiResponse localVarResponse = await this.GetRegistryClientAsyncWithHttpInfo(id); + return localVarResponse.Data; + + } + + /// + /// Gets a registry client + /// + /// Thrown when fails to make API call + /// The registry id. + /// Task of ApiResponse (RegistryClientEntity) + public async System.Threading.Tasks.Task> GetRegistryClientAsyncWithHttpInfo (string id) + { + // verify the required parameter 'id' is set + if (id == null) + throw new ApiException(400, "Missing required parameter 'id' when calling ControllerApi->GetRegistryClient"); + + var localVarPath = "/controller/registry-clients/{id}"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "*/*" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter + + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (this.ExceptionFactory != null) + { + Exception exception = this.ExceptionFactory("GetRegistryClient", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), + (RegistryClientEntity) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RegistryClientEntity))); + } + + /// + /// Gets the listing of available registry clients + /// + /// Thrown when fails to make API call + /// RegistryClientsEntity + public RegistryClientsEntity GetRegistryClients () + { + ApiResponse localVarResponse = this.GetRegistryClientsWithHttpInfo(); + return localVarResponse.Data; + } + + /// + /// Gets the listing of available registry clients + /// + /// Thrown when fails to make API call + /// ApiResponse of RegistryClientsEntity + public ApiResponse< RegistryClientsEntity > GetRegistryClientsWithHttpInfo () + { + + var localVarPath = "/controller/registry-clients"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "*/*" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (this.ExceptionFactory != null) + { + Exception exception = this.ExceptionFactory("GetRegistryClients", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), + (RegistryClientsEntity) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RegistryClientsEntity))); + } + + /// + /// Gets the listing of available registry clients + /// + /// Thrown when fails to make API call + /// Task of RegistryClientsEntity + public async System.Threading.Tasks.Task GetRegistryClientsAsync () + { + ApiResponse localVarResponse = await this.GetRegistryClientsAsyncWithHttpInfo(); + return localVarResponse.Data; + + } + + /// + /// Gets the listing of available registry clients + /// + /// Thrown when fails to make API call + /// Task of ApiResponse (RegistryClientsEntity) + public async System.Threading.Tasks.Task> GetRegistryClientsAsyncWithHttpInfo () + { + + var localVarPath = "/controller/registry-clients"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "*/*" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (this.ExceptionFactory != null) + { + Exception exception = this.ExceptionFactory("GetRegistryClients", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), + (RegistryClientsEntity) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RegistryClientsEntity))); + } + + /// + /// Retrieves the configuration for this NiFi + /// + /// Thrown when fails to make API call + /// The controller configuration. + /// ControllerConfigurationEntity + public ControllerConfigurationEntity UpdateControllerConfig (ControllerConfigurationEntity body) + { + ApiResponse localVarResponse = this.UpdateControllerConfigWithHttpInfo(body); + return localVarResponse.Data; + } + + /// + /// Retrieves the configuration for this NiFi + /// + /// Thrown when fails to make API call + /// The controller configuration. + /// ApiResponse of ControllerConfigurationEntity + public ApiResponse< ControllerConfigurationEntity > UpdateControllerConfigWithHttpInfo (ControllerConfigurationEntity body) + { + // verify the required parameter 'body' is set + if (body == null) + throw new ApiException(400, "Missing required parameter 'body' when calling ControllerApi->UpdateControllerConfig"); + + var localVarPath = "/controller/config"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "application/json" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (body != null && body.GetType() != typeof(byte[])) + { + localVarPostBody = this.Configuration.ApiClient.Serialize(body); // http body (model) parameter + } + else + { + localVarPostBody = body; // byte array + } + + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.PUT, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (this.ExceptionFactory != null) + { + Exception exception = this.ExceptionFactory("UpdateControllerConfig", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), + (ControllerConfigurationEntity) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(ControllerConfigurationEntity))); + } + + /// + /// Retrieves the configuration for this NiFi + /// + /// Thrown when fails to make API call + /// The controller configuration. + /// Task of ControllerConfigurationEntity + public async System.Threading.Tasks.Task UpdateControllerConfigAsync (ControllerConfigurationEntity body) + { + ApiResponse localVarResponse = await this.UpdateControllerConfigAsyncWithHttpInfo(body); + return localVarResponse.Data; + + } + + /// + /// Retrieves the configuration for this NiFi + /// + /// Thrown when fails to make API call + /// The controller configuration. + /// Task of ApiResponse (ControllerConfigurationEntity) + public async System.Threading.Tasks.Task> UpdateControllerConfigAsyncWithHttpInfo (ControllerConfigurationEntity body) + { + // verify the required parameter 'body' is set + if (body == null) + throw new ApiException(400, "Missing required parameter 'body' when calling ControllerApi->UpdateControllerConfig"); + + var localVarPath = "/controller/config"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "application/json" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (body != null && body.GetType() != typeof(byte[])) + { + localVarPostBody = this.Configuration.ApiClient.Serialize(body); // http body (model) parameter + } + else + { + localVarPostBody = body; // byte array + } + + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.PUT, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (this.ExceptionFactory != null) + { + Exception exception = this.ExceptionFactory("UpdateControllerConfig", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), + (ControllerConfigurationEntity) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(ControllerConfigurationEntity))); + } + + /// + /// Updates a node in the cluster + /// + /// Thrown when fails to make API call + /// The node id. + /// The node configuration. The only configuration that will be honored at this endpoint is the status. + /// NodeEntity + public NodeEntity UpdateNode (string id, NodeEntity body) + { + ApiResponse localVarResponse = this.UpdateNodeWithHttpInfo(id, body); + return localVarResponse.Data; + } + + /// + /// Updates a node in the cluster + /// + /// Thrown when fails to make API call + /// The node id. + /// The node configuration. The only configuration that will be honored at this endpoint is the status. + /// ApiResponse of NodeEntity + public ApiResponse< NodeEntity > UpdateNodeWithHttpInfo (string id, NodeEntity body) + { + // verify the required parameter 'id' is set + if (id == null) + throw new ApiException(400, "Missing required parameter 'id' when calling ControllerApi->UpdateNode"); + // verify the required parameter 'body' is set + if (body == null) + throw new ApiException(400, "Missing required parameter 'body' when calling ControllerApi->UpdateNode"); + + var localVarPath = "/controller/cluster/nodes/{id}"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "application/json" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter + if (body != null && body.GetType() != typeof(byte[])) + { + localVarPostBody = this.Configuration.ApiClient.Serialize(body); // http body (model) parameter + } + else + { + localVarPostBody = body; // byte array + } + + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.PUT, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (this.ExceptionFactory != null) + { + Exception exception = this.ExceptionFactory("UpdateNode", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), + (NodeEntity) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(NodeEntity))); + } + + /// + /// Updates a node in the cluster + /// + /// Thrown when fails to make API call + /// The node id. + /// The node configuration. The only configuration that will be honored at this endpoint is the status. + /// Task of NodeEntity + public async System.Threading.Tasks.Task UpdateNodeAsync (string id, NodeEntity body) + { + ApiResponse localVarResponse = await this.UpdateNodeAsyncWithHttpInfo(id, body); + return localVarResponse.Data; + + } + + /// + /// Updates a node in the cluster + /// + /// Thrown when fails to make API call + /// The node id. + /// The node configuration. The only configuration that will be honored at this endpoint is the status. + /// Task of ApiResponse (NodeEntity) + public async System.Threading.Tasks.Task> UpdateNodeAsyncWithHttpInfo (string id, NodeEntity body) + { + // verify the required parameter 'id' is set + if (id == null) + throw new ApiException(400, "Missing required parameter 'id' when calling ControllerApi->UpdateNode"); + // verify the required parameter 'body' is set + if (body == null) + throw new ApiException(400, "Missing required parameter 'body' when calling ControllerApi->UpdateNode"); + + var localVarPath = "/controller/cluster/nodes/{id}"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "application/json" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter + if (body != null && body.GetType() != typeof(byte[])) + { + localVarPostBody = this.Configuration.ApiClient.Serialize(body); // http body (model) parameter + } + else + { + localVarPostBody = body; // byte array + } + + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.PUT, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (this.ExceptionFactory != null) + { + Exception exception = this.ExceptionFactory("UpdateNode", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), + (NodeEntity) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(NodeEntity))); + } + + /// + /// Updates a registry client + /// + /// Thrown when fails to make API call + /// The registry id. + /// The registry configuration details. + /// RegistryClientEntity + public RegistryClientEntity UpdateRegistryClient (string id, RegistryClientEntity body) + { + ApiResponse localVarResponse = this.UpdateRegistryClientWithHttpInfo(id, body); + return localVarResponse.Data; + } + + /// + /// Updates a registry client + /// + /// Thrown when fails to make API call + /// The registry id. + /// The registry configuration details. + /// ApiResponse of RegistryClientEntity + public ApiResponse< RegistryClientEntity > UpdateRegistryClientWithHttpInfo (string id, RegistryClientEntity body) + { + // verify the required parameter 'id' is set + if (id == null) + throw new ApiException(400, "Missing required parameter 'id' when calling ControllerApi->UpdateRegistryClient"); + // verify the required parameter 'body' is set + if (body == null) + throw new ApiException(400, "Missing required parameter 'body' when calling ControllerApi->UpdateRegistryClient"); + + var localVarPath = "/controller/registry-clients/{id}"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "application/json" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter + if (body != null && body.GetType() != typeof(byte[])) + { + localVarPostBody = this.Configuration.ApiClient.Serialize(body); // http body (model) parameter + } + else + { + localVarPostBody = body; // byte array + } + + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.PUT, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (this.ExceptionFactory != null) + { + Exception exception = this.ExceptionFactory("UpdateRegistryClient", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), + (RegistryClientEntity) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RegistryClientEntity))); + } + + /// + /// Updates a registry client + /// + /// Thrown when fails to make API call + /// The registry id. + /// The registry configuration details. + /// Task of RegistryClientEntity + public async System.Threading.Tasks.Task UpdateRegistryClientAsync (string id, RegistryClientEntity body) + { + ApiResponse localVarResponse = await this.UpdateRegistryClientAsyncWithHttpInfo(id, body); + return localVarResponse.Data; + + } + + /// + /// Updates a registry client + /// + /// Thrown when fails to make API call + /// The registry id. + /// The registry configuration details. + /// Task of ApiResponse (RegistryClientEntity) + public async System.Threading.Tasks.Task> UpdateRegistryClientAsyncWithHttpInfo (string id, RegistryClientEntity body) + { + // verify the required parameter 'id' is set + if (id == null) + throw new ApiException(400, "Missing required parameter 'id' when calling ControllerApi->UpdateRegistryClient"); + // verify the required parameter 'body' is set + if (body == null) + throw new ApiException(400, "Missing required parameter 'body' when calling ControllerApi->UpdateRegistryClient"); + + var localVarPath = "/controller/registry-clients/{id}"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "application/json" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter + if (body != null && body.GetType() != typeof(byte[])) + { + localVarPostBody = this.Configuration.ApiClient.Serialize(body); // http body (model) parameter + } + else + { + localVarPostBody = body; // byte array + } + + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.PUT, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (this.ExceptionFactory != null) + { + Exception exception = this.ExceptionFactory("UpdateRegistryClient", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), + (RegistryClientEntity) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RegistryClientEntity))); + } + + } +} diff --git a/NiFi.Swagger/Api/ControllerServicesApi.cs b/NiFi.Swagger/Api/ControllerServicesApi.cs new file mode 100644 index 0000000..1d3b4b6 --- /dev/null +++ b/NiFi.Swagger/Api/ControllerServicesApi.cs @@ -0,0 +1,1861 @@ +/* + * NiFi Rest Api + * + * The Rest Api provides programmatic access to command and control a NiFi instance in real time. Start and stop processors, monitor queues, query provenance data, and more. Each endpoint below includes a description, definitions of the expected input and output, potential response codes, and the authorizations required to invoke each service. + * + * OpenAPI spec version: 1.9.1 + * Contact: dev@nifi.apache.org + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +namespace NiFi.Swagger.Api +{ + using System; + using System.Collections.Generic; + using System.Collections.ObjectModel; + using System.Linq; + + using NiFi.Swagger.Client; + using NiFi.Swagger.Model; + + using RestSharp; + + /// + /// Represents a collection of functions to interact with the API endpoints + /// + public interface IControllerServicesApi : IApiAccessor + { + #region Synchronous Operations + /// + /// Clears the state for a controller service + /// + /// + /// + /// + /// Thrown when fails to make API call + /// The controller service id. + /// ComponentStateEntity + ComponentStateEntity ClearState (string id); + + /// + /// Clears the state for a controller service + /// + /// + /// + /// + /// Thrown when fails to make API call + /// The controller service id. + /// ApiResponse of ComponentStateEntity + ApiResponse ClearStateWithHttpInfo (string id); + /// + /// Gets a controller service + /// + /// + /// + /// + /// Thrown when fails to make API call + /// The controller service id. + /// ControllerServiceEntity + ControllerServiceEntity GetControllerService (string id); + + /// + /// Gets a controller service + /// + /// + /// + /// + /// Thrown when fails to make API call + /// The controller service id. + /// ApiResponse of ControllerServiceEntity + ApiResponse GetControllerServiceWithHttpInfo (string id); + /// + /// Gets a controller service + /// + /// + /// + /// + /// Thrown when fails to make API call + /// The controller service id. + /// ControllerServiceReferencingComponentsEntity + ControllerServiceReferencingComponentsEntity GetControllerServiceReferences (string id); + + /// + /// Gets a controller service + /// + /// + /// + /// + /// Thrown when fails to make API call + /// The controller service id. + /// ApiResponse of ControllerServiceReferencingComponentsEntity + ApiResponse GetControllerServiceReferencesWithHttpInfo (string id); + /// + /// Gets a controller service property descriptor + /// + /// + /// + /// + /// Thrown when fails to make API call + /// The controller service id. + /// The property name to return the descriptor for. + /// PropertyDescriptorEntity + PropertyDescriptorEntity GetPropertyDescriptor (string id, string propertyName); + + /// + /// Gets a controller service property descriptor + /// + /// + /// + /// + /// Thrown when fails to make API call + /// The controller service id. + /// The property name to return the descriptor for. + /// ApiResponse of PropertyDescriptorEntity + ApiResponse GetPropertyDescriptorWithHttpInfo (string id, string propertyName); + /// + /// Gets the state for a controller service + /// + /// + /// + /// + /// Thrown when fails to make API call + /// The controller service id. + /// ComponentStateEntity + ComponentStateEntity GetState (string id); + + /// + /// Gets the state for a controller service + /// + /// + /// + /// + /// Thrown when fails to make API call + /// The controller service id. + /// ApiResponse of ComponentStateEntity + ApiResponse GetStateWithHttpInfo (string id); + /// + /// Deletes a controller service + /// + /// + /// + /// + /// Thrown when fails to make API call + /// The controller service id. + /// The revision is used to verify the client is working with the latest version of the flow. (optional) + /// If the client id is not specified, new one will be generated. This value (whether specified or generated) is included in the response. (optional) + /// Acknowledges that this node is disconnected to allow for mutable requests to proceed. (optional, default to false) + /// ControllerServiceEntity + ControllerServiceEntity RemoveControllerService (string id, string version = null, string clientId = null, bool? disconnectedNodeAcknowledged = null); + + /// + /// Deletes a controller service + /// + /// + /// + /// + /// Thrown when fails to make API call + /// The controller service id. + /// The revision is used to verify the client is working with the latest version of the flow. (optional) + /// If the client id is not specified, new one will be generated. This value (whether specified or generated) is included in the response. (optional) + /// Acknowledges that this node is disconnected to allow for mutable requests to proceed. (optional, default to false) + /// ApiResponse of ControllerServiceEntity + ApiResponse RemoveControllerServiceWithHttpInfo (string id, string version = null, string clientId = null, bool? disconnectedNodeAcknowledged = null); + /// + /// Updates a controller service + /// + /// + /// + /// + /// Thrown when fails to make API call + /// The controller service id. + /// The controller service configuration details. + /// ControllerServiceEntity + ControllerServiceEntity UpdateControllerService (string id, ControllerServiceEntity body); + + /// + /// Updates a controller service + /// + /// + /// + /// + /// Thrown when fails to make API call + /// The controller service id. + /// The controller service configuration details. + /// ApiResponse of ControllerServiceEntity + ApiResponse UpdateControllerServiceWithHttpInfo (string id, ControllerServiceEntity body); + /// + /// Updates a controller services references + /// + /// + /// + /// + /// Thrown when fails to make API call + /// The controller service id. + /// The controller service request update request. + /// ControllerServiceReferencingComponentsEntity + ControllerServiceReferencingComponentsEntity UpdateControllerServiceReferences (string id, UpdateControllerServiceReferenceRequestEntity body); + + /// + /// Updates a controller services references + /// + /// + /// + /// + /// Thrown when fails to make API call + /// The controller service id. + /// The controller service request update request. + /// ApiResponse of ControllerServiceReferencingComponentsEntity + ApiResponse UpdateControllerServiceReferencesWithHttpInfo (string id, UpdateControllerServiceReferenceRequestEntity body); + /// + /// Updates run status of a controller service + /// + /// + /// + /// + /// Thrown when fails to make API call + /// The controller service id. + /// The controller service run status. + /// ControllerServiceEntity + ControllerServiceEntity UpdateRunStatus (string id, ControllerServiceRunStatusEntity body); + + /// + /// Updates run status of a controller service + /// + /// + /// + /// + /// Thrown when fails to make API call + /// The controller service id. + /// The controller service run status. + /// ApiResponse of ControllerServiceEntity + ApiResponse UpdateRunStatusWithHttpInfo (string id, ControllerServiceRunStatusEntity body); + #endregion Synchronous Operations + #region Asynchronous Operations + /// + /// Clears the state for a controller service + /// + /// + /// + /// + /// Thrown when fails to make API call + /// The controller service id. + /// Task of ComponentStateEntity + System.Threading.Tasks.Task ClearStateAsync (string id); + + /// + /// Clears the state for a controller service + /// + /// + /// + /// + /// Thrown when fails to make API call + /// The controller service id. + /// Task of ApiResponse (ComponentStateEntity) + System.Threading.Tasks.Task> ClearStateAsyncWithHttpInfo (string id); + /// + /// Gets a controller service + /// + /// + /// + /// + /// Thrown when fails to make API call + /// The controller service id. + /// Task of ControllerServiceEntity + System.Threading.Tasks.Task GetControllerServiceAsync (string id); + + /// + /// Gets a controller service + /// + /// + /// + /// + /// Thrown when fails to make API call + /// The controller service id. + /// Task of ApiResponse (ControllerServiceEntity) + System.Threading.Tasks.Task> GetControllerServiceAsyncWithHttpInfo (string id); + /// + /// Gets a controller service + /// + /// + /// + /// + /// Thrown when fails to make API call + /// The controller service id. + /// Task of ControllerServiceReferencingComponentsEntity + System.Threading.Tasks.Task GetControllerServiceReferencesAsync (string id); + + /// + /// Gets a controller service + /// + /// + /// + /// + /// Thrown when fails to make API call + /// The controller service id. + /// Task of ApiResponse (ControllerServiceReferencingComponentsEntity) + System.Threading.Tasks.Task> GetControllerServiceReferencesAsyncWithHttpInfo (string id); + /// + /// Gets a controller service property descriptor + /// + /// + /// + /// + /// Thrown when fails to make API call + /// The controller service id. + /// The property name to return the descriptor for. + /// Task of PropertyDescriptorEntity + System.Threading.Tasks.Task GetPropertyDescriptorAsync (string id, string propertyName); + + /// + /// Gets a controller service property descriptor + /// + /// + /// + /// + /// Thrown when fails to make API call + /// The controller service id. + /// The property name to return the descriptor for. + /// Task of ApiResponse (PropertyDescriptorEntity) + System.Threading.Tasks.Task> GetPropertyDescriptorAsyncWithHttpInfo (string id, string propertyName); + /// + /// Gets the state for a controller service + /// + /// + /// + /// + /// Thrown when fails to make API call + /// The controller service id. + /// Task of ComponentStateEntity + System.Threading.Tasks.Task GetStateAsync (string id); + + /// + /// Gets the state for a controller service + /// + /// + /// + /// + /// Thrown when fails to make API call + /// The controller service id. + /// Task of ApiResponse (ComponentStateEntity) + System.Threading.Tasks.Task> GetStateAsyncWithHttpInfo (string id); + /// + /// Deletes a controller service + /// + /// + /// + /// + /// Thrown when fails to make API call + /// The controller service id. + /// The revision is used to verify the client is working with the latest version of the flow. (optional) + /// If the client id is not specified, new one will be generated. This value (whether specified or generated) is included in the response. (optional) + /// Acknowledges that this node is disconnected to allow for mutable requests to proceed. (optional, default to false) + /// Task of ControllerServiceEntity + System.Threading.Tasks.Task RemoveControllerServiceAsync (string id, string version = null, string clientId = null, bool? disconnectedNodeAcknowledged = null); + + /// + /// Deletes a controller service + /// + /// + /// + /// + /// Thrown when fails to make API call + /// The controller service id. + /// The revision is used to verify the client is working with the latest version of the flow. (optional) + /// If the client id is not specified, new one will be generated. This value (whether specified or generated) is included in the response. (optional) + /// Acknowledges that this node is disconnected to allow for mutable requests to proceed. (optional, default to false) + /// Task of ApiResponse (ControllerServiceEntity) + System.Threading.Tasks.Task> RemoveControllerServiceAsyncWithHttpInfo (string id, string version = null, string clientId = null, bool? disconnectedNodeAcknowledged = null); + /// + /// Updates a controller service + /// + /// + /// + /// + /// Thrown when fails to make API call + /// The controller service id. + /// The controller service configuration details. + /// Task of ControllerServiceEntity + System.Threading.Tasks.Task UpdateControllerServiceAsync (string id, ControllerServiceEntity body); + + /// + /// Updates a controller service + /// + /// + /// + /// + /// Thrown when fails to make API call + /// The controller service id. + /// The controller service configuration details. + /// Task of ApiResponse (ControllerServiceEntity) + System.Threading.Tasks.Task> UpdateControllerServiceAsyncWithHttpInfo (string id, ControllerServiceEntity body); + /// + /// Updates a controller services references + /// + /// + /// + /// + /// Thrown when fails to make API call + /// The controller service id. + /// The controller service request update request. + /// Task of ControllerServiceReferencingComponentsEntity + System.Threading.Tasks.Task UpdateControllerServiceReferencesAsync (string id, UpdateControllerServiceReferenceRequestEntity body); + + /// + /// Updates a controller services references + /// + /// + /// + /// + /// Thrown when fails to make API call + /// The controller service id. + /// The controller service request update request. + /// Task of ApiResponse (ControllerServiceReferencingComponentsEntity) + System.Threading.Tasks.Task> UpdateControllerServiceReferencesAsyncWithHttpInfo (string id, UpdateControllerServiceReferenceRequestEntity body); + /// + /// Updates run status of a controller service + /// + /// + /// + /// + /// Thrown when fails to make API call + /// The controller service id. + /// The controller service run status. + /// Task of ControllerServiceEntity + System.Threading.Tasks.Task UpdateRunStatusAsync (string id, ControllerServiceRunStatusEntity body); + + /// + /// Updates run status of a controller service + /// + /// + /// + /// + /// Thrown when fails to make API call + /// The controller service id. + /// The controller service run status. + /// Task of ApiResponse (ControllerServiceEntity) + System.Threading.Tasks.Task> UpdateRunStatusAsyncWithHttpInfo (string id, ControllerServiceRunStatusEntity body); + #endregion Asynchronous Operations + } + + /// + /// Represents a collection of functions to interact with the API endpoints + /// + public partial class ControllerServicesApi : IControllerServicesApi + { + private ExceptionFactory _exceptionFactory = (name, response) => null; + + /// + /// Initializes a new instance of the class. + /// + /// + public ControllerServicesApi(String basePath) + { + this.Configuration = new Configuration { BasePath = basePath }; + + this.ExceptionFactory = Configuration.DefaultExceptionFactory; + } + + /// + /// Initializes a new instance of the class + /// using Configuration object + /// + /// An instance of Configuration + /// + public ControllerServicesApi(Configuration configuration = null) + { + if (configuration == null) // use the default one in Configuration + this.Configuration = Configuration.Default; + else + this.Configuration = configuration; + + this.ExceptionFactory = Configuration.DefaultExceptionFactory; + } + + /// + /// Gets the base path of the API client. + /// + /// The base path + public String GetBasePath() + { + return this.Configuration.ApiClient.RestClient.BaseUrl.ToString(); + } + + /// + /// Sets the base path of the API client. + /// + /// The base path + [Obsolete("SetBasePath is deprecated, please do 'Configuration.ApiClient = new ApiClient(\"http://new-path\")' instead.")] + public void SetBasePath(String basePath) + { + // do nothing + } + + /// + /// Gets or sets the configuration object + /// + /// An instance of the Configuration + public Configuration Configuration {get; set;} + + /// + /// Provides a factory method hook for the creation of exceptions. + /// + public ExceptionFactory ExceptionFactory + { + get + { + if (this._exceptionFactory != null && this._exceptionFactory.GetInvocationList().Length > 1) + { + throw new InvalidOperationException("Multicast delegate for ExceptionFactory is unsupported."); + } + return this._exceptionFactory; + } + set { this._exceptionFactory = value; } + } + + /// + /// Gets the default header. + /// + /// Dictionary of HTTP header + [Obsolete("DefaultHeader is deprecated, please use Configuration.DefaultHeader instead.")] + public IDictionary DefaultHeader() + { + return new ReadOnlyDictionary(this.Configuration.DefaultHeader); + } + + /// + /// Add default header. + /// + /// Header field name. + /// Header field value. + /// + [Obsolete("AddDefaultHeader is deprecated, please use Configuration.AddDefaultHeader instead.")] + public void AddDefaultHeader(string key, string value) + { + this.Configuration.AddDefaultHeader(key, value); + } + + /// + /// Clears the state for a controller service + /// + /// Thrown when fails to make API call + /// The controller service id. + /// ComponentStateEntity + public ComponentStateEntity ClearState (string id) + { + ApiResponse localVarResponse = this.ClearStateWithHttpInfo(id); + return localVarResponse.Data; + } + + /// + /// Clears the state for a controller service + /// + /// Thrown when fails to make API call + /// The controller service id. + /// ApiResponse of ComponentStateEntity + public ApiResponse< ComponentStateEntity > ClearStateWithHttpInfo (string id) + { + // verify the required parameter 'id' is set + if (id == null) + throw new ApiException(400, "Missing required parameter 'id' when calling ControllerServicesApi->ClearState"); + + var localVarPath = "/controller-services/{id}/state/clear-requests"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "*/*" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter + + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (this.ExceptionFactory != null) + { + Exception exception = this.ExceptionFactory("ClearState", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), + (ComponentStateEntity) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(ComponentStateEntity))); + } + + /// + /// Clears the state for a controller service + /// + /// Thrown when fails to make API call + /// The controller service id. + /// Task of ComponentStateEntity + public async System.Threading.Tasks.Task ClearStateAsync (string id) + { + ApiResponse localVarResponse = await this.ClearStateAsyncWithHttpInfo(id); + return localVarResponse.Data; + + } + + /// + /// Clears the state for a controller service + /// + /// Thrown when fails to make API call + /// The controller service id. + /// Task of ApiResponse (ComponentStateEntity) + public async System.Threading.Tasks.Task> ClearStateAsyncWithHttpInfo (string id) + { + // verify the required parameter 'id' is set + if (id == null) + throw new ApiException(400, "Missing required parameter 'id' when calling ControllerServicesApi->ClearState"); + + var localVarPath = "/controller-services/{id}/state/clear-requests"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "*/*" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter + + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (this.ExceptionFactory != null) + { + Exception exception = this.ExceptionFactory("ClearState", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), + (ComponentStateEntity) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(ComponentStateEntity))); + } + + /// + /// Gets a controller service + /// + /// Thrown when fails to make API call + /// The controller service id. + /// ControllerServiceEntity + public ControllerServiceEntity GetControllerService (string id) + { + ApiResponse localVarResponse = this.GetControllerServiceWithHttpInfo(id); + return localVarResponse.Data; + } + + /// + /// Gets a controller service + /// + /// Thrown when fails to make API call + /// The controller service id. + /// ApiResponse of ControllerServiceEntity + public ApiResponse< ControllerServiceEntity > GetControllerServiceWithHttpInfo (string id) + { + // verify the required parameter 'id' is set + if (id == null) + throw new ApiException(400, "Missing required parameter 'id' when calling ControllerServicesApi->GetControllerService"); + + var localVarPath = "/controller-services/{id}"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "*/*" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter + + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (this.ExceptionFactory != null) + { + Exception exception = this.ExceptionFactory("GetControllerService", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), + (ControllerServiceEntity) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(ControllerServiceEntity))); + } + + /// + /// Gets a controller service + /// + /// Thrown when fails to make API call + /// The controller service id. + /// Task of ControllerServiceEntity + public async System.Threading.Tasks.Task GetControllerServiceAsync (string id) + { + ApiResponse localVarResponse = await this.GetControllerServiceAsyncWithHttpInfo(id); + return localVarResponse.Data; + + } + + /// + /// Gets a controller service + /// + /// Thrown when fails to make API call + /// The controller service id. + /// Task of ApiResponse (ControllerServiceEntity) + public async System.Threading.Tasks.Task> GetControllerServiceAsyncWithHttpInfo (string id) + { + // verify the required parameter 'id' is set + if (id == null) + throw new ApiException(400, "Missing required parameter 'id' when calling ControllerServicesApi->GetControllerService"); + + var localVarPath = "/controller-services/{id}"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "*/*" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter + + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (this.ExceptionFactory != null) + { + Exception exception = this.ExceptionFactory("GetControllerService", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), + (ControllerServiceEntity) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(ControllerServiceEntity))); + } + + /// + /// Gets a controller service + /// + /// Thrown when fails to make API call + /// The controller service id. + /// ControllerServiceReferencingComponentsEntity + public ControllerServiceReferencingComponentsEntity GetControllerServiceReferences (string id) + { + ApiResponse localVarResponse = this.GetControllerServiceReferencesWithHttpInfo(id); + return localVarResponse.Data; + } + + /// + /// Gets a controller service + /// + /// Thrown when fails to make API call + /// The controller service id. + /// ApiResponse of ControllerServiceReferencingComponentsEntity + public ApiResponse< ControllerServiceReferencingComponentsEntity > GetControllerServiceReferencesWithHttpInfo (string id) + { + // verify the required parameter 'id' is set + if (id == null) + throw new ApiException(400, "Missing required parameter 'id' when calling ControllerServicesApi->GetControllerServiceReferences"); + + var localVarPath = "/controller-services/{id}/references"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "*/*" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter + + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (this.ExceptionFactory != null) + { + Exception exception = this.ExceptionFactory("GetControllerServiceReferences", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), + (ControllerServiceReferencingComponentsEntity) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(ControllerServiceReferencingComponentsEntity))); + } + + /// + /// Gets a controller service + /// + /// Thrown when fails to make API call + /// The controller service id. + /// Task of ControllerServiceReferencingComponentsEntity + public async System.Threading.Tasks.Task GetControllerServiceReferencesAsync (string id) + { + ApiResponse localVarResponse = await this.GetControllerServiceReferencesAsyncWithHttpInfo(id); + return localVarResponse.Data; + + } + + /// + /// Gets a controller service + /// + /// Thrown when fails to make API call + /// The controller service id. + /// Task of ApiResponse (ControllerServiceReferencingComponentsEntity) + public async System.Threading.Tasks.Task> GetControllerServiceReferencesAsyncWithHttpInfo (string id) + { + // verify the required parameter 'id' is set + if (id == null) + throw new ApiException(400, "Missing required parameter 'id' when calling ControllerServicesApi->GetControllerServiceReferences"); + + var localVarPath = "/controller-services/{id}/references"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "*/*" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter + + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (this.ExceptionFactory != null) + { + Exception exception = this.ExceptionFactory("GetControllerServiceReferences", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), + (ControllerServiceReferencingComponentsEntity) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(ControllerServiceReferencingComponentsEntity))); + } + + /// + /// Gets a controller service property descriptor + /// + /// Thrown when fails to make API call + /// The controller service id. + /// The property name to return the descriptor for. + /// PropertyDescriptorEntity + public PropertyDescriptorEntity GetPropertyDescriptor (string id, string propertyName) + { + ApiResponse localVarResponse = this.GetPropertyDescriptorWithHttpInfo(id, propertyName); + return localVarResponse.Data; + } + + /// + /// Gets a controller service property descriptor + /// + /// Thrown when fails to make API call + /// The controller service id. + /// The property name to return the descriptor for. + /// ApiResponse of PropertyDescriptorEntity + public ApiResponse< PropertyDescriptorEntity > GetPropertyDescriptorWithHttpInfo (string id, string propertyName) + { + // verify the required parameter 'id' is set + if (id == null) + throw new ApiException(400, "Missing required parameter 'id' when calling ControllerServicesApi->GetPropertyDescriptor"); + // verify the required parameter 'propertyName' is set + if (propertyName == null) + throw new ApiException(400, "Missing required parameter 'propertyName' when calling ControllerServicesApi->GetPropertyDescriptor"); + + var localVarPath = "/controller-services/{id}/descriptors"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "*/*" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter + if (propertyName != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "propertyName", propertyName)); // query parameter + + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (this.ExceptionFactory != null) + { + Exception exception = this.ExceptionFactory("GetPropertyDescriptor", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), + (PropertyDescriptorEntity) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(PropertyDescriptorEntity))); + } + + /// + /// Gets a controller service property descriptor + /// + /// Thrown when fails to make API call + /// The controller service id. + /// The property name to return the descriptor for. + /// Task of PropertyDescriptorEntity + public async System.Threading.Tasks.Task GetPropertyDescriptorAsync (string id, string propertyName) + { + ApiResponse localVarResponse = await this.GetPropertyDescriptorAsyncWithHttpInfo(id, propertyName); + return localVarResponse.Data; + + } + + /// + /// Gets a controller service property descriptor + /// + /// Thrown when fails to make API call + /// The controller service id. + /// The property name to return the descriptor for. + /// Task of ApiResponse (PropertyDescriptorEntity) + public async System.Threading.Tasks.Task> GetPropertyDescriptorAsyncWithHttpInfo (string id, string propertyName) + { + // verify the required parameter 'id' is set + if (id == null) + throw new ApiException(400, "Missing required parameter 'id' when calling ControllerServicesApi->GetPropertyDescriptor"); + // verify the required parameter 'propertyName' is set + if (propertyName == null) + throw new ApiException(400, "Missing required parameter 'propertyName' when calling ControllerServicesApi->GetPropertyDescriptor"); + + var localVarPath = "/controller-services/{id}/descriptors"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "*/*" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter + if (propertyName != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "propertyName", propertyName)); // query parameter + + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (this.ExceptionFactory != null) + { + Exception exception = this.ExceptionFactory("GetPropertyDescriptor", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), + (PropertyDescriptorEntity) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(PropertyDescriptorEntity))); + } + + /// + /// Gets the state for a controller service + /// + /// Thrown when fails to make API call + /// The controller service id. + /// ComponentStateEntity + public ComponentStateEntity GetState (string id) + { + ApiResponse localVarResponse = this.GetStateWithHttpInfo(id); + return localVarResponse.Data; + } + + /// + /// Gets the state for a controller service + /// + /// Thrown when fails to make API call + /// The controller service id. + /// ApiResponse of ComponentStateEntity + public ApiResponse< ComponentStateEntity > GetStateWithHttpInfo (string id) + { + // verify the required parameter 'id' is set + if (id == null) + throw new ApiException(400, "Missing required parameter 'id' when calling ControllerServicesApi->GetState"); + + var localVarPath = "/controller-services/{id}/state"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "*/*" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter + + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (this.ExceptionFactory != null) + { + Exception exception = this.ExceptionFactory("GetState", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), + (ComponentStateEntity) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(ComponentStateEntity))); + } + + /// + /// Gets the state for a controller service + /// + /// Thrown when fails to make API call + /// The controller service id. + /// Task of ComponentStateEntity + public async System.Threading.Tasks.Task GetStateAsync (string id) + { + ApiResponse localVarResponse = await this.GetStateAsyncWithHttpInfo(id); + return localVarResponse.Data; + + } + + /// + /// Gets the state for a controller service + /// + /// Thrown when fails to make API call + /// The controller service id. + /// Task of ApiResponse (ComponentStateEntity) + public async System.Threading.Tasks.Task> GetStateAsyncWithHttpInfo (string id) + { + // verify the required parameter 'id' is set + if (id == null) + throw new ApiException(400, "Missing required parameter 'id' when calling ControllerServicesApi->GetState"); + + var localVarPath = "/controller-services/{id}/state"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "*/*" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter + + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (this.ExceptionFactory != null) + { + Exception exception = this.ExceptionFactory("GetState", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), + (ComponentStateEntity) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(ComponentStateEntity))); + } + + /// + /// Deletes a controller service + /// + /// Thrown when fails to make API call + /// The controller service id. + /// The revision is used to verify the client is working with the latest version of the flow. (optional) + /// If the client id is not specified, new one will be generated. This value (whether specified or generated) is included in the response. (optional) + /// Acknowledges that this node is disconnected to allow for mutable requests to proceed. (optional, default to false) + /// ControllerServiceEntity + public ControllerServiceEntity RemoveControllerService (string id, string version = null, string clientId = null, bool? disconnectedNodeAcknowledged = null) + { + ApiResponse localVarResponse = this.RemoveControllerServiceWithHttpInfo(id, version, clientId, disconnectedNodeAcknowledged); + return localVarResponse.Data; + } + + /// + /// Deletes a controller service + /// + /// Thrown when fails to make API call + /// The controller service id. + /// The revision is used to verify the client is working with the latest version of the flow. (optional) + /// If the client id is not specified, new one will be generated. This value (whether specified or generated) is included in the response. (optional) + /// Acknowledges that this node is disconnected to allow for mutable requests to proceed. (optional, default to false) + /// ApiResponse of ControllerServiceEntity + public ApiResponse< ControllerServiceEntity > RemoveControllerServiceWithHttpInfo (string id, string version = null, string clientId = null, bool? disconnectedNodeAcknowledged = null) + { + // verify the required parameter 'id' is set + if (id == null) + throw new ApiException(400, "Missing required parameter 'id' when calling ControllerServicesApi->RemoveControllerService"); + + var localVarPath = "/controller-services/{id}"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "*/*" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter + if (version != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "version", version)); // query parameter + if (clientId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "clientId", clientId)); // query parameter + if (disconnectedNodeAcknowledged != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "disconnectedNodeAcknowledged", disconnectedNodeAcknowledged)); // query parameter + + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.DELETE, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (this.ExceptionFactory != null) + { + Exception exception = this.ExceptionFactory("RemoveControllerService", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), + (ControllerServiceEntity) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(ControllerServiceEntity))); + } + + /// + /// Deletes a controller service + /// + /// Thrown when fails to make API call + /// The controller service id. + /// The revision is used to verify the client is working with the latest version of the flow. (optional) + /// If the client id is not specified, new one will be generated. This value (whether specified or generated) is included in the response. (optional) + /// Acknowledges that this node is disconnected to allow for mutable requests to proceed. (optional, default to false) + /// Task of ControllerServiceEntity + public async System.Threading.Tasks.Task RemoveControllerServiceAsync (string id, string version = null, string clientId = null, bool? disconnectedNodeAcknowledged = null) + { + ApiResponse localVarResponse = await this.RemoveControllerServiceAsyncWithHttpInfo(id, version, clientId, disconnectedNodeAcknowledged); + return localVarResponse.Data; + + } + + /// + /// Deletes a controller service + /// + /// Thrown when fails to make API call + /// The controller service id. + /// The revision is used to verify the client is working with the latest version of the flow. (optional) + /// If the client id is not specified, new one will be generated. This value (whether specified or generated) is included in the response. (optional) + /// Acknowledges that this node is disconnected to allow for mutable requests to proceed. (optional, default to false) + /// Task of ApiResponse (ControllerServiceEntity) + public async System.Threading.Tasks.Task> RemoveControllerServiceAsyncWithHttpInfo (string id, string version = null, string clientId = null, bool? disconnectedNodeAcknowledged = null) + { + // verify the required parameter 'id' is set + if (id == null) + throw new ApiException(400, "Missing required parameter 'id' when calling ControllerServicesApi->RemoveControllerService"); + + var localVarPath = "/controller-services/{id}"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "*/*" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter + if (version != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "version", version)); // query parameter + if (clientId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "clientId", clientId)); // query parameter + if (disconnectedNodeAcknowledged != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "disconnectedNodeAcknowledged", disconnectedNodeAcknowledged)); // query parameter + + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.DELETE, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (this.ExceptionFactory != null) + { + Exception exception = this.ExceptionFactory("RemoveControllerService", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), + (ControllerServiceEntity) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(ControllerServiceEntity))); + } + + /// + /// Updates a controller service + /// + /// Thrown when fails to make API call + /// The controller service id. + /// The controller service configuration details. + /// ControllerServiceEntity + public ControllerServiceEntity UpdateControllerService (string id, ControllerServiceEntity body) + { + ApiResponse localVarResponse = this.UpdateControllerServiceWithHttpInfo(id, body); + return localVarResponse.Data; + } + + /// + /// Updates a controller service + /// + /// Thrown when fails to make API call + /// The controller service id. + /// The controller service configuration details. + /// ApiResponse of ControllerServiceEntity + public ApiResponse< ControllerServiceEntity > UpdateControllerServiceWithHttpInfo (string id, ControllerServiceEntity body) + { + // verify the required parameter 'id' is set + if (id == null) + throw new ApiException(400, "Missing required parameter 'id' when calling ControllerServicesApi->UpdateControllerService"); + // verify the required parameter 'body' is set + if (body == null) + throw new ApiException(400, "Missing required parameter 'body' when calling ControllerServicesApi->UpdateControllerService"); + + var localVarPath = "/controller-services/{id}"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "application/json" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter + if (body != null && body.GetType() != typeof(byte[])) + { + localVarPostBody = this.Configuration.ApiClient.Serialize(body); // http body (model) parameter + } + else + { + localVarPostBody = body; // byte array + } + + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.PUT, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (this.ExceptionFactory != null) + { + Exception exception = this.ExceptionFactory("UpdateControllerService", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), + (ControllerServiceEntity) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(ControllerServiceEntity))); + } + + /// + /// Updates a controller service + /// + /// Thrown when fails to make API call + /// The controller service id. + /// The controller service configuration details. + /// Task of ControllerServiceEntity + public async System.Threading.Tasks.Task UpdateControllerServiceAsync (string id, ControllerServiceEntity body) + { + ApiResponse localVarResponse = await this.UpdateControllerServiceAsyncWithHttpInfo(id, body); + return localVarResponse.Data; + + } + + /// + /// Updates a controller service + /// + /// Thrown when fails to make API call + /// The controller service id. + /// The controller service configuration details. + /// Task of ApiResponse (ControllerServiceEntity) + public async System.Threading.Tasks.Task> UpdateControllerServiceAsyncWithHttpInfo (string id, ControllerServiceEntity body) + { + // verify the required parameter 'id' is set + if (id == null) + throw new ApiException(400, "Missing required parameter 'id' when calling ControllerServicesApi->UpdateControllerService"); + // verify the required parameter 'body' is set + if (body == null) + throw new ApiException(400, "Missing required parameter 'body' when calling ControllerServicesApi->UpdateControllerService"); + + var localVarPath = "/controller-services/{id}"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "application/json" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter + if (body != null && body.GetType() != typeof(byte[])) + { + localVarPostBody = this.Configuration.ApiClient.Serialize(body); // http body (model) parameter + } + else + { + localVarPostBody = body; // byte array + } + + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.PUT, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (this.ExceptionFactory != null) + { + Exception exception = this.ExceptionFactory("UpdateControllerService", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), + (ControllerServiceEntity) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(ControllerServiceEntity))); + } + + /// + /// Updates a controller services references + /// + /// Thrown when fails to make API call + /// The controller service id. + /// The controller service request update request. + /// ControllerServiceReferencingComponentsEntity + public ControllerServiceReferencingComponentsEntity UpdateControllerServiceReferences (string id, UpdateControllerServiceReferenceRequestEntity body) + { + ApiResponse localVarResponse = this.UpdateControllerServiceReferencesWithHttpInfo(id, body); + return localVarResponse.Data; + } + + /// + /// Updates a controller services references + /// + /// Thrown when fails to make API call + /// The controller service id. + /// The controller service request update request. + /// ApiResponse of ControllerServiceReferencingComponentsEntity + public ApiResponse< ControllerServiceReferencingComponentsEntity > UpdateControllerServiceReferencesWithHttpInfo (string id, UpdateControllerServiceReferenceRequestEntity body) + { + // verify the required parameter 'id' is set + if (id == null) + throw new ApiException(400, "Missing required parameter 'id' when calling ControllerServicesApi->UpdateControllerServiceReferences"); + // verify the required parameter 'body' is set + if (body == null) + throw new ApiException(400, "Missing required parameter 'body' when calling ControllerServicesApi->UpdateControllerServiceReferences"); + + var localVarPath = "/controller-services/{id}/references"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "application/json" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter + if (body != null && body.GetType() != typeof(byte[])) + { + localVarPostBody = this.Configuration.ApiClient.Serialize(body); // http body (model) parameter + } + else + { + localVarPostBody = body; // byte array + } + + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.PUT, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (this.ExceptionFactory != null) + { + Exception exception = this.ExceptionFactory("UpdateControllerServiceReferences", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), + (ControllerServiceReferencingComponentsEntity) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(ControllerServiceReferencingComponentsEntity))); + } + + /// + /// Updates a controller services references + /// + /// Thrown when fails to make API call + /// The controller service id. + /// The controller service request update request. + /// Task of ControllerServiceReferencingComponentsEntity + public async System.Threading.Tasks.Task UpdateControllerServiceReferencesAsync (string id, UpdateControllerServiceReferenceRequestEntity body) + { + ApiResponse localVarResponse = await this.UpdateControllerServiceReferencesAsyncWithHttpInfo(id, body); + return localVarResponse.Data; + + } + + /// + /// Updates a controller services references + /// + /// Thrown when fails to make API call + /// The controller service id. + /// The controller service request update request. + /// Task of ApiResponse (ControllerServiceReferencingComponentsEntity) + public async System.Threading.Tasks.Task> UpdateControllerServiceReferencesAsyncWithHttpInfo (string id, UpdateControllerServiceReferenceRequestEntity body) + { + // verify the required parameter 'id' is set + if (id == null) + throw new ApiException(400, "Missing required parameter 'id' when calling ControllerServicesApi->UpdateControllerServiceReferences"); + // verify the required parameter 'body' is set + if (body == null) + throw new ApiException(400, "Missing required parameter 'body' when calling ControllerServicesApi->UpdateControllerServiceReferences"); + + var localVarPath = "/controller-services/{id}/references"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "application/json" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter + if (body != null && body.GetType() != typeof(byte[])) + { + localVarPostBody = this.Configuration.ApiClient.Serialize(body); // http body (model) parameter + } + else + { + localVarPostBody = body; // byte array + } + + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.PUT, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (this.ExceptionFactory != null) + { + Exception exception = this.ExceptionFactory("UpdateControllerServiceReferences", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), + (ControllerServiceReferencingComponentsEntity) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(ControllerServiceReferencingComponentsEntity))); + } + + /// + /// Updates run status of a controller service + /// + /// Thrown when fails to make API call + /// The controller service id. + /// The controller service run status. + /// ControllerServiceEntity + public ControllerServiceEntity UpdateRunStatus (string id, ControllerServiceRunStatusEntity body) + { + ApiResponse localVarResponse = this.UpdateRunStatusWithHttpInfo(id, body); + return localVarResponse.Data; + } + + /// + /// Updates run status of a controller service + /// + /// Thrown when fails to make API call + /// The controller service id. + /// The controller service run status. + /// ApiResponse of ControllerServiceEntity + public ApiResponse< ControllerServiceEntity > UpdateRunStatusWithHttpInfo (string id, ControllerServiceRunStatusEntity body) + { + // verify the required parameter 'id' is set + if (id == null) + throw new ApiException(400, "Missing required parameter 'id' when calling ControllerServicesApi->UpdateRunStatus"); + // verify the required parameter 'body' is set + if (body == null) + throw new ApiException(400, "Missing required parameter 'body' when calling ControllerServicesApi->UpdateRunStatus"); + + var localVarPath = "/controller-services/{id}/run-status"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "application/json" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter + if (body != null && body.GetType() != typeof(byte[])) + { + localVarPostBody = this.Configuration.ApiClient.Serialize(body); // http body (model) parameter + } + else + { + localVarPostBody = body; // byte array + } + + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.PUT, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (this.ExceptionFactory != null) + { + Exception exception = this.ExceptionFactory("UpdateRunStatus", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), + (ControllerServiceEntity) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(ControllerServiceEntity))); + } + + /// + /// Updates run status of a controller service + /// + /// Thrown when fails to make API call + /// The controller service id. + /// The controller service run status. + /// Task of ControllerServiceEntity + public async System.Threading.Tasks.Task UpdateRunStatusAsync (string id, ControllerServiceRunStatusEntity body) + { + ApiResponse localVarResponse = await this.UpdateRunStatusAsyncWithHttpInfo(id, body); + return localVarResponse.Data; + + } + + /// + /// Updates run status of a controller service + /// + /// Thrown when fails to make API call + /// The controller service id. + /// The controller service run status. + /// Task of ApiResponse (ControllerServiceEntity) + public async System.Threading.Tasks.Task> UpdateRunStatusAsyncWithHttpInfo (string id, ControllerServiceRunStatusEntity body) + { + // verify the required parameter 'id' is set + if (id == null) + throw new ApiException(400, "Missing required parameter 'id' when calling ControllerServicesApi->UpdateRunStatus"); + // verify the required parameter 'body' is set + if (body == null) + throw new ApiException(400, "Missing required parameter 'body' when calling ControllerServicesApi->UpdateRunStatus"); + + var localVarPath = "/controller-services/{id}/run-status"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "application/json" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter + if (body != null && body.GetType() != typeof(byte[])) + { + localVarPostBody = this.Configuration.ApiClient.Serialize(body); // http body (model) parameter + } + else + { + localVarPostBody = body; // byte array + } + + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.PUT, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (this.ExceptionFactory != null) + { + Exception exception = this.ExceptionFactory("UpdateRunStatus", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), + (ControllerServiceEntity) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(ControllerServiceEntity))); + } + + } +} diff --git a/NiFi.Swagger/Api/CountersApi.cs b/NiFi.Swagger/Api/CountersApi.cs new file mode 100644 index 0000000..2ff28c8 --- /dev/null +++ b/NiFi.Swagger/Api/CountersApi.cs @@ -0,0 +1,490 @@ +/* + * NiFi Rest Api + * + * The Rest Api provides programmatic access to command and control a NiFi instance in real time. Start and stop processors, monitor queues, query provenance data, and more. Each endpoint below includes a description, definitions of the expected input and output, potential response codes, and the authorizations required to invoke each service. + * + * OpenAPI spec version: 1.9.1 + * Contact: dev@nifi.apache.org + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +namespace NiFi.Swagger.Api +{ + using System; + using System.Collections.Generic; + using System.Collections.ObjectModel; + using System.Linq; + + using NiFi.Swagger.Client; + using NiFi.Swagger.Model; + + using RestSharp; + + /// + /// Represents a collection of functions to interact with the API endpoints + /// + public interface ICountersApi : IApiAccessor + { + #region Synchronous Operations + /// + /// Gets the current counters for this NiFi + /// + /// + /// Note: This endpoint is subject to change as NiFi and it's REST API evolve. + /// + /// Thrown when fails to make API call + /// Whether or not to include the breakdown per node. Optional, defaults to false (optional, default to false) + /// The id of the node where to get the status. (optional) + /// CountersEntity + CountersEntity GetCounters (bool? nodewise = null, string clusterNodeId = null); + + /// + /// Gets the current counters for this NiFi + /// + /// + /// Note: This endpoint is subject to change as NiFi and it's REST API evolve. + /// + /// Thrown when fails to make API call + /// Whether or not to include the breakdown per node. Optional, defaults to false (optional, default to false) + /// The id of the node where to get the status. (optional) + /// ApiResponse of CountersEntity + ApiResponse GetCountersWithHttpInfo (bool? nodewise = null, string clusterNodeId = null); + /// + /// Updates the specified counter. This will reset the counter value to 0 + /// + /// + /// Note: This endpoint is subject to change as NiFi and it's REST API evolve. + /// + /// Thrown when fails to make API call + /// The id of the counter. + /// CounterEntity + CounterEntity UpdateCounter (string id); + + /// + /// Updates the specified counter. This will reset the counter value to 0 + /// + /// + /// Note: This endpoint is subject to change as NiFi and it's REST API evolve. + /// + /// Thrown when fails to make API call + /// The id of the counter. + /// ApiResponse of CounterEntity + ApiResponse UpdateCounterWithHttpInfo (string id); + #endregion Synchronous Operations + #region Asynchronous Operations + /// + /// Gets the current counters for this NiFi + /// + /// + /// Note: This endpoint is subject to change as NiFi and it's REST API evolve. + /// + /// Thrown when fails to make API call + /// Whether or not to include the breakdown per node. Optional, defaults to false (optional, default to false) + /// The id of the node where to get the status. (optional) + /// Task of CountersEntity + System.Threading.Tasks.Task GetCountersAsync (bool? nodewise = null, string clusterNodeId = null); + + /// + /// Gets the current counters for this NiFi + /// + /// + /// Note: This endpoint is subject to change as NiFi and it's REST API evolve. + /// + /// Thrown when fails to make API call + /// Whether or not to include the breakdown per node. Optional, defaults to false (optional, default to false) + /// The id of the node where to get the status. (optional) + /// Task of ApiResponse (CountersEntity) + System.Threading.Tasks.Task> GetCountersAsyncWithHttpInfo (bool? nodewise = null, string clusterNodeId = null); + /// + /// Updates the specified counter. This will reset the counter value to 0 + /// + /// + /// Note: This endpoint is subject to change as NiFi and it's REST API evolve. + /// + /// Thrown when fails to make API call + /// The id of the counter. + /// Task of CounterEntity + System.Threading.Tasks.Task UpdateCounterAsync (string id); + + /// + /// Updates the specified counter. This will reset the counter value to 0 + /// + /// + /// Note: This endpoint is subject to change as NiFi and it's REST API evolve. + /// + /// Thrown when fails to make API call + /// The id of the counter. + /// Task of ApiResponse (CounterEntity) + System.Threading.Tasks.Task> UpdateCounterAsyncWithHttpInfo (string id); + #endregion Asynchronous Operations + } + + /// + /// Represents a collection of functions to interact with the API endpoints + /// + public partial class CountersApi : ICountersApi + { + private ExceptionFactory _exceptionFactory = (name, response) => null; + + /// + /// Initializes a new instance of the class. + /// + /// + public CountersApi(String basePath) + { + this.Configuration = new Configuration { BasePath = basePath }; + + this.ExceptionFactory = Configuration.DefaultExceptionFactory; + } + + /// + /// Initializes a new instance of the class + /// using Configuration object + /// + /// An instance of Configuration + /// + public CountersApi(Configuration configuration = null) + { + if (configuration == null) // use the default one in Configuration + this.Configuration = Configuration.Default; + else + this.Configuration = configuration; + + this.ExceptionFactory = Configuration.DefaultExceptionFactory; + } + + /// + /// Gets the base path of the API client. + /// + /// The base path + public String GetBasePath() + { + return this.Configuration.ApiClient.RestClient.BaseUrl.ToString(); + } + + /// + /// Sets the base path of the API client. + /// + /// The base path + [Obsolete("SetBasePath is deprecated, please do 'Configuration.ApiClient = new ApiClient(\"http://new-path\")' instead.")] + public void SetBasePath(String basePath) + { + // do nothing + } + + /// + /// Gets or sets the configuration object + /// + /// An instance of the Configuration + public Configuration Configuration {get; set;} + + /// + /// Provides a factory method hook for the creation of exceptions. + /// + public ExceptionFactory ExceptionFactory + { + get + { + if (this._exceptionFactory != null && this._exceptionFactory.GetInvocationList().Length > 1) + { + throw new InvalidOperationException("Multicast delegate for ExceptionFactory is unsupported."); + } + return this._exceptionFactory; + } + set { this._exceptionFactory = value; } + } + + /// + /// Gets the default header. + /// + /// Dictionary of HTTP header + [Obsolete("DefaultHeader is deprecated, please use Configuration.DefaultHeader instead.")] + public IDictionary DefaultHeader() + { + return new ReadOnlyDictionary(this.Configuration.DefaultHeader); + } + + /// + /// Add default header. + /// + /// Header field name. + /// Header field value. + /// + [Obsolete("AddDefaultHeader is deprecated, please use Configuration.AddDefaultHeader instead.")] + public void AddDefaultHeader(string key, string value) + { + this.Configuration.AddDefaultHeader(key, value); + } + + /// + /// Gets the current counters for this NiFi Note: This endpoint is subject to change as NiFi and it's REST API evolve. + /// + /// Thrown when fails to make API call + /// Whether or not to include the breakdown per node. Optional, defaults to false (optional, default to false) + /// The id of the node where to get the status. (optional) + /// CountersEntity + public CountersEntity GetCounters (bool? nodewise = null, string clusterNodeId = null) + { + ApiResponse localVarResponse = this.GetCountersWithHttpInfo(nodewise, clusterNodeId); + return localVarResponse.Data; + } + + /// + /// Gets the current counters for this NiFi Note: This endpoint is subject to change as NiFi and it's REST API evolve. + /// + /// Thrown when fails to make API call + /// Whether or not to include the breakdown per node. Optional, defaults to false (optional, default to false) + /// The id of the node where to get the status. (optional) + /// ApiResponse of CountersEntity + public ApiResponse< CountersEntity > GetCountersWithHttpInfo (bool? nodewise = null, string clusterNodeId = null) + { + + var localVarPath = "/counters"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "*/*" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (nodewise != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "nodewise", nodewise)); // query parameter + if (clusterNodeId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "clusterNodeId", clusterNodeId)); // query parameter + + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (this.ExceptionFactory != null) + { + Exception exception = this.ExceptionFactory("GetCounters", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), + (CountersEntity) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(CountersEntity))); + } + + /// + /// Gets the current counters for this NiFi Note: This endpoint is subject to change as NiFi and it's REST API evolve. + /// + /// Thrown when fails to make API call + /// Whether or not to include the breakdown per node. Optional, defaults to false (optional, default to false) + /// The id of the node where to get the status. (optional) + /// Task of CountersEntity + public async System.Threading.Tasks.Task GetCountersAsync (bool? nodewise = null, string clusterNodeId = null) + { + ApiResponse localVarResponse = await this.GetCountersAsyncWithHttpInfo(nodewise, clusterNodeId); + return localVarResponse.Data; + + } + + /// + /// Gets the current counters for this NiFi Note: This endpoint is subject to change as NiFi and it's REST API evolve. + /// + /// Thrown when fails to make API call + /// Whether or not to include the breakdown per node. Optional, defaults to false (optional, default to false) + /// The id of the node where to get the status. (optional) + /// Task of ApiResponse (CountersEntity) + public async System.Threading.Tasks.Task> GetCountersAsyncWithHttpInfo (bool? nodewise = null, string clusterNodeId = null) + { + + var localVarPath = "/counters"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "*/*" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (nodewise != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "nodewise", nodewise)); // query parameter + if (clusterNodeId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "clusterNodeId", clusterNodeId)); // query parameter + + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (this.ExceptionFactory != null) + { + Exception exception = this.ExceptionFactory("GetCounters", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), + (CountersEntity) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(CountersEntity))); + } + + /// + /// Updates the specified counter. This will reset the counter value to 0 Note: This endpoint is subject to change as NiFi and it's REST API evolve. + /// + /// Thrown when fails to make API call + /// The id of the counter. + /// CounterEntity + public CounterEntity UpdateCounter (string id) + { + ApiResponse localVarResponse = this.UpdateCounterWithHttpInfo(id); + return localVarResponse.Data; + } + + /// + /// Updates the specified counter. This will reset the counter value to 0 Note: This endpoint is subject to change as NiFi and it's REST API evolve. + /// + /// Thrown when fails to make API call + /// The id of the counter. + /// ApiResponse of CounterEntity + public ApiResponse< CounterEntity > UpdateCounterWithHttpInfo (string id) + { + // verify the required parameter 'id' is set + if (id == null) + throw new ApiException(400, "Missing required parameter 'id' when calling CountersApi->UpdateCounter"); + + var localVarPath = "/counters/{id}"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "*/*" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter + + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.PUT, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (this.ExceptionFactory != null) + { + Exception exception = this.ExceptionFactory("UpdateCounter", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), + (CounterEntity) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(CounterEntity))); + } + + /// + /// Updates the specified counter. This will reset the counter value to 0 Note: This endpoint is subject to change as NiFi and it's REST API evolve. + /// + /// Thrown when fails to make API call + /// The id of the counter. + /// Task of CounterEntity + public async System.Threading.Tasks.Task UpdateCounterAsync (string id) + { + ApiResponse localVarResponse = await this.UpdateCounterAsyncWithHttpInfo(id); + return localVarResponse.Data; + + } + + /// + /// Updates the specified counter. This will reset the counter value to 0 Note: This endpoint is subject to change as NiFi and it's REST API evolve. + /// + /// Thrown when fails to make API call + /// The id of the counter. + /// Task of ApiResponse (CounterEntity) + public async System.Threading.Tasks.Task> UpdateCounterAsyncWithHttpInfo (string id) + { + // verify the required parameter 'id' is set + if (id == null) + throw new ApiException(400, "Missing required parameter 'id' when calling CountersApi->UpdateCounter"); + + var localVarPath = "/counters/{id}"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "*/*" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter + + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.PUT, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (this.ExceptionFactory != null) + { + Exception exception = this.ExceptionFactory("UpdateCounter", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), + (CounterEntity) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(CounterEntity))); + } + + } +} diff --git a/NiFi.Swagger/Api/DataTransferApi.cs b/NiFi.Swagger/Api/DataTransferApi.cs new file mode 100644 index 0000000..228b577 --- /dev/null +++ b/NiFi.Swagger/Api/DataTransferApi.cs @@ -0,0 +1,1529 @@ +/* + * NiFi Rest Api + * + * The Rest Api provides programmatic access to command and control a NiFi instance in real time. Start and stop processors, monitor queues, query provenance data, and more. Each endpoint below includes a description, definitions of the expected input and output, potential response codes, and the authorizations required to invoke each service. + * + * OpenAPI spec version: 1.9.1 + * Contact: dev@nifi.apache.org + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +namespace NiFi.Swagger.Api +{ + using System; + using System.Collections.Generic; + using System.Collections.ObjectModel; + using System.Linq; + + using NiFi.Swagger.Client; + using NiFi.Swagger.Model; + + using RestSharp; + + /// + /// Represents a collection of functions to interact with the API endpoints + /// + public interface IDataTransferApi : IApiAccessor + { + #region Synchronous Operations + /// + /// Commit or cancel the specified transaction + /// + /// + /// + /// + /// Thrown when fails to make API call + /// The response code. Available values are BAD_CHECKSUM(19), CONFIRM_TRANSACTION(12) or CANCEL_TRANSACTION(15). + /// The input port id. + /// The transaction id. + /// TransactionResultEntity + TransactionResultEntity CommitInputPortTransaction (int? responseCode, string portId, string transactionId); + + /// + /// Commit or cancel the specified transaction + /// + /// + /// + /// + /// Thrown when fails to make API call + /// The response code. Available values are BAD_CHECKSUM(19), CONFIRM_TRANSACTION(12) or CANCEL_TRANSACTION(15). + /// The input port id. + /// The transaction id. + /// ApiResponse of TransactionResultEntity + ApiResponse CommitInputPortTransactionWithHttpInfo (int? responseCode, string portId, string transactionId); + /// + /// Commit or cancel the specified transaction + /// + /// + /// + /// + /// Thrown when fails to make API call + /// The response code. Available values are CONFIRM_TRANSACTION(12) or CANCEL_TRANSACTION(15). + /// A checksum calculated at client side using CRC32 to check flow file content integrity. It must match with the value calculated at server side. + /// The output port id. + /// The transaction id. + /// TransactionResultEntity + TransactionResultEntity CommitOutputPortTransaction (int? responseCode, string checksum, string portId, string transactionId); + + /// + /// Commit or cancel the specified transaction + /// + /// + /// + /// + /// Thrown when fails to make API call + /// The response code. Available values are CONFIRM_TRANSACTION(12) or CANCEL_TRANSACTION(15). + /// A checksum calculated at client side using CRC32 to check flow file content integrity. It must match with the value calculated at server side. + /// The output port id. + /// The transaction id. + /// ApiResponse of TransactionResultEntity + ApiResponse CommitOutputPortTransactionWithHttpInfo (int? responseCode, string checksum, string portId, string transactionId); + /// + /// Create a transaction to the specified output port or input port + /// + /// + /// + /// + /// Thrown when fails to make API call + /// The port type. + /// + /// TransactionResultEntity + TransactionResultEntity CreatePortTransaction (string portType, string portId); + + /// + /// Create a transaction to the specified output port or input port + /// + /// + /// + /// + /// Thrown when fails to make API call + /// The port type. + /// + /// ApiResponse of TransactionResultEntity + ApiResponse CreatePortTransactionWithHttpInfo (string portType, string portId); + /// + /// Extend transaction TTL + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// TransactionResultEntity + TransactionResultEntity ExtendInputPortTransactionTTL (string portId, string transactionId); + + /// + /// Extend transaction TTL + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// ApiResponse of TransactionResultEntity + ApiResponse ExtendInputPortTransactionTTLWithHttpInfo (string portId, string transactionId); + /// + /// Extend transaction TTL + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// TransactionResultEntity + TransactionResultEntity ExtendOutputPortTransactionTTL (string portId, string transactionId); + + /// + /// Extend transaction TTL + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// ApiResponse of TransactionResultEntity + ApiResponse ExtendOutputPortTransactionTTLWithHttpInfo (string portId, string transactionId); + /// + /// Transfer flow files to the input port + /// + /// + /// + /// + /// Thrown when fails to make API call + /// The input port id. + /// + /// string + string ReceiveFlowFiles (string portId, string transactionId); + + /// + /// Transfer flow files to the input port + /// + /// + /// + /// + /// Thrown when fails to make API call + /// The input port id. + /// + /// ApiResponse of string + ApiResponse ReceiveFlowFilesWithHttpInfo (string portId, string transactionId); + /// + /// Transfer flow files from the output port + /// + /// + /// + /// + /// Thrown when fails to make API call + /// The output port id. + /// + /// StreamingOutput + StreamingOutput TransferFlowFiles (string portId, string transactionId); + + /// + /// Transfer flow files from the output port + /// + /// + /// + /// + /// Thrown when fails to make API call + /// The output port id. + /// + /// ApiResponse of StreamingOutput + ApiResponse TransferFlowFilesWithHttpInfo (string portId, string transactionId); + #endregion Synchronous Operations + #region Asynchronous Operations + /// + /// Commit or cancel the specified transaction + /// + /// + /// + /// + /// Thrown when fails to make API call + /// The response code. Available values are BAD_CHECKSUM(19), CONFIRM_TRANSACTION(12) or CANCEL_TRANSACTION(15). + /// The input port id. + /// The transaction id. + /// Task of TransactionResultEntity + System.Threading.Tasks.Task CommitInputPortTransactionAsync (int? responseCode, string portId, string transactionId); + + /// + /// Commit or cancel the specified transaction + /// + /// + /// + /// + /// Thrown when fails to make API call + /// The response code. Available values are BAD_CHECKSUM(19), CONFIRM_TRANSACTION(12) or CANCEL_TRANSACTION(15). + /// The input port id. + /// The transaction id. + /// Task of ApiResponse (TransactionResultEntity) + System.Threading.Tasks.Task> CommitInputPortTransactionAsyncWithHttpInfo (int? responseCode, string portId, string transactionId); + /// + /// Commit or cancel the specified transaction + /// + /// + /// + /// + /// Thrown when fails to make API call + /// The response code. Available values are CONFIRM_TRANSACTION(12) or CANCEL_TRANSACTION(15). + /// A checksum calculated at client side using CRC32 to check flow file content integrity. It must match with the value calculated at server side. + /// The output port id. + /// The transaction id. + /// Task of TransactionResultEntity + System.Threading.Tasks.Task CommitOutputPortTransactionAsync (int? responseCode, string checksum, string portId, string transactionId); + + /// + /// Commit or cancel the specified transaction + /// + /// + /// + /// + /// Thrown when fails to make API call + /// The response code. Available values are CONFIRM_TRANSACTION(12) or CANCEL_TRANSACTION(15). + /// A checksum calculated at client side using CRC32 to check flow file content integrity. It must match with the value calculated at server side. + /// The output port id. + /// The transaction id. + /// Task of ApiResponse (TransactionResultEntity) + System.Threading.Tasks.Task> CommitOutputPortTransactionAsyncWithHttpInfo (int? responseCode, string checksum, string portId, string transactionId); + /// + /// Create a transaction to the specified output port or input port + /// + /// + /// + /// + /// Thrown when fails to make API call + /// The port type. + /// + /// Task of TransactionResultEntity + System.Threading.Tasks.Task CreatePortTransactionAsync (string portType, string portId); + + /// + /// Create a transaction to the specified output port or input port + /// + /// + /// + /// + /// Thrown when fails to make API call + /// The port type. + /// + /// Task of ApiResponse (TransactionResultEntity) + System.Threading.Tasks.Task> CreatePortTransactionAsyncWithHttpInfo (string portType, string portId); + /// + /// Extend transaction TTL + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of TransactionResultEntity + System.Threading.Tasks.Task ExtendInputPortTransactionTTLAsync (string portId, string transactionId); + + /// + /// Extend transaction TTL + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of ApiResponse (TransactionResultEntity) + System.Threading.Tasks.Task> ExtendInputPortTransactionTTLAsyncWithHttpInfo (string portId, string transactionId); + /// + /// Extend transaction TTL + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of TransactionResultEntity + System.Threading.Tasks.Task ExtendOutputPortTransactionTTLAsync (string portId, string transactionId); + + /// + /// Extend transaction TTL + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of ApiResponse (TransactionResultEntity) + System.Threading.Tasks.Task> ExtendOutputPortTransactionTTLAsyncWithHttpInfo (string portId, string transactionId); + /// + /// Transfer flow files to the input port + /// + /// + /// + /// + /// Thrown when fails to make API call + /// The input port id. + /// + /// Task of string + System.Threading.Tasks.Task ReceiveFlowFilesAsync (string portId, string transactionId); + + /// + /// Transfer flow files to the input port + /// + /// + /// + /// + /// Thrown when fails to make API call + /// The input port id. + /// + /// Task of ApiResponse (string) + System.Threading.Tasks.Task> ReceiveFlowFilesAsyncWithHttpInfo (string portId, string transactionId); + /// + /// Transfer flow files from the output port + /// + /// + /// + /// + /// Thrown when fails to make API call + /// The output port id. + /// + /// Task of StreamingOutput + System.Threading.Tasks.Task TransferFlowFilesAsync (string portId, string transactionId); + + /// + /// Transfer flow files from the output port + /// + /// + /// + /// + /// Thrown when fails to make API call + /// The output port id. + /// + /// Task of ApiResponse (StreamingOutput) + System.Threading.Tasks.Task> TransferFlowFilesAsyncWithHttpInfo (string portId, string transactionId); + #endregion Asynchronous Operations + } + + /// + /// Represents a collection of functions to interact with the API endpoints + /// + public partial class DataTransferApi : IDataTransferApi + { + private ExceptionFactory _exceptionFactory = (name, response) => null; + + /// + /// Initializes a new instance of the class. + /// + /// + public DataTransferApi(String basePath) + { + this.Configuration = new Configuration { BasePath = basePath }; + + this.ExceptionFactory = Configuration.DefaultExceptionFactory; + } + + /// + /// Initializes a new instance of the class + /// using Configuration object + /// + /// An instance of Configuration + /// + public DataTransferApi(Configuration configuration = null) + { + if (configuration == null) // use the default one in Configuration + this.Configuration = Configuration.Default; + else + this.Configuration = configuration; + + this.ExceptionFactory = Configuration.DefaultExceptionFactory; + } + + /// + /// Gets the base path of the API client. + /// + /// The base path + public String GetBasePath() + { + return this.Configuration.ApiClient.RestClient.BaseUrl.ToString(); + } + + /// + /// Sets the base path of the API client. + /// + /// The base path + [Obsolete("SetBasePath is deprecated, please do 'Configuration.ApiClient = new ApiClient(\"http://new-path\")' instead.")] + public void SetBasePath(String basePath) + { + // do nothing + } + + /// + /// Gets or sets the configuration object + /// + /// An instance of the Configuration + public Configuration Configuration {get; set;} + + /// + /// Provides a factory method hook for the creation of exceptions. + /// + public ExceptionFactory ExceptionFactory + { + get + { + if (this._exceptionFactory != null && this._exceptionFactory.GetInvocationList().Length > 1) + { + throw new InvalidOperationException("Multicast delegate for ExceptionFactory is unsupported."); + } + return this._exceptionFactory; + } + set { this._exceptionFactory = value; } + } + + /// + /// Gets the default header. + /// + /// Dictionary of HTTP header + [Obsolete("DefaultHeader is deprecated, please use Configuration.DefaultHeader instead.")] + public IDictionary DefaultHeader() + { + return new ReadOnlyDictionary(this.Configuration.DefaultHeader); + } + + /// + /// Add default header. + /// + /// Header field name. + /// Header field value. + /// + [Obsolete("AddDefaultHeader is deprecated, please use Configuration.AddDefaultHeader instead.")] + public void AddDefaultHeader(string key, string value) + { + this.Configuration.AddDefaultHeader(key, value); + } + + /// + /// Commit or cancel the specified transaction + /// + /// Thrown when fails to make API call + /// The response code. Available values are BAD_CHECKSUM(19), CONFIRM_TRANSACTION(12) or CANCEL_TRANSACTION(15). + /// The input port id. + /// The transaction id. + /// TransactionResultEntity + public TransactionResultEntity CommitInputPortTransaction (int? responseCode, string portId, string transactionId) + { + ApiResponse localVarResponse = this.CommitInputPortTransactionWithHttpInfo(responseCode, portId, transactionId); + return localVarResponse.Data; + } + + /// + /// Commit or cancel the specified transaction + /// + /// Thrown when fails to make API call + /// The response code. Available values are BAD_CHECKSUM(19), CONFIRM_TRANSACTION(12) or CANCEL_TRANSACTION(15). + /// The input port id. + /// The transaction id. + /// ApiResponse of TransactionResultEntity + public ApiResponse< TransactionResultEntity > CommitInputPortTransactionWithHttpInfo (int? responseCode, string portId, string transactionId) + { + // verify the required parameter 'responseCode' is set + if (responseCode == null) + throw new ApiException(400, "Missing required parameter 'responseCode' when calling DataTransferApi->CommitInputPortTransaction"); + // verify the required parameter 'portId' is set + if (portId == null) + throw new ApiException(400, "Missing required parameter 'portId' when calling DataTransferApi->CommitInputPortTransaction"); + // verify the required parameter 'transactionId' is set + if (transactionId == null) + throw new ApiException(400, "Missing required parameter 'transactionId' when calling DataTransferApi->CommitInputPortTransaction"); + + var localVarPath = "/data-transfer/input-ports/{portId}/transactions/{transactionId}"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "application/octet-stream" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (portId != null) localVarPathParams.Add("portId", this.Configuration.ApiClient.ParameterToString(portId)); // path parameter + if (transactionId != null) localVarPathParams.Add("transactionId", this.Configuration.ApiClient.ParameterToString(transactionId)); // path parameter + if (responseCode != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "responseCode", responseCode)); // query parameter + + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.DELETE, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (this.ExceptionFactory != null) + { + Exception exception = this.ExceptionFactory("CommitInputPortTransaction", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), + (TransactionResultEntity) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(TransactionResultEntity))); + } + + /// + /// Commit or cancel the specified transaction + /// + /// Thrown when fails to make API call + /// The response code. Available values are BAD_CHECKSUM(19), CONFIRM_TRANSACTION(12) or CANCEL_TRANSACTION(15). + /// The input port id. + /// The transaction id. + /// Task of TransactionResultEntity + public async System.Threading.Tasks.Task CommitInputPortTransactionAsync (int? responseCode, string portId, string transactionId) + { + ApiResponse localVarResponse = await this.CommitInputPortTransactionAsyncWithHttpInfo(responseCode, portId, transactionId); + return localVarResponse.Data; + + } + + /// + /// Commit or cancel the specified transaction + /// + /// Thrown when fails to make API call + /// The response code. Available values are BAD_CHECKSUM(19), CONFIRM_TRANSACTION(12) or CANCEL_TRANSACTION(15). + /// The input port id. + /// The transaction id. + /// Task of ApiResponse (TransactionResultEntity) + public async System.Threading.Tasks.Task> CommitInputPortTransactionAsyncWithHttpInfo (int? responseCode, string portId, string transactionId) + { + // verify the required parameter 'responseCode' is set + if (responseCode == null) + throw new ApiException(400, "Missing required parameter 'responseCode' when calling DataTransferApi->CommitInputPortTransaction"); + // verify the required parameter 'portId' is set + if (portId == null) + throw new ApiException(400, "Missing required parameter 'portId' when calling DataTransferApi->CommitInputPortTransaction"); + // verify the required parameter 'transactionId' is set + if (transactionId == null) + throw new ApiException(400, "Missing required parameter 'transactionId' when calling DataTransferApi->CommitInputPortTransaction"); + + var localVarPath = "/data-transfer/input-ports/{portId}/transactions/{transactionId}"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "application/octet-stream" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (portId != null) localVarPathParams.Add("portId", this.Configuration.ApiClient.ParameterToString(portId)); // path parameter + if (transactionId != null) localVarPathParams.Add("transactionId", this.Configuration.ApiClient.ParameterToString(transactionId)); // path parameter + if (responseCode != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "responseCode", responseCode)); // query parameter + + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.DELETE, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (this.ExceptionFactory != null) + { + Exception exception = this.ExceptionFactory("CommitInputPortTransaction", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), + (TransactionResultEntity) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(TransactionResultEntity))); + } + + /// + /// Commit or cancel the specified transaction + /// + /// Thrown when fails to make API call + /// The response code. Available values are CONFIRM_TRANSACTION(12) or CANCEL_TRANSACTION(15). + /// A checksum calculated at client side using CRC32 to check flow file content integrity. It must match with the value calculated at server side. + /// The output port id. + /// The transaction id. + /// TransactionResultEntity + public TransactionResultEntity CommitOutputPortTransaction (int? responseCode, string checksum, string portId, string transactionId) + { + ApiResponse localVarResponse = this.CommitOutputPortTransactionWithHttpInfo(responseCode, checksum, portId, transactionId); + return localVarResponse.Data; + } + + /// + /// Commit or cancel the specified transaction + /// + /// Thrown when fails to make API call + /// The response code. Available values are CONFIRM_TRANSACTION(12) or CANCEL_TRANSACTION(15). + /// A checksum calculated at client side using CRC32 to check flow file content integrity. It must match with the value calculated at server side. + /// The output port id. + /// The transaction id. + /// ApiResponse of TransactionResultEntity + public ApiResponse< TransactionResultEntity > CommitOutputPortTransactionWithHttpInfo (int? responseCode, string checksum, string portId, string transactionId) + { + // verify the required parameter 'responseCode' is set + if (responseCode == null) + throw new ApiException(400, "Missing required parameter 'responseCode' when calling DataTransferApi->CommitOutputPortTransaction"); + // verify the required parameter 'checksum' is set + if (checksum == null) + throw new ApiException(400, "Missing required parameter 'checksum' when calling DataTransferApi->CommitOutputPortTransaction"); + // verify the required parameter 'portId' is set + if (portId == null) + throw new ApiException(400, "Missing required parameter 'portId' when calling DataTransferApi->CommitOutputPortTransaction"); + // verify the required parameter 'transactionId' is set + if (transactionId == null) + throw new ApiException(400, "Missing required parameter 'transactionId' when calling DataTransferApi->CommitOutputPortTransaction"); + + var localVarPath = "/data-transfer/output-ports/{portId}/transactions/{transactionId}"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "application/octet-stream" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (portId != null) localVarPathParams.Add("portId", this.Configuration.ApiClient.ParameterToString(portId)); // path parameter + if (transactionId != null) localVarPathParams.Add("transactionId", this.Configuration.ApiClient.ParameterToString(transactionId)); // path parameter + if (responseCode != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "responseCode", responseCode)); // query parameter + if (checksum != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "checksum", checksum)); // query parameter + + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.DELETE, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (this.ExceptionFactory != null) + { + Exception exception = this.ExceptionFactory("CommitOutputPortTransaction", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), + (TransactionResultEntity) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(TransactionResultEntity))); + } + + /// + /// Commit or cancel the specified transaction + /// + /// Thrown when fails to make API call + /// The response code. Available values are CONFIRM_TRANSACTION(12) or CANCEL_TRANSACTION(15). + /// A checksum calculated at client side using CRC32 to check flow file content integrity. It must match with the value calculated at server side. + /// The output port id. + /// The transaction id. + /// Task of TransactionResultEntity + public async System.Threading.Tasks.Task CommitOutputPortTransactionAsync (int? responseCode, string checksum, string portId, string transactionId) + { + ApiResponse localVarResponse = await this.CommitOutputPortTransactionAsyncWithHttpInfo(responseCode, checksum, portId, transactionId); + return localVarResponse.Data; + + } + + /// + /// Commit or cancel the specified transaction + /// + /// Thrown when fails to make API call + /// The response code. Available values are CONFIRM_TRANSACTION(12) or CANCEL_TRANSACTION(15). + /// A checksum calculated at client side using CRC32 to check flow file content integrity. It must match with the value calculated at server side. + /// The output port id. + /// The transaction id. + /// Task of ApiResponse (TransactionResultEntity) + public async System.Threading.Tasks.Task> CommitOutputPortTransactionAsyncWithHttpInfo (int? responseCode, string checksum, string portId, string transactionId) + { + // verify the required parameter 'responseCode' is set + if (responseCode == null) + throw new ApiException(400, "Missing required parameter 'responseCode' when calling DataTransferApi->CommitOutputPortTransaction"); + // verify the required parameter 'checksum' is set + if (checksum == null) + throw new ApiException(400, "Missing required parameter 'checksum' when calling DataTransferApi->CommitOutputPortTransaction"); + // verify the required parameter 'portId' is set + if (portId == null) + throw new ApiException(400, "Missing required parameter 'portId' when calling DataTransferApi->CommitOutputPortTransaction"); + // verify the required parameter 'transactionId' is set + if (transactionId == null) + throw new ApiException(400, "Missing required parameter 'transactionId' when calling DataTransferApi->CommitOutputPortTransaction"); + + var localVarPath = "/data-transfer/output-ports/{portId}/transactions/{transactionId}"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "application/octet-stream" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (portId != null) localVarPathParams.Add("portId", this.Configuration.ApiClient.ParameterToString(portId)); // path parameter + if (transactionId != null) localVarPathParams.Add("transactionId", this.Configuration.ApiClient.ParameterToString(transactionId)); // path parameter + if (responseCode != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "responseCode", responseCode)); // query parameter + if (checksum != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "checksum", checksum)); // query parameter + + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.DELETE, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (this.ExceptionFactory != null) + { + Exception exception = this.ExceptionFactory("CommitOutputPortTransaction", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), + (TransactionResultEntity) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(TransactionResultEntity))); + } + + /// + /// Create a transaction to the specified output port or input port + /// + /// Thrown when fails to make API call + /// The port type. + /// + /// TransactionResultEntity + public TransactionResultEntity CreatePortTransaction (string portType, string portId) + { + ApiResponse localVarResponse = this.CreatePortTransactionWithHttpInfo(portType, portId); + return localVarResponse.Data; + } + + /// + /// Create a transaction to the specified output port or input port + /// + /// Thrown when fails to make API call + /// The port type. + /// + /// ApiResponse of TransactionResultEntity + public ApiResponse< TransactionResultEntity > CreatePortTransactionWithHttpInfo (string portType, string portId) + { + // verify the required parameter 'portType' is set + if (portType == null) + throw new ApiException(400, "Missing required parameter 'portType' when calling DataTransferApi->CreatePortTransaction"); + // verify the required parameter 'portId' is set + if (portId == null) + throw new ApiException(400, "Missing required parameter 'portId' when calling DataTransferApi->CreatePortTransaction"); + + var localVarPath = "/data-transfer/{portType}/{portId}/transactions"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (portType != null) localVarPathParams.Add("portType", this.Configuration.ApiClient.ParameterToString(portType)); // path parameter + if (portId != null) localVarPathParams.Add("portId", this.Configuration.ApiClient.ParameterToString(portId)); // path parameter + + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (this.ExceptionFactory != null) + { + Exception exception = this.ExceptionFactory("CreatePortTransaction", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), + (TransactionResultEntity) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(TransactionResultEntity))); + } + + /// + /// Create a transaction to the specified output port or input port + /// + /// Thrown when fails to make API call + /// The port type. + /// + /// Task of TransactionResultEntity + public async System.Threading.Tasks.Task CreatePortTransactionAsync (string portType, string portId) + { + ApiResponse localVarResponse = await this.CreatePortTransactionAsyncWithHttpInfo(portType, portId); + return localVarResponse.Data; + + } + + /// + /// Create a transaction to the specified output port or input port + /// + /// Thrown when fails to make API call + /// The port type. + /// + /// Task of ApiResponse (TransactionResultEntity) + public async System.Threading.Tasks.Task> CreatePortTransactionAsyncWithHttpInfo (string portType, string portId) + { + // verify the required parameter 'portType' is set + if (portType == null) + throw new ApiException(400, "Missing required parameter 'portType' when calling DataTransferApi->CreatePortTransaction"); + // verify the required parameter 'portId' is set + if (portId == null) + throw new ApiException(400, "Missing required parameter 'portId' when calling DataTransferApi->CreatePortTransaction"); + + var localVarPath = "/data-transfer/{portType}/{portId}/transactions"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (portType != null) localVarPathParams.Add("portType", this.Configuration.ApiClient.ParameterToString(portType)); // path parameter + if (portId != null) localVarPathParams.Add("portId", this.Configuration.ApiClient.ParameterToString(portId)); // path parameter + + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (this.ExceptionFactory != null) + { + Exception exception = this.ExceptionFactory("CreatePortTransaction", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), + (TransactionResultEntity) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(TransactionResultEntity))); + } + + /// + /// Extend transaction TTL + /// + /// Thrown when fails to make API call + /// + /// + /// TransactionResultEntity + public TransactionResultEntity ExtendInputPortTransactionTTL (string portId, string transactionId) + { + ApiResponse localVarResponse = this.ExtendInputPortTransactionTTLWithHttpInfo(portId, transactionId); + return localVarResponse.Data; + } + + /// + /// Extend transaction TTL + /// + /// Thrown when fails to make API call + /// + /// + /// ApiResponse of TransactionResultEntity + public ApiResponse< TransactionResultEntity > ExtendInputPortTransactionTTLWithHttpInfo (string portId, string transactionId) + { + // verify the required parameter 'portId' is set + if (portId == null) + throw new ApiException(400, "Missing required parameter 'portId' when calling DataTransferApi->ExtendInputPortTransactionTTL"); + // verify the required parameter 'transactionId' is set + if (transactionId == null) + throw new ApiException(400, "Missing required parameter 'transactionId' when calling DataTransferApi->ExtendInputPortTransactionTTL"); + + var localVarPath = "/data-transfer/input-ports/{portId}/transactions/{transactionId}"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "*/*" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (portId != null) localVarPathParams.Add("portId", this.Configuration.ApiClient.ParameterToString(portId)); // path parameter + if (transactionId != null) localVarPathParams.Add("transactionId", this.Configuration.ApiClient.ParameterToString(transactionId)); // path parameter + + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.PUT, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (this.ExceptionFactory != null) + { + Exception exception = this.ExceptionFactory("ExtendInputPortTransactionTTL", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), + (TransactionResultEntity) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(TransactionResultEntity))); + } + + /// + /// Extend transaction TTL + /// + /// Thrown when fails to make API call + /// + /// + /// Task of TransactionResultEntity + public async System.Threading.Tasks.Task ExtendInputPortTransactionTTLAsync (string portId, string transactionId) + { + ApiResponse localVarResponse = await this.ExtendInputPortTransactionTTLAsyncWithHttpInfo(portId, transactionId); + return localVarResponse.Data; + + } + + /// + /// Extend transaction TTL + /// + /// Thrown when fails to make API call + /// + /// + /// Task of ApiResponse (TransactionResultEntity) + public async System.Threading.Tasks.Task> ExtendInputPortTransactionTTLAsyncWithHttpInfo (string portId, string transactionId) + { + // verify the required parameter 'portId' is set + if (portId == null) + throw new ApiException(400, "Missing required parameter 'portId' when calling DataTransferApi->ExtendInputPortTransactionTTL"); + // verify the required parameter 'transactionId' is set + if (transactionId == null) + throw new ApiException(400, "Missing required parameter 'transactionId' when calling DataTransferApi->ExtendInputPortTransactionTTL"); + + var localVarPath = "/data-transfer/input-ports/{portId}/transactions/{transactionId}"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "*/*" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (portId != null) localVarPathParams.Add("portId", this.Configuration.ApiClient.ParameterToString(portId)); // path parameter + if (transactionId != null) localVarPathParams.Add("transactionId", this.Configuration.ApiClient.ParameterToString(transactionId)); // path parameter + + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.PUT, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (this.ExceptionFactory != null) + { + Exception exception = this.ExceptionFactory("ExtendInputPortTransactionTTL", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), + (TransactionResultEntity) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(TransactionResultEntity))); + } + + /// + /// Extend transaction TTL + /// + /// Thrown when fails to make API call + /// + /// + /// TransactionResultEntity + public TransactionResultEntity ExtendOutputPortTransactionTTL (string portId, string transactionId) + { + ApiResponse localVarResponse = this.ExtendOutputPortTransactionTTLWithHttpInfo(portId, transactionId); + return localVarResponse.Data; + } + + /// + /// Extend transaction TTL + /// + /// Thrown when fails to make API call + /// + /// + /// ApiResponse of TransactionResultEntity + public ApiResponse< TransactionResultEntity > ExtendOutputPortTransactionTTLWithHttpInfo (string portId, string transactionId) + { + // verify the required parameter 'portId' is set + if (portId == null) + throw new ApiException(400, "Missing required parameter 'portId' when calling DataTransferApi->ExtendOutputPortTransactionTTL"); + // verify the required parameter 'transactionId' is set + if (transactionId == null) + throw new ApiException(400, "Missing required parameter 'transactionId' when calling DataTransferApi->ExtendOutputPortTransactionTTL"); + + var localVarPath = "/data-transfer/output-ports/{portId}/transactions/{transactionId}"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "*/*" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (portId != null) localVarPathParams.Add("portId", this.Configuration.ApiClient.ParameterToString(portId)); // path parameter + if (transactionId != null) localVarPathParams.Add("transactionId", this.Configuration.ApiClient.ParameterToString(transactionId)); // path parameter + + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.PUT, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (this.ExceptionFactory != null) + { + Exception exception = this.ExceptionFactory("ExtendOutputPortTransactionTTL", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), + (TransactionResultEntity) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(TransactionResultEntity))); + } + + /// + /// Extend transaction TTL + /// + /// Thrown when fails to make API call + /// + /// + /// Task of TransactionResultEntity + public async System.Threading.Tasks.Task ExtendOutputPortTransactionTTLAsync (string portId, string transactionId) + { + ApiResponse localVarResponse = await this.ExtendOutputPortTransactionTTLAsyncWithHttpInfo(portId, transactionId); + return localVarResponse.Data; + + } + + /// + /// Extend transaction TTL + /// + /// Thrown when fails to make API call + /// + /// + /// Task of ApiResponse (TransactionResultEntity) + public async System.Threading.Tasks.Task> ExtendOutputPortTransactionTTLAsyncWithHttpInfo (string portId, string transactionId) + { + // verify the required parameter 'portId' is set + if (portId == null) + throw new ApiException(400, "Missing required parameter 'portId' when calling DataTransferApi->ExtendOutputPortTransactionTTL"); + // verify the required parameter 'transactionId' is set + if (transactionId == null) + throw new ApiException(400, "Missing required parameter 'transactionId' when calling DataTransferApi->ExtendOutputPortTransactionTTL"); + + var localVarPath = "/data-transfer/output-ports/{portId}/transactions/{transactionId}"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "*/*" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (portId != null) localVarPathParams.Add("portId", this.Configuration.ApiClient.ParameterToString(portId)); // path parameter + if (transactionId != null) localVarPathParams.Add("transactionId", this.Configuration.ApiClient.ParameterToString(transactionId)); // path parameter + + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.PUT, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (this.ExceptionFactory != null) + { + Exception exception = this.ExceptionFactory("ExtendOutputPortTransactionTTL", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), + (TransactionResultEntity) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(TransactionResultEntity))); + } + + /// + /// Transfer flow files to the input port + /// + /// Thrown when fails to make API call + /// The input port id. + /// + /// string + public string ReceiveFlowFiles (string portId, string transactionId) + { + ApiResponse localVarResponse = this.ReceiveFlowFilesWithHttpInfo(portId, transactionId); + return localVarResponse.Data; + } + + /// + /// Transfer flow files to the input port + /// + /// Thrown when fails to make API call + /// The input port id. + /// + /// ApiResponse of string + public ApiResponse< string > ReceiveFlowFilesWithHttpInfo (string portId, string transactionId) + { + // verify the required parameter 'portId' is set + if (portId == null) + throw new ApiException(400, "Missing required parameter 'portId' when calling DataTransferApi->ReceiveFlowFiles"); + // verify the required parameter 'transactionId' is set + if (transactionId == null) + throw new ApiException(400, "Missing required parameter 'transactionId' when calling DataTransferApi->ReceiveFlowFiles"); + + var localVarPath = "/data-transfer/input-ports/{portId}/transactions/{transactionId}/flow-files"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "application/octet-stream" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "text/plain" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (portId != null) localVarPathParams.Add("portId", this.Configuration.ApiClient.ParameterToString(portId)); // path parameter + if (transactionId != null) localVarPathParams.Add("transactionId", this.Configuration.ApiClient.ParameterToString(transactionId)); // path parameter + + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (this.ExceptionFactory != null) + { + Exception exception = this.ExceptionFactory("ReceiveFlowFiles", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), + (string) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(string))); + } + + /// + /// Transfer flow files to the input port + /// + /// Thrown when fails to make API call + /// The input port id. + /// + /// Task of string + public async System.Threading.Tasks.Task ReceiveFlowFilesAsync (string portId, string transactionId) + { + ApiResponse localVarResponse = await this.ReceiveFlowFilesAsyncWithHttpInfo(portId, transactionId); + return localVarResponse.Data; + + } + + /// + /// Transfer flow files to the input port + /// + /// Thrown when fails to make API call + /// The input port id. + /// + /// Task of ApiResponse (string) + public async System.Threading.Tasks.Task> ReceiveFlowFilesAsyncWithHttpInfo (string portId, string transactionId) + { + // verify the required parameter 'portId' is set + if (portId == null) + throw new ApiException(400, "Missing required parameter 'portId' when calling DataTransferApi->ReceiveFlowFiles"); + // verify the required parameter 'transactionId' is set + if (transactionId == null) + throw new ApiException(400, "Missing required parameter 'transactionId' when calling DataTransferApi->ReceiveFlowFiles"); + + var localVarPath = "/data-transfer/input-ports/{portId}/transactions/{transactionId}/flow-files"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "application/octet-stream" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "text/plain" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (portId != null) localVarPathParams.Add("portId", this.Configuration.ApiClient.ParameterToString(portId)); // path parameter + if (transactionId != null) localVarPathParams.Add("transactionId", this.Configuration.ApiClient.ParameterToString(transactionId)); // path parameter + + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (this.ExceptionFactory != null) + { + Exception exception = this.ExceptionFactory("ReceiveFlowFiles", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), + (string) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(string))); + } + + /// + /// Transfer flow files from the output port + /// + /// Thrown when fails to make API call + /// The output port id. + /// + /// StreamingOutput + public StreamingOutput TransferFlowFiles (string portId, string transactionId) + { + ApiResponse localVarResponse = this.TransferFlowFilesWithHttpInfo(portId, transactionId); + return localVarResponse.Data; + } + + /// + /// Transfer flow files from the output port + /// + /// Thrown when fails to make API call + /// The output port id. + /// + /// ApiResponse of StreamingOutput + public ApiResponse< StreamingOutput > TransferFlowFilesWithHttpInfo (string portId, string transactionId) + { + // verify the required parameter 'portId' is set + if (portId == null) + throw new ApiException(400, "Missing required parameter 'portId' when calling DataTransferApi->TransferFlowFiles"); + // verify the required parameter 'transactionId' is set + if (transactionId == null) + throw new ApiException(400, "Missing required parameter 'transactionId' when calling DataTransferApi->TransferFlowFiles"); + + var localVarPath = "/data-transfer/output-ports/{portId}/transactions/{transactionId}/flow-files"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "*/*" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/octet-stream" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (portId != null) localVarPathParams.Add("portId", this.Configuration.ApiClient.ParameterToString(portId)); // path parameter + if (transactionId != null) localVarPathParams.Add("transactionId", this.Configuration.ApiClient.ParameterToString(transactionId)); // path parameter + + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (this.ExceptionFactory != null) + { + Exception exception = this.ExceptionFactory("TransferFlowFiles", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), + (StreamingOutput) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(StreamingOutput))); + } + + /// + /// Transfer flow files from the output port + /// + /// Thrown when fails to make API call + /// The output port id. + /// + /// Task of StreamingOutput + public async System.Threading.Tasks.Task TransferFlowFilesAsync (string portId, string transactionId) + { + ApiResponse localVarResponse = await this.TransferFlowFilesAsyncWithHttpInfo(portId, transactionId); + return localVarResponse.Data; + + } + + /// + /// Transfer flow files from the output port + /// + /// Thrown when fails to make API call + /// The output port id. + /// + /// Task of ApiResponse (StreamingOutput) + public async System.Threading.Tasks.Task> TransferFlowFilesAsyncWithHttpInfo (string portId, string transactionId) + { + // verify the required parameter 'portId' is set + if (portId == null) + throw new ApiException(400, "Missing required parameter 'portId' when calling DataTransferApi->TransferFlowFiles"); + // verify the required parameter 'transactionId' is set + if (transactionId == null) + throw new ApiException(400, "Missing required parameter 'transactionId' when calling DataTransferApi->TransferFlowFiles"); + + var localVarPath = "/data-transfer/output-ports/{portId}/transactions/{transactionId}/flow-files"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "*/*" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/octet-stream" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (portId != null) localVarPathParams.Add("portId", this.Configuration.ApiClient.ParameterToString(portId)); // path parameter + if (transactionId != null) localVarPathParams.Add("transactionId", this.Configuration.ApiClient.ParameterToString(transactionId)); // path parameter + + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (this.ExceptionFactory != null) + { + Exception exception = this.ExceptionFactory("TransferFlowFiles", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), + (StreamingOutput) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(StreamingOutput))); + } + + } +} diff --git a/NiFi.Swagger/Api/FlowApi.cs b/NiFi.Swagger/Api/FlowApi.cs new file mode 100644 index 0000000..97b0cb8 --- /dev/null +++ b/NiFi.Swagger/Api/FlowApi.cs @@ -0,0 +1,7281 @@ +/* + * NiFi Rest Api + * + * The Rest Api provides programmatic access to command and control a NiFi instance in real time. Start and stop processors, monitor queues, query provenance data, and more. Each endpoint below includes a description, definitions of the expected input and output, potential response codes, and the authorizations required to invoke each service. + * + * OpenAPI spec version: 1.9.1 + * Contact: dev@nifi.apache.org + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +namespace NiFi.Swagger.Api +{ + using System; + using System.Collections.Generic; + using System.Collections.ObjectModel; + using System.Linq; + + using NiFi.Swagger.Client; + using NiFi.Swagger.Model; + + using RestSharp; + + /// + /// Represents a collection of functions to interact with the API endpoints + /// + public interface IFlowApi : IApiAccessor + { + #region Synchronous Operations + /// + /// Enable or disable Controller Services in the specified Process Group. + /// + /// + /// + /// + /// Thrown when fails to make API call + /// The process group id. + /// The request to schedule or unschedule. If the comopnents in the request are not specified, all authorized components will be considered. + /// ActivateControllerServicesEntity + ActivateControllerServicesEntity ActivateControllerServices (string id, ActivateControllerServicesEntity body); + + /// + /// Enable or disable Controller Services in the specified Process Group. + /// + /// + /// + /// + /// Thrown when fails to make API call + /// The process group id. + /// The request to schedule or unschedule. If the comopnents in the request are not specified, all authorized components will be considered. + /// ApiResponse of ActivateControllerServicesEntity + ApiResponse ActivateControllerServicesWithHttpInfo (string id, ActivateControllerServicesEntity body); + /// + /// Generates a client id. + /// + /// + /// + /// + /// Thrown when fails to make API call + /// string + string GenerateClientId (); + + /// + /// Generates a client id. + /// + /// + /// + /// + /// Thrown when fails to make API call + /// ApiResponse of string + ApiResponse GenerateClientIdWithHttpInfo (); + /// + /// Retrieves details about this NiFi to put in the About dialog + /// + /// + /// + /// + /// Thrown when fails to make API call + /// AboutEntity + AboutEntity GetAboutInfo (); + + /// + /// Retrieves details about this NiFi to put in the About dialog + /// + /// + /// + /// + /// Thrown when fails to make API call + /// ApiResponse of AboutEntity + ApiResponse GetAboutInfoWithHttpInfo (); + /// + /// Gets an action + /// + /// + /// Note: This endpoint is subject to change as NiFi and it's REST API evolve. + /// + /// Thrown when fails to make API call + /// The action id. + /// ActionEntity + ActionEntity GetAction (string id); + + /// + /// Gets an action + /// + /// + /// Note: This endpoint is subject to change as NiFi and it's REST API evolve. + /// + /// Thrown when fails to make API call + /// The action id. + /// ApiResponse of ActionEntity + ApiResponse GetActionWithHttpInfo (string id); + /// + /// Retrieves the banners for this NiFi + /// + /// + /// + /// + /// Thrown when fails to make API call + /// BannerEntity + BannerEntity GetBanners (); + + /// + /// Retrieves the banners for this NiFi + /// + /// + /// + /// + /// Thrown when fails to make API call + /// ApiResponse of BannerEntity + ApiResponse GetBannersWithHttpInfo (); + /// + /// Gets the buckets from the specified registry for the current user + /// + /// + /// + /// + /// Thrown when fails to make API call + /// The registry id. + /// BucketsEntity + BucketsEntity GetBuckets (string id); + + /// + /// Gets the buckets from the specified registry for the current user + /// + /// + /// + /// + /// Thrown when fails to make API call + /// The registry id. + /// ApiResponse of BucketsEntity + ApiResponse GetBucketsWithHttpInfo (string id); + /// + /// Gets current bulletins + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Includes bulletins with an id after this value. (optional) + /// Includes bulletins originating from this sources whose name match this regular expression. (optional) + /// Includes bulletins whose message that match this regular expression. (optional) + /// Includes bulletins originating from this sources whose id match this regular expression. (optional) + /// Includes bulletins originating from this sources whose group id match this regular expression. (optional) + /// The number of bulletins to limit the response to. (optional) + /// BulletinBoardEntity + BulletinBoardEntity GetBulletinBoard (string after = null, string sourceName = null, string message = null, string sourceId = null, string groupId = null, string limit = null); + + /// + /// Gets current bulletins + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Includes bulletins with an id after this value. (optional) + /// Includes bulletins originating from this sources whose name match this regular expression. (optional) + /// Includes bulletins whose message that match this regular expression. (optional) + /// Includes bulletins originating from this sources whose id match this regular expression. (optional) + /// Includes bulletins originating from this sources whose group id match this regular expression. (optional) + /// The number of bulletins to limit the response to. (optional) + /// ApiResponse of BulletinBoardEntity + ApiResponse GetBulletinBoardWithHttpInfo (string after = null, string sourceName = null, string message = null, string sourceId = null, string groupId = null, string limit = null); + /// + /// Retrieves Controller level bulletins + /// + /// + /// + /// + /// Thrown when fails to make API call + /// ControllerBulletinsEntity + ControllerBulletinsEntity GetBulletins (); + + /// + /// Retrieves Controller level bulletins + /// + /// + /// + /// + /// Thrown when fails to make API call + /// ApiResponse of ControllerBulletinsEntity + ApiResponse GetBulletinsWithHttpInfo (); + /// + /// The cluster summary for this NiFi + /// + /// + /// + /// + /// Thrown when fails to make API call + /// ClusteSummaryEntity + ClusteSummaryEntity GetClusterSummary (); + + /// + /// The cluster summary for this NiFi + /// + /// + /// + /// + /// Thrown when fails to make API call + /// ApiResponse of ClusteSummaryEntity + ApiResponse GetClusterSummaryWithHttpInfo (); + /// + /// Gets configuration history for a component + /// + /// + /// Note: This endpoint is subject to change as NiFi and it's REST API evolve. + /// + /// Thrown when fails to make API call + /// The component id. + /// ComponentHistoryEntity + ComponentHistoryEntity GetComponentHistory (string componentId); + + /// + /// Gets configuration history for a component + /// + /// + /// Note: This endpoint is subject to change as NiFi and it's REST API evolve. + /// + /// Thrown when fails to make API call + /// The component id. + /// ApiResponse of ComponentHistoryEntity + ApiResponse GetComponentHistoryWithHttpInfo (string componentId); + /// + /// Gets status for a connection + /// + /// + /// + /// + /// Thrown when fails to make API call + /// The connection id. + /// Whether or not to include the breakdown per node. Optional, defaults to false (optional, default to false) + /// The id of the node where to get the status. (optional) + /// ConnectionStatusEntity + ConnectionStatusEntity GetConnectionStatus (string id, bool? nodewise = null, string clusterNodeId = null); + + /// + /// Gets status for a connection + /// + /// + /// + /// + /// Thrown when fails to make API call + /// The connection id. + /// Whether or not to include the breakdown per node. Optional, defaults to false (optional, default to false) + /// The id of the node where to get the status. (optional) + /// ApiResponse of ConnectionStatusEntity + ApiResponse GetConnectionStatusWithHttpInfo (string id, bool? nodewise = null, string clusterNodeId = null); + /// + /// Gets the status history for a connection + /// + /// + /// + /// + /// Thrown when fails to make API call + /// The connection id. + /// StatusHistoryEntity + StatusHistoryEntity GetConnectionStatusHistory (string id); + + /// + /// Gets the status history for a connection + /// + /// + /// + /// + /// Thrown when fails to make API call + /// The connection id. + /// ApiResponse of StatusHistoryEntity + ApiResponse GetConnectionStatusHistoryWithHttpInfo (string id); + /// + /// Retrieves the types of controller services that this NiFi supports + /// + /// + /// Note: This endpoint is subject to change as NiFi and it's REST API evolve. + /// + /// Thrown when fails to make API call + /// If specified, will only return controller services that are compatible with this type of service. (optional) + /// If serviceType specified, is the bundle group of the serviceType. (optional) + /// If serviceType specified, is the bundle artifact of the serviceType. (optional) + /// If serviceType specified, is the bundle version of the serviceType. (optional) + /// If specified, will only return types that are a member of this bundle group. (optional) + /// If specified, will only return types that are a member of this bundle artifact. (optional) + /// If specified, will only return types whose fully qualified classname matches. (optional) + /// ControllerServiceTypesEntity + ControllerServiceTypesEntity GetControllerServiceTypes (string serviceType = null, string serviceBundleGroup = null, string serviceBundleArtifact = null, string serviceBundleVersion = null, string bundleGroupFilter = null, string bundleArtifactFilter = null, string typeFilter = null); + + /// + /// Retrieves the types of controller services that this NiFi supports + /// + /// + /// Note: This endpoint is subject to change as NiFi and it's REST API evolve. + /// + /// Thrown when fails to make API call + /// If specified, will only return controller services that are compatible with this type of service. (optional) + /// If serviceType specified, is the bundle group of the serviceType. (optional) + /// If serviceType specified, is the bundle artifact of the serviceType. (optional) + /// If serviceType specified, is the bundle version of the serviceType. (optional) + /// If specified, will only return types that are a member of this bundle group. (optional) + /// If specified, will only return types that are a member of this bundle artifact. (optional) + /// If specified, will only return types whose fully qualified classname matches. (optional) + /// ApiResponse of ControllerServiceTypesEntity + ApiResponse GetControllerServiceTypesWithHttpInfo (string serviceType = null, string serviceBundleGroup = null, string serviceBundleArtifact = null, string serviceBundleVersion = null, string bundleGroupFilter = null, string bundleArtifactFilter = null, string typeFilter = null); + /// + /// Gets controller services for reporting tasks + /// + /// + /// + /// + /// Thrown when fails to make API call + /// ControllerServicesEntity + ControllerServicesEntity GetControllerServicesFromController (); + + /// + /// Gets controller services for reporting tasks + /// + /// + /// + /// + /// Thrown when fails to make API call + /// ApiResponse of ControllerServicesEntity + ApiResponse GetControllerServicesFromControllerWithHttpInfo (); + /// + /// Gets all controller services + /// + /// + /// + /// + /// Thrown when fails to make API call + /// The process group id. + /// Whether or not to include parent/ancestory process groups (optional, default to true) + /// Whether or not to include descendant process groups (optional, default to false) + /// ControllerServicesEntity + ControllerServicesEntity GetControllerServicesFromGroup (string id, bool? includeAncestorGroups = null, bool? includeDescendantGroups = null); + + /// + /// Gets all controller services + /// + /// + /// + /// + /// Thrown when fails to make API call + /// The process group id. + /// Whether or not to include parent/ancestory process groups (optional, default to true) + /// Whether or not to include descendant process groups (optional, default to false) + /// ApiResponse of ControllerServicesEntity + ApiResponse GetControllerServicesFromGroupWithHttpInfo (string id, bool? includeAncestorGroups = null, bool? includeDescendantGroups = null); + /// + /// Gets the current status of this NiFi + /// + /// + /// + /// + /// Thrown when fails to make API call + /// ControllerStatusEntity + ControllerStatusEntity GetControllerStatus (); + + /// + /// Gets the current status of this NiFi + /// + /// + /// + /// + /// Thrown when fails to make API call + /// ApiResponse of ControllerStatusEntity + ApiResponse GetControllerStatusWithHttpInfo (); + /// + /// Retrieves the user identity of the user making the request + /// + /// + /// + /// + /// Thrown when fails to make API call + /// CurrentUserEntity + CurrentUserEntity GetCurrentUser (); + + /// + /// Retrieves the user identity of the user making the request + /// + /// + /// + /// + /// Thrown when fails to make API call + /// ApiResponse of CurrentUserEntity + ApiResponse GetCurrentUserWithHttpInfo (); + /// + /// Gets a process group + /// + /// + /// + /// + /// Thrown when fails to make API call + /// The process group id. + /// ProcessGroupFlowEntity + ProcessGroupFlowEntity GetFlow (string id); + + /// + /// Gets a process group + /// + /// + /// + /// + /// Thrown when fails to make API call + /// The process group id. + /// ApiResponse of ProcessGroupFlowEntity + ApiResponse GetFlowWithHttpInfo (string id); + /// + /// Retrieves the configuration for this NiFi flow + /// + /// + /// + /// + /// Thrown when fails to make API call + /// FlowConfigurationEntity + FlowConfigurationEntity GetFlowConfig (); + + /// + /// Retrieves the configuration for this NiFi flow + /// + /// + /// + /// + /// Thrown when fails to make API call + /// ApiResponse of FlowConfigurationEntity + ApiResponse GetFlowConfigWithHttpInfo (); + /// + /// Gets the flows from the specified registry and bucket for the current user + /// + /// + /// + /// + /// Thrown when fails to make API call + /// The registry id. + /// The bucket id. + /// VersionedFlowsEntity + VersionedFlowsEntity GetFlows (string registryId, string bucketId); + + /// + /// Gets the flows from the specified registry and bucket for the current user + /// + /// + /// + /// + /// Thrown when fails to make API call + /// The registry id. + /// The bucket id. + /// ApiResponse of VersionedFlowsEntity + ApiResponse GetFlowsWithHttpInfo (string registryId, string bucketId); + /// + /// Gets status for an input port + /// + /// + /// + /// + /// Thrown when fails to make API call + /// The input port id. + /// Whether or not to include the breakdown per node. Optional, defaults to false (optional, default to false) + /// The id of the node where to get the status. (optional) + /// PortStatusEntity + PortStatusEntity GetInputPortStatus (string id, bool? nodewise = null, string clusterNodeId = null); + + /// + /// Gets status for an input port + /// + /// + /// + /// + /// Thrown when fails to make API call + /// The input port id. + /// Whether or not to include the breakdown per node. Optional, defaults to false (optional, default to false) + /// The id of the node where to get the status. (optional) + /// ApiResponse of PortStatusEntity + ApiResponse GetInputPortStatusWithHttpInfo (string id, bool? nodewise = null, string clusterNodeId = null); + /// + /// Gets status for an output port + /// + /// + /// + /// + /// Thrown when fails to make API call + /// The output port id. + /// Whether or not to include the breakdown per node. Optional, defaults to false (optional, default to false) + /// The id of the node where to get the status. (optional) + /// PortStatusEntity + PortStatusEntity GetOutputPortStatus (string id, bool? nodewise = null, string clusterNodeId = null); + + /// + /// Gets status for an output port + /// + /// + /// + /// + /// Thrown when fails to make API call + /// The output port id. + /// Whether or not to include the breakdown per node. Optional, defaults to false (optional, default to false) + /// The id of the node where to get the status. (optional) + /// ApiResponse of PortStatusEntity + ApiResponse GetOutputPortStatusWithHttpInfo (string id, bool? nodewise = null, string clusterNodeId = null); + /// + /// Retrieves the types of prioritizers that this NiFi supports + /// + /// + /// Note: This endpoint is subject to change as NiFi and it's REST API evolve. + /// + /// Thrown when fails to make API call + /// PrioritizerTypesEntity + PrioritizerTypesEntity GetPrioritizers (); + + /// + /// Retrieves the types of prioritizers that this NiFi supports + /// + /// + /// Note: This endpoint is subject to change as NiFi and it's REST API evolve. + /// + /// Thrown when fails to make API call + /// ApiResponse of PrioritizerTypesEntity + ApiResponse GetPrioritizersWithHttpInfo (); + /// + /// Gets the status for a process group + /// + /// + /// The status for a process group includes status for all descendent components. When invoked on the root group with recursive set to true, it will return the current status of every component in the flow. + /// + /// Thrown when fails to make API call + /// The process group id. + /// Whether all descendant groups and the status of their content will be included. Optional, defaults to false (optional, default to false) + /// Whether or not to include the breakdown per node. Optional, defaults to false (optional, default to false) + /// The id of the node where to get the status. (optional) + /// ProcessGroupStatusEntity + ProcessGroupStatusEntity GetProcessGroupStatus (string id, bool? recursive = null, bool? nodewise = null, string clusterNodeId = null); + + /// + /// Gets the status for a process group + /// + /// + /// The status for a process group includes status for all descendent components. When invoked on the root group with recursive set to true, it will return the current status of every component in the flow. + /// + /// Thrown when fails to make API call + /// The process group id. + /// Whether all descendant groups and the status of their content will be included. Optional, defaults to false (optional, default to false) + /// Whether or not to include the breakdown per node. Optional, defaults to false (optional, default to false) + /// The id of the node where to get the status. (optional) + /// ApiResponse of ProcessGroupStatusEntity + ApiResponse GetProcessGroupStatusWithHttpInfo (string id, bool? recursive = null, bool? nodewise = null, string clusterNodeId = null); + /// + /// Gets status history for a remote process group + /// + /// + /// + /// + /// Thrown when fails to make API call + /// The process group id. + /// StatusHistoryEntity + StatusHistoryEntity GetProcessGroupStatusHistory (string id); + + /// + /// Gets status history for a remote process group + /// + /// + /// + /// + /// Thrown when fails to make API call + /// The process group id. + /// ApiResponse of StatusHistoryEntity + ApiResponse GetProcessGroupStatusHistoryWithHttpInfo (string id); + /// + /// Gets status for a processor + /// + /// + /// + /// + /// Thrown when fails to make API call + /// The processor id. + /// Whether or not to include the breakdown per node. Optional, defaults to false (optional, default to false) + /// The id of the node where to get the status. (optional) + /// ProcessorStatusEntity + ProcessorStatusEntity GetProcessorStatus (string id, bool? nodewise = null, string clusterNodeId = null); + + /// + /// Gets status for a processor + /// + /// + /// + /// + /// Thrown when fails to make API call + /// The processor id. + /// Whether or not to include the breakdown per node. Optional, defaults to false (optional, default to false) + /// The id of the node where to get the status. (optional) + /// ApiResponse of ProcessorStatusEntity + ApiResponse GetProcessorStatusWithHttpInfo (string id, bool? nodewise = null, string clusterNodeId = null); + /// + /// Gets status history for a processor + /// + /// + /// + /// + /// Thrown when fails to make API call + /// The processor id. + /// StatusHistoryEntity + StatusHistoryEntity GetProcessorStatusHistory (string id); + + /// + /// Gets status history for a processor + /// + /// + /// + /// + /// Thrown when fails to make API call + /// The processor id. + /// ApiResponse of StatusHistoryEntity + ApiResponse GetProcessorStatusHistoryWithHttpInfo (string id); + /// + /// Retrieves the types of processors that this NiFi supports + /// + /// + /// Note: This endpoint is subject to change as NiFi and it's REST API evolve. + /// + /// Thrown when fails to make API call + /// If specified, will only return types that are a member of this bundle group. (optional) + /// If specified, will only return types that are a member of this bundle artifact. (optional) + /// If specified, will only return types whose fully qualified classname matches. (optional) + /// ProcessorTypesEntity + ProcessorTypesEntity GetProcessorTypes (string bundleGroupFilter = null, string bundleArtifactFilter = null, string type = null); + + /// + /// Retrieves the types of processors that this NiFi supports + /// + /// + /// Note: This endpoint is subject to change as NiFi and it's REST API evolve. + /// + /// Thrown when fails to make API call + /// If specified, will only return types that are a member of this bundle group. (optional) + /// If specified, will only return types that are a member of this bundle artifact. (optional) + /// If specified, will only return types whose fully qualified classname matches. (optional) + /// ApiResponse of ProcessorTypesEntity + ApiResponse GetProcessorTypesWithHttpInfo (string bundleGroupFilter = null, string bundleArtifactFilter = null, string type = null); + /// + /// Gets the listing of available registries + /// + /// + /// + /// + /// Thrown when fails to make API call + /// RegistryClientsEntity + RegistryClientsEntity GetRegistries (); + + /// + /// Gets the listing of available registries + /// + /// + /// + /// + /// Thrown when fails to make API call + /// ApiResponse of RegistryClientsEntity + ApiResponse GetRegistriesWithHttpInfo (); + /// + /// Gets status for a remote process group + /// + /// + /// + /// + /// Thrown when fails to make API call + /// The remote process group id. + /// Whether or not to include the breakdown per node. Optional, defaults to false (optional, default to false) + /// The id of the node where to get the status. (optional) + /// RemoteProcessGroupStatusEntity + RemoteProcessGroupStatusEntity GetRemoteProcessGroupStatus (string id, bool? nodewise = null, string clusterNodeId = null); + + /// + /// Gets status for a remote process group + /// + /// + /// + /// + /// Thrown when fails to make API call + /// The remote process group id. + /// Whether or not to include the breakdown per node. Optional, defaults to false (optional, default to false) + /// The id of the node where to get the status. (optional) + /// ApiResponse of RemoteProcessGroupStatusEntity + ApiResponse GetRemoteProcessGroupStatusWithHttpInfo (string id, bool? nodewise = null, string clusterNodeId = null); + /// + /// Gets the status history + /// + /// + /// + /// + /// Thrown when fails to make API call + /// The remote process group id. + /// StatusHistoryEntity + StatusHistoryEntity GetRemoteProcessGroupStatusHistory (string id); + + /// + /// Gets the status history + /// + /// + /// + /// + /// Thrown when fails to make API call + /// The remote process group id. + /// ApiResponse of StatusHistoryEntity + ApiResponse GetRemoteProcessGroupStatusHistoryWithHttpInfo (string id); + /// + /// Retrieves the types of reporting tasks that this NiFi supports + /// + /// + /// Note: This endpoint is subject to change as NiFi and it's REST API evolve. + /// + /// Thrown when fails to make API call + /// If specified, will only return types that are a member of this bundle group. (optional) + /// If specified, will only return types that are a member of this bundle artifact. (optional) + /// If specified, will only return types whose fully qualified classname matches. (optional) + /// ReportingTaskTypesEntity + ReportingTaskTypesEntity GetReportingTaskTypes (string bundleGroupFilter = null, string bundleArtifactFilter = null, string type = null); + + /// + /// Retrieves the types of reporting tasks that this NiFi supports + /// + /// + /// Note: This endpoint is subject to change as NiFi and it's REST API evolve. + /// + /// Thrown when fails to make API call + /// If specified, will only return types that are a member of this bundle group. (optional) + /// If specified, will only return types that are a member of this bundle artifact. (optional) + /// If specified, will only return types whose fully qualified classname matches. (optional) + /// ApiResponse of ReportingTaskTypesEntity + ApiResponse GetReportingTaskTypesWithHttpInfo (string bundleGroupFilter = null, string bundleArtifactFilter = null, string type = null); + /// + /// Gets all reporting tasks + /// + /// + /// + /// + /// Thrown when fails to make API call + /// ReportingTasksEntity + ReportingTasksEntity GetReportingTasks (); + + /// + /// Gets all reporting tasks + /// + /// + /// + /// + /// Thrown when fails to make API call + /// ApiResponse of ReportingTasksEntity + ApiResponse GetReportingTasksWithHttpInfo (); + /// + /// Gets all templates + /// + /// + /// + /// + /// Thrown when fails to make API call + /// TemplatesEntity + TemplatesEntity GetTemplates (); + + /// + /// Gets all templates + /// + /// + /// + /// + /// Thrown when fails to make API call + /// ApiResponse of TemplatesEntity + ApiResponse GetTemplatesWithHttpInfo (); + /// + /// Gets the flow versions from the specified registry and bucket for the specified flow for the current user + /// + /// + /// + /// + /// Thrown when fails to make API call + /// The registry id. + /// The bucket id. + /// The flow id. + /// VersionedFlowSnapshotMetadataSetEntity + VersionedFlowSnapshotMetadataSetEntity GetVersions (string registryId, string bucketId, string flowId); + + /// + /// Gets the flow versions from the specified registry and bucket for the specified flow for the current user + /// + /// + /// + /// + /// Thrown when fails to make API call + /// The registry id. + /// The bucket id. + /// The flow id. + /// ApiResponse of VersionedFlowSnapshotMetadataSetEntity + ApiResponse GetVersionsWithHttpInfo (string registryId, string bucketId, string flowId); + /// + /// Gets configuration history + /// + /// + /// Note: This endpoint is subject to change as NiFi and it's REST API evolve. + /// + /// Thrown when fails to make API call + /// The offset into the result set. + /// The number of actions to return. + /// The field to sort on. (optional) + /// The direction to sort. (optional) + /// Include actions after this date. (optional) + /// Include actions before this date. (optional) + /// Include actions performed by this user. (optional) + /// Include actions on this component. (optional) + /// HistoryEntity + HistoryEntity QueryHistory (string offset, string count, string sortColumn = null, string sortOrder = null, string startDate = null, string endDate = null, string userIdentity = null, string sourceId = null); + + /// + /// Gets configuration history + /// + /// + /// Note: This endpoint is subject to change as NiFi and it's REST API evolve. + /// + /// Thrown when fails to make API call + /// The offset into the result set. + /// The number of actions to return. + /// The field to sort on. (optional) + /// The direction to sort. (optional) + /// Include actions after this date. (optional) + /// Include actions before this date. (optional) + /// Include actions performed by this user. (optional) + /// Include actions on this component. (optional) + /// ApiResponse of HistoryEntity + ApiResponse QueryHistoryWithHttpInfo (string offset, string count, string sortColumn = null, string sortOrder = null, string startDate = null, string endDate = null, string userIdentity = null, string sourceId = null); + /// + /// Schedule or unschedule components in the specified Process Group. + /// + /// + /// + /// + /// Thrown when fails to make API call + /// The process group id. + /// The request to schedule or unschedule. If the comopnents in the request are not specified, all authorized components will be considered. + /// ScheduleComponentsEntity + ScheduleComponentsEntity ScheduleComponents (string id, ScheduleComponentsEntity body); + + /// + /// Schedule or unschedule components in the specified Process Group. + /// + /// + /// + /// + /// Thrown when fails to make API call + /// The process group id. + /// The request to schedule or unschedule. If the comopnents in the request are not specified, all authorized components will be considered. + /// ApiResponse of ScheduleComponentsEntity + ApiResponse ScheduleComponentsWithHttpInfo (string id, ScheduleComponentsEntity body); + /// + /// Searches the cluster for a node with the specified address + /// + /// + /// Note: This endpoint is subject to change as NiFi and it's REST API evolve. + /// + /// Thrown when fails to make API call + /// Node address to search for. + /// ClusterSearchResultsEntity + ClusterSearchResultsEntity SearchCluster (string q); + + /// + /// Searches the cluster for a node with the specified address + /// + /// + /// Note: This endpoint is subject to change as NiFi and it's REST API evolve. + /// + /// Thrown when fails to make API call + /// Node address to search for. + /// ApiResponse of ClusterSearchResultsEntity + ApiResponse SearchClusterWithHttpInfo (string q); + /// + /// Performs a search against this NiFi using the specified search term + /// + /// + /// Only search results from authorized components will be returned. + /// + /// Thrown when fails to make API call + /// (optional) + /// SearchResultsEntity + SearchResultsEntity SearchFlow (string q = null); + + /// + /// Performs a search against this NiFi using the specified search term + /// + /// + /// Only search results from authorized components will be returned. + /// + /// Thrown when fails to make API call + /// (optional) + /// ApiResponse of SearchResultsEntity + ApiResponse SearchFlowWithHttpInfo (string q = null); + #endregion Synchronous Operations + #region Asynchronous Operations + /// + /// Enable or disable Controller Services in the specified Process Group. + /// + /// + /// + /// + /// Thrown when fails to make API call + /// The process group id. + /// The request to schedule or unschedule. If the comopnents in the request are not specified, all authorized components will be considered. + /// Task of ActivateControllerServicesEntity + System.Threading.Tasks.Task ActivateControllerServicesAsync (string id, ActivateControllerServicesEntity body); + + /// + /// Enable or disable Controller Services in the specified Process Group. + /// + /// + /// + /// + /// Thrown when fails to make API call + /// The process group id. + /// The request to schedule or unschedule. If the comopnents in the request are not specified, all authorized components will be considered. + /// Task of ApiResponse (ActivateControllerServicesEntity) + System.Threading.Tasks.Task> ActivateControllerServicesAsyncWithHttpInfo (string id, ActivateControllerServicesEntity body); + /// + /// Generates a client id. + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Task of string + System.Threading.Tasks.Task GenerateClientIdAsync (); + + /// + /// Generates a client id. + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Task of ApiResponse (string) + System.Threading.Tasks.Task> GenerateClientIdAsyncWithHttpInfo (); + /// + /// Retrieves details about this NiFi to put in the About dialog + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Task of AboutEntity + System.Threading.Tasks.Task GetAboutInfoAsync (); + + /// + /// Retrieves details about this NiFi to put in the About dialog + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Task of ApiResponse (AboutEntity) + System.Threading.Tasks.Task> GetAboutInfoAsyncWithHttpInfo (); + /// + /// Gets an action + /// + /// + /// Note: This endpoint is subject to change as NiFi and it's REST API evolve. + /// + /// Thrown when fails to make API call + /// The action id. + /// Task of ActionEntity + System.Threading.Tasks.Task GetActionAsync (string id); + + /// + /// Gets an action + /// + /// + /// Note: This endpoint is subject to change as NiFi and it's REST API evolve. + /// + /// Thrown when fails to make API call + /// The action id. + /// Task of ApiResponse (ActionEntity) + System.Threading.Tasks.Task> GetActionAsyncWithHttpInfo (string id); + /// + /// Retrieves the banners for this NiFi + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Task of BannerEntity + System.Threading.Tasks.Task GetBannersAsync (); + + /// + /// Retrieves the banners for this NiFi + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Task of ApiResponse (BannerEntity) + System.Threading.Tasks.Task> GetBannersAsyncWithHttpInfo (); + /// + /// Gets the buckets from the specified registry for the current user + /// + /// + /// + /// + /// Thrown when fails to make API call + /// The registry id. + /// Task of BucketsEntity + System.Threading.Tasks.Task GetBucketsAsync (string id); + + /// + /// Gets the buckets from the specified registry for the current user + /// + /// + /// + /// + /// Thrown when fails to make API call + /// The registry id. + /// Task of ApiResponse (BucketsEntity) + System.Threading.Tasks.Task> GetBucketsAsyncWithHttpInfo (string id); + /// + /// Gets current bulletins + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Includes bulletins with an id after this value. (optional) + /// Includes bulletins originating from this sources whose name match this regular expression. (optional) + /// Includes bulletins whose message that match this regular expression. (optional) + /// Includes bulletins originating from this sources whose id match this regular expression. (optional) + /// Includes bulletins originating from this sources whose group id match this regular expression. (optional) + /// The number of bulletins to limit the response to. (optional) + /// Task of BulletinBoardEntity + System.Threading.Tasks.Task GetBulletinBoardAsync (string after = null, string sourceName = null, string message = null, string sourceId = null, string groupId = null, string limit = null); + + /// + /// Gets current bulletins + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Includes bulletins with an id after this value. (optional) + /// Includes bulletins originating from this sources whose name match this regular expression. (optional) + /// Includes bulletins whose message that match this regular expression. (optional) + /// Includes bulletins originating from this sources whose id match this regular expression. (optional) + /// Includes bulletins originating from this sources whose group id match this regular expression. (optional) + /// The number of bulletins to limit the response to. (optional) + /// Task of ApiResponse (BulletinBoardEntity) + System.Threading.Tasks.Task> GetBulletinBoardAsyncWithHttpInfo (string after = null, string sourceName = null, string message = null, string sourceId = null, string groupId = null, string limit = null); + /// + /// Retrieves Controller level bulletins + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Task of ControllerBulletinsEntity + System.Threading.Tasks.Task GetBulletinsAsync (); + + /// + /// Retrieves Controller level bulletins + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Task of ApiResponse (ControllerBulletinsEntity) + System.Threading.Tasks.Task> GetBulletinsAsyncWithHttpInfo (); + /// + /// The cluster summary for this NiFi + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Task of ClusteSummaryEntity + System.Threading.Tasks.Task GetClusterSummaryAsync (); + + /// + /// The cluster summary for this NiFi + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Task of ApiResponse (ClusteSummaryEntity) + System.Threading.Tasks.Task> GetClusterSummaryAsyncWithHttpInfo (); + /// + /// Gets configuration history for a component + /// + /// + /// Note: This endpoint is subject to change as NiFi and it's REST API evolve. + /// + /// Thrown when fails to make API call + /// The component id. + /// Task of ComponentHistoryEntity + System.Threading.Tasks.Task GetComponentHistoryAsync (string componentId); + + /// + /// Gets configuration history for a component + /// + /// + /// Note: This endpoint is subject to change as NiFi and it's REST API evolve. + /// + /// Thrown when fails to make API call + /// The component id. + /// Task of ApiResponse (ComponentHistoryEntity) + System.Threading.Tasks.Task> GetComponentHistoryAsyncWithHttpInfo (string componentId); + /// + /// Gets status for a connection + /// + /// + /// + /// + /// Thrown when fails to make API call + /// The connection id. + /// Whether or not to include the breakdown per node. Optional, defaults to false (optional, default to false) + /// The id of the node where to get the status. (optional) + /// Task of ConnectionStatusEntity + System.Threading.Tasks.Task GetConnectionStatusAsync (string id, bool? nodewise = null, string clusterNodeId = null); + + /// + /// Gets status for a connection + /// + /// + /// + /// + /// Thrown when fails to make API call + /// The connection id. + /// Whether or not to include the breakdown per node. Optional, defaults to false (optional, default to false) + /// The id of the node where to get the status. (optional) + /// Task of ApiResponse (ConnectionStatusEntity) + System.Threading.Tasks.Task> GetConnectionStatusAsyncWithHttpInfo (string id, bool? nodewise = null, string clusterNodeId = null); + /// + /// Gets the status history for a connection + /// + /// + /// + /// + /// Thrown when fails to make API call + /// The connection id. + /// Task of StatusHistoryEntity + System.Threading.Tasks.Task GetConnectionStatusHistoryAsync (string id); + + /// + /// Gets the status history for a connection + /// + /// + /// + /// + /// Thrown when fails to make API call + /// The connection id. + /// Task of ApiResponse (StatusHistoryEntity) + System.Threading.Tasks.Task> GetConnectionStatusHistoryAsyncWithHttpInfo (string id); + /// + /// Retrieves the types of controller services that this NiFi supports + /// + /// + /// Note: This endpoint is subject to change as NiFi and it's REST API evolve. + /// + /// Thrown when fails to make API call + /// If specified, will only return controller services that are compatible with this type of service. (optional) + /// If serviceType specified, is the bundle group of the serviceType. (optional) + /// If serviceType specified, is the bundle artifact of the serviceType. (optional) + /// If serviceType specified, is the bundle version of the serviceType. (optional) + /// If specified, will only return types that are a member of this bundle group. (optional) + /// If specified, will only return types that are a member of this bundle artifact. (optional) + /// If specified, will only return types whose fully qualified classname matches. (optional) + /// Task of ControllerServiceTypesEntity + System.Threading.Tasks.Task GetControllerServiceTypesAsync (string serviceType = null, string serviceBundleGroup = null, string serviceBundleArtifact = null, string serviceBundleVersion = null, string bundleGroupFilter = null, string bundleArtifactFilter = null, string typeFilter = null); + + /// + /// Retrieves the types of controller services that this NiFi supports + /// + /// + /// Note: This endpoint is subject to change as NiFi and it's REST API evolve. + /// + /// Thrown when fails to make API call + /// If specified, will only return controller services that are compatible with this type of service. (optional) + /// If serviceType specified, is the bundle group of the serviceType. (optional) + /// If serviceType specified, is the bundle artifact of the serviceType. (optional) + /// If serviceType specified, is the bundle version of the serviceType. (optional) + /// If specified, will only return types that are a member of this bundle group. (optional) + /// If specified, will only return types that are a member of this bundle artifact. (optional) + /// If specified, will only return types whose fully qualified classname matches. (optional) + /// Task of ApiResponse (ControllerServiceTypesEntity) + System.Threading.Tasks.Task> GetControllerServiceTypesAsyncWithHttpInfo (string serviceType = null, string serviceBundleGroup = null, string serviceBundleArtifact = null, string serviceBundleVersion = null, string bundleGroupFilter = null, string bundleArtifactFilter = null, string typeFilter = null); + /// + /// Gets controller services for reporting tasks + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Task of ControllerServicesEntity + System.Threading.Tasks.Task GetControllerServicesFromControllerAsync (); + + /// + /// Gets controller services for reporting tasks + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Task of ApiResponse (ControllerServicesEntity) + System.Threading.Tasks.Task> GetControllerServicesFromControllerAsyncWithHttpInfo (); + /// + /// Gets all controller services + /// + /// + /// + /// + /// Thrown when fails to make API call + /// The process group id. + /// Whether or not to include parent/ancestory process groups (optional, default to true) + /// Whether or not to include descendant process groups (optional, default to false) + /// Task of ControllerServicesEntity + System.Threading.Tasks.Task GetControllerServicesFromGroupAsync (string id, bool? includeAncestorGroups = null, bool? includeDescendantGroups = null); + + /// + /// Gets all controller services + /// + /// + /// + /// + /// Thrown when fails to make API call + /// The process group id. + /// Whether or not to include parent/ancestory process groups (optional, default to true) + /// Whether or not to include descendant process groups (optional, default to false) + /// Task of ApiResponse (ControllerServicesEntity) + System.Threading.Tasks.Task> GetControllerServicesFromGroupAsyncWithHttpInfo (string id, bool? includeAncestorGroups = null, bool? includeDescendantGroups = null); + /// + /// Gets the current status of this NiFi + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Task of ControllerStatusEntity + System.Threading.Tasks.Task GetControllerStatusAsync (); + + /// + /// Gets the current status of this NiFi + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Task of ApiResponse (ControllerStatusEntity) + System.Threading.Tasks.Task> GetControllerStatusAsyncWithHttpInfo (); + /// + /// Retrieves the user identity of the user making the request + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Task of CurrentUserEntity + System.Threading.Tasks.Task GetCurrentUserAsync (); + + /// + /// Retrieves the user identity of the user making the request + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Task of ApiResponse (CurrentUserEntity) + System.Threading.Tasks.Task> GetCurrentUserAsyncWithHttpInfo (); + /// + /// Gets a process group + /// + /// + /// + /// + /// Thrown when fails to make API call + /// The process group id. + /// Task of ProcessGroupFlowEntity + System.Threading.Tasks.Task GetFlowAsync (string id); + + /// + /// Gets a process group + /// + /// + /// + /// + /// Thrown when fails to make API call + /// The process group id. + /// Task of ApiResponse (ProcessGroupFlowEntity) + System.Threading.Tasks.Task> GetFlowAsyncWithHttpInfo (string id); + /// + /// Retrieves the configuration for this NiFi flow + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Task of FlowConfigurationEntity + System.Threading.Tasks.Task GetFlowConfigAsync (); + + /// + /// Retrieves the configuration for this NiFi flow + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Task of ApiResponse (FlowConfigurationEntity) + System.Threading.Tasks.Task> GetFlowConfigAsyncWithHttpInfo (); + /// + /// Gets the flows from the specified registry and bucket for the current user + /// + /// + /// + /// + /// Thrown when fails to make API call + /// The registry id. + /// The bucket id. + /// Task of VersionedFlowsEntity + System.Threading.Tasks.Task GetFlowsAsync (string registryId, string bucketId); + + /// + /// Gets the flows from the specified registry and bucket for the current user + /// + /// + /// + /// + /// Thrown when fails to make API call + /// The registry id. + /// The bucket id. + /// Task of ApiResponse (VersionedFlowsEntity) + System.Threading.Tasks.Task> GetFlowsAsyncWithHttpInfo (string registryId, string bucketId); + /// + /// Gets status for an input port + /// + /// + /// + /// + /// Thrown when fails to make API call + /// The input port id. + /// Whether or not to include the breakdown per node. Optional, defaults to false (optional, default to false) + /// The id of the node where to get the status. (optional) + /// Task of PortStatusEntity + System.Threading.Tasks.Task GetInputPortStatusAsync (string id, bool? nodewise = null, string clusterNodeId = null); + + /// + /// Gets status for an input port + /// + /// + /// + /// + /// Thrown when fails to make API call + /// The input port id. + /// Whether or not to include the breakdown per node. Optional, defaults to false (optional, default to false) + /// The id of the node where to get the status. (optional) + /// Task of ApiResponse (PortStatusEntity) + System.Threading.Tasks.Task> GetInputPortStatusAsyncWithHttpInfo (string id, bool? nodewise = null, string clusterNodeId = null); + /// + /// Gets status for an output port + /// + /// + /// + /// + /// Thrown when fails to make API call + /// The output port id. + /// Whether or not to include the breakdown per node. Optional, defaults to false (optional, default to false) + /// The id of the node where to get the status. (optional) + /// Task of PortStatusEntity + System.Threading.Tasks.Task GetOutputPortStatusAsync (string id, bool? nodewise = null, string clusterNodeId = null); + + /// + /// Gets status for an output port + /// + /// + /// + /// + /// Thrown when fails to make API call + /// The output port id. + /// Whether or not to include the breakdown per node. Optional, defaults to false (optional, default to false) + /// The id of the node where to get the status. (optional) + /// Task of ApiResponse (PortStatusEntity) + System.Threading.Tasks.Task> GetOutputPortStatusAsyncWithHttpInfo (string id, bool? nodewise = null, string clusterNodeId = null); + /// + /// Retrieves the types of prioritizers that this NiFi supports + /// + /// + /// Note: This endpoint is subject to change as NiFi and it's REST API evolve. + /// + /// Thrown when fails to make API call + /// Task of PrioritizerTypesEntity + System.Threading.Tasks.Task GetPrioritizersAsync (); + + /// + /// Retrieves the types of prioritizers that this NiFi supports + /// + /// + /// Note: This endpoint is subject to change as NiFi and it's REST API evolve. + /// + /// Thrown when fails to make API call + /// Task of ApiResponse (PrioritizerTypesEntity) + System.Threading.Tasks.Task> GetPrioritizersAsyncWithHttpInfo (); + /// + /// Gets the status for a process group + /// + /// + /// The status for a process group includes status for all descendent components. When invoked on the root group with recursive set to true, it will return the current status of every component in the flow. + /// + /// Thrown when fails to make API call + /// The process group id. + /// Whether all descendant groups and the status of their content will be included. Optional, defaults to false (optional, default to false) + /// Whether or not to include the breakdown per node. Optional, defaults to false (optional, default to false) + /// The id of the node where to get the status. (optional) + /// Task of ProcessGroupStatusEntity + System.Threading.Tasks.Task GetProcessGroupStatusAsync (string id, bool? recursive = null, bool? nodewise = null, string clusterNodeId = null); + + /// + /// Gets the status for a process group + /// + /// + /// The status for a process group includes status for all descendent components. When invoked on the root group with recursive set to true, it will return the current status of every component in the flow. + /// + /// Thrown when fails to make API call + /// The process group id. + /// Whether all descendant groups and the status of their content will be included. Optional, defaults to false (optional, default to false) + /// Whether or not to include the breakdown per node. Optional, defaults to false (optional, default to false) + /// The id of the node where to get the status. (optional) + /// Task of ApiResponse (ProcessGroupStatusEntity) + System.Threading.Tasks.Task> GetProcessGroupStatusAsyncWithHttpInfo (string id, bool? recursive = null, bool? nodewise = null, string clusterNodeId = null); + /// + /// Gets status history for a remote process group + /// + /// + /// + /// + /// Thrown when fails to make API call + /// The process group id. + /// Task of StatusHistoryEntity + System.Threading.Tasks.Task GetProcessGroupStatusHistoryAsync (string id); + + /// + /// Gets status history for a remote process group + /// + /// + /// + /// + /// Thrown when fails to make API call + /// The process group id. + /// Task of ApiResponse (StatusHistoryEntity) + System.Threading.Tasks.Task> GetProcessGroupStatusHistoryAsyncWithHttpInfo (string id); + /// + /// Gets status for a processor + /// + /// + /// + /// + /// Thrown when fails to make API call + /// The processor id. + /// Whether or not to include the breakdown per node. Optional, defaults to false (optional, default to false) + /// The id of the node where to get the status. (optional) + /// Task of ProcessorStatusEntity + System.Threading.Tasks.Task GetProcessorStatusAsync (string id, bool? nodewise = null, string clusterNodeId = null); + + /// + /// Gets status for a processor + /// + /// + /// + /// + /// Thrown when fails to make API call + /// The processor id. + /// Whether or not to include the breakdown per node. Optional, defaults to false (optional, default to false) + /// The id of the node where to get the status. (optional) + /// Task of ApiResponse (ProcessorStatusEntity) + System.Threading.Tasks.Task> GetProcessorStatusAsyncWithHttpInfo (string id, bool? nodewise = null, string clusterNodeId = null); + /// + /// Gets status history for a processor + /// + /// + /// + /// + /// Thrown when fails to make API call + /// The processor id. + /// Task of StatusHistoryEntity + System.Threading.Tasks.Task GetProcessorStatusHistoryAsync (string id); + + /// + /// Gets status history for a processor + /// + /// + /// + /// + /// Thrown when fails to make API call + /// The processor id. + /// Task of ApiResponse (StatusHistoryEntity) + System.Threading.Tasks.Task> GetProcessorStatusHistoryAsyncWithHttpInfo (string id); + /// + /// Retrieves the types of processors that this NiFi supports + /// + /// + /// Note: This endpoint is subject to change as NiFi and it's REST API evolve. + /// + /// Thrown when fails to make API call + /// If specified, will only return types that are a member of this bundle group. (optional) + /// If specified, will only return types that are a member of this bundle artifact. (optional) + /// If specified, will only return types whose fully qualified classname matches. (optional) + /// Task of ProcessorTypesEntity + System.Threading.Tasks.Task GetProcessorTypesAsync (string bundleGroupFilter = null, string bundleArtifactFilter = null, string type = null); + + /// + /// Retrieves the types of processors that this NiFi supports + /// + /// + /// Note: This endpoint is subject to change as NiFi and it's REST API evolve. + /// + /// Thrown when fails to make API call + /// If specified, will only return types that are a member of this bundle group. (optional) + /// If specified, will only return types that are a member of this bundle artifact. (optional) + /// If specified, will only return types whose fully qualified classname matches. (optional) + /// Task of ApiResponse (ProcessorTypesEntity) + System.Threading.Tasks.Task> GetProcessorTypesAsyncWithHttpInfo (string bundleGroupFilter = null, string bundleArtifactFilter = null, string type = null); + /// + /// Gets the listing of available registries + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Task of RegistryClientsEntity + System.Threading.Tasks.Task GetRegistriesAsync (); + + /// + /// Gets the listing of available registries + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Task of ApiResponse (RegistryClientsEntity) + System.Threading.Tasks.Task> GetRegistriesAsyncWithHttpInfo (); + /// + /// Gets status for a remote process group + /// + /// + /// + /// + /// Thrown when fails to make API call + /// The remote process group id. + /// Whether or not to include the breakdown per node. Optional, defaults to false (optional, default to false) + /// The id of the node where to get the status. (optional) + /// Task of RemoteProcessGroupStatusEntity + System.Threading.Tasks.Task GetRemoteProcessGroupStatusAsync (string id, bool? nodewise = null, string clusterNodeId = null); + + /// + /// Gets status for a remote process group + /// + /// + /// + /// + /// Thrown when fails to make API call + /// The remote process group id. + /// Whether or not to include the breakdown per node. Optional, defaults to false (optional, default to false) + /// The id of the node where to get the status. (optional) + /// Task of ApiResponse (RemoteProcessGroupStatusEntity) + System.Threading.Tasks.Task> GetRemoteProcessGroupStatusAsyncWithHttpInfo (string id, bool? nodewise = null, string clusterNodeId = null); + /// + /// Gets the status history + /// + /// + /// + /// + /// Thrown when fails to make API call + /// The remote process group id. + /// Task of StatusHistoryEntity + System.Threading.Tasks.Task GetRemoteProcessGroupStatusHistoryAsync (string id); + + /// + /// Gets the status history + /// + /// + /// + /// + /// Thrown when fails to make API call + /// The remote process group id. + /// Task of ApiResponse (StatusHistoryEntity) + System.Threading.Tasks.Task> GetRemoteProcessGroupStatusHistoryAsyncWithHttpInfo (string id); + /// + /// Retrieves the types of reporting tasks that this NiFi supports + /// + /// + /// Note: This endpoint is subject to change as NiFi and it's REST API evolve. + /// + /// Thrown when fails to make API call + /// If specified, will only return types that are a member of this bundle group. (optional) + /// If specified, will only return types that are a member of this bundle artifact. (optional) + /// If specified, will only return types whose fully qualified classname matches. (optional) + /// Task of ReportingTaskTypesEntity + System.Threading.Tasks.Task GetReportingTaskTypesAsync (string bundleGroupFilter = null, string bundleArtifactFilter = null, string type = null); + + /// + /// Retrieves the types of reporting tasks that this NiFi supports + /// + /// + /// Note: This endpoint is subject to change as NiFi and it's REST API evolve. + /// + /// Thrown when fails to make API call + /// If specified, will only return types that are a member of this bundle group. (optional) + /// If specified, will only return types that are a member of this bundle artifact. (optional) + /// If specified, will only return types whose fully qualified classname matches. (optional) + /// Task of ApiResponse (ReportingTaskTypesEntity) + System.Threading.Tasks.Task> GetReportingTaskTypesAsyncWithHttpInfo (string bundleGroupFilter = null, string bundleArtifactFilter = null, string type = null); + /// + /// Gets all reporting tasks + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Task of ReportingTasksEntity + System.Threading.Tasks.Task GetReportingTasksAsync (); + + /// + /// Gets all reporting tasks + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Task of ApiResponse (ReportingTasksEntity) + System.Threading.Tasks.Task> GetReportingTasksAsyncWithHttpInfo (); + /// + /// Gets all templates + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Task of TemplatesEntity + System.Threading.Tasks.Task GetTemplatesAsync (); + + /// + /// Gets all templates + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Task of ApiResponse (TemplatesEntity) + System.Threading.Tasks.Task> GetTemplatesAsyncWithHttpInfo (); + /// + /// Gets the flow versions from the specified registry and bucket for the specified flow for the current user + /// + /// + /// + /// + /// Thrown when fails to make API call + /// The registry id. + /// The bucket id. + /// The flow id. + /// Task of VersionedFlowSnapshotMetadataSetEntity + System.Threading.Tasks.Task GetVersionsAsync (string registryId, string bucketId, string flowId); + + /// + /// Gets the flow versions from the specified registry and bucket for the specified flow for the current user + /// + /// + /// + /// + /// Thrown when fails to make API call + /// The registry id. + /// The bucket id. + /// The flow id. + /// Task of ApiResponse (VersionedFlowSnapshotMetadataSetEntity) + System.Threading.Tasks.Task> GetVersionsAsyncWithHttpInfo (string registryId, string bucketId, string flowId); + /// + /// Gets configuration history + /// + /// + /// Note: This endpoint is subject to change as NiFi and it's REST API evolve. + /// + /// Thrown when fails to make API call + /// The offset into the result set. + /// The number of actions to return. + /// The field to sort on. (optional) + /// The direction to sort. (optional) + /// Include actions after this date. (optional) + /// Include actions before this date. (optional) + /// Include actions performed by this user. (optional) + /// Include actions on this component. (optional) + /// Task of HistoryEntity + System.Threading.Tasks.Task QueryHistoryAsync (string offset, string count, string sortColumn = null, string sortOrder = null, string startDate = null, string endDate = null, string userIdentity = null, string sourceId = null); + + /// + /// Gets configuration history + /// + /// + /// Note: This endpoint is subject to change as NiFi and it's REST API evolve. + /// + /// Thrown when fails to make API call + /// The offset into the result set. + /// The number of actions to return. + /// The field to sort on. (optional) + /// The direction to sort. (optional) + /// Include actions after this date. (optional) + /// Include actions before this date. (optional) + /// Include actions performed by this user. (optional) + /// Include actions on this component. (optional) + /// Task of ApiResponse (HistoryEntity) + System.Threading.Tasks.Task> QueryHistoryAsyncWithHttpInfo (string offset, string count, string sortColumn = null, string sortOrder = null, string startDate = null, string endDate = null, string userIdentity = null, string sourceId = null); + /// + /// Schedule or unschedule components in the specified Process Group. + /// + /// + /// + /// + /// Thrown when fails to make API call + /// The process group id. + /// The request to schedule or unschedule. If the comopnents in the request are not specified, all authorized components will be considered. + /// Task of ScheduleComponentsEntity + System.Threading.Tasks.Task ScheduleComponentsAsync (string id, ScheduleComponentsEntity body); + + /// + /// Schedule or unschedule components in the specified Process Group. + /// + /// + /// + /// + /// Thrown when fails to make API call + /// The process group id. + /// The request to schedule or unschedule. If the comopnents in the request are not specified, all authorized components will be considered. + /// Task of ApiResponse (ScheduleComponentsEntity) + System.Threading.Tasks.Task> ScheduleComponentsAsyncWithHttpInfo (string id, ScheduleComponentsEntity body); + /// + /// Searches the cluster for a node with the specified address + /// + /// + /// Note: This endpoint is subject to change as NiFi and it's REST API evolve. + /// + /// Thrown when fails to make API call + /// Node address to search for. + /// Task of ClusterSearchResultsEntity + System.Threading.Tasks.Task SearchClusterAsync (string q); + + /// + /// Searches the cluster for a node with the specified address + /// + /// + /// Note: This endpoint is subject to change as NiFi and it's REST API evolve. + /// + /// Thrown when fails to make API call + /// Node address to search for. + /// Task of ApiResponse (ClusterSearchResultsEntity) + System.Threading.Tasks.Task> SearchClusterAsyncWithHttpInfo (string q); + /// + /// Performs a search against this NiFi using the specified search term + /// + /// + /// Only search results from authorized components will be returned. + /// + /// Thrown when fails to make API call + /// (optional) + /// Task of SearchResultsEntity + System.Threading.Tasks.Task SearchFlowAsync (string q = null); + + /// + /// Performs a search against this NiFi using the specified search term + /// + /// + /// Only search results from authorized components will be returned. + /// + /// Thrown when fails to make API call + /// (optional) + /// Task of ApiResponse (SearchResultsEntity) + System.Threading.Tasks.Task> SearchFlowAsyncWithHttpInfo (string q = null); + #endregion Asynchronous Operations + } + + /// + /// Represents a collection of functions to interact with the API endpoints + /// + public partial class FlowApi : IFlowApi + { + private ExceptionFactory _exceptionFactory = (name, response) => null; + + /// + /// Initializes a new instance of the class. + /// + /// + public FlowApi(String basePath) + { + this.Configuration = new Configuration { BasePath = basePath }; + + this.ExceptionFactory = Configuration.DefaultExceptionFactory; + } + + /// + /// Initializes a new instance of the class + /// using Configuration object + /// + /// An instance of Configuration + /// + public FlowApi(Configuration configuration = null) + { + if (configuration == null) // use the default one in Configuration + this.Configuration = Configuration.Default; + else + this.Configuration = configuration; + + this.ExceptionFactory = Configuration.DefaultExceptionFactory; + } + + /// + /// Gets the base path of the API client. + /// + /// The base path + public String GetBasePath() + { + return this.Configuration.ApiClient.RestClient.BaseUrl.ToString(); + } + + /// + /// Sets the base path of the API client. + /// + /// The base path + [Obsolete("SetBasePath is deprecated, please do 'Configuration.ApiClient = new ApiClient(\"http://new-path\")' instead.")] + public void SetBasePath(String basePath) + { + // do nothing + } + + /// + /// Gets or sets the configuration object + /// + /// An instance of the Configuration + public Configuration Configuration {get; set;} + + /// + /// Provides a factory method hook for the creation of exceptions. + /// + public ExceptionFactory ExceptionFactory + { + get + { + if (this._exceptionFactory != null && this._exceptionFactory.GetInvocationList().Length > 1) + { + throw new InvalidOperationException("Multicast delegate for ExceptionFactory is unsupported."); + } + return this._exceptionFactory; + } + set { this._exceptionFactory = value; } + } + + /// + /// Gets the default header. + /// + /// Dictionary of HTTP header + [Obsolete("DefaultHeader is deprecated, please use Configuration.DefaultHeader instead.")] + public IDictionary DefaultHeader() + { + return new ReadOnlyDictionary(this.Configuration.DefaultHeader); + } + + /// + /// Add default header. + /// + /// Header field name. + /// Header field value. + /// + [Obsolete("AddDefaultHeader is deprecated, please use Configuration.AddDefaultHeader instead.")] + public void AddDefaultHeader(string key, string value) + { + this.Configuration.AddDefaultHeader(key, value); + } + + /// + /// Enable or disable Controller Services in the specified Process Group. + /// + /// Thrown when fails to make API call + /// The process group id. + /// The request to schedule or unschedule. If the comopnents in the request are not specified, all authorized components will be considered. + /// ActivateControllerServicesEntity + public ActivateControllerServicesEntity ActivateControllerServices (string id, ActivateControllerServicesEntity body) + { + ApiResponse localVarResponse = this.ActivateControllerServicesWithHttpInfo(id, body); + return localVarResponse.Data; + } + + /// + /// Enable or disable Controller Services in the specified Process Group. + /// + /// Thrown when fails to make API call + /// The process group id. + /// The request to schedule or unschedule. If the comopnents in the request are not specified, all authorized components will be considered. + /// ApiResponse of ActivateControllerServicesEntity + public ApiResponse< ActivateControllerServicesEntity > ActivateControllerServicesWithHttpInfo (string id, ActivateControllerServicesEntity body) + { + // verify the required parameter 'id' is set + if (id == null) + throw new ApiException(400, "Missing required parameter 'id' when calling FlowApi->ActivateControllerServices"); + // verify the required parameter 'body' is set + if (body == null) + throw new ApiException(400, "Missing required parameter 'body' when calling FlowApi->ActivateControllerServices"); + + var localVarPath = "/flow/process-groups/{id}/controller-services"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "application/json" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter + if (body != null && body.GetType() != typeof(byte[])) + { + localVarPostBody = this.Configuration.ApiClient.Serialize(body); // http body (model) parameter + } + else + { + localVarPostBody = body; // byte array + } + + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.PUT, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (this.ExceptionFactory != null) + { + Exception exception = this.ExceptionFactory("ActivateControllerServices", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), + (ActivateControllerServicesEntity) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(ActivateControllerServicesEntity))); + } + + /// + /// Enable or disable Controller Services in the specified Process Group. + /// + /// Thrown when fails to make API call + /// The process group id. + /// The request to schedule or unschedule. If the comopnents in the request are not specified, all authorized components will be considered. + /// Task of ActivateControllerServicesEntity + public async System.Threading.Tasks.Task ActivateControllerServicesAsync (string id, ActivateControllerServicesEntity body) + { + ApiResponse localVarResponse = await this.ActivateControllerServicesAsyncWithHttpInfo(id, body); + return localVarResponse.Data; + + } + + /// + /// Enable or disable Controller Services in the specified Process Group. + /// + /// Thrown when fails to make API call + /// The process group id. + /// The request to schedule or unschedule. If the comopnents in the request are not specified, all authorized components will be considered. + /// Task of ApiResponse (ActivateControllerServicesEntity) + public async System.Threading.Tasks.Task> ActivateControllerServicesAsyncWithHttpInfo (string id, ActivateControllerServicesEntity body) + { + // verify the required parameter 'id' is set + if (id == null) + throw new ApiException(400, "Missing required parameter 'id' when calling FlowApi->ActivateControllerServices"); + // verify the required parameter 'body' is set + if (body == null) + throw new ApiException(400, "Missing required parameter 'body' when calling FlowApi->ActivateControllerServices"); + + var localVarPath = "/flow/process-groups/{id}/controller-services"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "application/json" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter + if (body != null && body.GetType() != typeof(byte[])) + { + localVarPostBody = this.Configuration.ApiClient.Serialize(body); // http body (model) parameter + } + else + { + localVarPostBody = body; // byte array + } + + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.PUT, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (this.ExceptionFactory != null) + { + Exception exception = this.ExceptionFactory("ActivateControllerServices", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), + (ActivateControllerServicesEntity) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(ActivateControllerServicesEntity))); + } + + /// + /// Generates a client id. + /// + /// Thrown when fails to make API call + /// string + public string GenerateClientId () + { + ApiResponse localVarResponse = this.GenerateClientIdWithHttpInfo(); + return localVarResponse.Data; + } + + /// + /// Generates a client id. + /// + /// Thrown when fails to make API call + /// ApiResponse of string + public ApiResponse< string > GenerateClientIdWithHttpInfo () + { + + var localVarPath = "/flow/client-id"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "*/*" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "text/plain" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (this.ExceptionFactory != null) + { + Exception exception = this.ExceptionFactory("GenerateClientId", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), + (string) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(string))); + } + + /// + /// Generates a client id. + /// + /// Thrown when fails to make API call + /// Task of string + public async System.Threading.Tasks.Task GenerateClientIdAsync () + { + ApiResponse localVarResponse = await this.GenerateClientIdAsyncWithHttpInfo(); + return localVarResponse.Data; + + } + + /// + /// Generates a client id. + /// + /// Thrown when fails to make API call + /// Task of ApiResponse (string) + public async System.Threading.Tasks.Task> GenerateClientIdAsyncWithHttpInfo () + { + + var localVarPath = "/flow/client-id"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "*/*" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "text/plain" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (this.ExceptionFactory != null) + { + Exception exception = this.ExceptionFactory("GenerateClientId", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), + (string) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(string))); + } + + /// + /// Retrieves details about this NiFi to put in the About dialog + /// + /// Thrown when fails to make API call + /// AboutEntity + public AboutEntity GetAboutInfo () + { + ApiResponse localVarResponse = this.GetAboutInfoWithHttpInfo(); + return localVarResponse.Data; + } + + /// + /// Retrieves details about this NiFi to put in the About dialog + /// + /// Thrown when fails to make API call + /// ApiResponse of AboutEntity + public ApiResponse< AboutEntity > GetAboutInfoWithHttpInfo () + { + + var localVarPath = "/flow/about"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "*/*" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (this.ExceptionFactory != null) + { + Exception exception = this.ExceptionFactory("GetAboutInfo", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), + (AboutEntity) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(AboutEntity))); + } + + /// + /// Retrieves details about this NiFi to put in the About dialog + /// + /// Thrown when fails to make API call + /// Task of AboutEntity + public async System.Threading.Tasks.Task GetAboutInfoAsync () + { + ApiResponse localVarResponse = await this.GetAboutInfoAsyncWithHttpInfo(); + return localVarResponse.Data; + + } + + /// + /// Retrieves details about this NiFi to put in the About dialog + /// + /// Thrown when fails to make API call + /// Task of ApiResponse (AboutEntity) + public async System.Threading.Tasks.Task> GetAboutInfoAsyncWithHttpInfo () + { + + var localVarPath = "/flow/about"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "*/*" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (this.ExceptionFactory != null) + { + Exception exception = this.ExceptionFactory("GetAboutInfo", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), + (AboutEntity) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(AboutEntity))); + } + + /// + /// Gets an action Note: This endpoint is subject to change as NiFi and it's REST API evolve. + /// + /// Thrown when fails to make API call + /// The action id. + /// ActionEntity + public ActionEntity GetAction (string id) + { + ApiResponse localVarResponse = this.GetActionWithHttpInfo(id); + return localVarResponse.Data; + } + + /// + /// Gets an action Note: This endpoint is subject to change as NiFi and it's REST API evolve. + /// + /// Thrown when fails to make API call + /// The action id. + /// ApiResponse of ActionEntity + public ApiResponse< ActionEntity > GetActionWithHttpInfo (string id) + { + // verify the required parameter 'id' is set + if (id == null) + throw new ApiException(400, "Missing required parameter 'id' when calling FlowApi->GetAction"); + + var localVarPath = "/flow/history/{id}"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "*/*" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter + + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (this.ExceptionFactory != null) + { + Exception exception = this.ExceptionFactory("GetAction", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), + (ActionEntity) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(ActionEntity))); + } + + /// + /// Gets an action Note: This endpoint is subject to change as NiFi and it's REST API evolve. + /// + /// Thrown when fails to make API call + /// The action id. + /// Task of ActionEntity + public async System.Threading.Tasks.Task GetActionAsync (string id) + { + ApiResponse localVarResponse = await this.GetActionAsyncWithHttpInfo(id); + return localVarResponse.Data; + + } + + /// + /// Gets an action Note: This endpoint is subject to change as NiFi and it's REST API evolve. + /// + /// Thrown when fails to make API call + /// The action id. + /// Task of ApiResponse (ActionEntity) + public async System.Threading.Tasks.Task> GetActionAsyncWithHttpInfo (string id) + { + // verify the required parameter 'id' is set + if (id == null) + throw new ApiException(400, "Missing required parameter 'id' when calling FlowApi->GetAction"); + + var localVarPath = "/flow/history/{id}"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "*/*" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter + + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (this.ExceptionFactory != null) + { + Exception exception = this.ExceptionFactory("GetAction", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), + (ActionEntity) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(ActionEntity))); + } + + /// + /// Retrieves the banners for this NiFi + /// + /// Thrown when fails to make API call + /// BannerEntity + public BannerEntity GetBanners () + { + ApiResponse localVarResponse = this.GetBannersWithHttpInfo(); + return localVarResponse.Data; + } + + /// + /// Retrieves the banners for this NiFi + /// + /// Thrown when fails to make API call + /// ApiResponse of BannerEntity + public ApiResponse< BannerEntity > GetBannersWithHttpInfo () + { + + var localVarPath = "/flow/banners"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "*/*" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (this.ExceptionFactory != null) + { + Exception exception = this.ExceptionFactory("GetBanners", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), + (BannerEntity) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(BannerEntity))); + } + + /// + /// Retrieves the banners for this NiFi + /// + /// Thrown when fails to make API call + /// Task of BannerEntity + public async System.Threading.Tasks.Task GetBannersAsync () + { + ApiResponse localVarResponse = await this.GetBannersAsyncWithHttpInfo(); + return localVarResponse.Data; + + } + + /// + /// Retrieves the banners for this NiFi + /// + /// Thrown when fails to make API call + /// Task of ApiResponse (BannerEntity) + public async System.Threading.Tasks.Task> GetBannersAsyncWithHttpInfo () + { + + var localVarPath = "/flow/banners"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "*/*" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (this.ExceptionFactory != null) + { + Exception exception = this.ExceptionFactory("GetBanners", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), + (BannerEntity) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(BannerEntity))); + } + + /// + /// Gets the buckets from the specified registry for the current user + /// + /// Thrown when fails to make API call + /// The registry id. + /// BucketsEntity + public BucketsEntity GetBuckets (string id) + { + ApiResponse localVarResponse = this.GetBucketsWithHttpInfo(id); + return localVarResponse.Data; + } + + /// + /// Gets the buckets from the specified registry for the current user + /// + /// Thrown when fails to make API call + /// The registry id. + /// ApiResponse of BucketsEntity + public ApiResponse< BucketsEntity > GetBucketsWithHttpInfo (string id) + { + // verify the required parameter 'id' is set + if (id == null) + throw new ApiException(400, "Missing required parameter 'id' when calling FlowApi->GetBuckets"); + + var localVarPath = "/flow/registries/{id}/buckets"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "*/*" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter + + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (this.ExceptionFactory != null) + { + Exception exception = this.ExceptionFactory("GetBuckets", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), + (BucketsEntity) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(BucketsEntity))); + } + + /// + /// Gets the buckets from the specified registry for the current user + /// + /// Thrown when fails to make API call + /// The registry id. + /// Task of BucketsEntity + public async System.Threading.Tasks.Task GetBucketsAsync (string id) + { + ApiResponse localVarResponse = await this.GetBucketsAsyncWithHttpInfo(id); + return localVarResponse.Data; + + } + + /// + /// Gets the buckets from the specified registry for the current user + /// + /// Thrown when fails to make API call + /// The registry id. + /// Task of ApiResponse (BucketsEntity) + public async System.Threading.Tasks.Task> GetBucketsAsyncWithHttpInfo (string id) + { + // verify the required parameter 'id' is set + if (id == null) + throw new ApiException(400, "Missing required parameter 'id' when calling FlowApi->GetBuckets"); + + var localVarPath = "/flow/registries/{id}/buckets"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "*/*" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter + + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (this.ExceptionFactory != null) + { + Exception exception = this.ExceptionFactory("GetBuckets", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), + (BucketsEntity) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(BucketsEntity))); + } + + /// + /// Gets current bulletins + /// + /// Thrown when fails to make API call + /// Includes bulletins with an id after this value. (optional) + /// Includes bulletins originating from this sources whose name match this regular expression. (optional) + /// Includes bulletins whose message that match this regular expression. (optional) + /// Includes bulletins originating from this sources whose id match this regular expression. (optional) + /// Includes bulletins originating from this sources whose group id match this regular expression. (optional) + /// The number of bulletins to limit the response to. (optional) + /// BulletinBoardEntity + public BulletinBoardEntity GetBulletinBoard (string after = null, string sourceName = null, string message = null, string sourceId = null, string groupId = null, string limit = null) + { + ApiResponse localVarResponse = this.GetBulletinBoardWithHttpInfo(after, sourceName, message, sourceId, groupId, limit); + return localVarResponse.Data; + } + + /// + /// Gets current bulletins + /// + /// Thrown when fails to make API call + /// Includes bulletins with an id after this value. (optional) + /// Includes bulletins originating from this sources whose name match this regular expression. (optional) + /// Includes bulletins whose message that match this regular expression. (optional) + /// Includes bulletins originating from this sources whose id match this regular expression. (optional) + /// Includes bulletins originating from this sources whose group id match this regular expression. (optional) + /// The number of bulletins to limit the response to. (optional) + /// ApiResponse of BulletinBoardEntity + public ApiResponse< BulletinBoardEntity > GetBulletinBoardWithHttpInfo (string after = null, string sourceName = null, string message = null, string sourceId = null, string groupId = null, string limit = null) + { + + var localVarPath = "/flow/bulletin-board"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "*/*" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (after != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "after", after)); // query parameter + if (sourceName != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "sourceName", sourceName)); // query parameter + if (message != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "message", message)); // query parameter + if (sourceId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "sourceId", sourceId)); // query parameter + if (groupId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "groupId", groupId)); // query parameter + if (limit != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "limit", limit)); // query parameter + + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (this.ExceptionFactory != null) + { + Exception exception = this.ExceptionFactory("GetBulletinBoard", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), + (BulletinBoardEntity) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(BulletinBoardEntity))); + } + + /// + /// Gets current bulletins + /// + /// Thrown when fails to make API call + /// Includes bulletins with an id after this value. (optional) + /// Includes bulletins originating from this sources whose name match this regular expression. (optional) + /// Includes bulletins whose message that match this regular expression. (optional) + /// Includes bulletins originating from this sources whose id match this regular expression. (optional) + /// Includes bulletins originating from this sources whose group id match this regular expression. (optional) + /// The number of bulletins to limit the response to. (optional) + /// Task of BulletinBoardEntity + public async System.Threading.Tasks.Task GetBulletinBoardAsync (string after = null, string sourceName = null, string message = null, string sourceId = null, string groupId = null, string limit = null) + { + ApiResponse localVarResponse = await this.GetBulletinBoardAsyncWithHttpInfo(after, sourceName, message, sourceId, groupId, limit); + return localVarResponse.Data; + + } + + /// + /// Gets current bulletins + /// + /// Thrown when fails to make API call + /// Includes bulletins with an id after this value. (optional) + /// Includes bulletins originating from this sources whose name match this regular expression. (optional) + /// Includes bulletins whose message that match this regular expression. (optional) + /// Includes bulletins originating from this sources whose id match this regular expression. (optional) + /// Includes bulletins originating from this sources whose group id match this regular expression. (optional) + /// The number of bulletins to limit the response to. (optional) + /// Task of ApiResponse (BulletinBoardEntity) + public async System.Threading.Tasks.Task> GetBulletinBoardAsyncWithHttpInfo (string after = null, string sourceName = null, string message = null, string sourceId = null, string groupId = null, string limit = null) + { + + var localVarPath = "/flow/bulletin-board"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "*/*" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (after != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "after", after)); // query parameter + if (sourceName != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "sourceName", sourceName)); // query parameter + if (message != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "message", message)); // query parameter + if (sourceId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "sourceId", sourceId)); // query parameter + if (groupId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "groupId", groupId)); // query parameter + if (limit != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "limit", limit)); // query parameter + + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (this.ExceptionFactory != null) + { + Exception exception = this.ExceptionFactory("GetBulletinBoard", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), + (BulletinBoardEntity) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(BulletinBoardEntity))); + } + + /// + /// Retrieves Controller level bulletins + /// + /// Thrown when fails to make API call + /// ControllerBulletinsEntity + public ControllerBulletinsEntity GetBulletins () + { + ApiResponse localVarResponse = this.GetBulletinsWithHttpInfo(); + return localVarResponse.Data; + } + + /// + /// Retrieves Controller level bulletins + /// + /// Thrown when fails to make API call + /// ApiResponse of ControllerBulletinsEntity + public ApiResponse< ControllerBulletinsEntity > GetBulletinsWithHttpInfo () + { + + var localVarPath = "/flow/controller/bulletins"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "*/*" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (this.ExceptionFactory != null) + { + Exception exception = this.ExceptionFactory("GetBulletins", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), + (ControllerBulletinsEntity) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(ControllerBulletinsEntity))); + } + + /// + /// Retrieves Controller level bulletins + /// + /// Thrown when fails to make API call + /// Task of ControllerBulletinsEntity + public async System.Threading.Tasks.Task GetBulletinsAsync () + { + ApiResponse localVarResponse = await this.GetBulletinsAsyncWithHttpInfo(); + return localVarResponse.Data; + + } + + /// + /// Retrieves Controller level bulletins + /// + /// Thrown when fails to make API call + /// Task of ApiResponse (ControllerBulletinsEntity) + public async System.Threading.Tasks.Task> GetBulletinsAsyncWithHttpInfo () + { + + var localVarPath = "/flow/controller/bulletins"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "*/*" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (this.ExceptionFactory != null) + { + Exception exception = this.ExceptionFactory("GetBulletins", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), + (ControllerBulletinsEntity) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(ControllerBulletinsEntity))); + } + + /// + /// The cluster summary for this NiFi + /// + /// Thrown when fails to make API call + /// ClusteSummaryEntity + public ClusteSummaryEntity GetClusterSummary () + { + ApiResponse localVarResponse = this.GetClusterSummaryWithHttpInfo(); + return localVarResponse.Data; + } + + /// + /// The cluster summary for this NiFi + /// + /// Thrown when fails to make API call + /// ApiResponse of ClusteSummaryEntity + public ApiResponse< ClusteSummaryEntity > GetClusterSummaryWithHttpInfo () + { + + var localVarPath = "/flow/cluster/summary"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "*/*" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (this.ExceptionFactory != null) + { + Exception exception = this.ExceptionFactory("GetClusterSummary", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), + (ClusteSummaryEntity) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(ClusteSummaryEntity))); + } + + /// + /// The cluster summary for this NiFi + /// + /// Thrown when fails to make API call + /// Task of ClusteSummaryEntity + public async System.Threading.Tasks.Task GetClusterSummaryAsync () + { + ApiResponse localVarResponse = await this.GetClusterSummaryAsyncWithHttpInfo(); + return localVarResponse.Data; + + } + + /// + /// The cluster summary for this NiFi + /// + /// Thrown when fails to make API call + /// Task of ApiResponse (ClusteSummaryEntity) + public async System.Threading.Tasks.Task> GetClusterSummaryAsyncWithHttpInfo () + { + + var localVarPath = "/flow/cluster/summary"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "*/*" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (this.ExceptionFactory != null) + { + Exception exception = this.ExceptionFactory("GetClusterSummary", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), + (ClusteSummaryEntity) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(ClusteSummaryEntity))); + } + + /// + /// Gets configuration history for a component Note: This endpoint is subject to change as NiFi and it's REST API evolve. + /// + /// Thrown when fails to make API call + /// The component id. + /// ComponentHistoryEntity + public ComponentHistoryEntity GetComponentHistory (string componentId) + { + ApiResponse localVarResponse = this.GetComponentHistoryWithHttpInfo(componentId); + return localVarResponse.Data; + } + + /// + /// Gets configuration history for a component Note: This endpoint is subject to change as NiFi and it's REST API evolve. + /// + /// Thrown when fails to make API call + /// The component id. + /// ApiResponse of ComponentHistoryEntity + public ApiResponse< ComponentHistoryEntity > GetComponentHistoryWithHttpInfo (string componentId) + { + // verify the required parameter 'componentId' is set + if (componentId == null) + throw new ApiException(400, "Missing required parameter 'componentId' when calling FlowApi->GetComponentHistory"); + + var localVarPath = "/flow/history/components/{componentId}"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "*/*" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (componentId != null) localVarPathParams.Add("componentId", this.Configuration.ApiClient.ParameterToString(componentId)); // path parameter + + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (this.ExceptionFactory != null) + { + Exception exception = this.ExceptionFactory("GetComponentHistory", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), + (ComponentHistoryEntity) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(ComponentHistoryEntity))); + } + + /// + /// Gets configuration history for a component Note: This endpoint is subject to change as NiFi and it's REST API evolve. + /// + /// Thrown when fails to make API call + /// The component id. + /// Task of ComponentHistoryEntity + public async System.Threading.Tasks.Task GetComponentHistoryAsync (string componentId) + { + ApiResponse localVarResponse = await this.GetComponentHistoryAsyncWithHttpInfo(componentId); + return localVarResponse.Data; + + } + + /// + /// Gets configuration history for a component Note: This endpoint is subject to change as NiFi and it's REST API evolve. + /// + /// Thrown when fails to make API call + /// The component id. + /// Task of ApiResponse (ComponentHistoryEntity) + public async System.Threading.Tasks.Task> GetComponentHistoryAsyncWithHttpInfo (string componentId) + { + // verify the required parameter 'componentId' is set + if (componentId == null) + throw new ApiException(400, "Missing required parameter 'componentId' when calling FlowApi->GetComponentHistory"); + + var localVarPath = "/flow/history/components/{componentId}"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "*/*" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (componentId != null) localVarPathParams.Add("componentId", this.Configuration.ApiClient.ParameterToString(componentId)); // path parameter + + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (this.ExceptionFactory != null) + { + Exception exception = this.ExceptionFactory("GetComponentHistory", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), + (ComponentHistoryEntity) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(ComponentHistoryEntity))); + } + + /// + /// Gets status for a connection + /// + /// Thrown when fails to make API call + /// The connection id. + /// Whether or not to include the breakdown per node. Optional, defaults to false (optional, default to false) + /// The id of the node where to get the status. (optional) + /// ConnectionStatusEntity + public ConnectionStatusEntity GetConnectionStatus (string id, bool? nodewise = null, string clusterNodeId = null) + { + ApiResponse localVarResponse = this.GetConnectionStatusWithHttpInfo(id, nodewise, clusterNodeId); + return localVarResponse.Data; + } + + /// + /// Gets status for a connection + /// + /// Thrown when fails to make API call + /// The connection id. + /// Whether or not to include the breakdown per node. Optional, defaults to false (optional, default to false) + /// The id of the node where to get the status. (optional) + /// ApiResponse of ConnectionStatusEntity + public ApiResponse< ConnectionStatusEntity > GetConnectionStatusWithHttpInfo (string id, bool? nodewise = null, string clusterNodeId = null) + { + // verify the required parameter 'id' is set + if (id == null) + throw new ApiException(400, "Missing required parameter 'id' when calling FlowApi->GetConnectionStatus"); + + var localVarPath = "/flow/connections/{id}/status"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "*/*" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter + if (nodewise != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "nodewise", nodewise)); // query parameter + if (clusterNodeId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "clusterNodeId", clusterNodeId)); // query parameter + + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (this.ExceptionFactory != null) + { + Exception exception = this.ExceptionFactory("GetConnectionStatus", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), + (ConnectionStatusEntity) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(ConnectionStatusEntity))); + } + + /// + /// Gets status for a connection + /// + /// Thrown when fails to make API call + /// The connection id. + /// Whether or not to include the breakdown per node. Optional, defaults to false (optional, default to false) + /// The id of the node where to get the status. (optional) + /// Task of ConnectionStatusEntity + public async System.Threading.Tasks.Task GetConnectionStatusAsync (string id, bool? nodewise = null, string clusterNodeId = null) + { + ApiResponse localVarResponse = await this.GetConnectionStatusAsyncWithHttpInfo(id, nodewise, clusterNodeId); + return localVarResponse.Data; + + } + + /// + /// Gets status for a connection + /// + /// Thrown when fails to make API call + /// The connection id. + /// Whether or not to include the breakdown per node. Optional, defaults to false (optional, default to false) + /// The id of the node where to get the status. (optional) + /// Task of ApiResponse (ConnectionStatusEntity) + public async System.Threading.Tasks.Task> GetConnectionStatusAsyncWithHttpInfo (string id, bool? nodewise = null, string clusterNodeId = null) + { + // verify the required parameter 'id' is set + if (id == null) + throw new ApiException(400, "Missing required parameter 'id' when calling FlowApi->GetConnectionStatus"); + + var localVarPath = "/flow/connections/{id}/status"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "*/*" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter + if (nodewise != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "nodewise", nodewise)); // query parameter + if (clusterNodeId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "clusterNodeId", clusterNodeId)); // query parameter + + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (this.ExceptionFactory != null) + { + Exception exception = this.ExceptionFactory("GetConnectionStatus", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), + (ConnectionStatusEntity) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(ConnectionStatusEntity))); + } + + /// + /// Gets the status history for a connection + /// + /// Thrown when fails to make API call + /// The connection id. + /// StatusHistoryEntity + public StatusHistoryEntity GetConnectionStatusHistory (string id) + { + ApiResponse localVarResponse = this.GetConnectionStatusHistoryWithHttpInfo(id); + return localVarResponse.Data; + } + + /// + /// Gets the status history for a connection + /// + /// Thrown when fails to make API call + /// The connection id. + /// ApiResponse of StatusHistoryEntity + public ApiResponse< StatusHistoryEntity > GetConnectionStatusHistoryWithHttpInfo (string id) + { + // verify the required parameter 'id' is set + if (id == null) + throw new ApiException(400, "Missing required parameter 'id' when calling FlowApi->GetConnectionStatusHistory"); + + var localVarPath = "/flow/connections/{id}/status/history"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "*/*" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter + + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (this.ExceptionFactory != null) + { + Exception exception = this.ExceptionFactory("GetConnectionStatusHistory", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), + (StatusHistoryEntity) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(StatusHistoryEntity))); + } + + /// + /// Gets the status history for a connection + /// + /// Thrown when fails to make API call + /// The connection id. + /// Task of StatusHistoryEntity + public async System.Threading.Tasks.Task GetConnectionStatusHistoryAsync (string id) + { + ApiResponse localVarResponse = await this.GetConnectionStatusHistoryAsyncWithHttpInfo(id); + return localVarResponse.Data; + + } + + /// + /// Gets the status history for a connection + /// + /// Thrown when fails to make API call + /// The connection id. + /// Task of ApiResponse (StatusHistoryEntity) + public async System.Threading.Tasks.Task> GetConnectionStatusHistoryAsyncWithHttpInfo (string id) + { + // verify the required parameter 'id' is set + if (id == null) + throw new ApiException(400, "Missing required parameter 'id' when calling FlowApi->GetConnectionStatusHistory"); + + var localVarPath = "/flow/connections/{id}/status/history"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "*/*" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter + + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (this.ExceptionFactory != null) + { + Exception exception = this.ExceptionFactory("GetConnectionStatusHistory", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), + (StatusHistoryEntity) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(StatusHistoryEntity))); + } + + /// + /// Retrieves the types of controller services that this NiFi supports Note: This endpoint is subject to change as NiFi and it's REST API evolve. + /// + /// Thrown when fails to make API call + /// If specified, will only return controller services that are compatible with this type of service. (optional) + /// If serviceType specified, is the bundle group of the serviceType. (optional) + /// If serviceType specified, is the bundle artifact of the serviceType. (optional) + /// If serviceType specified, is the bundle version of the serviceType. (optional) + /// If specified, will only return types that are a member of this bundle group. (optional) + /// If specified, will only return types that are a member of this bundle artifact. (optional) + /// If specified, will only return types whose fully qualified classname matches. (optional) + /// ControllerServiceTypesEntity + public ControllerServiceTypesEntity GetControllerServiceTypes (string serviceType = null, string serviceBundleGroup = null, string serviceBundleArtifact = null, string serviceBundleVersion = null, string bundleGroupFilter = null, string bundleArtifactFilter = null, string typeFilter = null) + { + ApiResponse localVarResponse = this.GetControllerServiceTypesWithHttpInfo(serviceType, serviceBundleGroup, serviceBundleArtifact, serviceBundleVersion, bundleGroupFilter, bundleArtifactFilter, typeFilter); + return localVarResponse.Data; + } + + /// + /// Retrieves the types of controller services that this NiFi supports Note: This endpoint is subject to change as NiFi and it's REST API evolve. + /// + /// Thrown when fails to make API call + /// If specified, will only return controller services that are compatible with this type of service. (optional) + /// If serviceType specified, is the bundle group of the serviceType. (optional) + /// If serviceType specified, is the bundle artifact of the serviceType. (optional) + /// If serviceType specified, is the bundle version of the serviceType. (optional) + /// If specified, will only return types that are a member of this bundle group. (optional) + /// If specified, will only return types that are a member of this bundle artifact. (optional) + /// If specified, will only return types whose fully qualified classname matches. (optional) + /// ApiResponse of ControllerServiceTypesEntity + public ApiResponse< ControllerServiceTypesEntity > GetControllerServiceTypesWithHttpInfo (string serviceType = null, string serviceBundleGroup = null, string serviceBundleArtifact = null, string serviceBundleVersion = null, string bundleGroupFilter = null, string bundleArtifactFilter = null, string typeFilter = null) + { + + var localVarPath = "/flow/controller-service-types"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "*/*" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (serviceType != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "serviceType", serviceType)); // query parameter + if (serviceBundleGroup != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "serviceBundleGroup", serviceBundleGroup)); // query parameter + if (serviceBundleArtifact != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "serviceBundleArtifact", serviceBundleArtifact)); // query parameter + if (serviceBundleVersion != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "serviceBundleVersion", serviceBundleVersion)); // query parameter + if (bundleGroupFilter != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "bundleGroupFilter", bundleGroupFilter)); // query parameter + if (bundleArtifactFilter != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "bundleArtifactFilter", bundleArtifactFilter)); // query parameter + if (typeFilter != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "typeFilter", typeFilter)); // query parameter + + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (this.ExceptionFactory != null) + { + Exception exception = this.ExceptionFactory("GetControllerServiceTypes", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), + (ControllerServiceTypesEntity) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(ControllerServiceTypesEntity))); + } + + /// + /// Retrieves the types of controller services that this NiFi supports Note: This endpoint is subject to change as NiFi and it's REST API evolve. + /// + /// Thrown when fails to make API call + /// If specified, will only return controller services that are compatible with this type of service. (optional) + /// If serviceType specified, is the bundle group of the serviceType. (optional) + /// If serviceType specified, is the bundle artifact of the serviceType. (optional) + /// If serviceType specified, is the bundle version of the serviceType. (optional) + /// If specified, will only return types that are a member of this bundle group. (optional) + /// If specified, will only return types that are a member of this bundle artifact. (optional) + /// If specified, will only return types whose fully qualified classname matches. (optional) + /// Task of ControllerServiceTypesEntity + public async System.Threading.Tasks.Task GetControllerServiceTypesAsync (string serviceType = null, string serviceBundleGroup = null, string serviceBundleArtifact = null, string serviceBundleVersion = null, string bundleGroupFilter = null, string bundleArtifactFilter = null, string typeFilter = null) + { + ApiResponse localVarResponse = await this.GetControllerServiceTypesAsyncWithHttpInfo(serviceType, serviceBundleGroup, serviceBundleArtifact, serviceBundleVersion, bundleGroupFilter, bundleArtifactFilter, typeFilter); + return localVarResponse.Data; + + } + + /// + /// Retrieves the types of controller services that this NiFi supports Note: This endpoint is subject to change as NiFi and it's REST API evolve. + /// + /// Thrown when fails to make API call + /// If specified, will only return controller services that are compatible with this type of service. (optional) + /// If serviceType specified, is the bundle group of the serviceType. (optional) + /// If serviceType specified, is the bundle artifact of the serviceType. (optional) + /// If serviceType specified, is the bundle version of the serviceType. (optional) + /// If specified, will only return types that are a member of this bundle group. (optional) + /// If specified, will only return types that are a member of this bundle artifact. (optional) + /// If specified, will only return types whose fully qualified classname matches. (optional) + /// Task of ApiResponse (ControllerServiceTypesEntity) + public async System.Threading.Tasks.Task> GetControllerServiceTypesAsyncWithHttpInfo (string serviceType = null, string serviceBundleGroup = null, string serviceBundleArtifact = null, string serviceBundleVersion = null, string bundleGroupFilter = null, string bundleArtifactFilter = null, string typeFilter = null) + { + + var localVarPath = "/flow/controller-service-types"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "*/*" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (serviceType != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "serviceType", serviceType)); // query parameter + if (serviceBundleGroup != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "serviceBundleGroup", serviceBundleGroup)); // query parameter + if (serviceBundleArtifact != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "serviceBundleArtifact", serviceBundleArtifact)); // query parameter + if (serviceBundleVersion != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "serviceBundleVersion", serviceBundleVersion)); // query parameter + if (bundleGroupFilter != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "bundleGroupFilter", bundleGroupFilter)); // query parameter + if (bundleArtifactFilter != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "bundleArtifactFilter", bundleArtifactFilter)); // query parameter + if (typeFilter != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "typeFilter", typeFilter)); // query parameter + + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (this.ExceptionFactory != null) + { + Exception exception = this.ExceptionFactory("GetControllerServiceTypes", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), + (ControllerServiceTypesEntity) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(ControllerServiceTypesEntity))); + } + + /// + /// Gets controller services for reporting tasks + /// + /// Thrown when fails to make API call + /// ControllerServicesEntity + public ControllerServicesEntity GetControllerServicesFromController () + { + ApiResponse localVarResponse = this.GetControllerServicesFromControllerWithHttpInfo(); + return localVarResponse.Data; + } + + /// + /// Gets controller services for reporting tasks + /// + /// Thrown when fails to make API call + /// ApiResponse of ControllerServicesEntity + public ApiResponse< ControllerServicesEntity > GetControllerServicesFromControllerWithHttpInfo () + { + + var localVarPath = "/flow/controller/controller-services"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "*/*" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (this.ExceptionFactory != null) + { + Exception exception = this.ExceptionFactory("GetControllerServicesFromController", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), + (ControllerServicesEntity) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(ControllerServicesEntity))); + } + + /// + /// Gets controller services for reporting tasks + /// + /// Thrown when fails to make API call + /// Task of ControllerServicesEntity + public async System.Threading.Tasks.Task GetControllerServicesFromControllerAsync () + { + ApiResponse localVarResponse = await this.GetControllerServicesFromControllerAsyncWithHttpInfo(); + return localVarResponse.Data; + + } + + /// + /// Gets controller services for reporting tasks + /// + /// Thrown when fails to make API call + /// Task of ApiResponse (ControllerServicesEntity) + public async System.Threading.Tasks.Task> GetControllerServicesFromControllerAsyncWithHttpInfo () + { + + var localVarPath = "/flow/controller/controller-services"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "*/*" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (this.ExceptionFactory != null) + { + Exception exception = this.ExceptionFactory("GetControllerServicesFromController", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), + (ControllerServicesEntity) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(ControllerServicesEntity))); + } + + /// + /// Gets all controller services + /// + /// Thrown when fails to make API call + /// The process group id. + /// Whether or not to include parent/ancestory process groups (optional, default to true) + /// Whether or not to include descendant process groups (optional, default to false) + /// ControllerServicesEntity + public ControllerServicesEntity GetControllerServicesFromGroup (string id, bool? includeAncestorGroups = null, bool? includeDescendantGroups = null) + { + ApiResponse localVarResponse = this.GetControllerServicesFromGroupWithHttpInfo(id, includeAncestorGroups, includeDescendantGroups); + return localVarResponse.Data; + } + + /// + /// Gets all controller services + /// + /// Thrown when fails to make API call + /// The process group id. + /// Whether or not to include parent/ancestory process groups (optional, default to true) + /// Whether or not to include descendant process groups (optional, default to false) + /// ApiResponse of ControllerServicesEntity + public ApiResponse< ControllerServicesEntity > GetControllerServicesFromGroupWithHttpInfo (string id, bool? includeAncestorGroups = null, bool? includeDescendantGroups = null) + { + // verify the required parameter 'id' is set + if (id == null) + throw new ApiException(400, "Missing required parameter 'id' when calling FlowApi->GetControllerServicesFromGroup"); + + var localVarPath = "/flow/process-groups/{id}/controller-services"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "*/*" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter + if (includeAncestorGroups != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "includeAncestorGroups", includeAncestorGroups)); // query parameter + if (includeDescendantGroups != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "includeDescendantGroups", includeDescendantGroups)); // query parameter + + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (this.ExceptionFactory != null) + { + Exception exception = this.ExceptionFactory("GetControllerServicesFromGroup", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), + (ControllerServicesEntity) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(ControllerServicesEntity))); + } + + /// + /// Gets all controller services + /// + /// Thrown when fails to make API call + /// The process group id. + /// Whether or not to include parent/ancestory process groups (optional, default to true) + /// Whether or not to include descendant process groups (optional, default to false) + /// Task of ControllerServicesEntity + public async System.Threading.Tasks.Task GetControllerServicesFromGroupAsync (string id, bool? includeAncestorGroups = null, bool? includeDescendantGroups = null) + { + ApiResponse localVarResponse = await this.GetControllerServicesFromGroupAsyncWithHttpInfo(id, includeAncestorGroups, includeDescendantGroups); + return localVarResponse.Data; + + } + + /// + /// Gets all controller services + /// + /// Thrown when fails to make API call + /// The process group id. + /// Whether or not to include parent/ancestory process groups (optional, default to true) + /// Whether or not to include descendant process groups (optional, default to false) + /// Task of ApiResponse (ControllerServicesEntity) + public async System.Threading.Tasks.Task> GetControllerServicesFromGroupAsyncWithHttpInfo (string id, bool? includeAncestorGroups = null, bool? includeDescendantGroups = null) + { + // verify the required parameter 'id' is set + if (id == null) + throw new ApiException(400, "Missing required parameter 'id' when calling FlowApi->GetControllerServicesFromGroup"); + + var localVarPath = "/flow/process-groups/{id}/controller-services"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "*/*" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter + if (includeAncestorGroups != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "includeAncestorGroups", includeAncestorGroups)); // query parameter + if (includeDescendantGroups != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "includeDescendantGroups", includeDescendantGroups)); // query parameter + + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (this.ExceptionFactory != null) + { + Exception exception = this.ExceptionFactory("GetControllerServicesFromGroup", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), + (ControllerServicesEntity) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(ControllerServicesEntity))); + } + + /// + /// Gets the current status of this NiFi + /// + /// Thrown when fails to make API call + /// ControllerStatusEntity + public ControllerStatusEntity GetControllerStatus () + { + ApiResponse localVarResponse = this.GetControllerStatusWithHttpInfo(); + return localVarResponse.Data; + } + + /// + /// Gets the current status of this NiFi + /// + /// Thrown when fails to make API call + /// ApiResponse of ControllerStatusEntity + public ApiResponse< ControllerStatusEntity > GetControllerStatusWithHttpInfo () + { + + var localVarPath = "/flow/status"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "*/*" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (this.ExceptionFactory != null) + { + Exception exception = this.ExceptionFactory("GetControllerStatus", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), + (ControllerStatusEntity) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(ControllerStatusEntity))); + } + + /// + /// Gets the current status of this NiFi + /// + /// Thrown when fails to make API call + /// Task of ControllerStatusEntity + public async System.Threading.Tasks.Task GetControllerStatusAsync () + { + ApiResponse localVarResponse = await this.GetControllerStatusAsyncWithHttpInfo(); + return localVarResponse.Data; + + } + + /// + /// Gets the current status of this NiFi + /// + /// Thrown when fails to make API call + /// Task of ApiResponse (ControllerStatusEntity) + public async System.Threading.Tasks.Task> GetControllerStatusAsyncWithHttpInfo () + { + + var localVarPath = "/flow/status"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "*/*" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (this.ExceptionFactory != null) + { + Exception exception = this.ExceptionFactory("GetControllerStatus", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), + (ControllerStatusEntity) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(ControllerStatusEntity))); + } + + /// + /// Retrieves the user identity of the user making the request + /// + /// Thrown when fails to make API call + /// CurrentUserEntity + public CurrentUserEntity GetCurrentUser () + { + ApiResponse localVarResponse = this.GetCurrentUserWithHttpInfo(); + return localVarResponse.Data; + } + + /// + /// Retrieves the user identity of the user making the request + /// + /// Thrown when fails to make API call + /// ApiResponse of CurrentUserEntity + public ApiResponse< CurrentUserEntity > GetCurrentUserWithHttpInfo () + { + + var localVarPath = "/flow/current-user"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "*/*" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (this.ExceptionFactory != null) + { + Exception exception = this.ExceptionFactory("GetCurrentUser", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), + (CurrentUserEntity) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(CurrentUserEntity))); + } + + /// + /// Retrieves the user identity of the user making the request + /// + /// Thrown when fails to make API call + /// Task of CurrentUserEntity + public async System.Threading.Tasks.Task GetCurrentUserAsync () + { + ApiResponse localVarResponse = await this.GetCurrentUserAsyncWithHttpInfo(); + return localVarResponse.Data; + + } + + /// + /// Retrieves the user identity of the user making the request + /// + /// Thrown when fails to make API call + /// Task of ApiResponse (CurrentUserEntity) + public async System.Threading.Tasks.Task> GetCurrentUserAsyncWithHttpInfo () + { + + var localVarPath = "/flow/current-user"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "*/*" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (this.ExceptionFactory != null) + { + Exception exception = this.ExceptionFactory("GetCurrentUser", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), + (CurrentUserEntity) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(CurrentUserEntity))); + } + + /// + /// Gets a process group + /// + /// Thrown when fails to make API call + /// The process group id. + /// ProcessGroupFlowEntity + public ProcessGroupFlowEntity GetFlow (string id) + { + ApiResponse localVarResponse = this.GetFlowWithHttpInfo(id); + return localVarResponse.Data; + } + + /// + /// Gets a process group + /// + /// Thrown when fails to make API call + /// The process group id. + /// ApiResponse of ProcessGroupFlowEntity + public ApiResponse< ProcessGroupFlowEntity > GetFlowWithHttpInfo (string id) + { + // verify the required parameter 'id' is set + if (id == null) + throw new ApiException(400, "Missing required parameter 'id' when calling FlowApi->GetFlow"); + + var localVarPath = "/flow/process-groups/{id}"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "*/*" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter + + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (this.ExceptionFactory != null) + { + Exception exception = this.ExceptionFactory("GetFlow", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), + (ProcessGroupFlowEntity) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(ProcessGroupFlowEntity))); + } + + /// + /// Gets a process group + /// + /// Thrown when fails to make API call + /// The process group id. + /// Task of ProcessGroupFlowEntity + public async System.Threading.Tasks.Task GetFlowAsync (string id) + { + ApiResponse localVarResponse = await this.GetFlowAsyncWithHttpInfo(id); + return localVarResponse.Data; + + } + + /// + /// Gets a process group + /// + /// Thrown when fails to make API call + /// The process group id. + /// Task of ApiResponse (ProcessGroupFlowEntity) + public async System.Threading.Tasks.Task> GetFlowAsyncWithHttpInfo (string id) + { + // verify the required parameter 'id' is set + if (id == null) + throw new ApiException(400, "Missing required parameter 'id' when calling FlowApi->GetFlow"); + + var localVarPath = "/flow/process-groups/{id}"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "*/*" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter + + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (this.ExceptionFactory != null) + { + Exception exception = this.ExceptionFactory("GetFlow", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), + (ProcessGroupFlowEntity) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(ProcessGroupFlowEntity))); + } + + /// + /// Retrieves the configuration for this NiFi flow + /// + /// Thrown when fails to make API call + /// FlowConfigurationEntity + public FlowConfigurationEntity GetFlowConfig () + { + ApiResponse localVarResponse = this.GetFlowConfigWithHttpInfo(); + return localVarResponse.Data; + } + + /// + /// Retrieves the configuration for this NiFi flow + /// + /// Thrown when fails to make API call + /// ApiResponse of FlowConfigurationEntity + public ApiResponse< FlowConfigurationEntity > GetFlowConfigWithHttpInfo () + { + + var localVarPath = "/flow/config"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "*/*" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (this.ExceptionFactory != null) + { + Exception exception = this.ExceptionFactory("GetFlowConfig", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), + (FlowConfigurationEntity) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(FlowConfigurationEntity))); + } + + /// + /// Retrieves the configuration for this NiFi flow + /// + /// Thrown when fails to make API call + /// Task of FlowConfigurationEntity + public async System.Threading.Tasks.Task GetFlowConfigAsync () + { + ApiResponse localVarResponse = await this.GetFlowConfigAsyncWithHttpInfo(); + return localVarResponse.Data; + + } + + /// + /// Retrieves the configuration for this NiFi flow + /// + /// Thrown when fails to make API call + /// Task of ApiResponse (FlowConfigurationEntity) + public async System.Threading.Tasks.Task> GetFlowConfigAsyncWithHttpInfo () + { + + var localVarPath = "/flow/config"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "*/*" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (this.ExceptionFactory != null) + { + Exception exception = this.ExceptionFactory("GetFlowConfig", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), + (FlowConfigurationEntity) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(FlowConfigurationEntity))); + } + + /// + /// Gets the flows from the specified registry and bucket for the current user + /// + /// Thrown when fails to make API call + /// The registry id. + /// The bucket id. + /// VersionedFlowsEntity + public VersionedFlowsEntity GetFlows (string registryId, string bucketId) + { + ApiResponse localVarResponse = this.GetFlowsWithHttpInfo(registryId, bucketId); + return localVarResponse.Data; + } + + /// + /// Gets the flows from the specified registry and bucket for the current user + /// + /// Thrown when fails to make API call + /// The registry id. + /// The bucket id. + /// ApiResponse of VersionedFlowsEntity + public ApiResponse< VersionedFlowsEntity > GetFlowsWithHttpInfo (string registryId, string bucketId) + { + // verify the required parameter 'registryId' is set + if (registryId == null) + throw new ApiException(400, "Missing required parameter 'registryId' when calling FlowApi->GetFlows"); + // verify the required parameter 'bucketId' is set + if (bucketId == null) + throw new ApiException(400, "Missing required parameter 'bucketId' when calling FlowApi->GetFlows"); + + var localVarPath = "/flow/registries/{registry-id}/buckets/{bucket-id}/flows"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "*/*" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (registryId != null) localVarPathParams.Add("registry-id", this.Configuration.ApiClient.ParameterToString(registryId)); // path parameter + if (bucketId != null) localVarPathParams.Add("bucket-id", this.Configuration.ApiClient.ParameterToString(bucketId)); // path parameter + + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (this.ExceptionFactory != null) + { + Exception exception = this.ExceptionFactory("GetFlows", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), + (VersionedFlowsEntity) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(VersionedFlowsEntity))); + } + + /// + /// Gets the flows from the specified registry and bucket for the current user + /// + /// Thrown when fails to make API call + /// The registry id. + /// The bucket id. + /// Task of VersionedFlowsEntity + public async System.Threading.Tasks.Task GetFlowsAsync (string registryId, string bucketId) + { + ApiResponse localVarResponse = await this.GetFlowsAsyncWithHttpInfo(registryId, bucketId); + return localVarResponse.Data; + + } + + /// + /// Gets the flows from the specified registry and bucket for the current user + /// + /// Thrown when fails to make API call + /// The registry id. + /// The bucket id. + /// Task of ApiResponse (VersionedFlowsEntity) + public async System.Threading.Tasks.Task> GetFlowsAsyncWithHttpInfo (string registryId, string bucketId) + { + // verify the required parameter 'registryId' is set + if (registryId == null) + throw new ApiException(400, "Missing required parameter 'registryId' when calling FlowApi->GetFlows"); + // verify the required parameter 'bucketId' is set + if (bucketId == null) + throw new ApiException(400, "Missing required parameter 'bucketId' when calling FlowApi->GetFlows"); + + var localVarPath = "/flow/registries/{registry-id}/buckets/{bucket-id}/flows"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "*/*" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (registryId != null) localVarPathParams.Add("registry-id", this.Configuration.ApiClient.ParameterToString(registryId)); // path parameter + if (bucketId != null) localVarPathParams.Add("bucket-id", this.Configuration.ApiClient.ParameterToString(bucketId)); // path parameter + + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (this.ExceptionFactory != null) + { + Exception exception = this.ExceptionFactory("GetFlows", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), + (VersionedFlowsEntity) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(VersionedFlowsEntity))); + } + + /// + /// Gets status for an input port + /// + /// Thrown when fails to make API call + /// The input port id. + /// Whether or not to include the breakdown per node. Optional, defaults to false (optional, default to false) + /// The id of the node where to get the status. (optional) + /// PortStatusEntity + public PortStatusEntity GetInputPortStatus (string id, bool? nodewise = null, string clusterNodeId = null) + { + ApiResponse localVarResponse = this.GetInputPortStatusWithHttpInfo(id, nodewise, clusterNodeId); + return localVarResponse.Data; + } + + /// + /// Gets status for an input port + /// + /// Thrown when fails to make API call + /// The input port id. + /// Whether or not to include the breakdown per node. Optional, defaults to false (optional, default to false) + /// The id of the node where to get the status. (optional) + /// ApiResponse of PortStatusEntity + public ApiResponse< PortStatusEntity > GetInputPortStatusWithHttpInfo (string id, bool? nodewise = null, string clusterNodeId = null) + { + // verify the required parameter 'id' is set + if (id == null) + throw new ApiException(400, "Missing required parameter 'id' when calling FlowApi->GetInputPortStatus"); + + var localVarPath = "/flow/input-ports/{id}/status"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "*/*" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter + if (nodewise != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "nodewise", nodewise)); // query parameter + if (clusterNodeId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "clusterNodeId", clusterNodeId)); // query parameter + + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (this.ExceptionFactory != null) + { + Exception exception = this.ExceptionFactory("GetInputPortStatus", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), + (PortStatusEntity) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(PortStatusEntity))); + } + + /// + /// Gets status for an input port + /// + /// Thrown when fails to make API call + /// The input port id. + /// Whether or not to include the breakdown per node. Optional, defaults to false (optional, default to false) + /// The id of the node where to get the status. (optional) + /// Task of PortStatusEntity + public async System.Threading.Tasks.Task GetInputPortStatusAsync (string id, bool? nodewise = null, string clusterNodeId = null) + { + ApiResponse localVarResponse = await this.GetInputPortStatusAsyncWithHttpInfo(id, nodewise, clusterNodeId); + return localVarResponse.Data; + + } + + /// + /// Gets status for an input port + /// + /// Thrown when fails to make API call + /// The input port id. + /// Whether or not to include the breakdown per node. Optional, defaults to false (optional, default to false) + /// The id of the node where to get the status. (optional) + /// Task of ApiResponse (PortStatusEntity) + public async System.Threading.Tasks.Task> GetInputPortStatusAsyncWithHttpInfo (string id, bool? nodewise = null, string clusterNodeId = null) + { + // verify the required parameter 'id' is set + if (id == null) + throw new ApiException(400, "Missing required parameter 'id' when calling FlowApi->GetInputPortStatus"); + + var localVarPath = "/flow/input-ports/{id}/status"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "*/*" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter + if (nodewise != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "nodewise", nodewise)); // query parameter + if (clusterNodeId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "clusterNodeId", clusterNodeId)); // query parameter + + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (this.ExceptionFactory != null) + { + Exception exception = this.ExceptionFactory("GetInputPortStatus", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), + (PortStatusEntity) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(PortStatusEntity))); + } + + /// + /// Gets status for an output port + /// + /// Thrown when fails to make API call + /// The output port id. + /// Whether or not to include the breakdown per node. Optional, defaults to false (optional, default to false) + /// The id of the node where to get the status. (optional) + /// PortStatusEntity + public PortStatusEntity GetOutputPortStatus (string id, bool? nodewise = null, string clusterNodeId = null) + { + ApiResponse localVarResponse = this.GetOutputPortStatusWithHttpInfo(id, nodewise, clusterNodeId); + return localVarResponse.Data; + } + + /// + /// Gets status for an output port + /// + /// Thrown when fails to make API call + /// The output port id. + /// Whether or not to include the breakdown per node. Optional, defaults to false (optional, default to false) + /// The id of the node where to get the status. (optional) + /// ApiResponse of PortStatusEntity + public ApiResponse< PortStatusEntity > GetOutputPortStatusWithHttpInfo (string id, bool? nodewise = null, string clusterNodeId = null) + { + // verify the required parameter 'id' is set + if (id == null) + throw new ApiException(400, "Missing required parameter 'id' when calling FlowApi->GetOutputPortStatus"); + + var localVarPath = "/flow/output-ports/{id}/status"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "*/*" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter + if (nodewise != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "nodewise", nodewise)); // query parameter + if (clusterNodeId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "clusterNodeId", clusterNodeId)); // query parameter + + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (this.ExceptionFactory != null) + { + Exception exception = this.ExceptionFactory("GetOutputPortStatus", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), + (PortStatusEntity) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(PortStatusEntity))); + } + + /// + /// Gets status for an output port + /// + /// Thrown when fails to make API call + /// The output port id. + /// Whether or not to include the breakdown per node. Optional, defaults to false (optional, default to false) + /// The id of the node where to get the status. (optional) + /// Task of PortStatusEntity + public async System.Threading.Tasks.Task GetOutputPortStatusAsync (string id, bool? nodewise = null, string clusterNodeId = null) + { + ApiResponse localVarResponse = await this.GetOutputPortStatusAsyncWithHttpInfo(id, nodewise, clusterNodeId); + return localVarResponse.Data; + + } + + /// + /// Gets status for an output port + /// + /// Thrown when fails to make API call + /// The output port id. + /// Whether or not to include the breakdown per node. Optional, defaults to false (optional, default to false) + /// The id of the node where to get the status. (optional) + /// Task of ApiResponse (PortStatusEntity) + public async System.Threading.Tasks.Task> GetOutputPortStatusAsyncWithHttpInfo (string id, bool? nodewise = null, string clusterNodeId = null) + { + // verify the required parameter 'id' is set + if (id == null) + throw new ApiException(400, "Missing required parameter 'id' when calling FlowApi->GetOutputPortStatus"); + + var localVarPath = "/flow/output-ports/{id}/status"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "*/*" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter + if (nodewise != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "nodewise", nodewise)); // query parameter + if (clusterNodeId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "clusterNodeId", clusterNodeId)); // query parameter + + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (this.ExceptionFactory != null) + { + Exception exception = this.ExceptionFactory("GetOutputPortStatus", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), + (PortStatusEntity) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(PortStatusEntity))); + } + + /// + /// Retrieves the types of prioritizers that this NiFi supports Note: This endpoint is subject to change as NiFi and it's REST API evolve. + /// + /// Thrown when fails to make API call + /// PrioritizerTypesEntity + public PrioritizerTypesEntity GetPrioritizers () + { + ApiResponse localVarResponse = this.GetPrioritizersWithHttpInfo(); + return localVarResponse.Data; + } + + /// + /// Retrieves the types of prioritizers that this NiFi supports Note: This endpoint is subject to change as NiFi and it's REST API evolve. + /// + /// Thrown when fails to make API call + /// ApiResponse of PrioritizerTypesEntity + public ApiResponse< PrioritizerTypesEntity > GetPrioritizersWithHttpInfo () + { + + var localVarPath = "/flow/prioritizers"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "*/*" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (this.ExceptionFactory != null) + { + Exception exception = this.ExceptionFactory("GetPrioritizers", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), + (PrioritizerTypesEntity) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(PrioritizerTypesEntity))); + } + + /// + /// Retrieves the types of prioritizers that this NiFi supports Note: This endpoint is subject to change as NiFi and it's REST API evolve. + /// + /// Thrown when fails to make API call + /// Task of PrioritizerTypesEntity + public async System.Threading.Tasks.Task GetPrioritizersAsync () + { + ApiResponse localVarResponse = await this.GetPrioritizersAsyncWithHttpInfo(); + return localVarResponse.Data; + + } + + /// + /// Retrieves the types of prioritizers that this NiFi supports Note: This endpoint is subject to change as NiFi and it's REST API evolve. + /// + /// Thrown when fails to make API call + /// Task of ApiResponse (PrioritizerTypesEntity) + public async System.Threading.Tasks.Task> GetPrioritizersAsyncWithHttpInfo () + { + + var localVarPath = "/flow/prioritizers"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "*/*" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (this.ExceptionFactory != null) + { + Exception exception = this.ExceptionFactory("GetPrioritizers", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), + (PrioritizerTypesEntity) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(PrioritizerTypesEntity))); + } + + /// + /// Gets the status for a process group The status for a process group includes status for all descendent components. When invoked on the root group with recursive set to true, it will return the current status of every component in the flow. + /// + /// Thrown when fails to make API call + /// The process group id. + /// Whether all descendant groups and the status of their content will be included. Optional, defaults to false (optional, default to false) + /// Whether or not to include the breakdown per node. Optional, defaults to false (optional, default to false) + /// The id of the node where to get the status. (optional) + /// ProcessGroupStatusEntity + public ProcessGroupStatusEntity GetProcessGroupStatus (string id, bool? recursive = null, bool? nodewise = null, string clusterNodeId = null) + { + ApiResponse localVarResponse = this.GetProcessGroupStatusWithHttpInfo(id, recursive, nodewise, clusterNodeId); + return localVarResponse.Data; + } + + /// + /// Gets the status for a process group The status for a process group includes status for all descendent components. When invoked on the root group with recursive set to true, it will return the current status of every component in the flow. + /// + /// Thrown when fails to make API call + /// The process group id. + /// Whether all descendant groups and the status of their content will be included. Optional, defaults to false (optional, default to false) + /// Whether or not to include the breakdown per node. Optional, defaults to false (optional, default to false) + /// The id of the node where to get the status. (optional) + /// ApiResponse of ProcessGroupStatusEntity + public ApiResponse< ProcessGroupStatusEntity > GetProcessGroupStatusWithHttpInfo (string id, bool? recursive = null, bool? nodewise = null, string clusterNodeId = null) + { + // verify the required parameter 'id' is set + if (id == null) + throw new ApiException(400, "Missing required parameter 'id' when calling FlowApi->GetProcessGroupStatus"); + + var localVarPath = "/flow/process-groups/{id}/status"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "*/*" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter + if (recursive != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "recursive", recursive)); // query parameter + if (nodewise != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "nodewise", nodewise)); // query parameter + if (clusterNodeId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "clusterNodeId", clusterNodeId)); // query parameter + + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (this.ExceptionFactory != null) + { + Exception exception = this.ExceptionFactory("GetProcessGroupStatus", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), + (ProcessGroupStatusEntity) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(ProcessGroupStatusEntity))); + } + + /// + /// Gets the status for a process group The status for a process group includes status for all descendent components. When invoked on the root group with recursive set to true, it will return the current status of every component in the flow. + /// + /// Thrown when fails to make API call + /// The process group id. + /// Whether all descendant groups and the status of their content will be included. Optional, defaults to false (optional, default to false) + /// Whether or not to include the breakdown per node. Optional, defaults to false (optional, default to false) + /// The id of the node where to get the status. (optional) + /// Task of ProcessGroupStatusEntity + public async System.Threading.Tasks.Task GetProcessGroupStatusAsync (string id, bool? recursive = null, bool? nodewise = null, string clusterNodeId = null) + { + ApiResponse localVarResponse = await this.GetProcessGroupStatusAsyncWithHttpInfo(id, recursive, nodewise, clusterNodeId); + return localVarResponse.Data; + + } + + /// + /// Gets the status for a process group The status for a process group includes status for all descendent components. When invoked on the root group with recursive set to true, it will return the current status of every component in the flow. + /// + /// Thrown when fails to make API call + /// The process group id. + /// Whether all descendant groups and the status of their content will be included. Optional, defaults to false (optional, default to false) + /// Whether or not to include the breakdown per node. Optional, defaults to false (optional, default to false) + /// The id of the node where to get the status. (optional) + /// Task of ApiResponse (ProcessGroupStatusEntity) + public async System.Threading.Tasks.Task> GetProcessGroupStatusAsyncWithHttpInfo (string id, bool? recursive = null, bool? nodewise = null, string clusterNodeId = null) + { + // verify the required parameter 'id' is set + if (id == null) + throw new ApiException(400, "Missing required parameter 'id' when calling FlowApi->GetProcessGroupStatus"); + + var localVarPath = "/flow/process-groups/{id}/status"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "*/*" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter + if (recursive != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "recursive", recursive)); // query parameter + if (nodewise != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "nodewise", nodewise)); // query parameter + if (clusterNodeId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "clusterNodeId", clusterNodeId)); // query parameter + + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (this.ExceptionFactory != null) + { + Exception exception = this.ExceptionFactory("GetProcessGroupStatus", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), + (ProcessGroupStatusEntity) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(ProcessGroupStatusEntity))); + } + + /// + /// Gets status history for a remote process group + /// + /// Thrown when fails to make API call + /// The process group id. + /// StatusHistoryEntity + public StatusHistoryEntity GetProcessGroupStatusHistory (string id) + { + ApiResponse localVarResponse = this.GetProcessGroupStatusHistoryWithHttpInfo(id); + return localVarResponse.Data; + } + + /// + /// Gets status history for a remote process group + /// + /// Thrown when fails to make API call + /// The process group id. + /// ApiResponse of StatusHistoryEntity + public ApiResponse< StatusHistoryEntity > GetProcessGroupStatusHistoryWithHttpInfo (string id) + { + // verify the required parameter 'id' is set + if (id == null) + throw new ApiException(400, "Missing required parameter 'id' when calling FlowApi->GetProcessGroupStatusHistory"); + + var localVarPath = "/flow/process-groups/{id}/status/history"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "*/*" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter + + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (this.ExceptionFactory != null) + { + Exception exception = this.ExceptionFactory("GetProcessGroupStatusHistory", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), + (StatusHistoryEntity) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(StatusHistoryEntity))); + } + + /// + /// Gets status history for a remote process group + /// + /// Thrown when fails to make API call + /// The process group id. + /// Task of StatusHistoryEntity + public async System.Threading.Tasks.Task GetProcessGroupStatusHistoryAsync (string id) + { + ApiResponse localVarResponse = await this.GetProcessGroupStatusHistoryAsyncWithHttpInfo(id); + return localVarResponse.Data; + + } + + /// + /// Gets status history for a remote process group + /// + /// Thrown when fails to make API call + /// The process group id. + /// Task of ApiResponse (StatusHistoryEntity) + public async System.Threading.Tasks.Task> GetProcessGroupStatusHistoryAsyncWithHttpInfo (string id) + { + // verify the required parameter 'id' is set + if (id == null) + throw new ApiException(400, "Missing required parameter 'id' when calling FlowApi->GetProcessGroupStatusHistory"); + + var localVarPath = "/flow/process-groups/{id}/status/history"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "*/*" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter + + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (this.ExceptionFactory != null) + { + Exception exception = this.ExceptionFactory("GetProcessGroupStatusHistory", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), + (StatusHistoryEntity) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(StatusHistoryEntity))); + } + + /// + /// Gets status for a processor + /// + /// Thrown when fails to make API call + /// The processor id. + /// Whether or not to include the breakdown per node. Optional, defaults to false (optional, default to false) + /// The id of the node where to get the status. (optional) + /// ProcessorStatusEntity + public ProcessorStatusEntity GetProcessorStatus (string id, bool? nodewise = null, string clusterNodeId = null) + { + ApiResponse localVarResponse = this.GetProcessorStatusWithHttpInfo(id, nodewise, clusterNodeId); + return localVarResponse.Data; + } + + /// + /// Gets status for a processor + /// + /// Thrown when fails to make API call + /// The processor id. + /// Whether or not to include the breakdown per node. Optional, defaults to false (optional, default to false) + /// The id of the node where to get the status. (optional) + /// ApiResponse of ProcessorStatusEntity + public ApiResponse< ProcessorStatusEntity > GetProcessorStatusWithHttpInfo (string id, bool? nodewise = null, string clusterNodeId = null) + { + // verify the required parameter 'id' is set + if (id == null) + throw new ApiException(400, "Missing required parameter 'id' when calling FlowApi->GetProcessorStatus"); + + var localVarPath = "/flow/processors/{id}/status"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "*/*" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter + if (nodewise != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "nodewise", nodewise)); // query parameter + if (clusterNodeId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "clusterNodeId", clusterNodeId)); // query parameter + + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (this.ExceptionFactory != null) + { + Exception exception = this.ExceptionFactory("GetProcessorStatus", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), + (ProcessorStatusEntity) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(ProcessorStatusEntity))); + } + + /// + /// Gets status for a processor + /// + /// Thrown when fails to make API call + /// The processor id. + /// Whether or not to include the breakdown per node. Optional, defaults to false (optional, default to false) + /// The id of the node where to get the status. (optional) + /// Task of ProcessorStatusEntity + public async System.Threading.Tasks.Task GetProcessorStatusAsync (string id, bool? nodewise = null, string clusterNodeId = null) + { + ApiResponse localVarResponse = await this.GetProcessorStatusAsyncWithHttpInfo(id, nodewise, clusterNodeId); + return localVarResponse.Data; + + } + + /// + /// Gets status for a processor + /// + /// Thrown when fails to make API call + /// The processor id. + /// Whether or not to include the breakdown per node. Optional, defaults to false (optional, default to false) + /// The id of the node where to get the status. (optional) + /// Task of ApiResponse (ProcessorStatusEntity) + public async System.Threading.Tasks.Task> GetProcessorStatusAsyncWithHttpInfo (string id, bool? nodewise = null, string clusterNodeId = null) + { + // verify the required parameter 'id' is set + if (id == null) + throw new ApiException(400, "Missing required parameter 'id' when calling FlowApi->GetProcessorStatus"); + + var localVarPath = "/flow/processors/{id}/status"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "*/*" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter + if (nodewise != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "nodewise", nodewise)); // query parameter + if (clusterNodeId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "clusterNodeId", clusterNodeId)); // query parameter + + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (this.ExceptionFactory != null) + { + Exception exception = this.ExceptionFactory("GetProcessorStatus", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), + (ProcessorStatusEntity) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(ProcessorStatusEntity))); + } + + /// + /// Gets status history for a processor + /// + /// Thrown when fails to make API call + /// The processor id. + /// StatusHistoryEntity + public StatusHistoryEntity GetProcessorStatusHistory (string id) + { + ApiResponse localVarResponse = this.GetProcessorStatusHistoryWithHttpInfo(id); + return localVarResponse.Data; + } + + /// + /// Gets status history for a processor + /// + /// Thrown when fails to make API call + /// The processor id. + /// ApiResponse of StatusHistoryEntity + public ApiResponse< StatusHistoryEntity > GetProcessorStatusHistoryWithHttpInfo (string id) + { + // verify the required parameter 'id' is set + if (id == null) + throw new ApiException(400, "Missing required parameter 'id' when calling FlowApi->GetProcessorStatusHistory"); + + var localVarPath = "/flow/processors/{id}/status/history"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "*/*" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter + + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (this.ExceptionFactory != null) + { + Exception exception = this.ExceptionFactory("GetProcessorStatusHistory", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), + (StatusHistoryEntity) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(StatusHistoryEntity))); + } + + /// + /// Gets status history for a processor + /// + /// Thrown when fails to make API call + /// The processor id. + /// Task of StatusHistoryEntity + public async System.Threading.Tasks.Task GetProcessorStatusHistoryAsync (string id) + { + ApiResponse localVarResponse = await this.GetProcessorStatusHistoryAsyncWithHttpInfo(id); + return localVarResponse.Data; + + } + + /// + /// Gets status history for a processor + /// + /// Thrown when fails to make API call + /// The processor id. + /// Task of ApiResponse (StatusHistoryEntity) + public async System.Threading.Tasks.Task> GetProcessorStatusHistoryAsyncWithHttpInfo (string id) + { + // verify the required parameter 'id' is set + if (id == null) + throw new ApiException(400, "Missing required parameter 'id' when calling FlowApi->GetProcessorStatusHistory"); + + var localVarPath = "/flow/processors/{id}/status/history"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "*/*" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter + + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (this.ExceptionFactory != null) + { + Exception exception = this.ExceptionFactory("GetProcessorStatusHistory", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), + (StatusHistoryEntity) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(StatusHistoryEntity))); + } + + /// + /// Retrieves the types of processors that this NiFi supports Note: This endpoint is subject to change as NiFi and it's REST API evolve. + /// + /// Thrown when fails to make API call + /// If specified, will only return types that are a member of this bundle group. (optional) + /// If specified, will only return types that are a member of this bundle artifact. (optional) + /// If specified, will only return types whose fully qualified classname matches. (optional) + /// ProcessorTypesEntity + public ProcessorTypesEntity GetProcessorTypes (string bundleGroupFilter = null, string bundleArtifactFilter = null, string type = null) + { + ApiResponse localVarResponse = this.GetProcessorTypesWithHttpInfo(bundleGroupFilter, bundleArtifactFilter, type); + return localVarResponse.Data; + } + + /// + /// Retrieves the types of processors that this NiFi supports Note: This endpoint is subject to change as NiFi and it's REST API evolve. + /// + /// Thrown when fails to make API call + /// If specified, will only return types that are a member of this bundle group. (optional) + /// If specified, will only return types that are a member of this bundle artifact. (optional) + /// If specified, will only return types whose fully qualified classname matches. (optional) + /// ApiResponse of ProcessorTypesEntity + public ApiResponse< ProcessorTypesEntity > GetProcessorTypesWithHttpInfo (string bundleGroupFilter = null, string bundleArtifactFilter = null, string type = null) + { + + var localVarPath = "/flow/processor-types"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "*/*" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (bundleGroupFilter != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "bundleGroupFilter", bundleGroupFilter)); // query parameter + if (bundleArtifactFilter != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "bundleArtifactFilter", bundleArtifactFilter)); // query parameter + if (type != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "type", type)); // query parameter + + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (this.ExceptionFactory != null) + { + Exception exception = this.ExceptionFactory("GetProcessorTypes", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), + (ProcessorTypesEntity) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(ProcessorTypesEntity))); + } + + /// + /// Retrieves the types of processors that this NiFi supports Note: This endpoint is subject to change as NiFi and it's REST API evolve. + /// + /// Thrown when fails to make API call + /// If specified, will only return types that are a member of this bundle group. (optional) + /// If specified, will only return types that are a member of this bundle artifact. (optional) + /// If specified, will only return types whose fully qualified classname matches. (optional) + /// Task of ProcessorTypesEntity + public async System.Threading.Tasks.Task GetProcessorTypesAsync (string bundleGroupFilter = null, string bundleArtifactFilter = null, string type = null) + { + ApiResponse localVarResponse = await this.GetProcessorTypesAsyncWithHttpInfo(bundleGroupFilter, bundleArtifactFilter, type); + return localVarResponse.Data; + + } + + /// + /// Retrieves the types of processors that this NiFi supports Note: This endpoint is subject to change as NiFi and it's REST API evolve. + /// + /// Thrown when fails to make API call + /// If specified, will only return types that are a member of this bundle group. (optional) + /// If specified, will only return types that are a member of this bundle artifact. (optional) + /// If specified, will only return types whose fully qualified classname matches. (optional) + /// Task of ApiResponse (ProcessorTypesEntity) + public async System.Threading.Tasks.Task> GetProcessorTypesAsyncWithHttpInfo (string bundleGroupFilter = null, string bundleArtifactFilter = null, string type = null) + { + + var localVarPath = "/flow/processor-types"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "*/*" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (bundleGroupFilter != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "bundleGroupFilter", bundleGroupFilter)); // query parameter + if (bundleArtifactFilter != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "bundleArtifactFilter", bundleArtifactFilter)); // query parameter + if (type != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "type", type)); // query parameter + + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (this.ExceptionFactory != null) + { + Exception exception = this.ExceptionFactory("GetProcessorTypes", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), + (ProcessorTypesEntity) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(ProcessorTypesEntity))); + } + + /// + /// Gets the listing of available registries + /// + /// Thrown when fails to make API call + /// RegistryClientsEntity + public RegistryClientsEntity GetRegistries () + { + ApiResponse localVarResponse = this.GetRegistriesWithHttpInfo(); + return localVarResponse.Data; + } + + /// + /// Gets the listing of available registries + /// + /// Thrown when fails to make API call + /// ApiResponse of RegistryClientsEntity + public ApiResponse< RegistryClientsEntity > GetRegistriesWithHttpInfo () + { + + var localVarPath = "/flow/registries"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "*/*" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (this.ExceptionFactory != null) + { + Exception exception = this.ExceptionFactory("GetRegistries", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), + (RegistryClientsEntity) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RegistryClientsEntity))); + } + + /// + /// Gets the listing of available registries + /// + /// Thrown when fails to make API call + /// Task of RegistryClientsEntity + public async System.Threading.Tasks.Task GetRegistriesAsync () + { + ApiResponse localVarResponse = await this.GetRegistriesAsyncWithHttpInfo(); + return localVarResponse.Data; + + } + + /// + /// Gets the listing of available registries + /// + /// Thrown when fails to make API call + /// Task of ApiResponse (RegistryClientsEntity) + public async System.Threading.Tasks.Task> GetRegistriesAsyncWithHttpInfo () + { + + var localVarPath = "/flow/registries"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "*/*" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (this.ExceptionFactory != null) + { + Exception exception = this.ExceptionFactory("GetRegistries", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), + (RegistryClientsEntity) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RegistryClientsEntity))); + } + + /// + /// Gets status for a remote process group + /// + /// Thrown when fails to make API call + /// The remote process group id. + /// Whether or not to include the breakdown per node. Optional, defaults to false (optional, default to false) + /// The id of the node where to get the status. (optional) + /// RemoteProcessGroupStatusEntity + public RemoteProcessGroupStatusEntity GetRemoteProcessGroupStatus (string id, bool? nodewise = null, string clusterNodeId = null) + { + ApiResponse localVarResponse = this.GetRemoteProcessGroupStatusWithHttpInfo(id, nodewise, clusterNodeId); + return localVarResponse.Data; + } + + /// + /// Gets status for a remote process group + /// + /// Thrown when fails to make API call + /// The remote process group id. + /// Whether or not to include the breakdown per node. Optional, defaults to false (optional, default to false) + /// The id of the node where to get the status. (optional) + /// ApiResponse of RemoteProcessGroupStatusEntity + public ApiResponse< RemoteProcessGroupStatusEntity > GetRemoteProcessGroupStatusWithHttpInfo (string id, bool? nodewise = null, string clusterNodeId = null) + { + // verify the required parameter 'id' is set + if (id == null) + throw new ApiException(400, "Missing required parameter 'id' when calling FlowApi->GetRemoteProcessGroupStatus"); + + var localVarPath = "/flow/remote-process-groups/{id}/status"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "*/*" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter + if (nodewise != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "nodewise", nodewise)); // query parameter + if (clusterNodeId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "clusterNodeId", clusterNodeId)); // query parameter + + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (this.ExceptionFactory != null) + { + Exception exception = this.ExceptionFactory("GetRemoteProcessGroupStatus", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), + (RemoteProcessGroupStatusEntity) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RemoteProcessGroupStatusEntity))); + } + + /// + /// Gets status for a remote process group + /// + /// Thrown when fails to make API call + /// The remote process group id. + /// Whether or not to include the breakdown per node. Optional, defaults to false (optional, default to false) + /// The id of the node where to get the status. (optional) + /// Task of RemoteProcessGroupStatusEntity + public async System.Threading.Tasks.Task GetRemoteProcessGroupStatusAsync (string id, bool? nodewise = null, string clusterNodeId = null) + { + ApiResponse localVarResponse = await this.GetRemoteProcessGroupStatusAsyncWithHttpInfo(id, nodewise, clusterNodeId); + return localVarResponse.Data; + + } + + /// + /// Gets status for a remote process group + /// + /// Thrown when fails to make API call + /// The remote process group id. + /// Whether or not to include the breakdown per node. Optional, defaults to false (optional, default to false) + /// The id of the node where to get the status. (optional) + /// Task of ApiResponse (RemoteProcessGroupStatusEntity) + public async System.Threading.Tasks.Task> GetRemoteProcessGroupStatusAsyncWithHttpInfo (string id, bool? nodewise = null, string clusterNodeId = null) + { + // verify the required parameter 'id' is set + if (id == null) + throw new ApiException(400, "Missing required parameter 'id' when calling FlowApi->GetRemoteProcessGroupStatus"); + + var localVarPath = "/flow/remote-process-groups/{id}/status"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "*/*" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter + if (nodewise != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "nodewise", nodewise)); // query parameter + if (clusterNodeId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "clusterNodeId", clusterNodeId)); // query parameter + + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (this.ExceptionFactory != null) + { + Exception exception = this.ExceptionFactory("GetRemoteProcessGroupStatus", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), + (RemoteProcessGroupStatusEntity) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RemoteProcessGroupStatusEntity))); + } + + /// + /// Gets the status history + /// + /// Thrown when fails to make API call + /// The remote process group id. + /// StatusHistoryEntity + public StatusHistoryEntity GetRemoteProcessGroupStatusHistory (string id) + { + ApiResponse localVarResponse = this.GetRemoteProcessGroupStatusHistoryWithHttpInfo(id); + return localVarResponse.Data; + } + + /// + /// Gets the status history + /// + /// Thrown when fails to make API call + /// The remote process group id. + /// ApiResponse of StatusHistoryEntity + public ApiResponse< StatusHistoryEntity > GetRemoteProcessGroupStatusHistoryWithHttpInfo (string id) + { + // verify the required parameter 'id' is set + if (id == null) + throw new ApiException(400, "Missing required parameter 'id' when calling FlowApi->GetRemoteProcessGroupStatusHistory"); + + var localVarPath = "/flow/remote-process-groups/{id}/status/history"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "*/*" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter + + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (this.ExceptionFactory != null) + { + Exception exception = this.ExceptionFactory("GetRemoteProcessGroupStatusHistory", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), + (StatusHistoryEntity) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(StatusHistoryEntity))); + } + + /// + /// Gets the status history + /// + /// Thrown when fails to make API call + /// The remote process group id. + /// Task of StatusHistoryEntity + public async System.Threading.Tasks.Task GetRemoteProcessGroupStatusHistoryAsync (string id) + { + ApiResponse localVarResponse = await this.GetRemoteProcessGroupStatusHistoryAsyncWithHttpInfo(id); + return localVarResponse.Data; + + } + + /// + /// Gets the status history + /// + /// Thrown when fails to make API call + /// The remote process group id. + /// Task of ApiResponse (StatusHistoryEntity) + public async System.Threading.Tasks.Task> GetRemoteProcessGroupStatusHistoryAsyncWithHttpInfo (string id) + { + // verify the required parameter 'id' is set + if (id == null) + throw new ApiException(400, "Missing required parameter 'id' when calling FlowApi->GetRemoteProcessGroupStatusHistory"); + + var localVarPath = "/flow/remote-process-groups/{id}/status/history"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "*/*" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter + + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (this.ExceptionFactory != null) + { + Exception exception = this.ExceptionFactory("GetRemoteProcessGroupStatusHistory", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), + (StatusHistoryEntity) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(StatusHistoryEntity))); + } + + /// + /// Retrieves the types of reporting tasks that this NiFi supports Note: This endpoint is subject to change as NiFi and it's REST API evolve. + /// + /// Thrown when fails to make API call + /// If specified, will only return types that are a member of this bundle group. (optional) + /// If specified, will only return types that are a member of this bundle artifact. (optional) + /// If specified, will only return types whose fully qualified classname matches. (optional) + /// ReportingTaskTypesEntity + public ReportingTaskTypesEntity GetReportingTaskTypes (string bundleGroupFilter = null, string bundleArtifactFilter = null, string type = null) + { + ApiResponse localVarResponse = this.GetReportingTaskTypesWithHttpInfo(bundleGroupFilter, bundleArtifactFilter, type); + return localVarResponse.Data; + } + + /// + /// Retrieves the types of reporting tasks that this NiFi supports Note: This endpoint is subject to change as NiFi and it's REST API evolve. + /// + /// Thrown when fails to make API call + /// If specified, will only return types that are a member of this bundle group. (optional) + /// If specified, will only return types that are a member of this bundle artifact. (optional) + /// If specified, will only return types whose fully qualified classname matches. (optional) + /// ApiResponse of ReportingTaskTypesEntity + public ApiResponse< ReportingTaskTypesEntity > GetReportingTaskTypesWithHttpInfo (string bundleGroupFilter = null, string bundleArtifactFilter = null, string type = null) + { + + var localVarPath = "/flow/reporting-task-types"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "*/*" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (bundleGroupFilter != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "bundleGroupFilter", bundleGroupFilter)); // query parameter + if (bundleArtifactFilter != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "bundleArtifactFilter", bundleArtifactFilter)); // query parameter + if (type != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "type", type)); // query parameter + + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (this.ExceptionFactory != null) + { + Exception exception = this.ExceptionFactory("GetReportingTaskTypes", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), + (ReportingTaskTypesEntity) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(ReportingTaskTypesEntity))); + } + + /// + /// Retrieves the types of reporting tasks that this NiFi supports Note: This endpoint is subject to change as NiFi and it's REST API evolve. + /// + /// Thrown when fails to make API call + /// If specified, will only return types that are a member of this bundle group. (optional) + /// If specified, will only return types that are a member of this bundle artifact. (optional) + /// If specified, will only return types whose fully qualified classname matches. (optional) + /// Task of ReportingTaskTypesEntity + public async System.Threading.Tasks.Task GetReportingTaskTypesAsync (string bundleGroupFilter = null, string bundleArtifactFilter = null, string type = null) + { + ApiResponse localVarResponse = await this.GetReportingTaskTypesAsyncWithHttpInfo(bundleGroupFilter, bundleArtifactFilter, type); + return localVarResponse.Data; + + } + + /// + /// Retrieves the types of reporting tasks that this NiFi supports Note: This endpoint is subject to change as NiFi and it's REST API evolve. + /// + /// Thrown when fails to make API call + /// If specified, will only return types that are a member of this bundle group. (optional) + /// If specified, will only return types that are a member of this bundle artifact. (optional) + /// If specified, will only return types whose fully qualified classname matches. (optional) + /// Task of ApiResponse (ReportingTaskTypesEntity) + public async System.Threading.Tasks.Task> GetReportingTaskTypesAsyncWithHttpInfo (string bundleGroupFilter = null, string bundleArtifactFilter = null, string type = null) + { + + var localVarPath = "/flow/reporting-task-types"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "*/*" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (bundleGroupFilter != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "bundleGroupFilter", bundleGroupFilter)); // query parameter + if (bundleArtifactFilter != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "bundleArtifactFilter", bundleArtifactFilter)); // query parameter + if (type != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "type", type)); // query parameter + + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (this.ExceptionFactory != null) + { + Exception exception = this.ExceptionFactory("GetReportingTaskTypes", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), + (ReportingTaskTypesEntity) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(ReportingTaskTypesEntity))); + } + + /// + /// Gets all reporting tasks + /// + /// Thrown when fails to make API call + /// ReportingTasksEntity + public ReportingTasksEntity GetReportingTasks () + { + ApiResponse localVarResponse = this.GetReportingTasksWithHttpInfo(); + return localVarResponse.Data; + } + + /// + /// Gets all reporting tasks + /// + /// Thrown when fails to make API call + /// ApiResponse of ReportingTasksEntity + public ApiResponse< ReportingTasksEntity > GetReportingTasksWithHttpInfo () + { + + var localVarPath = "/flow/reporting-tasks"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "*/*" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (this.ExceptionFactory != null) + { + Exception exception = this.ExceptionFactory("GetReportingTasks", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), + (ReportingTasksEntity) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(ReportingTasksEntity))); + } + + /// + /// Gets all reporting tasks + /// + /// Thrown when fails to make API call + /// Task of ReportingTasksEntity + public async System.Threading.Tasks.Task GetReportingTasksAsync () + { + ApiResponse localVarResponse = await this.GetReportingTasksAsyncWithHttpInfo(); + return localVarResponse.Data; + + } + + /// + /// Gets all reporting tasks + /// + /// Thrown when fails to make API call + /// Task of ApiResponse (ReportingTasksEntity) + public async System.Threading.Tasks.Task> GetReportingTasksAsyncWithHttpInfo () + { + + var localVarPath = "/flow/reporting-tasks"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "*/*" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (this.ExceptionFactory != null) + { + Exception exception = this.ExceptionFactory("GetReportingTasks", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), + (ReportingTasksEntity) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(ReportingTasksEntity))); + } + + /// + /// Gets all templates + /// + /// Thrown when fails to make API call + /// TemplatesEntity + public TemplatesEntity GetTemplates () + { + ApiResponse localVarResponse = this.GetTemplatesWithHttpInfo(); + return localVarResponse.Data; + } + + /// + /// Gets all templates + /// + /// Thrown when fails to make API call + /// ApiResponse of TemplatesEntity + public ApiResponse< TemplatesEntity > GetTemplatesWithHttpInfo () + { + + var localVarPath = "/flow/templates"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "*/*" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (this.ExceptionFactory != null) + { + Exception exception = this.ExceptionFactory("GetTemplates", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), + (TemplatesEntity) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(TemplatesEntity))); + } + + /// + /// Gets all templates + /// + /// Thrown when fails to make API call + /// Task of TemplatesEntity + public async System.Threading.Tasks.Task GetTemplatesAsync () + { + ApiResponse localVarResponse = await this.GetTemplatesAsyncWithHttpInfo(); + return localVarResponse.Data; + + } + + /// + /// Gets all templates + /// + /// Thrown when fails to make API call + /// Task of ApiResponse (TemplatesEntity) + public async System.Threading.Tasks.Task> GetTemplatesAsyncWithHttpInfo () + { + + var localVarPath = "/flow/templates"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "*/*" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (this.ExceptionFactory != null) + { + Exception exception = this.ExceptionFactory("GetTemplates", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), + (TemplatesEntity) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(TemplatesEntity))); + } + + /// + /// Gets the flow versions from the specified registry and bucket for the specified flow for the current user + /// + /// Thrown when fails to make API call + /// The registry id. + /// The bucket id. + /// The flow id. + /// VersionedFlowSnapshotMetadataSetEntity + public VersionedFlowSnapshotMetadataSetEntity GetVersions (string registryId, string bucketId, string flowId) + { + ApiResponse localVarResponse = this.GetVersionsWithHttpInfo(registryId, bucketId, flowId); + return localVarResponse.Data; + } + + /// + /// Gets the flow versions from the specified registry and bucket for the specified flow for the current user + /// + /// Thrown when fails to make API call + /// The registry id. + /// The bucket id. + /// The flow id. + /// ApiResponse of VersionedFlowSnapshotMetadataSetEntity + public ApiResponse< VersionedFlowSnapshotMetadataSetEntity > GetVersionsWithHttpInfo (string registryId, string bucketId, string flowId) + { + // verify the required parameter 'registryId' is set + if (registryId == null) + throw new ApiException(400, "Missing required parameter 'registryId' when calling FlowApi->GetVersions"); + // verify the required parameter 'bucketId' is set + if (bucketId == null) + throw new ApiException(400, "Missing required parameter 'bucketId' when calling FlowApi->GetVersions"); + // verify the required parameter 'flowId' is set + if (flowId == null) + throw new ApiException(400, "Missing required parameter 'flowId' when calling FlowApi->GetVersions"); + + var localVarPath = "/flow/registries/{registry-id}/buckets/{bucket-id}/flows/{flow-id}/versions"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "*/*" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (registryId != null) localVarPathParams.Add("registry-id", this.Configuration.ApiClient.ParameterToString(registryId)); // path parameter + if (bucketId != null) localVarPathParams.Add("bucket-id", this.Configuration.ApiClient.ParameterToString(bucketId)); // path parameter + if (flowId != null) localVarPathParams.Add("flow-id", this.Configuration.ApiClient.ParameterToString(flowId)); // path parameter + + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (this.ExceptionFactory != null) + { + Exception exception = this.ExceptionFactory("GetVersions", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), + (VersionedFlowSnapshotMetadataSetEntity) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(VersionedFlowSnapshotMetadataSetEntity))); + } + + /// + /// Gets the flow versions from the specified registry and bucket for the specified flow for the current user + /// + /// Thrown when fails to make API call + /// The registry id. + /// The bucket id. + /// The flow id. + /// Task of VersionedFlowSnapshotMetadataSetEntity + public async System.Threading.Tasks.Task GetVersionsAsync (string registryId, string bucketId, string flowId) + { + ApiResponse localVarResponse = await this.GetVersionsAsyncWithHttpInfo(registryId, bucketId, flowId); + return localVarResponse.Data; + + } + + /// + /// Gets the flow versions from the specified registry and bucket for the specified flow for the current user + /// + /// Thrown when fails to make API call + /// The registry id. + /// The bucket id. + /// The flow id. + /// Task of ApiResponse (VersionedFlowSnapshotMetadataSetEntity) + public async System.Threading.Tasks.Task> GetVersionsAsyncWithHttpInfo (string registryId, string bucketId, string flowId) + { + // verify the required parameter 'registryId' is set + if (registryId == null) + throw new ApiException(400, "Missing required parameter 'registryId' when calling FlowApi->GetVersions"); + // verify the required parameter 'bucketId' is set + if (bucketId == null) + throw new ApiException(400, "Missing required parameter 'bucketId' when calling FlowApi->GetVersions"); + // verify the required parameter 'flowId' is set + if (flowId == null) + throw new ApiException(400, "Missing required parameter 'flowId' when calling FlowApi->GetVersions"); + + var localVarPath = "/flow/registries/{registry-id}/buckets/{bucket-id}/flows/{flow-id}/versions"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "*/*" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (registryId != null) localVarPathParams.Add("registry-id", this.Configuration.ApiClient.ParameterToString(registryId)); // path parameter + if (bucketId != null) localVarPathParams.Add("bucket-id", this.Configuration.ApiClient.ParameterToString(bucketId)); // path parameter + if (flowId != null) localVarPathParams.Add("flow-id", this.Configuration.ApiClient.ParameterToString(flowId)); // path parameter + + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (this.ExceptionFactory != null) + { + Exception exception = this.ExceptionFactory("GetVersions", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), + (VersionedFlowSnapshotMetadataSetEntity) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(VersionedFlowSnapshotMetadataSetEntity))); + } + + /// + /// Gets configuration history Note: This endpoint is subject to change as NiFi and it's REST API evolve. + /// + /// Thrown when fails to make API call + /// The offset into the result set. + /// The number of actions to return. + /// The field to sort on. (optional) + /// The direction to sort. (optional) + /// Include actions after this date. (optional) + /// Include actions before this date. (optional) + /// Include actions performed by this user. (optional) + /// Include actions on this component. (optional) + /// HistoryEntity + public HistoryEntity QueryHistory (string offset, string count, string sortColumn = null, string sortOrder = null, string startDate = null, string endDate = null, string userIdentity = null, string sourceId = null) + { + ApiResponse localVarResponse = this.QueryHistoryWithHttpInfo(offset, count, sortColumn, sortOrder, startDate, endDate, userIdentity, sourceId); + return localVarResponse.Data; + } + + /// + /// Gets configuration history Note: This endpoint is subject to change as NiFi and it's REST API evolve. + /// + /// Thrown when fails to make API call + /// The offset into the result set. + /// The number of actions to return. + /// The field to sort on. (optional) + /// The direction to sort. (optional) + /// Include actions after this date. (optional) + /// Include actions before this date. (optional) + /// Include actions performed by this user. (optional) + /// Include actions on this component. (optional) + /// ApiResponse of HistoryEntity + public ApiResponse< HistoryEntity > QueryHistoryWithHttpInfo (string offset, string count, string sortColumn = null, string sortOrder = null, string startDate = null, string endDate = null, string userIdentity = null, string sourceId = null) + { + // verify the required parameter 'offset' is set + if (offset == null) + throw new ApiException(400, "Missing required parameter 'offset' when calling FlowApi->QueryHistory"); + // verify the required parameter 'count' is set + if (count == null) + throw new ApiException(400, "Missing required parameter 'count' when calling FlowApi->QueryHistory"); + + var localVarPath = "/flow/history"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "*/*" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (offset != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "offset", offset)); // query parameter + if (count != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "count", count)); // query parameter + if (sortColumn != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "sortColumn", sortColumn)); // query parameter + if (sortOrder != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "sortOrder", sortOrder)); // query parameter + if (startDate != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "startDate", startDate)); // query parameter + if (endDate != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "endDate", endDate)); // query parameter + if (userIdentity != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "userIdentity", userIdentity)); // query parameter + if (sourceId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "sourceId", sourceId)); // query parameter + + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (this.ExceptionFactory != null) + { + Exception exception = this.ExceptionFactory("QueryHistory", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), + (HistoryEntity) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(HistoryEntity))); + } + + /// + /// Gets configuration history Note: This endpoint is subject to change as NiFi and it's REST API evolve. + /// + /// Thrown when fails to make API call + /// The offset into the result set. + /// The number of actions to return. + /// The field to sort on. (optional) + /// The direction to sort. (optional) + /// Include actions after this date. (optional) + /// Include actions before this date. (optional) + /// Include actions performed by this user. (optional) + /// Include actions on this component. (optional) + /// Task of HistoryEntity + public async System.Threading.Tasks.Task QueryHistoryAsync (string offset, string count, string sortColumn = null, string sortOrder = null, string startDate = null, string endDate = null, string userIdentity = null, string sourceId = null) + { + ApiResponse localVarResponse = await this.QueryHistoryAsyncWithHttpInfo(offset, count, sortColumn, sortOrder, startDate, endDate, userIdentity, sourceId); + return localVarResponse.Data; + + } + + /// + /// Gets configuration history Note: This endpoint is subject to change as NiFi and it's REST API evolve. + /// + /// Thrown when fails to make API call + /// The offset into the result set. + /// The number of actions to return. + /// The field to sort on. (optional) + /// The direction to sort. (optional) + /// Include actions after this date. (optional) + /// Include actions before this date. (optional) + /// Include actions performed by this user. (optional) + /// Include actions on this component. (optional) + /// Task of ApiResponse (HistoryEntity) + public async System.Threading.Tasks.Task> QueryHistoryAsyncWithHttpInfo (string offset, string count, string sortColumn = null, string sortOrder = null, string startDate = null, string endDate = null, string userIdentity = null, string sourceId = null) + { + // verify the required parameter 'offset' is set + if (offset == null) + throw new ApiException(400, "Missing required parameter 'offset' when calling FlowApi->QueryHistory"); + // verify the required parameter 'count' is set + if (count == null) + throw new ApiException(400, "Missing required parameter 'count' when calling FlowApi->QueryHistory"); + + var localVarPath = "/flow/history"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "*/*" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (offset != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "offset", offset)); // query parameter + if (count != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "count", count)); // query parameter + if (sortColumn != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "sortColumn", sortColumn)); // query parameter + if (sortOrder != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "sortOrder", sortOrder)); // query parameter + if (startDate != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "startDate", startDate)); // query parameter + if (endDate != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "endDate", endDate)); // query parameter + if (userIdentity != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "userIdentity", userIdentity)); // query parameter + if (sourceId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "sourceId", sourceId)); // query parameter + + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (this.ExceptionFactory != null) + { + Exception exception = this.ExceptionFactory("QueryHistory", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), + (HistoryEntity) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(HistoryEntity))); + } + + /// + /// Schedule or unschedule components in the specified Process Group. + /// + /// Thrown when fails to make API call + /// The process group id. + /// The request to schedule or unschedule. If the comopnents in the request are not specified, all authorized components will be considered. + /// ScheduleComponentsEntity + public ScheduleComponentsEntity ScheduleComponents (string id, ScheduleComponentsEntity body) + { + ApiResponse localVarResponse = this.ScheduleComponentsWithHttpInfo(id, body); + return localVarResponse.Data; + } + + /// + /// Schedule or unschedule components in the specified Process Group. + /// + /// Thrown when fails to make API call + /// The process group id. + /// The request to schedule or unschedule. If the comopnents in the request are not specified, all authorized components will be considered. + /// ApiResponse of ScheduleComponentsEntity + public ApiResponse< ScheduleComponentsEntity > ScheduleComponentsWithHttpInfo (string id, ScheduleComponentsEntity body) + { + // verify the required parameter 'id' is set + if (id == null) + throw new ApiException(400, "Missing required parameter 'id' when calling FlowApi->ScheduleComponents"); + // verify the required parameter 'body' is set + if (body == null) + throw new ApiException(400, "Missing required parameter 'body' when calling FlowApi->ScheduleComponents"); + + var localVarPath = "/flow/process-groups/{id}"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "application/json" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter + if (body != null && body.GetType() != typeof(byte[])) + { + localVarPostBody = this.Configuration.ApiClient.Serialize(body); // http body (model) parameter + } + else + { + localVarPostBody = body; // byte array + } + + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.PUT, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (this.ExceptionFactory != null) + { + Exception exception = this.ExceptionFactory("ScheduleComponents", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), + (ScheduleComponentsEntity) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(ScheduleComponentsEntity))); + } + + /// + /// Schedule or unschedule components in the specified Process Group. + /// + /// Thrown when fails to make API call + /// The process group id. + /// The request to schedule or unschedule. If the comopnents in the request are not specified, all authorized components will be considered. + /// Task of ScheduleComponentsEntity + public async System.Threading.Tasks.Task ScheduleComponentsAsync (string id, ScheduleComponentsEntity body) + { + ApiResponse localVarResponse = await this.ScheduleComponentsAsyncWithHttpInfo(id, body); + return localVarResponse.Data; + + } + + /// + /// Schedule or unschedule components in the specified Process Group. + /// + /// Thrown when fails to make API call + /// The process group id. + /// The request to schedule or unschedule. If the comopnents in the request are not specified, all authorized components will be considered. + /// Task of ApiResponse (ScheduleComponentsEntity) + public async System.Threading.Tasks.Task> ScheduleComponentsAsyncWithHttpInfo (string id, ScheduleComponentsEntity body) + { + // verify the required parameter 'id' is set + if (id == null) + throw new ApiException(400, "Missing required parameter 'id' when calling FlowApi->ScheduleComponents"); + // verify the required parameter 'body' is set + if (body == null) + throw new ApiException(400, "Missing required parameter 'body' when calling FlowApi->ScheduleComponents"); + + var localVarPath = "/flow/process-groups/{id}"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "application/json" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter + if (body != null && body.GetType() != typeof(byte[])) + { + localVarPostBody = this.Configuration.ApiClient.Serialize(body); // http body (model) parameter + } + else + { + localVarPostBody = body; // byte array + } + + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.PUT, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (this.ExceptionFactory != null) + { + Exception exception = this.ExceptionFactory("ScheduleComponents", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), + (ScheduleComponentsEntity) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(ScheduleComponentsEntity))); + } + + /// + /// Searches the cluster for a node with the specified address Note: This endpoint is subject to change as NiFi and it's REST API evolve. + /// + /// Thrown when fails to make API call + /// Node address to search for. + /// ClusterSearchResultsEntity + public ClusterSearchResultsEntity SearchCluster (string q) + { + ApiResponse localVarResponse = this.SearchClusterWithHttpInfo(q); + return localVarResponse.Data; + } + + /// + /// Searches the cluster for a node with the specified address Note: This endpoint is subject to change as NiFi and it's REST API evolve. + /// + /// Thrown when fails to make API call + /// Node address to search for. + /// ApiResponse of ClusterSearchResultsEntity + public ApiResponse< ClusterSearchResultsEntity > SearchClusterWithHttpInfo (string q) + { + // verify the required parameter 'q' is set + if (q == null) + throw new ApiException(400, "Missing required parameter 'q' when calling FlowApi->SearchCluster"); + + var localVarPath = "/flow/cluster/search-results"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "*/*" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (q != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "q", q)); // query parameter + + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (this.ExceptionFactory != null) + { + Exception exception = this.ExceptionFactory("SearchCluster", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), + (ClusterSearchResultsEntity) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(ClusterSearchResultsEntity))); + } + + /// + /// Searches the cluster for a node with the specified address Note: This endpoint is subject to change as NiFi and it's REST API evolve. + /// + /// Thrown when fails to make API call + /// Node address to search for. + /// Task of ClusterSearchResultsEntity + public async System.Threading.Tasks.Task SearchClusterAsync (string q) + { + ApiResponse localVarResponse = await this.SearchClusterAsyncWithHttpInfo(q); + return localVarResponse.Data; + + } + + /// + /// Searches the cluster for a node with the specified address Note: This endpoint is subject to change as NiFi and it's REST API evolve. + /// + /// Thrown when fails to make API call + /// Node address to search for. + /// Task of ApiResponse (ClusterSearchResultsEntity) + public async System.Threading.Tasks.Task> SearchClusterAsyncWithHttpInfo (string q) + { + // verify the required parameter 'q' is set + if (q == null) + throw new ApiException(400, "Missing required parameter 'q' when calling FlowApi->SearchCluster"); + + var localVarPath = "/flow/cluster/search-results"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "*/*" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (q != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "q", q)); // query parameter + + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (this.ExceptionFactory != null) + { + Exception exception = this.ExceptionFactory("SearchCluster", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), + (ClusterSearchResultsEntity) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(ClusterSearchResultsEntity))); + } + + /// + /// Performs a search against this NiFi using the specified search term Only search results from authorized components will be returned. + /// + /// Thrown when fails to make API call + /// (optional) + /// SearchResultsEntity + public SearchResultsEntity SearchFlow (string q = null) + { + ApiResponse localVarResponse = this.SearchFlowWithHttpInfo(q); + return localVarResponse.Data; + } + + /// + /// Performs a search against this NiFi using the specified search term Only search results from authorized components will be returned. + /// + /// Thrown when fails to make API call + /// (optional) + /// ApiResponse of SearchResultsEntity + public ApiResponse< SearchResultsEntity > SearchFlowWithHttpInfo (string q = null) + { + + var localVarPath = "/flow/search-results"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "*/*" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (q != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "q", q)); // query parameter + + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (this.ExceptionFactory != null) + { + Exception exception = this.ExceptionFactory("SearchFlow", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), + (SearchResultsEntity) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(SearchResultsEntity))); + } + + /// + /// Performs a search against this NiFi using the specified search term Only search results from authorized components will be returned. + /// + /// Thrown when fails to make API call + /// (optional) + /// Task of SearchResultsEntity + public async System.Threading.Tasks.Task SearchFlowAsync (string q = null) + { + ApiResponse localVarResponse = await this.SearchFlowAsyncWithHttpInfo(q); + return localVarResponse.Data; + + } + + /// + /// Performs a search against this NiFi using the specified search term Only search results from authorized components will be returned. + /// + /// Thrown when fails to make API call + /// (optional) + /// Task of ApiResponse (SearchResultsEntity) + public async System.Threading.Tasks.Task> SearchFlowAsyncWithHttpInfo (string q = null) + { + + var localVarPath = "/flow/search-results"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "*/*" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (q != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "q", q)); // query parameter + + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (this.ExceptionFactory != null) + { + Exception exception = this.ExceptionFactory("SearchFlow", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), + (SearchResultsEntity) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(SearchResultsEntity))); + } + + } +} diff --git a/NiFi.Swagger/Api/FlowfileQueuesApi.cs b/NiFi.Swagger/Api/FlowfileQueuesApi.cs new file mode 100644 index 0000000..bd062e2 --- /dev/null +++ b/NiFi.Swagger/Api/FlowfileQueuesApi.cs @@ -0,0 +1,1674 @@ +/* + * NiFi Rest Api + * + * The Rest Api provides programmatic access to command and control a NiFi instance in real time. Start and stop processors, monitor queues, query provenance data, and more. Each endpoint below includes a description, definitions of the expected input and output, potential response codes, and the authorizations required to invoke each service. + * + * OpenAPI spec version: 1.9.1 + * Contact: dev@nifi.apache.org + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +namespace NiFi.Swagger.Api +{ + using System; + using System.Collections.Generic; + using System.Collections.ObjectModel; + using System.Linq; + + using NiFi.Swagger.Client; + using NiFi.Swagger.Model; + + using RestSharp; + + /// + /// Represents a collection of functions to interact with the API endpoints + /// + public interface IFlowfileQueuesApi : IApiAccessor + { + #region Synchronous Operations + /// + /// Creates a request to drop the contents of the queue in this connection. + /// + /// + /// + /// + /// Thrown when fails to make API call + /// The connection id. + /// DropRequestEntity + DropRequestEntity CreateDropRequest (string id); + + /// + /// Creates a request to drop the contents of the queue in this connection. + /// + /// + /// + /// + /// Thrown when fails to make API call + /// The connection id. + /// ApiResponse of DropRequestEntity + ApiResponse CreateDropRequestWithHttpInfo (string id); + /// + /// Lists the contents of the queue in this connection. + /// + /// + /// + /// + /// Thrown when fails to make API call + /// The connection id. + /// ListingRequestEntity + ListingRequestEntity CreateFlowFileListing (string id); + + /// + /// Lists the contents of the queue in this connection. + /// + /// + /// + /// + /// Thrown when fails to make API call + /// The connection id. + /// ApiResponse of ListingRequestEntity + ApiResponse CreateFlowFileListingWithHttpInfo (string id); + /// + /// Cancels and/or removes a request to list the contents of this connection. + /// + /// + /// + /// + /// Thrown when fails to make API call + /// The connection id. + /// The listing request id. + /// ListingRequestEntity + ListingRequestEntity DeleteListingRequest (string id, string listingRequestId); + + /// + /// Cancels and/or removes a request to list the contents of this connection. + /// + /// + /// + /// + /// Thrown when fails to make API call + /// The connection id. + /// The listing request id. + /// ApiResponse of ListingRequestEntity + ApiResponse DeleteListingRequestWithHttpInfo (string id, string listingRequestId); + /// + /// Gets the content for a FlowFile in a Connection. + /// + /// + /// + /// + /// Thrown when fails to make API call + /// The connection id. + /// The flowfile uuid. + /// If the client id is not specified, new one will be generated. This value (whether specified or generated) is included in the response. (optional) + /// The id of the node where the content exists if clustered. (optional) + /// StreamingOutput + StreamingOutput DownloadFlowFileContent (string id, string flowfileUuid, string clientId = null, string clusterNodeId = null); + + /// + /// Gets the content for a FlowFile in a Connection. + /// + /// + /// + /// + /// Thrown when fails to make API call + /// The connection id. + /// The flowfile uuid. + /// If the client id is not specified, new one will be generated. This value (whether specified or generated) is included in the response. (optional) + /// The id of the node where the content exists if clustered. (optional) + /// ApiResponse of StreamingOutput + ApiResponse DownloadFlowFileContentWithHttpInfo (string id, string flowfileUuid, string clientId = null, string clusterNodeId = null); + /// + /// Gets the current status of a drop request for the specified connection. + /// + /// + /// + /// + /// Thrown when fails to make API call + /// The connection id. + /// The drop request id. + /// DropRequestEntity + DropRequestEntity GetDropRequest (string id, string dropRequestId); + + /// + /// Gets the current status of a drop request for the specified connection. + /// + /// + /// + /// + /// Thrown when fails to make API call + /// The connection id. + /// The drop request id. + /// ApiResponse of DropRequestEntity + ApiResponse GetDropRequestWithHttpInfo (string id, string dropRequestId); + /// + /// Gets a FlowFile from a Connection. + /// + /// + /// + /// + /// Thrown when fails to make API call + /// The connection id. + /// The flowfile uuid. + /// The id of the node where the content exists if clustered. (optional) + /// FlowFileEntity + FlowFileEntity GetFlowFile (string id, string flowfileUuid, string clusterNodeId = null); + + /// + /// Gets a FlowFile from a Connection. + /// + /// + /// + /// + /// Thrown when fails to make API call + /// The connection id. + /// The flowfile uuid. + /// The id of the node where the content exists if clustered. (optional) + /// ApiResponse of FlowFileEntity + ApiResponse GetFlowFileWithHttpInfo (string id, string flowfileUuid, string clusterNodeId = null); + /// + /// Gets the current status of a listing request for the specified connection. + /// + /// + /// + /// + /// Thrown when fails to make API call + /// The connection id. + /// The listing request id. + /// ListingRequestEntity + ListingRequestEntity GetListingRequest (string id, string listingRequestId); + + /// + /// Gets the current status of a listing request for the specified connection. + /// + /// + /// + /// + /// Thrown when fails to make API call + /// The connection id. + /// The listing request id. + /// ApiResponse of ListingRequestEntity + ApiResponse GetListingRequestWithHttpInfo (string id, string listingRequestId); + /// + /// Cancels and/or removes a request to drop the contents of this connection. + /// + /// + /// + /// + /// Thrown when fails to make API call + /// The connection id. + /// The drop request id. + /// DropRequestEntity + DropRequestEntity RemoveDropRequest (string id, string dropRequestId); + + /// + /// Cancels and/or removes a request to drop the contents of this connection. + /// + /// + /// + /// + /// Thrown when fails to make API call + /// The connection id. + /// The drop request id. + /// ApiResponse of DropRequestEntity + ApiResponse RemoveDropRequestWithHttpInfo (string id, string dropRequestId); + #endregion Synchronous Operations + #region Asynchronous Operations + /// + /// Creates a request to drop the contents of the queue in this connection. + /// + /// + /// + /// + /// Thrown when fails to make API call + /// The connection id. + /// Task of DropRequestEntity + System.Threading.Tasks.Task CreateDropRequestAsync (string id); + + /// + /// Creates a request to drop the contents of the queue in this connection. + /// + /// + /// + /// + /// Thrown when fails to make API call + /// The connection id. + /// Task of ApiResponse (DropRequestEntity) + System.Threading.Tasks.Task> CreateDropRequestAsyncWithHttpInfo (string id); + /// + /// Lists the contents of the queue in this connection. + /// + /// + /// + /// + /// Thrown when fails to make API call + /// The connection id. + /// Task of ListingRequestEntity + System.Threading.Tasks.Task CreateFlowFileListingAsync (string id); + + /// + /// Lists the contents of the queue in this connection. + /// + /// + /// + /// + /// Thrown when fails to make API call + /// The connection id. + /// Task of ApiResponse (ListingRequestEntity) + System.Threading.Tasks.Task> CreateFlowFileListingAsyncWithHttpInfo (string id); + /// + /// Cancels and/or removes a request to list the contents of this connection. + /// + /// + /// + /// + /// Thrown when fails to make API call + /// The connection id. + /// The listing request id. + /// Task of ListingRequestEntity + System.Threading.Tasks.Task DeleteListingRequestAsync (string id, string listingRequestId); + + /// + /// Cancels and/or removes a request to list the contents of this connection. + /// + /// + /// + /// + /// Thrown when fails to make API call + /// The connection id. + /// The listing request id. + /// Task of ApiResponse (ListingRequestEntity) + System.Threading.Tasks.Task> DeleteListingRequestAsyncWithHttpInfo (string id, string listingRequestId); + /// + /// Gets the content for a FlowFile in a Connection. + /// + /// + /// + /// + /// Thrown when fails to make API call + /// The connection id. + /// The flowfile uuid. + /// If the client id is not specified, new one will be generated. This value (whether specified or generated) is included in the response. (optional) + /// The id of the node where the content exists if clustered. (optional) + /// Task of StreamingOutput + System.Threading.Tasks.Task DownloadFlowFileContentAsync (string id, string flowfileUuid, string clientId = null, string clusterNodeId = null); + + /// + /// Gets the content for a FlowFile in a Connection. + /// + /// + /// + /// + /// Thrown when fails to make API call + /// The connection id. + /// The flowfile uuid. + /// If the client id is not specified, new one will be generated. This value (whether specified or generated) is included in the response. (optional) + /// The id of the node where the content exists if clustered. (optional) + /// Task of ApiResponse (StreamingOutput) + System.Threading.Tasks.Task> DownloadFlowFileContentAsyncWithHttpInfo (string id, string flowfileUuid, string clientId = null, string clusterNodeId = null); + /// + /// Gets the current status of a drop request for the specified connection. + /// + /// + /// + /// + /// Thrown when fails to make API call + /// The connection id. + /// The drop request id. + /// Task of DropRequestEntity + System.Threading.Tasks.Task GetDropRequestAsync (string id, string dropRequestId); + + /// + /// Gets the current status of a drop request for the specified connection. + /// + /// + /// + /// + /// Thrown when fails to make API call + /// The connection id. + /// The drop request id. + /// Task of ApiResponse (DropRequestEntity) + System.Threading.Tasks.Task> GetDropRequestAsyncWithHttpInfo (string id, string dropRequestId); + /// + /// Gets a FlowFile from a Connection. + /// + /// + /// + /// + /// Thrown when fails to make API call + /// The connection id. + /// The flowfile uuid. + /// The id of the node where the content exists if clustered. (optional) + /// Task of FlowFileEntity + System.Threading.Tasks.Task GetFlowFileAsync (string id, string flowfileUuid, string clusterNodeId = null); + + /// + /// Gets a FlowFile from a Connection. + /// + /// + /// + /// + /// Thrown when fails to make API call + /// The connection id. + /// The flowfile uuid. + /// The id of the node where the content exists if clustered. (optional) + /// Task of ApiResponse (FlowFileEntity) + System.Threading.Tasks.Task> GetFlowFileAsyncWithHttpInfo (string id, string flowfileUuid, string clusterNodeId = null); + /// + /// Gets the current status of a listing request for the specified connection. + /// + /// + /// + /// + /// Thrown when fails to make API call + /// The connection id. + /// The listing request id. + /// Task of ListingRequestEntity + System.Threading.Tasks.Task GetListingRequestAsync (string id, string listingRequestId); + + /// + /// Gets the current status of a listing request for the specified connection. + /// + /// + /// + /// + /// Thrown when fails to make API call + /// The connection id. + /// The listing request id. + /// Task of ApiResponse (ListingRequestEntity) + System.Threading.Tasks.Task> GetListingRequestAsyncWithHttpInfo (string id, string listingRequestId); + /// + /// Cancels and/or removes a request to drop the contents of this connection. + /// + /// + /// + /// + /// Thrown when fails to make API call + /// The connection id. + /// The drop request id. + /// Task of DropRequestEntity + System.Threading.Tasks.Task RemoveDropRequestAsync (string id, string dropRequestId); + + /// + /// Cancels and/or removes a request to drop the contents of this connection. + /// + /// + /// + /// + /// Thrown when fails to make API call + /// The connection id. + /// The drop request id. + /// Task of ApiResponse (DropRequestEntity) + System.Threading.Tasks.Task> RemoveDropRequestAsyncWithHttpInfo (string id, string dropRequestId); + #endregion Asynchronous Operations + } + + /// + /// Represents a collection of functions to interact with the API endpoints + /// + public partial class FlowfileQueuesApi : IFlowfileQueuesApi + { + private ExceptionFactory _exceptionFactory = (name, response) => null; + + /// + /// Initializes a new instance of the class. + /// + /// + public FlowfileQueuesApi(String basePath) + { + this.Configuration = new Configuration { BasePath = basePath }; + + this.ExceptionFactory = Configuration.DefaultExceptionFactory; + } + + /// + /// Initializes a new instance of the class + /// using Configuration object + /// + /// An instance of Configuration + /// + public FlowfileQueuesApi(Configuration configuration = null) + { + if (configuration == null) // use the default one in Configuration + this.Configuration = Configuration.Default; + else + this.Configuration = configuration; + + this.ExceptionFactory = Configuration.DefaultExceptionFactory; + } + + /// + /// Gets the base path of the API client. + /// + /// The base path + public String GetBasePath() + { + return this.Configuration.ApiClient.RestClient.BaseUrl.ToString(); + } + + /// + /// Sets the base path of the API client. + /// + /// The base path + [Obsolete("SetBasePath is deprecated, please do 'Configuration.ApiClient = new ApiClient(\"http://new-path\")' instead.")] + public void SetBasePath(String basePath) + { + // do nothing + } + + /// + /// Gets or sets the configuration object + /// + /// An instance of the Configuration + public Configuration Configuration {get; set;} + + /// + /// Provides a factory method hook for the creation of exceptions. + /// + public ExceptionFactory ExceptionFactory + { + get + { + if (this._exceptionFactory != null && this._exceptionFactory.GetInvocationList().Length > 1) + { + throw new InvalidOperationException("Multicast delegate for ExceptionFactory is unsupported."); + } + return this._exceptionFactory; + } + set { this._exceptionFactory = value; } + } + + /// + /// Gets the default header. + /// + /// Dictionary of HTTP header + [Obsolete("DefaultHeader is deprecated, please use Configuration.DefaultHeader instead.")] + public IDictionary DefaultHeader() + { + return new ReadOnlyDictionary(this.Configuration.DefaultHeader); + } + + /// + /// Add default header. + /// + /// Header field name. + /// Header field value. + /// + [Obsolete("AddDefaultHeader is deprecated, please use Configuration.AddDefaultHeader instead.")] + public void AddDefaultHeader(string key, string value) + { + this.Configuration.AddDefaultHeader(key, value); + } + + /// + /// Creates a request to drop the contents of the queue in this connection. + /// + /// Thrown when fails to make API call + /// The connection id. + /// DropRequestEntity + public DropRequestEntity CreateDropRequest (string id) + { + ApiResponse localVarResponse = this.CreateDropRequestWithHttpInfo(id); + return localVarResponse.Data; + } + + /// + /// Creates a request to drop the contents of the queue in this connection. + /// + /// Thrown when fails to make API call + /// The connection id. + /// ApiResponse of DropRequestEntity + public ApiResponse< DropRequestEntity > CreateDropRequestWithHttpInfo (string id) + { + // verify the required parameter 'id' is set + if (id == null) + throw new ApiException(400, "Missing required parameter 'id' when calling FlowfileQueuesApi->CreateDropRequest"); + + var localVarPath = "/flowfile-queues/{id}/drop-requests"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "*/*" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter + + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (this.ExceptionFactory != null) + { + Exception exception = this.ExceptionFactory("CreateDropRequest", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), + (DropRequestEntity) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(DropRequestEntity))); + } + + /// + /// Creates a request to drop the contents of the queue in this connection. + /// + /// Thrown when fails to make API call + /// The connection id. + /// Task of DropRequestEntity + public async System.Threading.Tasks.Task CreateDropRequestAsync (string id) + { + ApiResponse localVarResponse = await this.CreateDropRequestAsyncWithHttpInfo(id); + return localVarResponse.Data; + + } + + /// + /// Creates a request to drop the contents of the queue in this connection. + /// + /// Thrown when fails to make API call + /// The connection id. + /// Task of ApiResponse (DropRequestEntity) + public async System.Threading.Tasks.Task> CreateDropRequestAsyncWithHttpInfo (string id) + { + // verify the required parameter 'id' is set + if (id == null) + throw new ApiException(400, "Missing required parameter 'id' when calling FlowfileQueuesApi->CreateDropRequest"); + + var localVarPath = "/flowfile-queues/{id}/drop-requests"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "*/*" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter + + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (this.ExceptionFactory != null) + { + Exception exception = this.ExceptionFactory("CreateDropRequest", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), + (DropRequestEntity) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(DropRequestEntity))); + } + + /// + /// Lists the contents of the queue in this connection. + /// + /// Thrown when fails to make API call + /// The connection id. + /// ListingRequestEntity + public ListingRequestEntity CreateFlowFileListing (string id) + { + ApiResponse localVarResponse = this.CreateFlowFileListingWithHttpInfo(id); + return localVarResponse.Data; + } + + /// + /// Lists the contents of the queue in this connection. + /// + /// Thrown when fails to make API call + /// The connection id. + /// ApiResponse of ListingRequestEntity + public ApiResponse< ListingRequestEntity > CreateFlowFileListingWithHttpInfo (string id) + { + // verify the required parameter 'id' is set + if (id == null) + throw new ApiException(400, "Missing required parameter 'id' when calling FlowfileQueuesApi->CreateFlowFileListing"); + + var localVarPath = "/flowfile-queues/{id}/listing-requests"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "*/*" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter + + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (this.ExceptionFactory != null) + { + Exception exception = this.ExceptionFactory("CreateFlowFileListing", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), + (ListingRequestEntity) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(ListingRequestEntity))); + } + + /// + /// Lists the contents of the queue in this connection. + /// + /// Thrown when fails to make API call + /// The connection id. + /// Task of ListingRequestEntity + public async System.Threading.Tasks.Task CreateFlowFileListingAsync (string id) + { + ApiResponse localVarResponse = await this.CreateFlowFileListingAsyncWithHttpInfo(id); + return localVarResponse.Data; + + } + + /// + /// Lists the contents of the queue in this connection. + /// + /// Thrown when fails to make API call + /// The connection id. + /// Task of ApiResponse (ListingRequestEntity) + public async System.Threading.Tasks.Task> CreateFlowFileListingAsyncWithHttpInfo (string id) + { + // verify the required parameter 'id' is set + if (id == null) + throw new ApiException(400, "Missing required parameter 'id' when calling FlowfileQueuesApi->CreateFlowFileListing"); + + var localVarPath = "/flowfile-queues/{id}/listing-requests"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "*/*" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter + + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (this.ExceptionFactory != null) + { + Exception exception = this.ExceptionFactory("CreateFlowFileListing", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), + (ListingRequestEntity) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(ListingRequestEntity))); + } + + /// + /// Cancels and/or removes a request to list the contents of this connection. + /// + /// Thrown when fails to make API call + /// The connection id. + /// The listing request id. + /// ListingRequestEntity + public ListingRequestEntity DeleteListingRequest (string id, string listingRequestId) + { + ApiResponse localVarResponse = this.DeleteListingRequestWithHttpInfo(id, listingRequestId); + return localVarResponse.Data; + } + + /// + /// Cancels and/or removes a request to list the contents of this connection. + /// + /// Thrown when fails to make API call + /// The connection id. + /// The listing request id. + /// ApiResponse of ListingRequestEntity + public ApiResponse< ListingRequestEntity > DeleteListingRequestWithHttpInfo (string id, string listingRequestId) + { + // verify the required parameter 'id' is set + if (id == null) + throw new ApiException(400, "Missing required parameter 'id' when calling FlowfileQueuesApi->DeleteListingRequest"); + // verify the required parameter 'listingRequestId' is set + if (listingRequestId == null) + throw new ApiException(400, "Missing required parameter 'listingRequestId' when calling FlowfileQueuesApi->DeleteListingRequest"); + + var localVarPath = "/flowfile-queues/{id}/listing-requests/{listing-request-id}"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "*/*" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter + if (listingRequestId != null) localVarPathParams.Add("listing-request-id", this.Configuration.ApiClient.ParameterToString(listingRequestId)); // path parameter + + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.DELETE, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (this.ExceptionFactory != null) + { + Exception exception = this.ExceptionFactory("DeleteListingRequest", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), + (ListingRequestEntity) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(ListingRequestEntity))); + } + + /// + /// Cancels and/or removes a request to list the contents of this connection. + /// + /// Thrown when fails to make API call + /// The connection id. + /// The listing request id. + /// Task of ListingRequestEntity + public async System.Threading.Tasks.Task DeleteListingRequestAsync (string id, string listingRequestId) + { + ApiResponse localVarResponse = await this.DeleteListingRequestAsyncWithHttpInfo(id, listingRequestId); + return localVarResponse.Data; + + } + + /// + /// Cancels and/or removes a request to list the contents of this connection. + /// + /// Thrown when fails to make API call + /// The connection id. + /// The listing request id. + /// Task of ApiResponse (ListingRequestEntity) + public async System.Threading.Tasks.Task> DeleteListingRequestAsyncWithHttpInfo (string id, string listingRequestId) + { + // verify the required parameter 'id' is set + if (id == null) + throw new ApiException(400, "Missing required parameter 'id' when calling FlowfileQueuesApi->DeleteListingRequest"); + // verify the required parameter 'listingRequestId' is set + if (listingRequestId == null) + throw new ApiException(400, "Missing required parameter 'listingRequestId' when calling FlowfileQueuesApi->DeleteListingRequest"); + + var localVarPath = "/flowfile-queues/{id}/listing-requests/{listing-request-id}"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "*/*" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter + if (listingRequestId != null) localVarPathParams.Add("listing-request-id", this.Configuration.ApiClient.ParameterToString(listingRequestId)); // path parameter + + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.DELETE, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (this.ExceptionFactory != null) + { + Exception exception = this.ExceptionFactory("DeleteListingRequest", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), + (ListingRequestEntity) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(ListingRequestEntity))); + } + + /// + /// Gets the content for a FlowFile in a Connection. + /// + /// Thrown when fails to make API call + /// The connection id. + /// The flowfile uuid. + /// If the client id is not specified, new one will be generated. This value (whether specified or generated) is included in the response. (optional) + /// The id of the node where the content exists if clustered. (optional) + /// StreamingOutput + public StreamingOutput DownloadFlowFileContent (string id, string flowfileUuid, string clientId = null, string clusterNodeId = null) + { + ApiResponse localVarResponse = this.DownloadFlowFileContentWithHttpInfo(id, flowfileUuid, clientId, clusterNodeId); + return localVarResponse.Data; + } + + /// + /// Gets the content for a FlowFile in a Connection. + /// + /// Thrown when fails to make API call + /// The connection id. + /// The flowfile uuid. + /// If the client id is not specified, new one will be generated. This value (whether specified or generated) is included in the response. (optional) + /// The id of the node where the content exists if clustered. (optional) + /// ApiResponse of StreamingOutput + public ApiResponse< StreamingOutput > DownloadFlowFileContentWithHttpInfo (string id, string flowfileUuid, string clientId = null, string clusterNodeId = null) + { + // verify the required parameter 'id' is set + if (id == null) + throw new ApiException(400, "Missing required parameter 'id' when calling FlowfileQueuesApi->DownloadFlowFileContent"); + // verify the required parameter 'flowfileUuid' is set + if (flowfileUuid == null) + throw new ApiException(400, "Missing required parameter 'flowfileUuid' when calling FlowfileQueuesApi->DownloadFlowFileContent"); + + var localVarPath = "/flowfile-queues/{id}/flowfiles/{flowfile-uuid}/content"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "*/*" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "*/*" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter + if (flowfileUuid != null) localVarPathParams.Add("flowfile-uuid", this.Configuration.ApiClient.ParameterToString(flowfileUuid)); // path parameter + if (clientId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "clientId", clientId)); // query parameter + if (clusterNodeId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "clusterNodeId", clusterNodeId)); // query parameter + + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (this.ExceptionFactory != null) + { + Exception exception = this.ExceptionFactory("DownloadFlowFileContent", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), + (StreamingOutput) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(StreamingOutput))); + } + + /// + /// Gets the content for a FlowFile in a Connection. + /// + /// Thrown when fails to make API call + /// The connection id. + /// The flowfile uuid. + /// If the client id is not specified, new one will be generated. This value (whether specified or generated) is included in the response. (optional) + /// The id of the node where the content exists if clustered. (optional) + /// Task of StreamingOutput + public async System.Threading.Tasks.Task DownloadFlowFileContentAsync (string id, string flowfileUuid, string clientId = null, string clusterNodeId = null) + { + ApiResponse localVarResponse = await this.DownloadFlowFileContentAsyncWithHttpInfo(id, flowfileUuid, clientId, clusterNodeId); + return localVarResponse.Data; + + } + + /// + /// Gets the content for a FlowFile in a Connection. + /// + /// Thrown when fails to make API call + /// The connection id. + /// The flowfile uuid. + /// If the client id is not specified, new one will be generated. This value (whether specified or generated) is included in the response. (optional) + /// The id of the node where the content exists if clustered. (optional) + /// Task of ApiResponse (StreamingOutput) + public async System.Threading.Tasks.Task> DownloadFlowFileContentAsyncWithHttpInfo (string id, string flowfileUuid, string clientId = null, string clusterNodeId = null) + { + // verify the required parameter 'id' is set + if (id == null) + throw new ApiException(400, "Missing required parameter 'id' when calling FlowfileQueuesApi->DownloadFlowFileContent"); + // verify the required parameter 'flowfileUuid' is set + if (flowfileUuid == null) + throw new ApiException(400, "Missing required parameter 'flowfileUuid' when calling FlowfileQueuesApi->DownloadFlowFileContent"); + + var localVarPath = "/flowfile-queues/{id}/flowfiles/{flowfile-uuid}/content"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "*/*" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "*/*" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter + if (flowfileUuid != null) localVarPathParams.Add("flowfile-uuid", this.Configuration.ApiClient.ParameterToString(flowfileUuid)); // path parameter + if (clientId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "clientId", clientId)); // query parameter + if (clusterNodeId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "clusterNodeId", clusterNodeId)); // query parameter + + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (this.ExceptionFactory != null) + { + Exception exception = this.ExceptionFactory("DownloadFlowFileContent", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), + (StreamingOutput) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(StreamingOutput))); + } + + /// + /// Gets the current status of a drop request for the specified connection. + /// + /// Thrown when fails to make API call + /// The connection id. + /// The drop request id. + /// DropRequestEntity + public DropRequestEntity GetDropRequest (string id, string dropRequestId) + { + ApiResponse localVarResponse = this.GetDropRequestWithHttpInfo(id, dropRequestId); + return localVarResponse.Data; + } + + /// + /// Gets the current status of a drop request for the specified connection. + /// + /// Thrown when fails to make API call + /// The connection id. + /// The drop request id. + /// ApiResponse of DropRequestEntity + public ApiResponse< DropRequestEntity > GetDropRequestWithHttpInfo (string id, string dropRequestId) + { + // verify the required parameter 'id' is set + if (id == null) + throw new ApiException(400, "Missing required parameter 'id' when calling FlowfileQueuesApi->GetDropRequest"); + // verify the required parameter 'dropRequestId' is set + if (dropRequestId == null) + throw new ApiException(400, "Missing required parameter 'dropRequestId' when calling FlowfileQueuesApi->GetDropRequest"); + + var localVarPath = "/flowfile-queues/{id}/drop-requests/{drop-request-id}"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "*/*" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter + if (dropRequestId != null) localVarPathParams.Add("drop-request-id", this.Configuration.ApiClient.ParameterToString(dropRequestId)); // path parameter + + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (this.ExceptionFactory != null) + { + Exception exception = this.ExceptionFactory("GetDropRequest", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), + (DropRequestEntity) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(DropRequestEntity))); + } + + /// + /// Gets the current status of a drop request for the specified connection. + /// + /// Thrown when fails to make API call + /// The connection id. + /// The drop request id. + /// Task of DropRequestEntity + public async System.Threading.Tasks.Task GetDropRequestAsync (string id, string dropRequestId) + { + ApiResponse localVarResponse = await this.GetDropRequestAsyncWithHttpInfo(id, dropRequestId); + return localVarResponse.Data; + + } + + /// + /// Gets the current status of a drop request for the specified connection. + /// + /// Thrown when fails to make API call + /// The connection id. + /// The drop request id. + /// Task of ApiResponse (DropRequestEntity) + public async System.Threading.Tasks.Task> GetDropRequestAsyncWithHttpInfo (string id, string dropRequestId) + { + // verify the required parameter 'id' is set + if (id == null) + throw new ApiException(400, "Missing required parameter 'id' when calling FlowfileQueuesApi->GetDropRequest"); + // verify the required parameter 'dropRequestId' is set + if (dropRequestId == null) + throw new ApiException(400, "Missing required parameter 'dropRequestId' when calling FlowfileQueuesApi->GetDropRequest"); + + var localVarPath = "/flowfile-queues/{id}/drop-requests/{drop-request-id}"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "*/*" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter + if (dropRequestId != null) localVarPathParams.Add("drop-request-id", this.Configuration.ApiClient.ParameterToString(dropRequestId)); // path parameter + + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (this.ExceptionFactory != null) + { + Exception exception = this.ExceptionFactory("GetDropRequest", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), + (DropRequestEntity) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(DropRequestEntity))); + } + + /// + /// Gets a FlowFile from a Connection. + /// + /// Thrown when fails to make API call + /// The connection id. + /// The flowfile uuid. + /// The id of the node where the content exists if clustered. (optional) + /// FlowFileEntity + public FlowFileEntity GetFlowFile (string id, string flowfileUuid, string clusterNodeId = null) + { + ApiResponse localVarResponse = this.GetFlowFileWithHttpInfo(id, flowfileUuid, clusterNodeId); + return localVarResponse.Data; + } + + /// + /// Gets a FlowFile from a Connection. + /// + /// Thrown when fails to make API call + /// The connection id. + /// The flowfile uuid. + /// The id of the node where the content exists if clustered. (optional) + /// ApiResponse of FlowFileEntity + public ApiResponse< FlowFileEntity > GetFlowFileWithHttpInfo (string id, string flowfileUuid, string clusterNodeId = null) + { + // verify the required parameter 'id' is set + if (id == null) + throw new ApiException(400, "Missing required parameter 'id' when calling FlowfileQueuesApi->GetFlowFile"); + // verify the required parameter 'flowfileUuid' is set + if (flowfileUuid == null) + throw new ApiException(400, "Missing required parameter 'flowfileUuid' when calling FlowfileQueuesApi->GetFlowFile"); + + var localVarPath = "/flowfile-queues/{id}/flowfiles/{flowfile-uuid}"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "*/*" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter + if (flowfileUuid != null) localVarPathParams.Add("flowfile-uuid", this.Configuration.ApiClient.ParameterToString(flowfileUuid)); // path parameter + if (clusterNodeId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "clusterNodeId", clusterNodeId)); // query parameter + + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (this.ExceptionFactory != null) + { + Exception exception = this.ExceptionFactory("GetFlowFile", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), + (FlowFileEntity) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(FlowFileEntity))); + } + + /// + /// Gets a FlowFile from a Connection. + /// + /// Thrown when fails to make API call + /// The connection id. + /// The flowfile uuid. + /// The id of the node where the content exists if clustered. (optional) + /// Task of FlowFileEntity + public async System.Threading.Tasks.Task GetFlowFileAsync (string id, string flowfileUuid, string clusterNodeId = null) + { + ApiResponse localVarResponse = await this.GetFlowFileAsyncWithHttpInfo(id, flowfileUuid, clusterNodeId); + return localVarResponse.Data; + + } + + /// + /// Gets a FlowFile from a Connection. + /// + /// Thrown when fails to make API call + /// The connection id. + /// The flowfile uuid. + /// The id of the node where the content exists if clustered. (optional) + /// Task of ApiResponse (FlowFileEntity) + public async System.Threading.Tasks.Task> GetFlowFileAsyncWithHttpInfo (string id, string flowfileUuid, string clusterNodeId = null) + { + // verify the required parameter 'id' is set + if (id == null) + throw new ApiException(400, "Missing required parameter 'id' when calling FlowfileQueuesApi->GetFlowFile"); + // verify the required parameter 'flowfileUuid' is set + if (flowfileUuid == null) + throw new ApiException(400, "Missing required parameter 'flowfileUuid' when calling FlowfileQueuesApi->GetFlowFile"); + + var localVarPath = "/flowfile-queues/{id}/flowfiles/{flowfile-uuid}"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "*/*" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter + if (flowfileUuid != null) localVarPathParams.Add("flowfile-uuid", this.Configuration.ApiClient.ParameterToString(flowfileUuid)); // path parameter + if (clusterNodeId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "clusterNodeId", clusterNodeId)); // query parameter + + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (this.ExceptionFactory != null) + { + Exception exception = this.ExceptionFactory("GetFlowFile", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), + (FlowFileEntity) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(FlowFileEntity))); + } + + /// + /// Gets the current status of a listing request for the specified connection. + /// + /// Thrown when fails to make API call + /// The connection id. + /// The listing request id. + /// ListingRequestEntity + public ListingRequestEntity GetListingRequest (string id, string listingRequestId) + { + ApiResponse localVarResponse = this.GetListingRequestWithHttpInfo(id, listingRequestId); + return localVarResponse.Data; + } + + /// + /// Gets the current status of a listing request for the specified connection. + /// + /// Thrown when fails to make API call + /// The connection id. + /// The listing request id. + /// ApiResponse of ListingRequestEntity + public ApiResponse< ListingRequestEntity > GetListingRequestWithHttpInfo (string id, string listingRequestId) + { + // verify the required parameter 'id' is set + if (id == null) + throw new ApiException(400, "Missing required parameter 'id' when calling FlowfileQueuesApi->GetListingRequest"); + // verify the required parameter 'listingRequestId' is set + if (listingRequestId == null) + throw new ApiException(400, "Missing required parameter 'listingRequestId' when calling FlowfileQueuesApi->GetListingRequest"); + + var localVarPath = "/flowfile-queues/{id}/listing-requests/{listing-request-id}"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "*/*" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter + if (listingRequestId != null) localVarPathParams.Add("listing-request-id", this.Configuration.ApiClient.ParameterToString(listingRequestId)); // path parameter + + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (this.ExceptionFactory != null) + { + Exception exception = this.ExceptionFactory("GetListingRequest", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), + (ListingRequestEntity) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(ListingRequestEntity))); + } + + /// + /// Gets the current status of a listing request for the specified connection. + /// + /// Thrown when fails to make API call + /// The connection id. + /// The listing request id. + /// Task of ListingRequestEntity + public async System.Threading.Tasks.Task GetListingRequestAsync (string id, string listingRequestId) + { + ApiResponse localVarResponse = await this.GetListingRequestAsyncWithHttpInfo(id, listingRequestId); + return localVarResponse.Data; + + } + + /// + /// Gets the current status of a listing request for the specified connection. + /// + /// Thrown when fails to make API call + /// The connection id. + /// The listing request id. + /// Task of ApiResponse (ListingRequestEntity) + public async System.Threading.Tasks.Task> GetListingRequestAsyncWithHttpInfo (string id, string listingRequestId) + { + // verify the required parameter 'id' is set + if (id == null) + throw new ApiException(400, "Missing required parameter 'id' when calling FlowfileQueuesApi->GetListingRequest"); + // verify the required parameter 'listingRequestId' is set + if (listingRequestId == null) + throw new ApiException(400, "Missing required parameter 'listingRequestId' when calling FlowfileQueuesApi->GetListingRequest"); + + var localVarPath = "/flowfile-queues/{id}/listing-requests/{listing-request-id}"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "*/*" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter + if (listingRequestId != null) localVarPathParams.Add("listing-request-id", this.Configuration.ApiClient.ParameterToString(listingRequestId)); // path parameter + + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (this.ExceptionFactory != null) + { + Exception exception = this.ExceptionFactory("GetListingRequest", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), + (ListingRequestEntity) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(ListingRequestEntity))); + } + + /// + /// Cancels and/or removes a request to drop the contents of this connection. + /// + /// Thrown when fails to make API call + /// The connection id. + /// The drop request id. + /// DropRequestEntity + public DropRequestEntity RemoveDropRequest (string id, string dropRequestId) + { + ApiResponse localVarResponse = this.RemoveDropRequestWithHttpInfo(id, dropRequestId); + return localVarResponse.Data; + } + + /// + /// Cancels and/or removes a request to drop the contents of this connection. + /// + /// Thrown when fails to make API call + /// The connection id. + /// The drop request id. + /// ApiResponse of DropRequestEntity + public ApiResponse< DropRequestEntity > RemoveDropRequestWithHttpInfo (string id, string dropRequestId) + { + // verify the required parameter 'id' is set + if (id == null) + throw new ApiException(400, "Missing required parameter 'id' when calling FlowfileQueuesApi->RemoveDropRequest"); + // verify the required parameter 'dropRequestId' is set + if (dropRequestId == null) + throw new ApiException(400, "Missing required parameter 'dropRequestId' when calling FlowfileQueuesApi->RemoveDropRequest"); + + var localVarPath = "/flowfile-queues/{id}/drop-requests/{drop-request-id}"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "*/*" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter + if (dropRequestId != null) localVarPathParams.Add("drop-request-id", this.Configuration.ApiClient.ParameterToString(dropRequestId)); // path parameter + + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.DELETE, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (this.ExceptionFactory != null) + { + Exception exception = this.ExceptionFactory("RemoveDropRequest", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), + (DropRequestEntity) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(DropRequestEntity))); + } + + /// + /// Cancels and/or removes a request to drop the contents of this connection. + /// + /// Thrown when fails to make API call + /// The connection id. + /// The drop request id. + /// Task of DropRequestEntity + public async System.Threading.Tasks.Task RemoveDropRequestAsync (string id, string dropRequestId) + { + ApiResponse localVarResponse = await this.RemoveDropRequestAsyncWithHttpInfo(id, dropRequestId); + return localVarResponse.Data; + + } + + /// + /// Cancels and/or removes a request to drop the contents of this connection. + /// + /// Thrown when fails to make API call + /// The connection id. + /// The drop request id. + /// Task of ApiResponse (DropRequestEntity) + public async System.Threading.Tasks.Task> RemoveDropRequestAsyncWithHttpInfo (string id, string dropRequestId) + { + // verify the required parameter 'id' is set + if (id == null) + throw new ApiException(400, "Missing required parameter 'id' when calling FlowfileQueuesApi->RemoveDropRequest"); + // verify the required parameter 'dropRequestId' is set + if (dropRequestId == null) + throw new ApiException(400, "Missing required parameter 'dropRequestId' when calling FlowfileQueuesApi->RemoveDropRequest"); + + var localVarPath = "/flowfile-queues/{id}/drop-requests/{drop-request-id}"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "*/*" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter + if (dropRequestId != null) localVarPathParams.Add("drop-request-id", this.Configuration.ApiClient.ParameterToString(dropRequestId)); // path parameter + + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.DELETE, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (this.ExceptionFactory != null) + { + Exception exception = this.ExceptionFactory("RemoveDropRequest", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), + (DropRequestEntity) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(DropRequestEntity))); + } + + } +} diff --git a/NiFi.Swagger/Api/FunnelApi.cs b/NiFi.Swagger/Api/FunnelApi.cs new file mode 100644 index 0000000..6832fe1 --- /dev/null +++ b/NiFi.Swagger/Api/FunnelApi.cs @@ -0,0 +1,723 @@ +/* + * NiFi Rest Api + * + * The Rest Api provides programmatic access to command and control a NiFi instance in real time. Start and stop processors, monitor queues, query provenance data, and more. Each endpoint below includes a description, definitions of the expected input and output, potential response codes, and the authorizations required to invoke each service. + * + * OpenAPI spec version: 1.9.1 + * Contact: dev@nifi.apache.org + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +namespace NiFi.Swagger.Api +{ + using System; + using System.Collections.Generic; + using System.Collections.ObjectModel; + using System.Linq; + + using NiFi.Swagger.Client; + using NiFi.Swagger.Model; + + using RestSharp; + + /// + /// Represents a collection of functions to interact with the API endpoints + /// + public interface IFunnelApi : IApiAccessor + { + #region Synchronous Operations + /// + /// Gets a funnel + /// + /// + /// + /// + /// Thrown when fails to make API call + /// The funnel id. + /// FunnelEntity + FunnelEntity GetFunnel (string id); + + /// + /// Gets a funnel + /// + /// + /// + /// + /// Thrown when fails to make API call + /// The funnel id. + /// ApiResponse of FunnelEntity + ApiResponse GetFunnelWithHttpInfo (string id); + /// + /// Deletes a funnel + /// + /// + /// + /// + /// Thrown when fails to make API call + /// The funnel id. + /// The revision is used to verify the client is working with the latest version of the flow. (optional) + /// If the client id is not specified, new one will be generated. This value (whether specified or generated) is included in the response. (optional) + /// Acknowledges that this node is disconnected to allow for mutable requests to proceed. (optional, default to false) + /// FunnelEntity + FunnelEntity RemoveFunnel (string id, string version = null, string clientId = null, bool? disconnectedNodeAcknowledged = null); + + /// + /// Deletes a funnel + /// + /// + /// + /// + /// Thrown when fails to make API call + /// The funnel id. + /// The revision is used to verify the client is working with the latest version of the flow. (optional) + /// If the client id is not specified, new one will be generated. This value (whether specified or generated) is included in the response. (optional) + /// Acknowledges that this node is disconnected to allow for mutable requests to proceed. (optional, default to false) + /// ApiResponse of FunnelEntity + ApiResponse RemoveFunnelWithHttpInfo (string id, string version = null, string clientId = null, bool? disconnectedNodeAcknowledged = null); + /// + /// Updates a funnel + /// + /// + /// + /// + /// Thrown when fails to make API call + /// The funnel id. + /// The funnel configuration details. + /// FunnelEntity + FunnelEntity UpdateFunnel (string id, FunnelEntity body); + + /// + /// Updates a funnel + /// + /// + /// + /// + /// Thrown when fails to make API call + /// The funnel id. + /// The funnel configuration details. + /// ApiResponse of FunnelEntity + ApiResponse UpdateFunnelWithHttpInfo (string id, FunnelEntity body); + #endregion Synchronous Operations + #region Asynchronous Operations + /// + /// Gets a funnel + /// + /// + /// + /// + /// Thrown when fails to make API call + /// The funnel id. + /// Task of FunnelEntity + System.Threading.Tasks.Task GetFunnelAsync (string id); + + /// + /// Gets a funnel + /// + /// + /// + /// + /// Thrown when fails to make API call + /// The funnel id. + /// Task of ApiResponse (FunnelEntity) + System.Threading.Tasks.Task> GetFunnelAsyncWithHttpInfo (string id); + /// + /// Deletes a funnel + /// + /// + /// + /// + /// Thrown when fails to make API call + /// The funnel id. + /// The revision is used to verify the client is working with the latest version of the flow. (optional) + /// If the client id is not specified, new one will be generated. This value (whether specified or generated) is included in the response. (optional) + /// Acknowledges that this node is disconnected to allow for mutable requests to proceed. (optional, default to false) + /// Task of FunnelEntity + System.Threading.Tasks.Task RemoveFunnelAsync (string id, string version = null, string clientId = null, bool? disconnectedNodeAcknowledged = null); + + /// + /// Deletes a funnel + /// + /// + /// + /// + /// Thrown when fails to make API call + /// The funnel id. + /// The revision is used to verify the client is working with the latest version of the flow. (optional) + /// If the client id is not specified, new one will be generated. This value (whether specified or generated) is included in the response. (optional) + /// Acknowledges that this node is disconnected to allow for mutable requests to proceed. (optional, default to false) + /// Task of ApiResponse (FunnelEntity) + System.Threading.Tasks.Task> RemoveFunnelAsyncWithHttpInfo (string id, string version = null, string clientId = null, bool? disconnectedNodeAcknowledged = null); + /// + /// Updates a funnel + /// + /// + /// + /// + /// Thrown when fails to make API call + /// The funnel id. + /// The funnel configuration details. + /// Task of FunnelEntity + System.Threading.Tasks.Task UpdateFunnelAsync (string id, FunnelEntity body); + + /// + /// Updates a funnel + /// + /// + /// + /// + /// Thrown when fails to make API call + /// The funnel id. + /// The funnel configuration details. + /// Task of ApiResponse (FunnelEntity) + System.Threading.Tasks.Task> UpdateFunnelAsyncWithHttpInfo (string id, FunnelEntity body); + #endregion Asynchronous Operations + } + + /// + /// Represents a collection of functions to interact with the API endpoints + /// + public partial class FunnelApi : IFunnelApi + { + private ExceptionFactory _exceptionFactory = (name, response) => null; + + /// + /// Initializes a new instance of the class. + /// + /// + public FunnelApi(String basePath) + { + this.Configuration = new Configuration { BasePath = basePath }; + + this.ExceptionFactory = Configuration.DefaultExceptionFactory; + } + + /// + /// Initializes a new instance of the class + /// using Configuration object + /// + /// An instance of Configuration + /// + public FunnelApi(Configuration configuration = null) + { + if (configuration == null) // use the default one in Configuration + this.Configuration = Configuration.Default; + else + this.Configuration = configuration; + + this.ExceptionFactory = Configuration.DefaultExceptionFactory; + } + + /// + /// Gets the base path of the API client. + /// + /// The base path + public String GetBasePath() + { + return this.Configuration.ApiClient.RestClient.BaseUrl.ToString(); + } + + /// + /// Sets the base path of the API client. + /// + /// The base path + [Obsolete("SetBasePath is deprecated, please do 'Configuration.ApiClient = new ApiClient(\"http://new-path\")' instead.")] + public void SetBasePath(String basePath) + { + // do nothing + } + + /// + /// Gets or sets the configuration object + /// + /// An instance of the Configuration + public Configuration Configuration {get; set;} + + /// + /// Provides a factory method hook for the creation of exceptions. + /// + public ExceptionFactory ExceptionFactory + { + get + { + if (this._exceptionFactory != null && this._exceptionFactory.GetInvocationList().Length > 1) + { + throw new InvalidOperationException("Multicast delegate for ExceptionFactory is unsupported."); + } + return this._exceptionFactory; + } + set { this._exceptionFactory = value; } + } + + /// + /// Gets the default header. + /// + /// Dictionary of HTTP header + [Obsolete("DefaultHeader is deprecated, please use Configuration.DefaultHeader instead.")] + public IDictionary DefaultHeader() + { + return new ReadOnlyDictionary(this.Configuration.DefaultHeader); + } + + /// + /// Add default header. + /// + /// Header field name. + /// Header field value. + /// + [Obsolete("AddDefaultHeader is deprecated, please use Configuration.AddDefaultHeader instead.")] + public void AddDefaultHeader(string key, string value) + { + this.Configuration.AddDefaultHeader(key, value); + } + + /// + /// Gets a funnel + /// + /// Thrown when fails to make API call + /// The funnel id. + /// FunnelEntity + public FunnelEntity GetFunnel (string id) + { + ApiResponse localVarResponse = this.GetFunnelWithHttpInfo(id); + return localVarResponse.Data; + } + + /// + /// Gets a funnel + /// + /// Thrown when fails to make API call + /// The funnel id. + /// ApiResponse of FunnelEntity + public ApiResponse< FunnelEntity > GetFunnelWithHttpInfo (string id) + { + // verify the required parameter 'id' is set + if (id == null) + throw new ApiException(400, "Missing required parameter 'id' when calling FunnelApi->GetFunnel"); + + var localVarPath = "/funnels/{id}"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "*/*" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter + + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (this.ExceptionFactory != null) + { + Exception exception = this.ExceptionFactory("GetFunnel", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), + (FunnelEntity) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(FunnelEntity))); + } + + /// + /// Gets a funnel + /// + /// Thrown when fails to make API call + /// The funnel id. + /// Task of FunnelEntity + public async System.Threading.Tasks.Task GetFunnelAsync (string id) + { + ApiResponse localVarResponse = await this.GetFunnelAsyncWithHttpInfo(id); + return localVarResponse.Data; + + } + + /// + /// Gets a funnel + /// + /// Thrown when fails to make API call + /// The funnel id. + /// Task of ApiResponse (FunnelEntity) + public async System.Threading.Tasks.Task> GetFunnelAsyncWithHttpInfo (string id) + { + // verify the required parameter 'id' is set + if (id == null) + throw new ApiException(400, "Missing required parameter 'id' when calling FunnelApi->GetFunnel"); + + var localVarPath = "/funnels/{id}"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "*/*" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter + + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (this.ExceptionFactory != null) + { + Exception exception = this.ExceptionFactory("GetFunnel", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), + (FunnelEntity) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(FunnelEntity))); + } + + /// + /// Deletes a funnel + /// + /// Thrown when fails to make API call + /// The funnel id. + /// The revision is used to verify the client is working with the latest version of the flow. (optional) + /// If the client id is not specified, new one will be generated. This value (whether specified or generated) is included in the response. (optional) + /// Acknowledges that this node is disconnected to allow for mutable requests to proceed. (optional, default to false) + /// FunnelEntity + public FunnelEntity RemoveFunnel (string id, string version = null, string clientId = null, bool? disconnectedNodeAcknowledged = null) + { + ApiResponse localVarResponse = this.RemoveFunnelWithHttpInfo(id, version, clientId, disconnectedNodeAcknowledged); + return localVarResponse.Data; + } + + /// + /// Deletes a funnel + /// + /// Thrown when fails to make API call + /// The funnel id. + /// The revision is used to verify the client is working with the latest version of the flow. (optional) + /// If the client id is not specified, new one will be generated. This value (whether specified or generated) is included in the response. (optional) + /// Acknowledges that this node is disconnected to allow for mutable requests to proceed. (optional, default to false) + /// ApiResponse of FunnelEntity + public ApiResponse< FunnelEntity > RemoveFunnelWithHttpInfo (string id, string version = null, string clientId = null, bool? disconnectedNodeAcknowledged = null) + { + // verify the required parameter 'id' is set + if (id == null) + throw new ApiException(400, "Missing required parameter 'id' when calling FunnelApi->RemoveFunnel"); + + var localVarPath = "/funnels/{id}"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "*/*" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter + if (version != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "version", version)); // query parameter + if (clientId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "clientId", clientId)); // query parameter + if (disconnectedNodeAcknowledged != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "disconnectedNodeAcknowledged", disconnectedNodeAcknowledged)); // query parameter + + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.DELETE, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (this.ExceptionFactory != null) + { + Exception exception = this.ExceptionFactory("RemoveFunnel", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), + (FunnelEntity) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(FunnelEntity))); + } + + /// + /// Deletes a funnel + /// + /// Thrown when fails to make API call + /// The funnel id. + /// The revision is used to verify the client is working with the latest version of the flow. (optional) + /// If the client id is not specified, new one will be generated. This value (whether specified or generated) is included in the response. (optional) + /// Acknowledges that this node is disconnected to allow for mutable requests to proceed. (optional, default to false) + /// Task of FunnelEntity + public async System.Threading.Tasks.Task RemoveFunnelAsync (string id, string version = null, string clientId = null, bool? disconnectedNodeAcknowledged = null) + { + ApiResponse localVarResponse = await this.RemoveFunnelAsyncWithHttpInfo(id, version, clientId, disconnectedNodeAcknowledged); + return localVarResponse.Data; + + } + + /// + /// Deletes a funnel + /// + /// Thrown when fails to make API call + /// The funnel id. + /// The revision is used to verify the client is working with the latest version of the flow. (optional) + /// If the client id is not specified, new one will be generated. This value (whether specified or generated) is included in the response. (optional) + /// Acknowledges that this node is disconnected to allow for mutable requests to proceed. (optional, default to false) + /// Task of ApiResponse (FunnelEntity) + public async System.Threading.Tasks.Task> RemoveFunnelAsyncWithHttpInfo (string id, string version = null, string clientId = null, bool? disconnectedNodeAcknowledged = null) + { + // verify the required parameter 'id' is set + if (id == null) + throw new ApiException(400, "Missing required parameter 'id' when calling FunnelApi->RemoveFunnel"); + + var localVarPath = "/funnels/{id}"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "*/*" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter + if (version != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "version", version)); // query parameter + if (clientId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "clientId", clientId)); // query parameter + if (disconnectedNodeAcknowledged != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "disconnectedNodeAcknowledged", disconnectedNodeAcknowledged)); // query parameter + + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.DELETE, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (this.ExceptionFactory != null) + { + Exception exception = this.ExceptionFactory("RemoveFunnel", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), + (FunnelEntity) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(FunnelEntity))); + } + + /// + /// Updates a funnel + /// + /// Thrown when fails to make API call + /// The funnel id. + /// The funnel configuration details. + /// FunnelEntity + public FunnelEntity UpdateFunnel (string id, FunnelEntity body) + { + ApiResponse localVarResponse = this.UpdateFunnelWithHttpInfo(id, body); + return localVarResponse.Data; + } + + /// + /// Updates a funnel + /// + /// Thrown when fails to make API call + /// The funnel id. + /// The funnel configuration details. + /// ApiResponse of FunnelEntity + public ApiResponse< FunnelEntity > UpdateFunnelWithHttpInfo (string id, FunnelEntity body) + { + // verify the required parameter 'id' is set + if (id == null) + throw new ApiException(400, "Missing required parameter 'id' when calling FunnelApi->UpdateFunnel"); + // verify the required parameter 'body' is set + if (body == null) + throw new ApiException(400, "Missing required parameter 'body' when calling FunnelApi->UpdateFunnel"); + + var localVarPath = "/funnels/{id}"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "application/json" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter + if (body != null && body.GetType() != typeof(byte[])) + { + localVarPostBody = this.Configuration.ApiClient.Serialize(body); // http body (model) parameter + } + else + { + localVarPostBody = body; // byte array + } + + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.PUT, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (this.ExceptionFactory != null) + { + Exception exception = this.ExceptionFactory("UpdateFunnel", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), + (FunnelEntity) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(FunnelEntity))); + } + + /// + /// Updates a funnel + /// + /// Thrown when fails to make API call + /// The funnel id. + /// The funnel configuration details. + /// Task of FunnelEntity + public async System.Threading.Tasks.Task UpdateFunnelAsync (string id, FunnelEntity body) + { + ApiResponse localVarResponse = await this.UpdateFunnelAsyncWithHttpInfo(id, body); + return localVarResponse.Data; + + } + + /// + /// Updates a funnel + /// + /// Thrown when fails to make API call + /// The funnel id. + /// The funnel configuration details. + /// Task of ApiResponse (FunnelEntity) + public async System.Threading.Tasks.Task> UpdateFunnelAsyncWithHttpInfo (string id, FunnelEntity body) + { + // verify the required parameter 'id' is set + if (id == null) + throw new ApiException(400, "Missing required parameter 'id' when calling FunnelApi->UpdateFunnel"); + // verify the required parameter 'body' is set + if (body == null) + throw new ApiException(400, "Missing required parameter 'body' when calling FunnelApi->UpdateFunnel"); + + var localVarPath = "/funnels/{id}"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "application/json" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter + if (body != null && body.GetType() != typeof(byte[])) + { + localVarPostBody = this.Configuration.ApiClient.Serialize(body); // http body (model) parameter + } + else + { + localVarPostBody = body; // byte array + } + + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.PUT, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (this.ExceptionFactory != null) + { + Exception exception = this.ExceptionFactory("UpdateFunnel", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), + (FunnelEntity) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(FunnelEntity))); + } + + } +} diff --git a/NiFi.Swagger/Api/InputPortsApi.cs b/NiFi.Swagger/Api/InputPortsApi.cs new file mode 100644 index 0000000..47db1ea --- /dev/null +++ b/NiFi.Swagger/Api/InputPortsApi.cs @@ -0,0 +1,930 @@ +/* + * NiFi Rest Api + * + * The Rest Api provides programmatic access to command and control a NiFi instance in real time. Start and stop processors, monitor queues, query provenance data, and more. Each endpoint below includes a description, definitions of the expected input and output, potential response codes, and the authorizations required to invoke each service. + * + * OpenAPI spec version: 1.9.1 + * Contact: dev@nifi.apache.org + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +namespace NiFi.Swagger.Api +{ + using System; + using System.Collections.Generic; + using System.Collections.ObjectModel; + using System.Linq; + + using NiFi.Swagger.Client; + using NiFi.Swagger.Model; + + using RestSharp; + + /// + /// Represents a collection of functions to interact with the API endpoints + /// + public interface IInputPortsApi : IApiAccessor + { + #region Synchronous Operations + /// + /// Gets an input port + /// + /// + /// + /// + /// Thrown when fails to make API call + /// The input port id. + /// PortEntity + PortEntity GetInputPort (string id); + + /// + /// Gets an input port + /// + /// + /// + /// + /// Thrown when fails to make API call + /// The input port id. + /// ApiResponse of PortEntity + ApiResponse GetInputPortWithHttpInfo (string id); + /// + /// Deletes an input port + /// + /// + /// + /// + /// Thrown when fails to make API call + /// The input port id. + /// The revision is used to verify the client is working with the latest version of the flow. (optional) + /// If the client id is not specified, new one will be generated. This value (whether specified or generated) is included in the response. (optional) + /// Acknowledges that this node is disconnected to allow for mutable requests to proceed. (optional, default to false) + /// PortEntity + PortEntity RemoveInputPort (string id, string version = null, string clientId = null, bool? disconnectedNodeAcknowledged = null); + + /// + /// Deletes an input port + /// + /// + /// + /// + /// Thrown when fails to make API call + /// The input port id. + /// The revision is used to verify the client is working with the latest version of the flow. (optional) + /// If the client id is not specified, new one will be generated. This value (whether specified or generated) is included in the response. (optional) + /// Acknowledges that this node is disconnected to allow for mutable requests to proceed. (optional, default to false) + /// ApiResponse of PortEntity + ApiResponse RemoveInputPortWithHttpInfo (string id, string version = null, string clientId = null, bool? disconnectedNodeAcknowledged = null); + /// + /// Updates an input port + /// + /// + /// + /// + /// Thrown when fails to make API call + /// The input port id. + /// The input port configuration details. + /// PortEntity + PortEntity UpdateInputPort (string id, PortEntity body); + + /// + /// Updates an input port + /// + /// + /// + /// + /// Thrown when fails to make API call + /// The input port id. + /// The input port configuration details. + /// ApiResponse of PortEntity + ApiResponse UpdateInputPortWithHttpInfo (string id, PortEntity body); + /// + /// Updates run status of an input-port + /// + /// + /// + /// + /// Thrown when fails to make API call + /// The port id. + /// The port run status. + /// ProcessorEntity + ProcessorEntity UpdateRunStatus (string id, PortRunStatusEntity body); + + /// + /// Updates run status of an input-port + /// + /// + /// + /// + /// Thrown when fails to make API call + /// The port id. + /// The port run status. + /// ApiResponse of ProcessorEntity + ApiResponse UpdateRunStatusWithHttpInfo (string id, PortRunStatusEntity body); + #endregion Synchronous Operations + #region Asynchronous Operations + /// + /// Gets an input port + /// + /// + /// + /// + /// Thrown when fails to make API call + /// The input port id. + /// Task of PortEntity + System.Threading.Tasks.Task GetInputPortAsync (string id); + + /// + /// Gets an input port + /// + /// + /// + /// + /// Thrown when fails to make API call + /// The input port id. + /// Task of ApiResponse (PortEntity) + System.Threading.Tasks.Task> GetInputPortAsyncWithHttpInfo (string id); + /// + /// Deletes an input port + /// + /// + /// + /// + /// Thrown when fails to make API call + /// The input port id. + /// The revision is used to verify the client is working with the latest version of the flow. (optional) + /// If the client id is not specified, new one will be generated. This value (whether specified or generated) is included in the response. (optional) + /// Acknowledges that this node is disconnected to allow for mutable requests to proceed. (optional, default to false) + /// Task of PortEntity + System.Threading.Tasks.Task RemoveInputPortAsync (string id, string version = null, string clientId = null, bool? disconnectedNodeAcknowledged = null); + + /// + /// Deletes an input port + /// + /// + /// + /// + /// Thrown when fails to make API call + /// The input port id. + /// The revision is used to verify the client is working with the latest version of the flow. (optional) + /// If the client id is not specified, new one will be generated. This value (whether specified or generated) is included in the response. (optional) + /// Acknowledges that this node is disconnected to allow for mutable requests to proceed. (optional, default to false) + /// Task of ApiResponse (PortEntity) + System.Threading.Tasks.Task> RemoveInputPortAsyncWithHttpInfo (string id, string version = null, string clientId = null, bool? disconnectedNodeAcknowledged = null); + /// + /// Updates an input port + /// + /// + /// + /// + /// Thrown when fails to make API call + /// The input port id. + /// The input port configuration details. + /// Task of PortEntity + System.Threading.Tasks.Task UpdateInputPortAsync (string id, PortEntity body); + + /// + /// Updates an input port + /// + /// + /// + /// + /// Thrown when fails to make API call + /// The input port id. + /// The input port configuration details. + /// Task of ApiResponse (PortEntity) + System.Threading.Tasks.Task> UpdateInputPortAsyncWithHttpInfo (string id, PortEntity body); + /// + /// Updates run status of an input-port + /// + /// + /// + /// + /// Thrown when fails to make API call + /// The port id. + /// The port run status. + /// Task of ProcessorEntity + System.Threading.Tasks.Task UpdateRunStatusAsync (string id, PortRunStatusEntity body); + + /// + /// Updates run status of an input-port + /// + /// + /// + /// + /// Thrown when fails to make API call + /// The port id. + /// The port run status. + /// Task of ApiResponse (ProcessorEntity) + System.Threading.Tasks.Task> UpdateRunStatusAsyncWithHttpInfo (string id, PortRunStatusEntity body); + #endregion Asynchronous Operations + } + + /// + /// Represents a collection of functions to interact with the API endpoints + /// + public partial class InputPortsApi : IInputPortsApi + { + private ExceptionFactory _exceptionFactory = (name, response) => null; + + /// + /// Initializes a new instance of the class. + /// + /// + public InputPortsApi(String basePath) + { + this.Configuration = new Configuration { BasePath = basePath }; + + this.ExceptionFactory = Configuration.DefaultExceptionFactory; + } + + /// + /// Initializes a new instance of the class + /// using Configuration object + /// + /// An instance of Configuration + /// + public InputPortsApi(Configuration configuration = null) + { + if (configuration == null) // use the default one in Configuration + this.Configuration = Configuration.Default; + else + this.Configuration = configuration; + + this.ExceptionFactory = Configuration.DefaultExceptionFactory; + } + + /// + /// Gets the base path of the API client. + /// + /// The base path + public String GetBasePath() + { + return this.Configuration.ApiClient.RestClient.BaseUrl.ToString(); + } + + /// + /// Sets the base path of the API client. + /// + /// The base path + [Obsolete("SetBasePath is deprecated, please do 'Configuration.ApiClient = new ApiClient(\"http://new-path\")' instead.")] + public void SetBasePath(String basePath) + { + // do nothing + } + + /// + /// Gets or sets the configuration object + /// + /// An instance of the Configuration + public Configuration Configuration {get; set;} + + /// + /// Provides a factory method hook for the creation of exceptions. + /// + public ExceptionFactory ExceptionFactory + { + get + { + if (this._exceptionFactory != null && this._exceptionFactory.GetInvocationList().Length > 1) + { + throw new InvalidOperationException("Multicast delegate for ExceptionFactory is unsupported."); + } + return this._exceptionFactory; + } + set { this._exceptionFactory = value; } + } + + /// + /// Gets the default header. + /// + /// Dictionary of HTTP header + [Obsolete("DefaultHeader is deprecated, please use Configuration.DefaultHeader instead.")] + public IDictionary DefaultHeader() + { + return new ReadOnlyDictionary(this.Configuration.DefaultHeader); + } + + /// + /// Add default header. + /// + /// Header field name. + /// Header field value. + /// + [Obsolete("AddDefaultHeader is deprecated, please use Configuration.AddDefaultHeader instead.")] + public void AddDefaultHeader(string key, string value) + { + this.Configuration.AddDefaultHeader(key, value); + } + + /// + /// Gets an input port + /// + /// Thrown when fails to make API call + /// The input port id. + /// PortEntity + public PortEntity GetInputPort (string id) + { + ApiResponse localVarResponse = this.GetInputPortWithHttpInfo(id); + return localVarResponse.Data; + } + + /// + /// Gets an input port + /// + /// Thrown when fails to make API call + /// The input port id. + /// ApiResponse of PortEntity + public ApiResponse< PortEntity > GetInputPortWithHttpInfo (string id) + { + // verify the required parameter 'id' is set + if (id == null) + throw new ApiException(400, "Missing required parameter 'id' when calling InputPortsApi->GetInputPort"); + + var localVarPath = "/input-ports/{id}"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "*/*" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter + + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (this.ExceptionFactory != null) + { + Exception exception = this.ExceptionFactory("GetInputPort", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), + (PortEntity) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(PortEntity))); + } + + /// + /// Gets an input port + /// + /// Thrown when fails to make API call + /// The input port id. + /// Task of PortEntity + public async System.Threading.Tasks.Task GetInputPortAsync (string id) + { + ApiResponse localVarResponse = await this.GetInputPortAsyncWithHttpInfo(id); + return localVarResponse.Data; + + } + + /// + /// Gets an input port + /// + /// Thrown when fails to make API call + /// The input port id. + /// Task of ApiResponse (PortEntity) + public async System.Threading.Tasks.Task> GetInputPortAsyncWithHttpInfo (string id) + { + // verify the required parameter 'id' is set + if (id == null) + throw new ApiException(400, "Missing required parameter 'id' when calling InputPortsApi->GetInputPort"); + + var localVarPath = "/input-ports/{id}"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "*/*" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter + + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (this.ExceptionFactory != null) + { + Exception exception = this.ExceptionFactory("GetInputPort", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), + (PortEntity) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(PortEntity))); + } + + /// + /// Deletes an input port + /// + /// Thrown when fails to make API call + /// The input port id. + /// The revision is used to verify the client is working with the latest version of the flow. (optional) + /// If the client id is not specified, new one will be generated. This value (whether specified or generated) is included in the response. (optional) + /// Acknowledges that this node is disconnected to allow for mutable requests to proceed. (optional, default to false) + /// PortEntity + public PortEntity RemoveInputPort (string id, string version = null, string clientId = null, bool? disconnectedNodeAcknowledged = null) + { + ApiResponse localVarResponse = this.RemoveInputPortWithHttpInfo(id, version, clientId, disconnectedNodeAcknowledged); + return localVarResponse.Data; + } + + /// + /// Deletes an input port + /// + /// Thrown when fails to make API call + /// The input port id. + /// The revision is used to verify the client is working with the latest version of the flow. (optional) + /// If the client id is not specified, new one will be generated. This value (whether specified or generated) is included in the response. (optional) + /// Acknowledges that this node is disconnected to allow for mutable requests to proceed. (optional, default to false) + /// ApiResponse of PortEntity + public ApiResponse< PortEntity > RemoveInputPortWithHttpInfo (string id, string version = null, string clientId = null, bool? disconnectedNodeAcknowledged = null) + { + // verify the required parameter 'id' is set + if (id == null) + throw new ApiException(400, "Missing required parameter 'id' when calling InputPortsApi->RemoveInputPort"); + + var localVarPath = "/input-ports/{id}"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "*/*" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter + if (version != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "version", version)); // query parameter + if (clientId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "clientId", clientId)); // query parameter + if (disconnectedNodeAcknowledged != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "disconnectedNodeAcknowledged", disconnectedNodeAcknowledged)); // query parameter + + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.DELETE, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (this.ExceptionFactory != null) + { + Exception exception = this.ExceptionFactory("RemoveInputPort", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), + (PortEntity) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(PortEntity))); + } + + /// + /// Deletes an input port + /// + /// Thrown when fails to make API call + /// The input port id. + /// The revision is used to verify the client is working with the latest version of the flow. (optional) + /// If the client id is not specified, new one will be generated. This value (whether specified or generated) is included in the response. (optional) + /// Acknowledges that this node is disconnected to allow for mutable requests to proceed. (optional, default to false) + /// Task of PortEntity + public async System.Threading.Tasks.Task RemoveInputPortAsync (string id, string version = null, string clientId = null, bool? disconnectedNodeAcknowledged = null) + { + ApiResponse localVarResponse = await this.RemoveInputPortAsyncWithHttpInfo(id, version, clientId, disconnectedNodeAcknowledged); + return localVarResponse.Data; + + } + + /// + /// Deletes an input port + /// + /// Thrown when fails to make API call + /// The input port id. + /// The revision is used to verify the client is working with the latest version of the flow. (optional) + /// If the client id is not specified, new one will be generated. This value (whether specified or generated) is included in the response. (optional) + /// Acknowledges that this node is disconnected to allow for mutable requests to proceed. (optional, default to false) + /// Task of ApiResponse (PortEntity) + public async System.Threading.Tasks.Task> RemoveInputPortAsyncWithHttpInfo (string id, string version = null, string clientId = null, bool? disconnectedNodeAcknowledged = null) + { + // verify the required parameter 'id' is set + if (id == null) + throw new ApiException(400, "Missing required parameter 'id' when calling InputPortsApi->RemoveInputPort"); + + var localVarPath = "/input-ports/{id}"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "*/*" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter + if (version != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "version", version)); // query parameter + if (clientId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "clientId", clientId)); // query parameter + if (disconnectedNodeAcknowledged != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "disconnectedNodeAcknowledged", disconnectedNodeAcknowledged)); // query parameter + + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.DELETE, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (this.ExceptionFactory != null) + { + Exception exception = this.ExceptionFactory("RemoveInputPort", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), + (PortEntity) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(PortEntity))); + } + + /// + /// Updates an input port + /// + /// Thrown when fails to make API call + /// The input port id. + /// The input port configuration details. + /// PortEntity + public PortEntity UpdateInputPort (string id, PortEntity body) + { + ApiResponse localVarResponse = this.UpdateInputPortWithHttpInfo(id, body); + return localVarResponse.Data; + } + + /// + /// Updates an input port + /// + /// Thrown when fails to make API call + /// The input port id. + /// The input port configuration details. + /// ApiResponse of PortEntity + public ApiResponse< PortEntity > UpdateInputPortWithHttpInfo (string id, PortEntity body) + { + // verify the required parameter 'id' is set + if (id == null) + throw new ApiException(400, "Missing required parameter 'id' when calling InputPortsApi->UpdateInputPort"); + // verify the required parameter 'body' is set + if (body == null) + throw new ApiException(400, "Missing required parameter 'body' when calling InputPortsApi->UpdateInputPort"); + + var localVarPath = "/input-ports/{id}"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "application/json" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter + if (body != null && body.GetType() != typeof(byte[])) + { + localVarPostBody = this.Configuration.ApiClient.Serialize(body); // http body (model) parameter + } + else + { + localVarPostBody = body; // byte array + } + + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.PUT, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (this.ExceptionFactory != null) + { + Exception exception = this.ExceptionFactory("UpdateInputPort", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), + (PortEntity) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(PortEntity))); + } + + /// + /// Updates an input port + /// + /// Thrown when fails to make API call + /// The input port id. + /// The input port configuration details. + /// Task of PortEntity + public async System.Threading.Tasks.Task UpdateInputPortAsync (string id, PortEntity body) + { + ApiResponse localVarResponse = await this.UpdateInputPortAsyncWithHttpInfo(id, body); + return localVarResponse.Data; + + } + + /// + /// Updates an input port + /// + /// Thrown when fails to make API call + /// The input port id. + /// The input port configuration details. + /// Task of ApiResponse (PortEntity) + public async System.Threading.Tasks.Task> UpdateInputPortAsyncWithHttpInfo (string id, PortEntity body) + { + // verify the required parameter 'id' is set + if (id == null) + throw new ApiException(400, "Missing required parameter 'id' when calling InputPortsApi->UpdateInputPort"); + // verify the required parameter 'body' is set + if (body == null) + throw new ApiException(400, "Missing required parameter 'body' when calling InputPortsApi->UpdateInputPort"); + + var localVarPath = "/input-ports/{id}"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "application/json" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter + if (body != null && body.GetType() != typeof(byte[])) + { + localVarPostBody = this.Configuration.ApiClient.Serialize(body); // http body (model) parameter + } + else + { + localVarPostBody = body; // byte array + } + + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.PUT, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (this.ExceptionFactory != null) + { + Exception exception = this.ExceptionFactory("UpdateInputPort", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), + (PortEntity) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(PortEntity))); + } + + /// + /// Updates run status of an input-port + /// + /// Thrown when fails to make API call + /// The port id. + /// The port run status. + /// ProcessorEntity + public ProcessorEntity UpdateRunStatus (string id, PortRunStatusEntity body) + { + ApiResponse localVarResponse = this.UpdateRunStatusWithHttpInfo(id, body); + return localVarResponse.Data; + } + + /// + /// Updates run status of an input-port + /// + /// Thrown when fails to make API call + /// The port id. + /// The port run status. + /// ApiResponse of ProcessorEntity + public ApiResponse< ProcessorEntity > UpdateRunStatusWithHttpInfo (string id, PortRunStatusEntity body) + { + // verify the required parameter 'id' is set + if (id == null) + throw new ApiException(400, "Missing required parameter 'id' when calling InputPortsApi->UpdateRunStatus"); + // verify the required parameter 'body' is set + if (body == null) + throw new ApiException(400, "Missing required parameter 'body' when calling InputPortsApi->UpdateRunStatus"); + + var localVarPath = "/input-ports/{id}/run-status"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "application/json" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter + if (body != null && body.GetType() != typeof(byte[])) + { + localVarPostBody = this.Configuration.ApiClient.Serialize(body); // http body (model) parameter + } + else + { + localVarPostBody = body; // byte array + } + + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.PUT, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (this.ExceptionFactory != null) + { + Exception exception = this.ExceptionFactory("UpdateRunStatus", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), + (ProcessorEntity) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(ProcessorEntity))); + } + + /// + /// Updates run status of an input-port + /// + /// Thrown when fails to make API call + /// The port id. + /// The port run status. + /// Task of ProcessorEntity + public async System.Threading.Tasks.Task UpdateRunStatusAsync (string id, PortRunStatusEntity body) + { + ApiResponse localVarResponse = await this.UpdateRunStatusAsyncWithHttpInfo(id, body); + return localVarResponse.Data; + + } + + /// + /// Updates run status of an input-port + /// + /// Thrown when fails to make API call + /// The port id. + /// The port run status. + /// Task of ApiResponse (ProcessorEntity) + public async System.Threading.Tasks.Task> UpdateRunStatusAsyncWithHttpInfo (string id, PortRunStatusEntity body) + { + // verify the required parameter 'id' is set + if (id == null) + throw new ApiException(400, "Missing required parameter 'id' when calling InputPortsApi->UpdateRunStatus"); + // verify the required parameter 'body' is set + if (body == null) + throw new ApiException(400, "Missing required parameter 'body' when calling InputPortsApi->UpdateRunStatus"); + + var localVarPath = "/input-ports/{id}/run-status"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "application/json" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter + if (body != null && body.GetType() != typeof(byte[])) + { + localVarPostBody = this.Configuration.ApiClient.Serialize(body); // http body (model) parameter + } + else + { + localVarPostBody = body; // byte array + } + + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.PUT, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (this.ExceptionFactory != null) + { + Exception exception = this.ExceptionFactory("UpdateRunStatus", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), + (ProcessorEntity) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(ProcessorEntity))); + } + + } +} diff --git a/NiFi.Swagger/Api/LabelsApi.cs b/NiFi.Swagger/Api/LabelsApi.cs new file mode 100644 index 0000000..256bb21 --- /dev/null +++ b/NiFi.Swagger/Api/LabelsApi.cs @@ -0,0 +1,723 @@ +/* + * NiFi Rest Api + * + * The Rest Api provides programmatic access to command and control a NiFi instance in real time. Start and stop processors, monitor queues, query provenance data, and more. Each endpoint below includes a description, definitions of the expected input and output, potential response codes, and the authorizations required to invoke each service. + * + * OpenAPI spec version: 1.9.1 + * Contact: dev@nifi.apache.org + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +namespace NiFi.Swagger.Api +{ + using System; + using System.Collections.Generic; + using System.Collections.ObjectModel; + using System.Linq; + + using NiFi.Swagger.Client; + using NiFi.Swagger.Model; + + using RestSharp; + + /// + /// Represents a collection of functions to interact with the API endpoints + /// + public interface ILabelsApi : IApiAccessor + { + #region Synchronous Operations + /// + /// Gets a label + /// + /// + /// + /// + /// Thrown when fails to make API call + /// The label id. + /// LabelEntity + LabelEntity GetLabel (string id); + + /// + /// Gets a label + /// + /// + /// + /// + /// Thrown when fails to make API call + /// The label id. + /// ApiResponse of LabelEntity + ApiResponse GetLabelWithHttpInfo (string id); + /// + /// Deletes a label + /// + /// + /// + /// + /// Thrown when fails to make API call + /// The label id. + /// The revision is used to verify the client is working with the latest version of the flow. (optional) + /// If the client id is not specified, new one will be generated. This value (whether specified or generated) is included in the response. (optional) + /// Acknowledges that this node is disconnected to allow for mutable requests to proceed. (optional, default to false) + /// LabelEntity + LabelEntity RemoveLabel (string id, string version = null, string clientId = null, bool? disconnectedNodeAcknowledged = null); + + /// + /// Deletes a label + /// + /// + /// + /// + /// Thrown when fails to make API call + /// The label id. + /// The revision is used to verify the client is working with the latest version of the flow. (optional) + /// If the client id is not specified, new one will be generated. This value (whether specified or generated) is included in the response. (optional) + /// Acknowledges that this node is disconnected to allow for mutable requests to proceed. (optional, default to false) + /// ApiResponse of LabelEntity + ApiResponse RemoveLabelWithHttpInfo (string id, string version = null, string clientId = null, bool? disconnectedNodeAcknowledged = null); + /// + /// Updates a label + /// + /// + /// + /// + /// Thrown when fails to make API call + /// The label id. + /// The label configuration details. + /// LabelEntity + LabelEntity UpdateLabel (string id, LabelEntity body); + + /// + /// Updates a label + /// + /// + /// + /// + /// Thrown when fails to make API call + /// The label id. + /// The label configuration details. + /// ApiResponse of LabelEntity + ApiResponse UpdateLabelWithHttpInfo (string id, LabelEntity body); + #endregion Synchronous Operations + #region Asynchronous Operations + /// + /// Gets a label + /// + /// + /// + /// + /// Thrown when fails to make API call + /// The label id. + /// Task of LabelEntity + System.Threading.Tasks.Task GetLabelAsync (string id); + + /// + /// Gets a label + /// + /// + /// + /// + /// Thrown when fails to make API call + /// The label id. + /// Task of ApiResponse (LabelEntity) + System.Threading.Tasks.Task> GetLabelAsyncWithHttpInfo (string id); + /// + /// Deletes a label + /// + /// + /// + /// + /// Thrown when fails to make API call + /// The label id. + /// The revision is used to verify the client is working with the latest version of the flow. (optional) + /// If the client id is not specified, new one will be generated. This value (whether specified or generated) is included in the response. (optional) + /// Acknowledges that this node is disconnected to allow for mutable requests to proceed. (optional, default to false) + /// Task of LabelEntity + System.Threading.Tasks.Task RemoveLabelAsync (string id, string version = null, string clientId = null, bool? disconnectedNodeAcknowledged = null); + + /// + /// Deletes a label + /// + /// + /// + /// + /// Thrown when fails to make API call + /// The label id. + /// The revision is used to verify the client is working with the latest version of the flow. (optional) + /// If the client id is not specified, new one will be generated. This value (whether specified or generated) is included in the response. (optional) + /// Acknowledges that this node is disconnected to allow for mutable requests to proceed. (optional, default to false) + /// Task of ApiResponse (LabelEntity) + System.Threading.Tasks.Task> RemoveLabelAsyncWithHttpInfo (string id, string version = null, string clientId = null, bool? disconnectedNodeAcknowledged = null); + /// + /// Updates a label + /// + /// + /// + /// + /// Thrown when fails to make API call + /// The label id. + /// The label configuration details. + /// Task of LabelEntity + System.Threading.Tasks.Task UpdateLabelAsync (string id, LabelEntity body); + + /// + /// Updates a label + /// + /// + /// + /// + /// Thrown when fails to make API call + /// The label id. + /// The label configuration details. + /// Task of ApiResponse (LabelEntity) + System.Threading.Tasks.Task> UpdateLabelAsyncWithHttpInfo (string id, LabelEntity body); + #endregion Asynchronous Operations + } + + /// + /// Represents a collection of functions to interact with the API endpoints + /// + public partial class LabelsApi : ILabelsApi + { + private ExceptionFactory _exceptionFactory = (name, response) => null; + + /// + /// Initializes a new instance of the class. + /// + /// + public LabelsApi(String basePath) + { + this.Configuration = new Configuration { BasePath = basePath }; + + this.ExceptionFactory = Configuration.DefaultExceptionFactory; + } + + /// + /// Initializes a new instance of the class + /// using Configuration object + /// + /// An instance of Configuration + /// + public LabelsApi(Configuration configuration = null) + { + if (configuration == null) // use the default one in Configuration + this.Configuration = Configuration.Default; + else + this.Configuration = configuration; + + this.ExceptionFactory = Configuration.DefaultExceptionFactory; + } + + /// + /// Gets the base path of the API client. + /// + /// The base path + public String GetBasePath() + { + return this.Configuration.ApiClient.RestClient.BaseUrl.ToString(); + } + + /// + /// Sets the base path of the API client. + /// + /// The base path + [Obsolete("SetBasePath is deprecated, please do 'Configuration.ApiClient = new ApiClient(\"http://new-path\")' instead.")] + public void SetBasePath(String basePath) + { + // do nothing + } + + /// + /// Gets or sets the configuration object + /// + /// An instance of the Configuration + public Configuration Configuration {get; set;} + + /// + /// Provides a factory method hook for the creation of exceptions. + /// + public ExceptionFactory ExceptionFactory + { + get + { + if (this._exceptionFactory != null && this._exceptionFactory.GetInvocationList().Length > 1) + { + throw new InvalidOperationException("Multicast delegate for ExceptionFactory is unsupported."); + } + return this._exceptionFactory; + } + set { this._exceptionFactory = value; } + } + + /// + /// Gets the default header. + /// + /// Dictionary of HTTP header + [Obsolete("DefaultHeader is deprecated, please use Configuration.DefaultHeader instead.")] + public IDictionary DefaultHeader() + { + return new ReadOnlyDictionary(this.Configuration.DefaultHeader); + } + + /// + /// Add default header. + /// + /// Header field name. + /// Header field value. + /// + [Obsolete("AddDefaultHeader is deprecated, please use Configuration.AddDefaultHeader instead.")] + public void AddDefaultHeader(string key, string value) + { + this.Configuration.AddDefaultHeader(key, value); + } + + /// + /// Gets a label + /// + /// Thrown when fails to make API call + /// The label id. + /// LabelEntity + public LabelEntity GetLabel (string id) + { + ApiResponse localVarResponse = this.GetLabelWithHttpInfo(id); + return localVarResponse.Data; + } + + /// + /// Gets a label + /// + /// Thrown when fails to make API call + /// The label id. + /// ApiResponse of LabelEntity + public ApiResponse< LabelEntity > GetLabelWithHttpInfo (string id) + { + // verify the required parameter 'id' is set + if (id == null) + throw new ApiException(400, "Missing required parameter 'id' when calling LabelsApi->GetLabel"); + + var localVarPath = "/labels/{id}"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "*/*" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter + + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (this.ExceptionFactory != null) + { + Exception exception = this.ExceptionFactory("GetLabel", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), + (LabelEntity) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(LabelEntity))); + } + + /// + /// Gets a label + /// + /// Thrown when fails to make API call + /// The label id. + /// Task of LabelEntity + public async System.Threading.Tasks.Task GetLabelAsync (string id) + { + ApiResponse localVarResponse = await this.GetLabelAsyncWithHttpInfo(id); + return localVarResponse.Data; + + } + + /// + /// Gets a label + /// + /// Thrown when fails to make API call + /// The label id. + /// Task of ApiResponse (LabelEntity) + public async System.Threading.Tasks.Task> GetLabelAsyncWithHttpInfo (string id) + { + // verify the required parameter 'id' is set + if (id == null) + throw new ApiException(400, "Missing required parameter 'id' when calling LabelsApi->GetLabel"); + + var localVarPath = "/labels/{id}"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "*/*" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter + + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (this.ExceptionFactory != null) + { + Exception exception = this.ExceptionFactory("GetLabel", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), + (LabelEntity) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(LabelEntity))); + } + + /// + /// Deletes a label + /// + /// Thrown when fails to make API call + /// The label id. + /// The revision is used to verify the client is working with the latest version of the flow. (optional) + /// If the client id is not specified, new one will be generated. This value (whether specified or generated) is included in the response. (optional) + /// Acknowledges that this node is disconnected to allow for mutable requests to proceed. (optional, default to false) + /// LabelEntity + public LabelEntity RemoveLabel (string id, string version = null, string clientId = null, bool? disconnectedNodeAcknowledged = null) + { + ApiResponse localVarResponse = this.RemoveLabelWithHttpInfo(id, version, clientId, disconnectedNodeAcknowledged); + return localVarResponse.Data; + } + + /// + /// Deletes a label + /// + /// Thrown when fails to make API call + /// The label id. + /// The revision is used to verify the client is working with the latest version of the flow. (optional) + /// If the client id is not specified, new one will be generated. This value (whether specified or generated) is included in the response. (optional) + /// Acknowledges that this node is disconnected to allow for mutable requests to proceed. (optional, default to false) + /// ApiResponse of LabelEntity + public ApiResponse< LabelEntity > RemoveLabelWithHttpInfo (string id, string version = null, string clientId = null, bool? disconnectedNodeAcknowledged = null) + { + // verify the required parameter 'id' is set + if (id == null) + throw new ApiException(400, "Missing required parameter 'id' when calling LabelsApi->RemoveLabel"); + + var localVarPath = "/labels/{id}"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "*/*" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter + if (version != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "version", version)); // query parameter + if (clientId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "clientId", clientId)); // query parameter + if (disconnectedNodeAcknowledged != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "disconnectedNodeAcknowledged", disconnectedNodeAcknowledged)); // query parameter + + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.DELETE, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (this.ExceptionFactory != null) + { + Exception exception = this.ExceptionFactory("RemoveLabel", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), + (LabelEntity) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(LabelEntity))); + } + + /// + /// Deletes a label + /// + /// Thrown when fails to make API call + /// The label id. + /// The revision is used to verify the client is working with the latest version of the flow. (optional) + /// If the client id is not specified, new one will be generated. This value (whether specified or generated) is included in the response. (optional) + /// Acknowledges that this node is disconnected to allow for mutable requests to proceed. (optional, default to false) + /// Task of LabelEntity + public async System.Threading.Tasks.Task RemoveLabelAsync (string id, string version = null, string clientId = null, bool? disconnectedNodeAcknowledged = null) + { + ApiResponse localVarResponse = await this.RemoveLabelAsyncWithHttpInfo(id, version, clientId, disconnectedNodeAcknowledged); + return localVarResponse.Data; + + } + + /// + /// Deletes a label + /// + /// Thrown when fails to make API call + /// The label id. + /// The revision is used to verify the client is working with the latest version of the flow. (optional) + /// If the client id is not specified, new one will be generated. This value (whether specified or generated) is included in the response. (optional) + /// Acknowledges that this node is disconnected to allow for mutable requests to proceed. (optional, default to false) + /// Task of ApiResponse (LabelEntity) + public async System.Threading.Tasks.Task> RemoveLabelAsyncWithHttpInfo (string id, string version = null, string clientId = null, bool? disconnectedNodeAcknowledged = null) + { + // verify the required parameter 'id' is set + if (id == null) + throw new ApiException(400, "Missing required parameter 'id' when calling LabelsApi->RemoveLabel"); + + var localVarPath = "/labels/{id}"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "*/*" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter + if (version != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "version", version)); // query parameter + if (clientId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "clientId", clientId)); // query parameter + if (disconnectedNodeAcknowledged != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "disconnectedNodeAcknowledged", disconnectedNodeAcknowledged)); // query parameter + + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.DELETE, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (this.ExceptionFactory != null) + { + Exception exception = this.ExceptionFactory("RemoveLabel", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), + (LabelEntity) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(LabelEntity))); + } + + /// + /// Updates a label + /// + /// Thrown when fails to make API call + /// The label id. + /// The label configuration details. + /// LabelEntity + public LabelEntity UpdateLabel (string id, LabelEntity body) + { + ApiResponse localVarResponse = this.UpdateLabelWithHttpInfo(id, body); + return localVarResponse.Data; + } + + /// + /// Updates a label + /// + /// Thrown when fails to make API call + /// The label id. + /// The label configuration details. + /// ApiResponse of LabelEntity + public ApiResponse< LabelEntity > UpdateLabelWithHttpInfo (string id, LabelEntity body) + { + // verify the required parameter 'id' is set + if (id == null) + throw new ApiException(400, "Missing required parameter 'id' when calling LabelsApi->UpdateLabel"); + // verify the required parameter 'body' is set + if (body == null) + throw new ApiException(400, "Missing required parameter 'body' when calling LabelsApi->UpdateLabel"); + + var localVarPath = "/labels/{id}"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "application/json" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter + if (body != null && body.GetType() != typeof(byte[])) + { + localVarPostBody = this.Configuration.ApiClient.Serialize(body); // http body (model) parameter + } + else + { + localVarPostBody = body; // byte array + } + + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.PUT, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (this.ExceptionFactory != null) + { + Exception exception = this.ExceptionFactory("UpdateLabel", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), + (LabelEntity) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(LabelEntity))); + } + + /// + /// Updates a label + /// + /// Thrown when fails to make API call + /// The label id. + /// The label configuration details. + /// Task of LabelEntity + public async System.Threading.Tasks.Task UpdateLabelAsync (string id, LabelEntity body) + { + ApiResponse localVarResponse = await this.UpdateLabelAsyncWithHttpInfo(id, body); + return localVarResponse.Data; + + } + + /// + /// Updates a label + /// + /// Thrown when fails to make API call + /// The label id. + /// The label configuration details. + /// Task of ApiResponse (LabelEntity) + public async System.Threading.Tasks.Task> UpdateLabelAsyncWithHttpInfo (string id, LabelEntity body) + { + // verify the required parameter 'id' is set + if (id == null) + throw new ApiException(400, "Missing required parameter 'id' when calling LabelsApi->UpdateLabel"); + // verify the required parameter 'body' is set + if (body == null) + throw new ApiException(400, "Missing required parameter 'body' when calling LabelsApi->UpdateLabel"); + + var localVarPath = "/labels/{id}"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "application/json" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter + if (body != null && body.GetType() != typeof(byte[])) + { + localVarPostBody = this.Configuration.ApiClient.Serialize(body); // http body (model) parameter + } + else + { + localVarPostBody = body; // byte array + } + + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.PUT, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (this.ExceptionFactory != null) + { + Exception exception = this.ExceptionFactory("UpdateLabel", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), + (LabelEntity) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(LabelEntity))); + } + + } +} diff --git a/NiFi.Swagger/Api/OutputPortsApi.cs b/NiFi.Swagger/Api/OutputPortsApi.cs new file mode 100644 index 0000000..fd865a0 --- /dev/null +++ b/NiFi.Swagger/Api/OutputPortsApi.cs @@ -0,0 +1,930 @@ +/* + * NiFi Rest Api + * + * The Rest Api provides programmatic access to command and control a NiFi instance in real time. Start and stop processors, monitor queues, query provenance data, and more. Each endpoint below includes a description, definitions of the expected input and output, potential response codes, and the authorizations required to invoke each service. + * + * OpenAPI spec version: 1.9.1 + * Contact: dev@nifi.apache.org + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +namespace NiFi.Swagger.Api +{ + using System; + using System.Collections.Generic; + using System.Collections.ObjectModel; + using System.Linq; + + using NiFi.Swagger.Client; + using NiFi.Swagger.Model; + + using RestSharp; + + /// + /// Represents a collection of functions to interact with the API endpoints + /// + public interface IOutputPortsApi : IApiAccessor + { + #region Synchronous Operations + /// + /// Gets an output port + /// + /// + /// + /// + /// Thrown when fails to make API call + /// The output port id. + /// PortEntity + PortEntity GetOutputPort (string id); + + /// + /// Gets an output port + /// + /// + /// + /// + /// Thrown when fails to make API call + /// The output port id. + /// ApiResponse of PortEntity + ApiResponse GetOutputPortWithHttpInfo (string id); + /// + /// Deletes an output port + /// + /// + /// + /// + /// Thrown when fails to make API call + /// The output port id. + /// The revision is used to verify the client is working with the latest version of the flow. (optional) + /// If the client id is not specified, new one will be generated. This value (whether specified or generated) is included in the response. (optional) + /// Acknowledges that this node is disconnected to allow for mutable requests to proceed. (optional, default to false) + /// PortEntity + PortEntity RemoveOutputPort (string id, string version = null, string clientId = null, bool? disconnectedNodeAcknowledged = null); + + /// + /// Deletes an output port + /// + /// + /// + /// + /// Thrown when fails to make API call + /// The output port id. + /// The revision is used to verify the client is working with the latest version of the flow. (optional) + /// If the client id is not specified, new one will be generated. This value (whether specified or generated) is included in the response. (optional) + /// Acknowledges that this node is disconnected to allow for mutable requests to proceed. (optional, default to false) + /// ApiResponse of PortEntity + ApiResponse RemoveOutputPortWithHttpInfo (string id, string version = null, string clientId = null, bool? disconnectedNodeAcknowledged = null); + /// + /// Updates an output port + /// + /// + /// + /// + /// Thrown when fails to make API call + /// The output port id. + /// The output port configuration details. + /// PortEntity + PortEntity UpdateOutputPort (string id, PortEntity body); + + /// + /// Updates an output port + /// + /// + /// + /// + /// Thrown when fails to make API call + /// The output port id. + /// The output port configuration details. + /// ApiResponse of PortEntity + ApiResponse UpdateOutputPortWithHttpInfo (string id, PortEntity body); + /// + /// Updates run status of an output-port + /// + /// + /// + /// + /// Thrown when fails to make API call + /// The port id. + /// The port run status. + /// ProcessorEntity + ProcessorEntity UpdateRunStatus (string id, PortRunStatusEntity body); + + /// + /// Updates run status of an output-port + /// + /// + /// + /// + /// Thrown when fails to make API call + /// The port id. + /// The port run status. + /// ApiResponse of ProcessorEntity + ApiResponse UpdateRunStatusWithHttpInfo (string id, PortRunStatusEntity body); + #endregion Synchronous Operations + #region Asynchronous Operations + /// + /// Gets an output port + /// + /// + /// + /// + /// Thrown when fails to make API call + /// The output port id. + /// Task of PortEntity + System.Threading.Tasks.Task GetOutputPortAsync (string id); + + /// + /// Gets an output port + /// + /// + /// + /// + /// Thrown when fails to make API call + /// The output port id. + /// Task of ApiResponse (PortEntity) + System.Threading.Tasks.Task> GetOutputPortAsyncWithHttpInfo (string id); + /// + /// Deletes an output port + /// + /// + /// + /// + /// Thrown when fails to make API call + /// The output port id. + /// The revision is used to verify the client is working with the latest version of the flow. (optional) + /// If the client id is not specified, new one will be generated. This value (whether specified or generated) is included in the response. (optional) + /// Acknowledges that this node is disconnected to allow for mutable requests to proceed. (optional, default to false) + /// Task of PortEntity + System.Threading.Tasks.Task RemoveOutputPortAsync (string id, string version = null, string clientId = null, bool? disconnectedNodeAcknowledged = null); + + /// + /// Deletes an output port + /// + /// + /// + /// + /// Thrown when fails to make API call + /// The output port id. + /// The revision is used to verify the client is working with the latest version of the flow. (optional) + /// If the client id is not specified, new one will be generated. This value (whether specified or generated) is included in the response. (optional) + /// Acknowledges that this node is disconnected to allow for mutable requests to proceed. (optional, default to false) + /// Task of ApiResponse (PortEntity) + System.Threading.Tasks.Task> RemoveOutputPortAsyncWithHttpInfo (string id, string version = null, string clientId = null, bool? disconnectedNodeAcknowledged = null); + /// + /// Updates an output port + /// + /// + /// + /// + /// Thrown when fails to make API call + /// The output port id. + /// The output port configuration details. + /// Task of PortEntity + System.Threading.Tasks.Task UpdateOutputPortAsync (string id, PortEntity body); + + /// + /// Updates an output port + /// + /// + /// + /// + /// Thrown when fails to make API call + /// The output port id. + /// The output port configuration details. + /// Task of ApiResponse (PortEntity) + System.Threading.Tasks.Task> UpdateOutputPortAsyncWithHttpInfo (string id, PortEntity body); + /// + /// Updates run status of an output-port + /// + /// + /// + /// + /// Thrown when fails to make API call + /// The port id. + /// The port run status. + /// Task of ProcessorEntity + System.Threading.Tasks.Task UpdateRunStatusAsync (string id, PortRunStatusEntity body); + + /// + /// Updates run status of an output-port + /// + /// + /// + /// + /// Thrown when fails to make API call + /// The port id. + /// The port run status. + /// Task of ApiResponse (ProcessorEntity) + System.Threading.Tasks.Task> UpdateRunStatusAsyncWithHttpInfo (string id, PortRunStatusEntity body); + #endregion Asynchronous Operations + } + + /// + /// Represents a collection of functions to interact with the API endpoints + /// + public partial class OutputPortsApi : IOutputPortsApi + { + private ExceptionFactory _exceptionFactory = (name, response) => null; + + /// + /// Initializes a new instance of the class. + /// + /// + public OutputPortsApi(String basePath) + { + this.Configuration = new Configuration { BasePath = basePath }; + + this.ExceptionFactory = Configuration.DefaultExceptionFactory; + } + + /// + /// Initializes a new instance of the class + /// using Configuration object + /// + /// An instance of Configuration + /// + public OutputPortsApi(Configuration configuration = null) + { + if (configuration == null) // use the default one in Configuration + this.Configuration = Configuration.Default; + else + this.Configuration = configuration; + + this.ExceptionFactory = Configuration.DefaultExceptionFactory; + } + + /// + /// Gets the base path of the API client. + /// + /// The base path + public String GetBasePath() + { + return this.Configuration.ApiClient.RestClient.BaseUrl.ToString(); + } + + /// + /// Sets the base path of the API client. + /// + /// The base path + [Obsolete("SetBasePath is deprecated, please do 'Configuration.ApiClient = new ApiClient(\"http://new-path\")' instead.")] + public void SetBasePath(String basePath) + { + // do nothing + } + + /// + /// Gets or sets the configuration object + /// + /// An instance of the Configuration + public Configuration Configuration {get; set;} + + /// + /// Provides a factory method hook for the creation of exceptions. + /// + public ExceptionFactory ExceptionFactory + { + get + { + if (this._exceptionFactory != null && this._exceptionFactory.GetInvocationList().Length > 1) + { + throw new InvalidOperationException("Multicast delegate for ExceptionFactory is unsupported."); + } + return this._exceptionFactory; + } + set { this._exceptionFactory = value; } + } + + /// + /// Gets the default header. + /// + /// Dictionary of HTTP header + [Obsolete("DefaultHeader is deprecated, please use Configuration.DefaultHeader instead.")] + public IDictionary DefaultHeader() + { + return new ReadOnlyDictionary(this.Configuration.DefaultHeader); + } + + /// + /// Add default header. + /// + /// Header field name. + /// Header field value. + /// + [Obsolete("AddDefaultHeader is deprecated, please use Configuration.AddDefaultHeader instead.")] + public void AddDefaultHeader(string key, string value) + { + this.Configuration.AddDefaultHeader(key, value); + } + + /// + /// Gets an output port + /// + /// Thrown when fails to make API call + /// The output port id. + /// PortEntity + public PortEntity GetOutputPort (string id) + { + ApiResponse localVarResponse = this.GetOutputPortWithHttpInfo(id); + return localVarResponse.Data; + } + + /// + /// Gets an output port + /// + /// Thrown when fails to make API call + /// The output port id. + /// ApiResponse of PortEntity + public ApiResponse< PortEntity > GetOutputPortWithHttpInfo (string id) + { + // verify the required parameter 'id' is set + if (id == null) + throw new ApiException(400, "Missing required parameter 'id' when calling OutputPortsApi->GetOutputPort"); + + var localVarPath = "/output-ports/{id}"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "*/*" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter + + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (this.ExceptionFactory != null) + { + Exception exception = this.ExceptionFactory("GetOutputPort", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), + (PortEntity) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(PortEntity))); + } + + /// + /// Gets an output port + /// + /// Thrown when fails to make API call + /// The output port id. + /// Task of PortEntity + public async System.Threading.Tasks.Task GetOutputPortAsync (string id) + { + ApiResponse localVarResponse = await this.GetOutputPortAsyncWithHttpInfo(id); + return localVarResponse.Data; + + } + + /// + /// Gets an output port + /// + /// Thrown when fails to make API call + /// The output port id. + /// Task of ApiResponse (PortEntity) + public async System.Threading.Tasks.Task> GetOutputPortAsyncWithHttpInfo (string id) + { + // verify the required parameter 'id' is set + if (id == null) + throw new ApiException(400, "Missing required parameter 'id' when calling OutputPortsApi->GetOutputPort"); + + var localVarPath = "/output-ports/{id}"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "*/*" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter + + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (this.ExceptionFactory != null) + { + Exception exception = this.ExceptionFactory("GetOutputPort", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), + (PortEntity) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(PortEntity))); + } + + /// + /// Deletes an output port + /// + /// Thrown when fails to make API call + /// The output port id. + /// The revision is used to verify the client is working with the latest version of the flow. (optional) + /// If the client id is not specified, new one will be generated. This value (whether specified or generated) is included in the response. (optional) + /// Acknowledges that this node is disconnected to allow for mutable requests to proceed. (optional, default to false) + /// PortEntity + public PortEntity RemoveOutputPort (string id, string version = null, string clientId = null, bool? disconnectedNodeAcknowledged = null) + { + ApiResponse localVarResponse = this.RemoveOutputPortWithHttpInfo(id, version, clientId, disconnectedNodeAcknowledged); + return localVarResponse.Data; + } + + /// + /// Deletes an output port + /// + /// Thrown when fails to make API call + /// The output port id. + /// The revision is used to verify the client is working with the latest version of the flow. (optional) + /// If the client id is not specified, new one will be generated. This value (whether specified or generated) is included in the response. (optional) + /// Acknowledges that this node is disconnected to allow for mutable requests to proceed. (optional, default to false) + /// ApiResponse of PortEntity + public ApiResponse< PortEntity > RemoveOutputPortWithHttpInfo (string id, string version = null, string clientId = null, bool? disconnectedNodeAcknowledged = null) + { + // verify the required parameter 'id' is set + if (id == null) + throw new ApiException(400, "Missing required parameter 'id' when calling OutputPortsApi->RemoveOutputPort"); + + var localVarPath = "/output-ports/{id}"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "*/*" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter + if (version != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "version", version)); // query parameter + if (clientId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "clientId", clientId)); // query parameter + if (disconnectedNodeAcknowledged != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "disconnectedNodeAcknowledged", disconnectedNodeAcknowledged)); // query parameter + + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.DELETE, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (this.ExceptionFactory != null) + { + Exception exception = this.ExceptionFactory("RemoveOutputPort", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), + (PortEntity) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(PortEntity))); + } + + /// + /// Deletes an output port + /// + /// Thrown when fails to make API call + /// The output port id. + /// The revision is used to verify the client is working with the latest version of the flow. (optional) + /// If the client id is not specified, new one will be generated. This value (whether specified or generated) is included in the response. (optional) + /// Acknowledges that this node is disconnected to allow for mutable requests to proceed. (optional, default to false) + /// Task of PortEntity + public async System.Threading.Tasks.Task RemoveOutputPortAsync (string id, string version = null, string clientId = null, bool? disconnectedNodeAcknowledged = null) + { + ApiResponse localVarResponse = await this.RemoveOutputPortAsyncWithHttpInfo(id, version, clientId, disconnectedNodeAcknowledged); + return localVarResponse.Data; + + } + + /// + /// Deletes an output port + /// + /// Thrown when fails to make API call + /// The output port id. + /// The revision is used to verify the client is working with the latest version of the flow. (optional) + /// If the client id is not specified, new one will be generated. This value (whether specified or generated) is included in the response. (optional) + /// Acknowledges that this node is disconnected to allow for mutable requests to proceed. (optional, default to false) + /// Task of ApiResponse (PortEntity) + public async System.Threading.Tasks.Task> RemoveOutputPortAsyncWithHttpInfo (string id, string version = null, string clientId = null, bool? disconnectedNodeAcknowledged = null) + { + // verify the required parameter 'id' is set + if (id == null) + throw new ApiException(400, "Missing required parameter 'id' when calling OutputPortsApi->RemoveOutputPort"); + + var localVarPath = "/output-ports/{id}"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "*/*" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter + if (version != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "version", version)); // query parameter + if (clientId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "clientId", clientId)); // query parameter + if (disconnectedNodeAcknowledged != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "disconnectedNodeAcknowledged", disconnectedNodeAcknowledged)); // query parameter + + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.DELETE, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (this.ExceptionFactory != null) + { + Exception exception = this.ExceptionFactory("RemoveOutputPort", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), + (PortEntity) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(PortEntity))); + } + + /// + /// Updates an output port + /// + /// Thrown when fails to make API call + /// The output port id. + /// The output port configuration details. + /// PortEntity + public PortEntity UpdateOutputPort (string id, PortEntity body) + { + ApiResponse localVarResponse = this.UpdateOutputPortWithHttpInfo(id, body); + return localVarResponse.Data; + } + + /// + /// Updates an output port + /// + /// Thrown when fails to make API call + /// The output port id. + /// The output port configuration details. + /// ApiResponse of PortEntity + public ApiResponse< PortEntity > UpdateOutputPortWithHttpInfo (string id, PortEntity body) + { + // verify the required parameter 'id' is set + if (id == null) + throw new ApiException(400, "Missing required parameter 'id' when calling OutputPortsApi->UpdateOutputPort"); + // verify the required parameter 'body' is set + if (body == null) + throw new ApiException(400, "Missing required parameter 'body' when calling OutputPortsApi->UpdateOutputPort"); + + var localVarPath = "/output-ports/{id}"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "application/json" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter + if (body != null && body.GetType() != typeof(byte[])) + { + localVarPostBody = this.Configuration.ApiClient.Serialize(body); // http body (model) parameter + } + else + { + localVarPostBody = body; // byte array + } + + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.PUT, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (this.ExceptionFactory != null) + { + Exception exception = this.ExceptionFactory("UpdateOutputPort", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), + (PortEntity) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(PortEntity))); + } + + /// + /// Updates an output port + /// + /// Thrown when fails to make API call + /// The output port id. + /// The output port configuration details. + /// Task of PortEntity + public async System.Threading.Tasks.Task UpdateOutputPortAsync (string id, PortEntity body) + { + ApiResponse localVarResponse = await this.UpdateOutputPortAsyncWithHttpInfo(id, body); + return localVarResponse.Data; + + } + + /// + /// Updates an output port + /// + /// Thrown when fails to make API call + /// The output port id. + /// The output port configuration details. + /// Task of ApiResponse (PortEntity) + public async System.Threading.Tasks.Task> UpdateOutputPortAsyncWithHttpInfo (string id, PortEntity body) + { + // verify the required parameter 'id' is set + if (id == null) + throw new ApiException(400, "Missing required parameter 'id' when calling OutputPortsApi->UpdateOutputPort"); + // verify the required parameter 'body' is set + if (body == null) + throw new ApiException(400, "Missing required parameter 'body' when calling OutputPortsApi->UpdateOutputPort"); + + var localVarPath = "/output-ports/{id}"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "application/json" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter + if (body != null && body.GetType() != typeof(byte[])) + { + localVarPostBody = this.Configuration.ApiClient.Serialize(body); // http body (model) parameter + } + else + { + localVarPostBody = body; // byte array + } + + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.PUT, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (this.ExceptionFactory != null) + { + Exception exception = this.ExceptionFactory("UpdateOutputPort", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), + (PortEntity) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(PortEntity))); + } + + /// + /// Updates run status of an output-port + /// + /// Thrown when fails to make API call + /// The port id. + /// The port run status. + /// ProcessorEntity + public ProcessorEntity UpdateRunStatus (string id, PortRunStatusEntity body) + { + ApiResponse localVarResponse = this.UpdateRunStatusWithHttpInfo(id, body); + return localVarResponse.Data; + } + + /// + /// Updates run status of an output-port + /// + /// Thrown when fails to make API call + /// The port id. + /// The port run status. + /// ApiResponse of ProcessorEntity + public ApiResponse< ProcessorEntity > UpdateRunStatusWithHttpInfo (string id, PortRunStatusEntity body) + { + // verify the required parameter 'id' is set + if (id == null) + throw new ApiException(400, "Missing required parameter 'id' when calling OutputPortsApi->UpdateRunStatus"); + // verify the required parameter 'body' is set + if (body == null) + throw new ApiException(400, "Missing required parameter 'body' when calling OutputPortsApi->UpdateRunStatus"); + + var localVarPath = "/output-ports/{id}/run-status"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "application/json" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter + if (body != null && body.GetType() != typeof(byte[])) + { + localVarPostBody = this.Configuration.ApiClient.Serialize(body); // http body (model) parameter + } + else + { + localVarPostBody = body; // byte array + } + + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.PUT, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (this.ExceptionFactory != null) + { + Exception exception = this.ExceptionFactory("UpdateRunStatus", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), + (ProcessorEntity) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(ProcessorEntity))); + } + + /// + /// Updates run status of an output-port + /// + /// Thrown when fails to make API call + /// The port id. + /// The port run status. + /// Task of ProcessorEntity + public async System.Threading.Tasks.Task UpdateRunStatusAsync (string id, PortRunStatusEntity body) + { + ApiResponse localVarResponse = await this.UpdateRunStatusAsyncWithHttpInfo(id, body); + return localVarResponse.Data; + + } + + /// + /// Updates run status of an output-port + /// + /// Thrown when fails to make API call + /// The port id. + /// The port run status. + /// Task of ApiResponse (ProcessorEntity) + public async System.Threading.Tasks.Task> UpdateRunStatusAsyncWithHttpInfo (string id, PortRunStatusEntity body) + { + // verify the required parameter 'id' is set + if (id == null) + throw new ApiException(400, "Missing required parameter 'id' when calling OutputPortsApi->UpdateRunStatus"); + // verify the required parameter 'body' is set + if (body == null) + throw new ApiException(400, "Missing required parameter 'body' when calling OutputPortsApi->UpdateRunStatus"); + + var localVarPath = "/output-ports/{id}/run-status"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "application/json" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter + if (body != null && body.GetType() != typeof(byte[])) + { + localVarPostBody = this.Configuration.ApiClient.Serialize(body); // http body (model) parameter + } + else + { + localVarPostBody = body; // byte array + } + + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.PUT, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (this.ExceptionFactory != null) + { + Exception exception = this.ExceptionFactory("UpdateRunStatus", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), + (ProcessorEntity) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(ProcessorEntity))); + } + + } +} diff --git a/NiFi.Swagger/Api/PoliciesApi.cs b/NiFi.Swagger/Api/PoliciesApi.cs new file mode 100644 index 0000000..6de55b7 --- /dev/null +++ b/NiFi.Swagger/Api/PoliciesApi.cs @@ -0,0 +1,1107 @@ +/* + * NiFi Rest Api + * + * The Rest Api provides programmatic access to command and control a NiFi instance in real time. Start and stop processors, monitor queues, query provenance data, and more. Each endpoint below includes a description, definitions of the expected input and output, potential response codes, and the authorizations required to invoke each service. + * + * OpenAPI spec version: 1.9.1 + * Contact: dev@nifi.apache.org + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +namespace NiFi.Swagger.Api +{ + using System; + using System.Collections.Generic; + using System.Collections.ObjectModel; + using System.Linq; + + using NiFi.Swagger.Client; + using NiFi.Swagger.Model; + + using RestSharp; + + /// + /// Represents a collection of functions to interact with the API endpoints + /// + public interface IPoliciesApi : IApiAccessor + { + #region Synchronous Operations + /// + /// Creates an access policy + /// + /// + /// + /// + /// Thrown when fails to make API call + /// The access policy configuration details. + /// AccessPolicyEntity + AccessPolicyEntity CreateAccessPolicy (AccessPolicyEntity body); + + /// + /// Creates an access policy + /// + /// + /// + /// + /// Thrown when fails to make API call + /// The access policy configuration details. + /// ApiResponse of AccessPolicyEntity + ApiResponse CreateAccessPolicyWithHttpInfo (AccessPolicyEntity body); + /// + /// Gets an access policy + /// + /// + /// + /// + /// Thrown when fails to make API call + /// The access policy id. + /// AccessPolicyEntity + AccessPolicyEntity GetAccessPolicy (string id); + + /// + /// Gets an access policy + /// + /// + /// + /// + /// Thrown when fails to make API call + /// The access policy id. + /// ApiResponse of AccessPolicyEntity + ApiResponse GetAccessPolicyWithHttpInfo (string id); + /// + /// Gets an access policy for the specified action and resource + /// + /// + /// Will return the effective policy if no component specific policy exists for the specified action and resource. Must have Read permissions to the policy with the desired action and resource. Permissions for the policy that is returned will be indicated in the response. This means the client could be authorized to get the policy for a given component but the effective policy may be inherited from an ancestor Process Group. If the client does not have permissions to that policy, the response will not include the policy and the permissions in the response will be marked accordingly. If the client does not have permissions to the policy of the desired action and resource a 403 response will be returned. + /// + /// Thrown when fails to make API call + /// The request action. + /// The resource of the policy. + /// AccessPolicyEntity + AccessPolicyEntity GetAccessPolicyForResource (string action, string resource); + + /// + /// Gets an access policy for the specified action and resource + /// + /// + /// Will return the effective policy if no component specific policy exists for the specified action and resource. Must have Read permissions to the policy with the desired action and resource. Permissions for the policy that is returned will be indicated in the response. This means the client could be authorized to get the policy for a given component but the effective policy may be inherited from an ancestor Process Group. If the client does not have permissions to that policy, the response will not include the policy and the permissions in the response will be marked accordingly. If the client does not have permissions to the policy of the desired action and resource a 403 response will be returned. + /// + /// Thrown when fails to make API call + /// The request action. + /// The resource of the policy. + /// ApiResponse of AccessPolicyEntity + ApiResponse GetAccessPolicyForResourceWithHttpInfo (string action, string resource); + /// + /// Deletes an access policy + /// + /// + /// + /// + /// Thrown when fails to make API call + /// The access policy id. + /// The revision is used to verify the client is working with the latest version of the flow. (optional) + /// If the client id is not specified, new one will be generated. This value (whether specified or generated) is included in the response. (optional) + /// Acknowledges that this node is disconnected to allow for mutable requests to proceed. (optional, default to false) + /// AccessPolicyEntity + AccessPolicyEntity RemoveAccessPolicy (string id, string version = null, string clientId = null, bool? disconnectedNodeAcknowledged = null); + + /// + /// Deletes an access policy + /// + /// + /// + /// + /// Thrown when fails to make API call + /// The access policy id. + /// The revision is used to verify the client is working with the latest version of the flow. (optional) + /// If the client id is not specified, new one will be generated. This value (whether specified or generated) is included in the response. (optional) + /// Acknowledges that this node is disconnected to allow for mutable requests to proceed. (optional, default to false) + /// ApiResponse of AccessPolicyEntity + ApiResponse RemoveAccessPolicyWithHttpInfo (string id, string version = null, string clientId = null, bool? disconnectedNodeAcknowledged = null); + /// + /// Updates a access policy + /// + /// + /// + /// + /// Thrown when fails to make API call + /// The access policy id. + /// The access policy configuration details. + /// AccessPolicyEntity + AccessPolicyEntity UpdateAccessPolicy (string id, AccessPolicyEntity body); + + /// + /// Updates a access policy + /// + /// + /// + /// + /// Thrown when fails to make API call + /// The access policy id. + /// The access policy configuration details. + /// ApiResponse of AccessPolicyEntity + ApiResponse UpdateAccessPolicyWithHttpInfo (string id, AccessPolicyEntity body); + #endregion Synchronous Operations + #region Asynchronous Operations + /// + /// Creates an access policy + /// + /// + /// + /// + /// Thrown when fails to make API call + /// The access policy configuration details. + /// Task of AccessPolicyEntity + System.Threading.Tasks.Task CreateAccessPolicyAsync (AccessPolicyEntity body); + + /// + /// Creates an access policy + /// + /// + /// + /// + /// Thrown when fails to make API call + /// The access policy configuration details. + /// Task of ApiResponse (AccessPolicyEntity) + System.Threading.Tasks.Task> CreateAccessPolicyAsyncWithHttpInfo (AccessPolicyEntity body); + /// + /// Gets an access policy + /// + /// + /// + /// + /// Thrown when fails to make API call + /// The access policy id. + /// Task of AccessPolicyEntity + System.Threading.Tasks.Task GetAccessPolicyAsync (string id); + + /// + /// Gets an access policy + /// + /// + /// + /// + /// Thrown when fails to make API call + /// The access policy id. + /// Task of ApiResponse (AccessPolicyEntity) + System.Threading.Tasks.Task> GetAccessPolicyAsyncWithHttpInfo (string id); + /// + /// Gets an access policy for the specified action and resource + /// + /// + /// Will return the effective policy if no component specific policy exists for the specified action and resource. Must have Read permissions to the policy with the desired action and resource. Permissions for the policy that is returned will be indicated in the response. This means the client could be authorized to get the policy for a given component but the effective policy may be inherited from an ancestor Process Group. If the client does not have permissions to that policy, the response will not include the policy and the permissions in the response will be marked accordingly. If the client does not have permissions to the policy of the desired action and resource a 403 response will be returned. + /// + /// Thrown when fails to make API call + /// The request action. + /// The resource of the policy. + /// Task of AccessPolicyEntity + System.Threading.Tasks.Task GetAccessPolicyForResourceAsync (string action, string resource); + + /// + /// Gets an access policy for the specified action and resource + /// + /// + /// Will return the effective policy if no component specific policy exists for the specified action and resource. Must have Read permissions to the policy with the desired action and resource. Permissions for the policy that is returned will be indicated in the response. This means the client could be authorized to get the policy for a given component but the effective policy may be inherited from an ancestor Process Group. If the client does not have permissions to that policy, the response will not include the policy and the permissions in the response will be marked accordingly. If the client does not have permissions to the policy of the desired action and resource a 403 response will be returned. + /// + /// Thrown when fails to make API call + /// The request action. + /// The resource of the policy. + /// Task of ApiResponse (AccessPolicyEntity) + System.Threading.Tasks.Task> GetAccessPolicyForResourceAsyncWithHttpInfo (string action, string resource); + /// + /// Deletes an access policy + /// + /// + /// + /// + /// Thrown when fails to make API call + /// The access policy id. + /// The revision is used to verify the client is working with the latest version of the flow. (optional) + /// If the client id is not specified, new one will be generated. This value (whether specified or generated) is included in the response. (optional) + /// Acknowledges that this node is disconnected to allow for mutable requests to proceed. (optional, default to false) + /// Task of AccessPolicyEntity + System.Threading.Tasks.Task RemoveAccessPolicyAsync (string id, string version = null, string clientId = null, bool? disconnectedNodeAcknowledged = null); + + /// + /// Deletes an access policy + /// + /// + /// + /// + /// Thrown when fails to make API call + /// The access policy id. + /// The revision is used to verify the client is working with the latest version of the flow. (optional) + /// If the client id is not specified, new one will be generated. This value (whether specified or generated) is included in the response. (optional) + /// Acknowledges that this node is disconnected to allow for mutable requests to proceed. (optional, default to false) + /// Task of ApiResponse (AccessPolicyEntity) + System.Threading.Tasks.Task> RemoveAccessPolicyAsyncWithHttpInfo (string id, string version = null, string clientId = null, bool? disconnectedNodeAcknowledged = null); + /// + /// Updates a access policy + /// + /// + /// + /// + /// Thrown when fails to make API call + /// The access policy id. + /// The access policy configuration details. + /// Task of AccessPolicyEntity + System.Threading.Tasks.Task UpdateAccessPolicyAsync (string id, AccessPolicyEntity body); + + /// + /// Updates a access policy + /// + /// + /// + /// + /// Thrown when fails to make API call + /// The access policy id. + /// The access policy configuration details. + /// Task of ApiResponse (AccessPolicyEntity) + System.Threading.Tasks.Task> UpdateAccessPolicyAsyncWithHttpInfo (string id, AccessPolicyEntity body); + #endregion Asynchronous Operations + } + + /// + /// Represents a collection of functions to interact with the API endpoints + /// + public partial class PoliciesApi : IPoliciesApi + { + private ExceptionFactory _exceptionFactory = (name, response) => null; + + /// + /// Initializes a new instance of the class. + /// + /// + public PoliciesApi(String basePath) + { + this.Configuration = new Configuration { BasePath = basePath }; + + this.ExceptionFactory = Configuration.DefaultExceptionFactory; + } + + /// + /// Initializes a new instance of the class + /// using Configuration object + /// + /// An instance of Configuration + /// + public PoliciesApi(Configuration configuration = null) + { + if (configuration == null) // use the default one in Configuration + this.Configuration = Configuration.Default; + else + this.Configuration = configuration; + + this.ExceptionFactory = Configuration.DefaultExceptionFactory; + } + + /// + /// Gets the base path of the API client. + /// + /// The base path + public String GetBasePath() + { + return this.Configuration.ApiClient.RestClient.BaseUrl.ToString(); + } + + /// + /// Sets the base path of the API client. + /// + /// The base path + [Obsolete("SetBasePath is deprecated, please do 'Configuration.ApiClient = new ApiClient(\"http://new-path\")' instead.")] + public void SetBasePath(String basePath) + { + // do nothing + } + + /// + /// Gets or sets the configuration object + /// + /// An instance of the Configuration + public Configuration Configuration {get; set;} + + /// + /// Provides a factory method hook for the creation of exceptions. + /// + public ExceptionFactory ExceptionFactory + { + get + { + if (this._exceptionFactory != null && this._exceptionFactory.GetInvocationList().Length > 1) + { + throw new InvalidOperationException("Multicast delegate for ExceptionFactory is unsupported."); + } + return this._exceptionFactory; + } + set { this._exceptionFactory = value; } + } + + /// + /// Gets the default header. + /// + /// Dictionary of HTTP header + [Obsolete("DefaultHeader is deprecated, please use Configuration.DefaultHeader instead.")] + public IDictionary DefaultHeader() + { + return new ReadOnlyDictionary(this.Configuration.DefaultHeader); + } + + /// + /// Add default header. + /// + /// Header field name. + /// Header field value. + /// + [Obsolete("AddDefaultHeader is deprecated, please use Configuration.AddDefaultHeader instead.")] + public void AddDefaultHeader(string key, string value) + { + this.Configuration.AddDefaultHeader(key, value); + } + + /// + /// Creates an access policy + /// + /// Thrown when fails to make API call + /// The access policy configuration details. + /// AccessPolicyEntity + public AccessPolicyEntity CreateAccessPolicy (AccessPolicyEntity body) + { + ApiResponse localVarResponse = this.CreateAccessPolicyWithHttpInfo(body); + return localVarResponse.Data; + } + + /// + /// Creates an access policy + /// + /// Thrown when fails to make API call + /// The access policy configuration details. + /// ApiResponse of AccessPolicyEntity + public ApiResponse< AccessPolicyEntity > CreateAccessPolicyWithHttpInfo (AccessPolicyEntity body) + { + // verify the required parameter 'body' is set + if (body == null) + throw new ApiException(400, "Missing required parameter 'body' when calling PoliciesApi->CreateAccessPolicy"); + + var localVarPath = "/policies"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "application/json" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (body != null && body.GetType() != typeof(byte[])) + { + localVarPostBody = this.Configuration.ApiClient.Serialize(body); // http body (model) parameter + } + else + { + localVarPostBody = body; // byte array + } + + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (this.ExceptionFactory != null) + { + Exception exception = this.ExceptionFactory("CreateAccessPolicy", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), + (AccessPolicyEntity) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(AccessPolicyEntity))); + } + + /// + /// Creates an access policy + /// + /// Thrown when fails to make API call + /// The access policy configuration details. + /// Task of AccessPolicyEntity + public async System.Threading.Tasks.Task CreateAccessPolicyAsync (AccessPolicyEntity body) + { + ApiResponse localVarResponse = await this.CreateAccessPolicyAsyncWithHttpInfo(body); + return localVarResponse.Data; + + } + + /// + /// Creates an access policy + /// + /// Thrown when fails to make API call + /// The access policy configuration details. + /// Task of ApiResponse (AccessPolicyEntity) + public async System.Threading.Tasks.Task> CreateAccessPolicyAsyncWithHttpInfo (AccessPolicyEntity body) + { + // verify the required parameter 'body' is set + if (body == null) + throw new ApiException(400, "Missing required parameter 'body' when calling PoliciesApi->CreateAccessPolicy"); + + var localVarPath = "/policies"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "application/json" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (body != null && body.GetType() != typeof(byte[])) + { + localVarPostBody = this.Configuration.ApiClient.Serialize(body); // http body (model) parameter + } + else + { + localVarPostBody = body; // byte array + } + + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (this.ExceptionFactory != null) + { + Exception exception = this.ExceptionFactory("CreateAccessPolicy", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), + (AccessPolicyEntity) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(AccessPolicyEntity))); + } + + /// + /// Gets an access policy + /// + /// Thrown when fails to make API call + /// The access policy id. + /// AccessPolicyEntity + public AccessPolicyEntity GetAccessPolicy (string id) + { + ApiResponse localVarResponse = this.GetAccessPolicyWithHttpInfo(id); + return localVarResponse.Data; + } + + /// + /// Gets an access policy + /// + /// Thrown when fails to make API call + /// The access policy id. + /// ApiResponse of AccessPolicyEntity + public ApiResponse< AccessPolicyEntity > GetAccessPolicyWithHttpInfo (string id) + { + // verify the required parameter 'id' is set + if (id == null) + throw new ApiException(400, "Missing required parameter 'id' when calling PoliciesApi->GetAccessPolicy"); + + var localVarPath = "/policies/{id}"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "*/*" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter + + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (this.ExceptionFactory != null) + { + Exception exception = this.ExceptionFactory("GetAccessPolicy", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), + (AccessPolicyEntity) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(AccessPolicyEntity))); + } + + /// + /// Gets an access policy + /// + /// Thrown when fails to make API call + /// The access policy id. + /// Task of AccessPolicyEntity + public async System.Threading.Tasks.Task GetAccessPolicyAsync (string id) + { + ApiResponse localVarResponse = await this.GetAccessPolicyAsyncWithHttpInfo(id); + return localVarResponse.Data; + + } + + /// + /// Gets an access policy + /// + /// Thrown when fails to make API call + /// The access policy id. + /// Task of ApiResponse (AccessPolicyEntity) + public async System.Threading.Tasks.Task> GetAccessPolicyAsyncWithHttpInfo (string id) + { + // verify the required parameter 'id' is set + if (id == null) + throw new ApiException(400, "Missing required parameter 'id' when calling PoliciesApi->GetAccessPolicy"); + + var localVarPath = "/policies/{id}"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "*/*" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter + + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (this.ExceptionFactory != null) + { + Exception exception = this.ExceptionFactory("GetAccessPolicy", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), + (AccessPolicyEntity) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(AccessPolicyEntity))); + } + + /// + /// Gets an access policy for the specified action and resource Will return the effective policy if no component specific policy exists for the specified action and resource. Must have Read permissions to the policy with the desired action and resource. Permissions for the policy that is returned will be indicated in the response. This means the client could be authorized to get the policy for a given component but the effective policy may be inherited from an ancestor Process Group. If the client does not have permissions to that policy, the response will not include the policy and the permissions in the response will be marked accordingly. If the client does not have permissions to the policy of the desired action and resource a 403 response will be returned. + /// + /// Thrown when fails to make API call + /// The request action. + /// The resource of the policy. + /// AccessPolicyEntity + public AccessPolicyEntity GetAccessPolicyForResource (string action, string resource) + { + ApiResponse localVarResponse = this.GetAccessPolicyForResourceWithHttpInfo(action, resource); + return localVarResponse.Data; + } + + /// + /// Gets an access policy for the specified action and resource Will return the effective policy if no component specific policy exists for the specified action and resource. Must have Read permissions to the policy with the desired action and resource. Permissions for the policy that is returned will be indicated in the response. This means the client could be authorized to get the policy for a given component but the effective policy may be inherited from an ancestor Process Group. If the client does not have permissions to that policy, the response will not include the policy and the permissions in the response will be marked accordingly. If the client does not have permissions to the policy of the desired action and resource a 403 response will be returned. + /// + /// Thrown when fails to make API call + /// The request action. + /// The resource of the policy. + /// ApiResponse of AccessPolicyEntity + public ApiResponse< AccessPolicyEntity > GetAccessPolicyForResourceWithHttpInfo (string action, string resource) + { + // verify the required parameter 'action' is set + if (action == null) + throw new ApiException(400, "Missing required parameter 'action' when calling PoliciesApi->GetAccessPolicyForResource"); + // verify the required parameter 'resource' is set + if (resource == null) + throw new ApiException(400, "Missing required parameter 'resource' when calling PoliciesApi->GetAccessPolicyForResource"); + + var localVarPath = "/policies/{action}/{resource}"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "*/*" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (action != null) localVarPathParams.Add("action", this.Configuration.ApiClient.ParameterToString(action)); // path parameter + if (resource != null) localVarPathParams.Add("resource", this.Configuration.ApiClient.ParameterToString(resource)); // path parameter + + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (this.ExceptionFactory != null) + { + Exception exception = this.ExceptionFactory("GetAccessPolicyForResource", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), + (AccessPolicyEntity) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(AccessPolicyEntity))); + } + + /// + /// Gets an access policy for the specified action and resource Will return the effective policy if no component specific policy exists for the specified action and resource. Must have Read permissions to the policy with the desired action and resource. Permissions for the policy that is returned will be indicated in the response. This means the client could be authorized to get the policy for a given component but the effective policy may be inherited from an ancestor Process Group. If the client does not have permissions to that policy, the response will not include the policy and the permissions in the response will be marked accordingly. If the client does not have permissions to the policy of the desired action and resource a 403 response will be returned. + /// + /// Thrown when fails to make API call + /// The request action. + /// The resource of the policy. + /// Task of AccessPolicyEntity + public async System.Threading.Tasks.Task GetAccessPolicyForResourceAsync (string action, string resource) + { + ApiResponse localVarResponse = await this.GetAccessPolicyForResourceAsyncWithHttpInfo(action, resource); + return localVarResponse.Data; + + } + + /// + /// Gets an access policy for the specified action and resource Will return the effective policy if no component specific policy exists for the specified action and resource. Must have Read permissions to the policy with the desired action and resource. Permissions for the policy that is returned will be indicated in the response. This means the client could be authorized to get the policy for a given component but the effective policy may be inherited from an ancestor Process Group. If the client does not have permissions to that policy, the response will not include the policy and the permissions in the response will be marked accordingly. If the client does not have permissions to the policy of the desired action and resource a 403 response will be returned. + /// + /// Thrown when fails to make API call + /// The request action. + /// The resource of the policy. + /// Task of ApiResponse (AccessPolicyEntity) + public async System.Threading.Tasks.Task> GetAccessPolicyForResourceAsyncWithHttpInfo (string action, string resource) + { + // verify the required parameter 'action' is set + if (action == null) + throw new ApiException(400, "Missing required parameter 'action' when calling PoliciesApi->GetAccessPolicyForResource"); + // verify the required parameter 'resource' is set + if (resource == null) + throw new ApiException(400, "Missing required parameter 'resource' when calling PoliciesApi->GetAccessPolicyForResource"); + + var localVarPath = "/policies/{action}/{resource}"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "*/*" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (action != null) localVarPathParams.Add("action", this.Configuration.ApiClient.ParameterToString(action)); // path parameter + if (resource != null) localVarPathParams.Add("resource", this.Configuration.ApiClient.ParameterToString(resource)); // path parameter + + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (this.ExceptionFactory != null) + { + Exception exception = this.ExceptionFactory("GetAccessPolicyForResource", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), + (AccessPolicyEntity) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(AccessPolicyEntity))); + } + + /// + /// Deletes an access policy + /// + /// Thrown when fails to make API call + /// The access policy id. + /// The revision is used to verify the client is working with the latest version of the flow. (optional) + /// If the client id is not specified, new one will be generated. This value (whether specified or generated) is included in the response. (optional) + /// Acknowledges that this node is disconnected to allow for mutable requests to proceed. (optional, default to false) + /// AccessPolicyEntity + public AccessPolicyEntity RemoveAccessPolicy (string id, string version = null, string clientId = null, bool? disconnectedNodeAcknowledged = null) + { + ApiResponse localVarResponse = this.RemoveAccessPolicyWithHttpInfo(id, version, clientId, disconnectedNodeAcknowledged); + return localVarResponse.Data; + } + + /// + /// Deletes an access policy + /// + /// Thrown when fails to make API call + /// The access policy id. + /// The revision is used to verify the client is working with the latest version of the flow. (optional) + /// If the client id is not specified, new one will be generated. This value (whether specified or generated) is included in the response. (optional) + /// Acknowledges that this node is disconnected to allow for mutable requests to proceed. (optional, default to false) + /// ApiResponse of AccessPolicyEntity + public ApiResponse< AccessPolicyEntity > RemoveAccessPolicyWithHttpInfo (string id, string version = null, string clientId = null, bool? disconnectedNodeAcknowledged = null) + { + // verify the required parameter 'id' is set + if (id == null) + throw new ApiException(400, "Missing required parameter 'id' when calling PoliciesApi->RemoveAccessPolicy"); + + var localVarPath = "/policies/{id}"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "*/*" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter + if (version != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "version", version)); // query parameter + if (clientId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "clientId", clientId)); // query parameter + if (disconnectedNodeAcknowledged != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "disconnectedNodeAcknowledged", disconnectedNodeAcknowledged)); // query parameter + + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.DELETE, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (this.ExceptionFactory != null) + { + Exception exception = this.ExceptionFactory("RemoveAccessPolicy", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), + (AccessPolicyEntity) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(AccessPolicyEntity))); + } + + /// + /// Deletes an access policy + /// + /// Thrown when fails to make API call + /// The access policy id. + /// The revision is used to verify the client is working with the latest version of the flow. (optional) + /// If the client id is not specified, new one will be generated. This value (whether specified or generated) is included in the response. (optional) + /// Acknowledges that this node is disconnected to allow for mutable requests to proceed. (optional, default to false) + /// Task of AccessPolicyEntity + public async System.Threading.Tasks.Task RemoveAccessPolicyAsync (string id, string version = null, string clientId = null, bool? disconnectedNodeAcknowledged = null) + { + ApiResponse localVarResponse = await this.RemoveAccessPolicyAsyncWithHttpInfo(id, version, clientId, disconnectedNodeAcknowledged); + return localVarResponse.Data; + + } + + /// + /// Deletes an access policy + /// + /// Thrown when fails to make API call + /// The access policy id. + /// The revision is used to verify the client is working with the latest version of the flow. (optional) + /// If the client id is not specified, new one will be generated. This value (whether specified or generated) is included in the response. (optional) + /// Acknowledges that this node is disconnected to allow for mutable requests to proceed. (optional, default to false) + /// Task of ApiResponse (AccessPolicyEntity) + public async System.Threading.Tasks.Task> RemoveAccessPolicyAsyncWithHttpInfo (string id, string version = null, string clientId = null, bool? disconnectedNodeAcknowledged = null) + { + // verify the required parameter 'id' is set + if (id == null) + throw new ApiException(400, "Missing required parameter 'id' when calling PoliciesApi->RemoveAccessPolicy"); + + var localVarPath = "/policies/{id}"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "*/*" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter + if (version != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "version", version)); // query parameter + if (clientId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "clientId", clientId)); // query parameter + if (disconnectedNodeAcknowledged != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "disconnectedNodeAcknowledged", disconnectedNodeAcknowledged)); // query parameter + + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.DELETE, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (this.ExceptionFactory != null) + { + Exception exception = this.ExceptionFactory("RemoveAccessPolicy", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), + (AccessPolicyEntity) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(AccessPolicyEntity))); + } + + /// + /// Updates a access policy + /// + /// Thrown when fails to make API call + /// The access policy id. + /// The access policy configuration details. + /// AccessPolicyEntity + public AccessPolicyEntity UpdateAccessPolicy (string id, AccessPolicyEntity body) + { + ApiResponse localVarResponse = this.UpdateAccessPolicyWithHttpInfo(id, body); + return localVarResponse.Data; + } + + /// + /// Updates a access policy + /// + /// Thrown when fails to make API call + /// The access policy id. + /// The access policy configuration details. + /// ApiResponse of AccessPolicyEntity + public ApiResponse< AccessPolicyEntity > UpdateAccessPolicyWithHttpInfo (string id, AccessPolicyEntity body) + { + // verify the required parameter 'id' is set + if (id == null) + throw new ApiException(400, "Missing required parameter 'id' when calling PoliciesApi->UpdateAccessPolicy"); + // verify the required parameter 'body' is set + if (body == null) + throw new ApiException(400, "Missing required parameter 'body' when calling PoliciesApi->UpdateAccessPolicy"); + + var localVarPath = "/policies/{id}"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "application/json" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter + if (body != null && body.GetType() != typeof(byte[])) + { + localVarPostBody = this.Configuration.ApiClient.Serialize(body); // http body (model) parameter + } + else + { + localVarPostBody = body; // byte array + } + + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.PUT, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (this.ExceptionFactory != null) + { + Exception exception = this.ExceptionFactory("UpdateAccessPolicy", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), + (AccessPolicyEntity) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(AccessPolicyEntity))); + } + + /// + /// Updates a access policy + /// + /// Thrown when fails to make API call + /// The access policy id. + /// The access policy configuration details. + /// Task of AccessPolicyEntity + public async System.Threading.Tasks.Task UpdateAccessPolicyAsync (string id, AccessPolicyEntity body) + { + ApiResponse localVarResponse = await this.UpdateAccessPolicyAsyncWithHttpInfo(id, body); + return localVarResponse.Data; + + } + + /// + /// Updates a access policy + /// + /// Thrown when fails to make API call + /// The access policy id. + /// The access policy configuration details. + /// Task of ApiResponse (AccessPolicyEntity) + public async System.Threading.Tasks.Task> UpdateAccessPolicyAsyncWithHttpInfo (string id, AccessPolicyEntity body) + { + // verify the required parameter 'id' is set + if (id == null) + throw new ApiException(400, "Missing required parameter 'id' when calling PoliciesApi->UpdateAccessPolicy"); + // verify the required parameter 'body' is set + if (body == null) + throw new ApiException(400, "Missing required parameter 'body' when calling PoliciesApi->UpdateAccessPolicy"); + + var localVarPath = "/policies/{id}"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "application/json" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter + if (body != null && body.GetType() != typeof(byte[])) + { + localVarPostBody = this.Configuration.ApiClient.Serialize(body); // http body (model) parameter + } + else + { + localVarPostBody = body; // byte array + } + + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.PUT, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (this.ExceptionFactory != null) + { + Exception exception = this.ExceptionFactory("UpdateAccessPolicy", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), + (AccessPolicyEntity) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(AccessPolicyEntity))); + } + + } +} diff --git a/NiFi.Swagger/Api/ProcessGroupsApi.cs b/NiFi.Swagger/Api/ProcessGroupsApi.cs new file mode 100644 index 0000000..a9c73f0 --- /dev/null +++ b/NiFi.Swagger/Api/ProcessGroupsApi.cs @@ -0,0 +1,6201 @@ +/* + * NiFi Rest Api + * + * The Rest Api provides programmatic access to command and control a NiFi instance in real time. Start and stop processors, monitor queues, query provenance data, and more. Each endpoint below includes a description, definitions of the expected input and output, potential response codes, and the authorizations required to invoke each service. + * + * OpenAPI spec version: 1.9.1 + * Contact: dev@nifi.apache.org + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +namespace NiFi.Swagger.Api +{ + using System; + using System.Collections.Generic; + using System.Collections.ObjectModel; + using System.Linq; + + using NiFi.Swagger.Client; + using NiFi.Swagger.Model; + + using RestSharp; + + /// + /// Represents a collection of functions to interact with the API endpoints + /// + public interface IProcessGroupsApi : IApiAccessor + { + #region Synchronous Operations + /// + /// Copies a snippet and discards it. + /// + /// + /// + /// + /// Thrown when fails to make API call + /// The process group id. + /// The copy snippet request. + /// FlowEntity + FlowEntity CopySnippet (string id, CopySnippetRequestEntity body); + + /// + /// Copies a snippet and discards it. + /// + /// + /// + /// + /// Thrown when fails to make API call + /// The process group id. + /// The copy snippet request. + /// ApiResponse of FlowEntity + ApiResponse CopySnippetWithHttpInfo (string id, CopySnippetRequestEntity body); + /// + /// Creates a connection + /// + /// + /// + /// + /// Thrown when fails to make API call + /// The process group id. + /// The connection configuration details. + /// ConnectionEntity + ConnectionEntity CreateConnection (string id, ConnectionEntity body); + + /// + /// Creates a connection + /// + /// + /// + /// + /// Thrown when fails to make API call + /// The process group id. + /// The connection configuration details. + /// ApiResponse of ConnectionEntity + ApiResponse CreateConnectionWithHttpInfo (string id, ConnectionEntity body); + /// + /// Creates a new controller service + /// + /// + /// + /// + /// Thrown when fails to make API call + /// The process group id. + /// The controller service configuration details. + /// ControllerServiceEntity + ControllerServiceEntity CreateControllerService (string id, ControllerServiceEntity body); + + /// + /// Creates a new controller service + /// + /// + /// + /// + /// Thrown when fails to make API call + /// The process group id. + /// The controller service configuration details. + /// ApiResponse of ControllerServiceEntity + ApiResponse CreateControllerServiceWithHttpInfo (string id, ControllerServiceEntity body); + /// + /// Creates a funnel + /// + /// + /// + /// + /// Thrown when fails to make API call + /// The process group id. + /// The funnel configuration details. + /// FunnelEntity + FunnelEntity CreateFunnel (string id, FunnelEntity body); + + /// + /// Creates a funnel + /// + /// + /// + /// + /// Thrown when fails to make API call + /// The process group id. + /// The funnel configuration details. + /// ApiResponse of FunnelEntity + ApiResponse CreateFunnelWithHttpInfo (string id, FunnelEntity body); + /// + /// Creates an input port + /// + /// + /// + /// + /// Thrown when fails to make API call + /// The process group id. + /// The input port configuration details. + /// PortEntity + PortEntity CreateInputPort (string id, PortEntity body); + + /// + /// Creates an input port + /// + /// + /// + /// + /// Thrown when fails to make API call + /// The process group id. + /// The input port configuration details. + /// ApiResponse of PortEntity + ApiResponse CreateInputPortWithHttpInfo (string id, PortEntity body); + /// + /// Creates a label + /// + /// + /// + /// + /// Thrown when fails to make API call + /// The process group id. + /// The label configuration details. + /// LabelEntity + LabelEntity CreateLabel (string id, LabelEntity body); + + /// + /// Creates a label + /// + /// + /// + /// + /// Thrown when fails to make API call + /// The process group id. + /// The label configuration details. + /// ApiResponse of LabelEntity + ApiResponse CreateLabelWithHttpInfo (string id, LabelEntity body); + /// + /// Creates an output port + /// + /// + /// + /// + /// Thrown when fails to make API call + /// The process group id. + /// The output port configuration. + /// PortEntity + PortEntity CreateOutputPort (string id, PortEntity body); + + /// + /// Creates an output port + /// + /// + /// + /// + /// Thrown when fails to make API call + /// The process group id. + /// The output port configuration. + /// ApiResponse of PortEntity + ApiResponse CreateOutputPortWithHttpInfo (string id, PortEntity body); + /// + /// Creates a process group + /// + /// + /// + /// + /// Thrown when fails to make API call + /// The process group id. + /// The process group configuration details. + /// ProcessGroupEntity + ProcessGroupEntity CreateProcessGroup (string id, ProcessGroupEntity body); + + /// + /// Creates a process group + /// + /// + /// + /// + /// Thrown when fails to make API call + /// The process group id. + /// The process group configuration details. + /// ApiResponse of ProcessGroupEntity + ApiResponse CreateProcessGroupWithHttpInfo (string id, ProcessGroupEntity body); + /// + /// Creates a new processor + /// + /// + /// + /// + /// Thrown when fails to make API call + /// The process group id. + /// The processor configuration details. + /// ProcessorEntity + ProcessorEntity CreateProcessor (string id, ProcessorEntity body); + + /// + /// Creates a new processor + /// + /// + /// + /// + /// Thrown when fails to make API call + /// The process group id. + /// The processor configuration details. + /// ApiResponse of ProcessorEntity + ApiResponse CreateProcessorWithHttpInfo (string id, ProcessorEntity body); + /// + /// Creates a new process group + /// + /// + /// + /// + /// Thrown when fails to make API call + /// The process group id. + /// The remote process group configuration details. + /// RemoteProcessGroupEntity + RemoteProcessGroupEntity CreateRemoteProcessGroup (string id, RemoteProcessGroupEntity body); + + /// + /// Creates a new process group + /// + /// + /// + /// + /// Thrown when fails to make API call + /// The process group id. + /// The remote process group configuration details. + /// ApiResponse of RemoteProcessGroupEntity + ApiResponse CreateRemoteProcessGroupWithHttpInfo (string id, RemoteProcessGroupEntity body); + /// + /// Creates a template and discards the specified snippet. + /// + /// + /// + /// + /// Thrown when fails to make API call + /// The process group id. + /// The create template request. + /// TemplateEntity + TemplateEntity CreateTemplate (string id, CreateTemplateRequestEntity body); + + /// + /// Creates a template and discards the specified snippet. + /// + /// + /// + /// + /// Thrown when fails to make API call + /// The process group id. + /// The create template request. + /// ApiResponse of TemplateEntity + ApiResponse CreateTemplateWithHttpInfo (string id, CreateTemplateRequestEntity body); + /// + /// Deletes an update request for a process group's variable registry. If the request is not yet complete, it will automatically be cancelled. + /// + /// + /// Note: This endpoint is subject to change as NiFi and it's REST API evolve. + /// + /// Thrown when fails to make API call + /// The process group id. + /// The ID of the Variable Registry Update Request + /// Acknowledges that this node is disconnected to allow for mutable requests to proceed. (optional, default to false) + /// VariableRegistryUpdateRequestEntity + VariableRegistryUpdateRequestEntity DeleteVariableRegistryUpdateRequest (string groupId, string updateId, bool? disconnectedNodeAcknowledged = null); + + /// + /// Deletes an update request for a process group's variable registry. If the request is not yet complete, it will automatically be cancelled. + /// + /// + /// Note: This endpoint is subject to change as NiFi and it's REST API evolve. + /// + /// Thrown when fails to make API call + /// The process group id. + /// The ID of the Variable Registry Update Request + /// Acknowledges that this node is disconnected to allow for mutable requests to proceed. (optional, default to false) + /// ApiResponse of VariableRegistryUpdateRequestEntity + ApiResponse DeleteVariableRegistryUpdateRequestWithHttpInfo (string groupId, string updateId, bool? disconnectedNodeAcknowledged = null); + /// + /// Gets all connections + /// + /// + /// + /// + /// Thrown when fails to make API call + /// The process group id. + /// ConnectionsEntity + ConnectionsEntity GetConnections (string id); + + /// + /// Gets all connections + /// + /// + /// + /// + /// Thrown when fails to make API call + /// The process group id. + /// ApiResponse of ConnectionsEntity + ApiResponse GetConnectionsWithHttpInfo (string id); + /// + /// Gets all funnels + /// + /// + /// + /// + /// Thrown when fails to make API call + /// The process group id. + /// FunnelsEntity + FunnelsEntity GetFunnels (string id); + + /// + /// Gets all funnels + /// + /// + /// + /// + /// Thrown when fails to make API call + /// The process group id. + /// ApiResponse of FunnelsEntity + ApiResponse GetFunnelsWithHttpInfo (string id); + /// + /// Gets all input ports + /// + /// + /// + /// + /// Thrown when fails to make API call + /// The process group id. + /// InputPortsEntity + InputPortsEntity GetInputPorts (string id); + + /// + /// Gets all input ports + /// + /// + /// + /// + /// Thrown when fails to make API call + /// The process group id. + /// ApiResponse of InputPortsEntity + ApiResponse GetInputPortsWithHttpInfo (string id); + /// + /// Gets all labels + /// + /// + /// + /// + /// Thrown when fails to make API call + /// The process group id. + /// LabelsEntity + LabelsEntity GetLabels (string id); + + /// + /// Gets all labels + /// + /// + /// + /// + /// Thrown when fails to make API call + /// The process group id. + /// ApiResponse of LabelsEntity + ApiResponse GetLabelsWithHttpInfo (string id); + /// + /// Gets a list of local modifications to the Process Group since it was last synchronized with the Flow Registry + /// + /// + /// + /// + /// Thrown when fails to make API call + /// The process group id. + /// FlowComparisonEntity + FlowComparisonEntity GetLocalModifications (string id); + + /// + /// Gets a list of local modifications to the Process Group since it was last synchronized with the Flow Registry + /// + /// + /// + /// + /// Thrown when fails to make API call + /// The process group id. + /// ApiResponse of FlowComparisonEntity + ApiResponse GetLocalModificationsWithHttpInfo (string id); + /// + /// Gets all output ports + /// + /// + /// + /// + /// Thrown when fails to make API call + /// The process group id. + /// OutputPortsEntity + OutputPortsEntity GetOutputPorts (string id); + + /// + /// Gets all output ports + /// + /// + /// + /// + /// Thrown when fails to make API call + /// The process group id. + /// ApiResponse of OutputPortsEntity + ApiResponse GetOutputPortsWithHttpInfo (string id); + /// + /// Gets a process group + /// + /// + /// + /// + /// Thrown when fails to make API call + /// The process group id. + /// ProcessGroupEntity + ProcessGroupEntity GetProcessGroup (string id); + + /// + /// Gets a process group + /// + /// + /// + /// + /// Thrown when fails to make API call + /// The process group id. + /// ApiResponse of ProcessGroupEntity + ApiResponse GetProcessGroupWithHttpInfo (string id); + /// + /// Gets all process groups + /// + /// + /// + /// + /// Thrown when fails to make API call + /// The process group id. + /// ProcessGroupsEntity + ProcessGroupsEntity GetProcessGroups (string id); + + /// + /// Gets all process groups + /// + /// + /// + /// + /// Thrown when fails to make API call + /// The process group id. + /// ApiResponse of ProcessGroupsEntity + ApiResponse GetProcessGroupsWithHttpInfo (string id); + /// + /// Gets all processors + /// + /// + /// + /// + /// Thrown when fails to make API call + /// The process group id. + /// Whether or not to include processors from descendant process groups (optional, default to false) + /// ProcessorsEntity + ProcessorsEntity GetProcessors (string id, bool? includeDescendantGroups = null); + + /// + /// Gets all processors + /// + /// + /// + /// + /// Thrown when fails to make API call + /// The process group id. + /// Whether or not to include processors from descendant process groups (optional, default to false) + /// ApiResponse of ProcessorsEntity + ApiResponse GetProcessorsWithHttpInfo (string id, bool? includeDescendantGroups = null); + /// + /// Gets all remote process groups + /// + /// + /// + /// + /// Thrown when fails to make API call + /// The process group id. + /// RemoteProcessGroupsEntity + RemoteProcessGroupsEntity GetRemoteProcessGroups (string id); + + /// + /// Gets all remote process groups + /// + /// + /// + /// + /// Thrown when fails to make API call + /// The process group id. + /// ApiResponse of RemoteProcessGroupsEntity + ApiResponse GetRemoteProcessGroupsWithHttpInfo (string id); + /// + /// Gets a process group's variable registry + /// + /// + /// Note: This endpoint is subject to change as NiFi and it's REST API evolve. + /// + /// Thrown when fails to make API call + /// The process group id. + /// Whether or not to include ancestor groups (optional, default to true) + /// VariableRegistryEntity + VariableRegistryEntity GetVariableRegistry (string id, bool? includeAncestorGroups = null); + + /// + /// Gets a process group's variable registry + /// + /// + /// Note: This endpoint is subject to change as NiFi and it's REST API evolve. + /// + /// Thrown when fails to make API call + /// The process group id. + /// Whether or not to include ancestor groups (optional, default to true) + /// ApiResponse of VariableRegistryEntity + ApiResponse GetVariableRegistryWithHttpInfo (string id, bool? includeAncestorGroups = null); + /// + /// Gets a process group's variable registry + /// + /// + /// Note: This endpoint is subject to change as NiFi and it's REST API evolve. + /// + /// Thrown when fails to make API call + /// The process group id. + /// The ID of the Variable Registry Update Request + /// VariableRegistryUpdateRequestEntity + VariableRegistryUpdateRequestEntity GetVariableRegistryUpdateRequest (string groupId, string updateId); + + /// + /// Gets a process group's variable registry + /// + /// + /// Note: This endpoint is subject to change as NiFi and it's REST API evolve. + /// + /// Thrown when fails to make API call + /// The process group id. + /// The ID of the Variable Registry Update Request + /// ApiResponse of VariableRegistryUpdateRequestEntity + ApiResponse GetVariableRegistryUpdateRequestWithHttpInfo (string groupId, string updateId); + /// + /// Imports a template + /// + /// + /// + /// + /// Thrown when fails to make API call + /// The process group id. + /// TemplateEntity + TemplateEntity ImportTemplate (string id); + + /// + /// Imports a template + /// + /// + /// + /// + /// Thrown when fails to make API call + /// The process group id. + /// ApiResponse of TemplateEntity + ApiResponse ImportTemplateWithHttpInfo (string id); + /// + /// Instantiates a template + /// + /// + /// + /// + /// Thrown when fails to make API call + /// The process group id. + /// The instantiate template request. + /// FlowEntity + FlowEntity InstantiateTemplate (string id, InstantiateTemplateRequestEntity body); + + /// + /// Instantiates a template + /// + /// + /// + /// + /// Thrown when fails to make API call + /// The process group id. + /// The instantiate template request. + /// ApiResponse of FlowEntity + ApiResponse InstantiateTemplateWithHttpInfo (string id, InstantiateTemplateRequestEntity body); + /// + /// Deletes a process group + /// + /// + /// + /// + /// Thrown when fails to make API call + /// The process group id. + /// The revision is used to verify the client is working with the latest version of the flow. (optional) + /// If the client id is not specified, new one will be generated. This value (whether specified or generated) is included in the response. (optional) + /// Acknowledges that this node is disconnected to allow for mutable requests to proceed. (optional, default to false) + /// ProcessGroupEntity + ProcessGroupEntity RemoveProcessGroup (string id, string version = null, string clientId = null, bool? disconnectedNodeAcknowledged = null); + + /// + /// Deletes a process group + /// + /// + /// + /// + /// Thrown when fails to make API call + /// The process group id. + /// The revision is used to verify the client is working with the latest version of the flow. (optional) + /// If the client id is not specified, new one will be generated. This value (whether specified or generated) is included in the response. (optional) + /// Acknowledges that this node is disconnected to allow for mutable requests to proceed. (optional, default to false) + /// ApiResponse of ProcessGroupEntity + ApiResponse RemoveProcessGroupWithHttpInfo (string id, string version = null, string clientId = null, bool? disconnectedNodeAcknowledged = null); + /// + /// Submits a request to update a process group's variable registry + /// + /// + /// Note: This endpoint is subject to change as NiFi and it's REST API evolve. + /// + /// Thrown when fails to make API call + /// The process group id. + /// The variable registry configuration details. + /// VariableRegistryUpdateRequestEntity + VariableRegistryUpdateRequestEntity SubmitUpdateVariableRegistryRequest (string id, VariableRegistryEntity body); + + /// + /// Submits a request to update a process group's variable registry + /// + /// + /// Note: This endpoint is subject to change as NiFi and it's REST API evolve. + /// + /// Thrown when fails to make API call + /// The process group id. + /// The variable registry configuration details. + /// ApiResponse of VariableRegistryUpdateRequestEntity + ApiResponse SubmitUpdateVariableRegistryRequestWithHttpInfo (string id, VariableRegistryEntity body); + /// + /// Updates a process group + /// + /// + /// + /// + /// Thrown when fails to make API call + /// The process group id. + /// The process group configuration details. + /// ProcessGroupEntity + ProcessGroupEntity UpdateProcessGroup (string id, ProcessGroupEntity body); + + /// + /// Updates a process group + /// + /// + /// + /// + /// Thrown when fails to make API call + /// The process group id. + /// The process group configuration details. + /// ApiResponse of ProcessGroupEntity + ApiResponse UpdateProcessGroupWithHttpInfo (string id, ProcessGroupEntity body); + /// + /// Updates the contents of a Process Group's variable Registry + /// + /// + /// Note: This endpoint is subject to change as NiFi and it's REST API evolve. + /// + /// Thrown when fails to make API call + /// The process group id. + /// The variable registry configuration details. + /// VariableRegistryEntity + VariableRegistryEntity UpdateVariableRegistry (string id, VariableRegistryEntity body); + + /// + /// Updates the contents of a Process Group's variable Registry + /// + /// + /// Note: This endpoint is subject to change as NiFi and it's REST API evolve. + /// + /// Thrown when fails to make API call + /// The process group id. + /// The variable registry configuration details. + /// ApiResponse of VariableRegistryEntity + ApiResponse UpdateVariableRegistryWithHttpInfo (string id, VariableRegistryEntity body); + /// + /// Uploads a template + /// + /// + /// + /// + /// Thrown when fails to make API call + /// The process group id. + /// The binary content of the template file being uploaded. + /// Acknowledges that this node is disconnected to allow for mutable requests to proceed. (optional) + /// TemplateEntity + TemplateEntity UploadTemplate (string id, System.IO.Stream template, bool? body = null); + + /// + /// Uploads a template + /// + /// + /// + /// + /// Thrown when fails to make API call + /// The process group id. + /// The binary content of the template file being uploaded. + /// Acknowledges that this node is disconnected to allow for mutable requests to proceed. (optional) + /// ApiResponse of TemplateEntity + ApiResponse UploadTemplateWithHttpInfo (string id, System.IO.Stream template, bool? body = null); + #endregion Synchronous Operations + #region Asynchronous Operations + /// + /// Copies a snippet and discards it. + /// + /// + /// + /// + /// Thrown when fails to make API call + /// The process group id. + /// The copy snippet request. + /// Task of FlowEntity + System.Threading.Tasks.Task CopySnippetAsync (string id, CopySnippetRequestEntity body); + + /// + /// Copies a snippet and discards it. + /// + /// + /// + /// + /// Thrown when fails to make API call + /// The process group id. + /// The copy snippet request. + /// Task of ApiResponse (FlowEntity) + System.Threading.Tasks.Task> CopySnippetAsyncWithHttpInfo (string id, CopySnippetRequestEntity body); + /// + /// Creates a connection + /// + /// + /// + /// + /// Thrown when fails to make API call + /// The process group id. + /// The connection configuration details. + /// Task of ConnectionEntity + System.Threading.Tasks.Task CreateConnectionAsync (string id, ConnectionEntity body); + + /// + /// Creates a connection + /// + /// + /// + /// + /// Thrown when fails to make API call + /// The process group id. + /// The connection configuration details. + /// Task of ApiResponse (ConnectionEntity) + System.Threading.Tasks.Task> CreateConnectionAsyncWithHttpInfo (string id, ConnectionEntity body); + /// + /// Creates a new controller service + /// + /// + /// + /// + /// Thrown when fails to make API call + /// The process group id. + /// The controller service configuration details. + /// Task of ControllerServiceEntity + System.Threading.Tasks.Task CreateControllerServiceAsync (string id, ControllerServiceEntity body); + + /// + /// Creates a new controller service + /// + /// + /// + /// + /// Thrown when fails to make API call + /// The process group id. + /// The controller service configuration details. + /// Task of ApiResponse (ControllerServiceEntity) + System.Threading.Tasks.Task> CreateControllerServiceAsyncWithHttpInfo (string id, ControllerServiceEntity body); + /// + /// Creates a funnel + /// + /// + /// + /// + /// Thrown when fails to make API call + /// The process group id. + /// The funnel configuration details. + /// Task of FunnelEntity + System.Threading.Tasks.Task CreateFunnelAsync (string id, FunnelEntity body); + + /// + /// Creates a funnel + /// + /// + /// + /// + /// Thrown when fails to make API call + /// The process group id. + /// The funnel configuration details. + /// Task of ApiResponse (FunnelEntity) + System.Threading.Tasks.Task> CreateFunnelAsyncWithHttpInfo (string id, FunnelEntity body); + /// + /// Creates an input port + /// + /// + /// + /// + /// Thrown when fails to make API call + /// The process group id. + /// The input port configuration details. + /// Task of PortEntity + System.Threading.Tasks.Task CreateInputPortAsync (string id, PortEntity body); + + /// + /// Creates an input port + /// + /// + /// + /// + /// Thrown when fails to make API call + /// The process group id. + /// The input port configuration details. + /// Task of ApiResponse (PortEntity) + System.Threading.Tasks.Task> CreateInputPortAsyncWithHttpInfo (string id, PortEntity body); + /// + /// Creates a label + /// + /// + /// + /// + /// Thrown when fails to make API call + /// The process group id. + /// The label configuration details. + /// Task of LabelEntity + System.Threading.Tasks.Task CreateLabelAsync (string id, LabelEntity body); + + /// + /// Creates a label + /// + /// + /// + /// + /// Thrown when fails to make API call + /// The process group id. + /// The label configuration details. + /// Task of ApiResponse (LabelEntity) + System.Threading.Tasks.Task> CreateLabelAsyncWithHttpInfo (string id, LabelEntity body); + /// + /// Creates an output port + /// + /// + /// + /// + /// Thrown when fails to make API call + /// The process group id. + /// The output port configuration. + /// Task of PortEntity + System.Threading.Tasks.Task CreateOutputPortAsync (string id, PortEntity body); + + /// + /// Creates an output port + /// + /// + /// + /// + /// Thrown when fails to make API call + /// The process group id. + /// The output port configuration. + /// Task of ApiResponse (PortEntity) + System.Threading.Tasks.Task> CreateOutputPortAsyncWithHttpInfo (string id, PortEntity body); + /// + /// Creates a process group + /// + /// + /// + /// + /// Thrown when fails to make API call + /// The process group id. + /// The process group configuration details. + /// Task of ProcessGroupEntity + System.Threading.Tasks.Task CreateProcessGroupAsync (string id, ProcessGroupEntity body); + + /// + /// Creates a process group + /// + /// + /// + /// + /// Thrown when fails to make API call + /// The process group id. + /// The process group configuration details. + /// Task of ApiResponse (ProcessGroupEntity) + System.Threading.Tasks.Task> CreateProcessGroupAsyncWithHttpInfo (string id, ProcessGroupEntity body); + /// + /// Creates a new processor + /// + /// + /// + /// + /// Thrown when fails to make API call + /// The process group id. + /// The processor configuration details. + /// Task of ProcessorEntity + System.Threading.Tasks.Task CreateProcessorAsync (string id, ProcessorEntity body); + + /// + /// Creates a new processor + /// + /// + /// + /// + /// Thrown when fails to make API call + /// The process group id. + /// The processor configuration details. + /// Task of ApiResponse (ProcessorEntity) + System.Threading.Tasks.Task> CreateProcessorAsyncWithHttpInfo (string id, ProcessorEntity body); + /// + /// Creates a new process group + /// + /// + /// + /// + /// Thrown when fails to make API call + /// The process group id. + /// The remote process group configuration details. + /// Task of RemoteProcessGroupEntity + System.Threading.Tasks.Task CreateRemoteProcessGroupAsync (string id, RemoteProcessGroupEntity body); + + /// + /// Creates a new process group + /// + /// + /// + /// + /// Thrown when fails to make API call + /// The process group id. + /// The remote process group configuration details. + /// Task of ApiResponse (RemoteProcessGroupEntity) + System.Threading.Tasks.Task> CreateRemoteProcessGroupAsyncWithHttpInfo (string id, RemoteProcessGroupEntity body); + /// + /// Creates a template and discards the specified snippet. + /// + /// + /// + /// + /// Thrown when fails to make API call + /// The process group id. + /// The create template request. + /// Task of TemplateEntity + System.Threading.Tasks.Task CreateTemplateAsync (string id, CreateTemplateRequestEntity body); + + /// + /// Creates a template and discards the specified snippet. + /// + /// + /// + /// + /// Thrown when fails to make API call + /// The process group id. + /// The create template request. + /// Task of ApiResponse (TemplateEntity) + System.Threading.Tasks.Task> CreateTemplateAsyncWithHttpInfo (string id, CreateTemplateRequestEntity body); + /// + /// Deletes an update request for a process group's variable registry. If the request is not yet complete, it will automatically be cancelled. + /// + /// + /// Note: This endpoint is subject to change as NiFi and it's REST API evolve. + /// + /// Thrown when fails to make API call + /// The process group id. + /// The ID of the Variable Registry Update Request + /// Acknowledges that this node is disconnected to allow for mutable requests to proceed. (optional, default to false) + /// Task of VariableRegistryUpdateRequestEntity + System.Threading.Tasks.Task DeleteVariableRegistryUpdateRequestAsync (string groupId, string updateId, bool? disconnectedNodeAcknowledged = null); + + /// + /// Deletes an update request for a process group's variable registry. If the request is not yet complete, it will automatically be cancelled. + /// + /// + /// Note: This endpoint is subject to change as NiFi and it's REST API evolve. + /// + /// Thrown when fails to make API call + /// The process group id. + /// The ID of the Variable Registry Update Request + /// Acknowledges that this node is disconnected to allow for mutable requests to proceed. (optional, default to false) + /// Task of ApiResponse (VariableRegistryUpdateRequestEntity) + System.Threading.Tasks.Task> DeleteVariableRegistryUpdateRequestAsyncWithHttpInfo (string groupId, string updateId, bool? disconnectedNodeAcknowledged = null); + /// + /// Gets all connections + /// + /// + /// + /// + /// Thrown when fails to make API call + /// The process group id. + /// Task of ConnectionsEntity + System.Threading.Tasks.Task GetConnectionsAsync (string id); + + /// + /// Gets all connections + /// + /// + /// + /// + /// Thrown when fails to make API call + /// The process group id. + /// Task of ApiResponse (ConnectionsEntity) + System.Threading.Tasks.Task> GetConnectionsAsyncWithHttpInfo (string id); + /// + /// Gets all funnels + /// + /// + /// + /// + /// Thrown when fails to make API call + /// The process group id. + /// Task of FunnelsEntity + System.Threading.Tasks.Task GetFunnelsAsync (string id); + + /// + /// Gets all funnels + /// + /// + /// + /// + /// Thrown when fails to make API call + /// The process group id. + /// Task of ApiResponse (FunnelsEntity) + System.Threading.Tasks.Task> GetFunnelsAsyncWithHttpInfo (string id); + /// + /// Gets all input ports + /// + /// + /// + /// + /// Thrown when fails to make API call + /// The process group id. + /// Task of InputPortsEntity + System.Threading.Tasks.Task GetInputPortsAsync (string id); + + /// + /// Gets all input ports + /// + /// + /// + /// + /// Thrown when fails to make API call + /// The process group id. + /// Task of ApiResponse (InputPortsEntity) + System.Threading.Tasks.Task> GetInputPortsAsyncWithHttpInfo (string id); + /// + /// Gets all labels + /// + /// + /// + /// + /// Thrown when fails to make API call + /// The process group id. + /// Task of LabelsEntity + System.Threading.Tasks.Task GetLabelsAsync (string id); + + /// + /// Gets all labels + /// + /// + /// + /// + /// Thrown when fails to make API call + /// The process group id. + /// Task of ApiResponse (LabelsEntity) + System.Threading.Tasks.Task> GetLabelsAsyncWithHttpInfo (string id); + /// + /// Gets a list of local modifications to the Process Group since it was last synchronized with the Flow Registry + /// + /// + /// + /// + /// Thrown when fails to make API call + /// The process group id. + /// Task of FlowComparisonEntity + System.Threading.Tasks.Task GetLocalModificationsAsync (string id); + + /// + /// Gets a list of local modifications to the Process Group since it was last synchronized with the Flow Registry + /// + /// + /// + /// + /// Thrown when fails to make API call + /// The process group id. + /// Task of ApiResponse (FlowComparisonEntity) + System.Threading.Tasks.Task> GetLocalModificationsAsyncWithHttpInfo (string id); + /// + /// Gets all output ports + /// + /// + /// + /// + /// Thrown when fails to make API call + /// The process group id. + /// Task of OutputPortsEntity + System.Threading.Tasks.Task GetOutputPortsAsync (string id); + + /// + /// Gets all output ports + /// + /// + /// + /// + /// Thrown when fails to make API call + /// The process group id. + /// Task of ApiResponse (OutputPortsEntity) + System.Threading.Tasks.Task> GetOutputPortsAsyncWithHttpInfo (string id); + /// + /// Gets a process group + /// + /// + /// + /// + /// Thrown when fails to make API call + /// The process group id. + /// Task of ProcessGroupEntity + System.Threading.Tasks.Task GetProcessGroupAsync (string id); + + /// + /// Gets a process group + /// + /// + /// + /// + /// Thrown when fails to make API call + /// The process group id. + /// Task of ApiResponse (ProcessGroupEntity) + System.Threading.Tasks.Task> GetProcessGroupAsyncWithHttpInfo (string id); + /// + /// Gets all process groups + /// + /// + /// + /// + /// Thrown when fails to make API call + /// The process group id. + /// Task of ProcessGroupsEntity + System.Threading.Tasks.Task GetProcessGroupsAsync (string id); + + /// + /// Gets all process groups + /// + /// + /// + /// + /// Thrown when fails to make API call + /// The process group id. + /// Task of ApiResponse (ProcessGroupsEntity) + System.Threading.Tasks.Task> GetProcessGroupsAsyncWithHttpInfo (string id); + /// + /// Gets all processors + /// + /// + /// + /// + /// Thrown when fails to make API call + /// The process group id. + /// Whether or not to include processors from descendant process groups (optional, default to false) + /// Task of ProcessorsEntity + System.Threading.Tasks.Task GetProcessorsAsync (string id, bool? includeDescendantGroups = null); + + /// + /// Gets all processors + /// + /// + /// + /// + /// Thrown when fails to make API call + /// The process group id. + /// Whether or not to include processors from descendant process groups (optional, default to false) + /// Task of ApiResponse (ProcessorsEntity) + System.Threading.Tasks.Task> GetProcessorsAsyncWithHttpInfo (string id, bool? includeDescendantGroups = null); + /// + /// Gets all remote process groups + /// + /// + /// + /// + /// Thrown when fails to make API call + /// The process group id. + /// Task of RemoteProcessGroupsEntity + System.Threading.Tasks.Task GetRemoteProcessGroupsAsync (string id); + + /// + /// Gets all remote process groups + /// + /// + /// + /// + /// Thrown when fails to make API call + /// The process group id. + /// Task of ApiResponse (RemoteProcessGroupsEntity) + System.Threading.Tasks.Task> GetRemoteProcessGroupsAsyncWithHttpInfo (string id); + /// + /// Gets a process group's variable registry + /// + /// + /// Note: This endpoint is subject to change as NiFi and it's REST API evolve. + /// + /// Thrown when fails to make API call + /// The process group id. + /// Whether or not to include ancestor groups (optional, default to true) + /// Task of VariableRegistryEntity + System.Threading.Tasks.Task GetVariableRegistryAsync (string id, bool? includeAncestorGroups = null); + + /// + /// Gets a process group's variable registry + /// + /// + /// Note: This endpoint is subject to change as NiFi and it's REST API evolve. + /// + /// Thrown when fails to make API call + /// The process group id. + /// Whether or not to include ancestor groups (optional, default to true) + /// Task of ApiResponse (VariableRegistryEntity) + System.Threading.Tasks.Task> GetVariableRegistryAsyncWithHttpInfo (string id, bool? includeAncestorGroups = null); + /// + /// Gets a process group's variable registry + /// + /// + /// Note: This endpoint is subject to change as NiFi and it's REST API evolve. + /// + /// Thrown when fails to make API call + /// The process group id. + /// The ID of the Variable Registry Update Request + /// Task of VariableRegistryUpdateRequestEntity + System.Threading.Tasks.Task GetVariableRegistryUpdateRequestAsync (string groupId, string updateId); + + /// + /// Gets a process group's variable registry + /// + /// + /// Note: This endpoint is subject to change as NiFi and it's REST API evolve. + /// + /// Thrown when fails to make API call + /// The process group id. + /// The ID of the Variable Registry Update Request + /// Task of ApiResponse (VariableRegistryUpdateRequestEntity) + System.Threading.Tasks.Task> GetVariableRegistryUpdateRequestAsyncWithHttpInfo (string groupId, string updateId); + /// + /// Imports a template + /// + /// + /// + /// + /// Thrown when fails to make API call + /// The process group id. + /// Task of TemplateEntity + System.Threading.Tasks.Task ImportTemplateAsync (string id); + + /// + /// Imports a template + /// + /// + /// + /// + /// Thrown when fails to make API call + /// The process group id. + /// Task of ApiResponse (TemplateEntity) + System.Threading.Tasks.Task> ImportTemplateAsyncWithHttpInfo (string id); + /// + /// Instantiates a template + /// + /// + /// + /// + /// Thrown when fails to make API call + /// The process group id. + /// The instantiate template request. + /// Task of FlowEntity + System.Threading.Tasks.Task InstantiateTemplateAsync (string id, InstantiateTemplateRequestEntity body); + + /// + /// Instantiates a template + /// + /// + /// + /// + /// Thrown when fails to make API call + /// The process group id. + /// The instantiate template request. + /// Task of ApiResponse (FlowEntity) + System.Threading.Tasks.Task> InstantiateTemplateAsyncWithHttpInfo (string id, InstantiateTemplateRequestEntity body); + /// + /// Deletes a process group + /// + /// + /// + /// + /// Thrown when fails to make API call + /// The process group id. + /// The revision is used to verify the client is working with the latest version of the flow. (optional) + /// If the client id is not specified, new one will be generated. This value (whether specified or generated) is included in the response. (optional) + /// Acknowledges that this node is disconnected to allow for mutable requests to proceed. (optional, default to false) + /// Task of ProcessGroupEntity + System.Threading.Tasks.Task RemoveProcessGroupAsync (string id, string version = null, string clientId = null, bool? disconnectedNodeAcknowledged = null); + + /// + /// Deletes a process group + /// + /// + /// + /// + /// Thrown when fails to make API call + /// The process group id. + /// The revision is used to verify the client is working with the latest version of the flow. (optional) + /// If the client id is not specified, new one will be generated. This value (whether specified or generated) is included in the response. (optional) + /// Acknowledges that this node is disconnected to allow for mutable requests to proceed. (optional, default to false) + /// Task of ApiResponse (ProcessGroupEntity) + System.Threading.Tasks.Task> RemoveProcessGroupAsyncWithHttpInfo (string id, string version = null, string clientId = null, bool? disconnectedNodeAcknowledged = null); + /// + /// Submits a request to update a process group's variable registry + /// + /// + /// Note: This endpoint is subject to change as NiFi and it's REST API evolve. + /// + /// Thrown when fails to make API call + /// The process group id. + /// The variable registry configuration details. + /// Task of VariableRegistryUpdateRequestEntity + System.Threading.Tasks.Task SubmitUpdateVariableRegistryRequestAsync (string id, VariableRegistryEntity body); + + /// + /// Submits a request to update a process group's variable registry + /// + /// + /// Note: This endpoint is subject to change as NiFi and it's REST API evolve. + /// + /// Thrown when fails to make API call + /// The process group id. + /// The variable registry configuration details. + /// Task of ApiResponse (VariableRegistryUpdateRequestEntity) + System.Threading.Tasks.Task> SubmitUpdateVariableRegistryRequestAsyncWithHttpInfo (string id, VariableRegistryEntity body); + /// + /// Updates a process group + /// + /// + /// + /// + /// Thrown when fails to make API call + /// The process group id. + /// The process group configuration details. + /// Task of ProcessGroupEntity + System.Threading.Tasks.Task UpdateProcessGroupAsync (string id, ProcessGroupEntity body); + + /// + /// Updates a process group + /// + /// + /// + /// + /// Thrown when fails to make API call + /// The process group id. + /// The process group configuration details. + /// Task of ApiResponse (ProcessGroupEntity) + System.Threading.Tasks.Task> UpdateProcessGroupAsyncWithHttpInfo (string id, ProcessGroupEntity body); + /// + /// Updates the contents of a Process Group's variable Registry + /// + /// + /// Note: This endpoint is subject to change as NiFi and it's REST API evolve. + /// + /// Thrown when fails to make API call + /// The process group id. + /// The variable registry configuration details. + /// Task of VariableRegistryEntity + System.Threading.Tasks.Task UpdateVariableRegistryAsync (string id, VariableRegistryEntity body); + + /// + /// Updates the contents of a Process Group's variable Registry + /// + /// + /// Note: This endpoint is subject to change as NiFi and it's REST API evolve. + /// + /// Thrown when fails to make API call + /// The process group id. + /// The variable registry configuration details. + /// Task of ApiResponse (VariableRegistryEntity) + System.Threading.Tasks.Task> UpdateVariableRegistryAsyncWithHttpInfo (string id, VariableRegistryEntity body); + /// + /// Uploads a template + /// + /// + /// + /// + /// Thrown when fails to make API call + /// The process group id. + /// The binary content of the template file being uploaded. + /// Acknowledges that this node is disconnected to allow for mutable requests to proceed. (optional) + /// Task of TemplateEntity + System.Threading.Tasks.Task UploadTemplateAsync (string id, System.IO.Stream template, bool? body = null); + + /// + /// Uploads a template + /// + /// + /// + /// + /// Thrown when fails to make API call + /// The process group id. + /// The binary content of the template file being uploaded. + /// Acknowledges that this node is disconnected to allow for mutable requests to proceed. (optional) + /// Task of ApiResponse (TemplateEntity) + System.Threading.Tasks.Task> UploadTemplateAsyncWithHttpInfo (string id, System.IO.Stream template, bool? body = null); + #endregion Asynchronous Operations + } + + /// + /// Represents a collection of functions to interact with the API endpoints + /// + public partial class ProcessGroupsApi : IProcessGroupsApi + { + private ExceptionFactory _exceptionFactory = (name, response) => null; + + /// + /// Initializes a new instance of the class. + /// + /// + public ProcessGroupsApi(String basePath) + { + this.Configuration = new Configuration { BasePath = basePath }; + + this.ExceptionFactory = Configuration.DefaultExceptionFactory; + } + + /// + /// Initializes a new instance of the class + /// using Configuration object + /// + /// An instance of Configuration + /// + public ProcessGroupsApi(Configuration configuration = null) + { + if (configuration == null) // use the default one in Configuration + this.Configuration = Configuration.Default; + else + this.Configuration = configuration; + + this.ExceptionFactory = Configuration.DefaultExceptionFactory; + } + + /// + /// Gets the base path of the API client. + /// + /// The base path + public String GetBasePath() + { + return this.Configuration.ApiClient.RestClient.BaseUrl.ToString(); + } + + /// + /// Sets the base path of the API client. + /// + /// The base path + [Obsolete("SetBasePath is deprecated, please do 'Configuration.ApiClient = new ApiClient(\"http://new-path\")' instead.")] + public void SetBasePath(String basePath) + { + // do nothing + } + + /// + /// Gets or sets the configuration object + /// + /// An instance of the Configuration + public Configuration Configuration {get; set;} + + /// + /// Provides a factory method hook for the creation of exceptions. + /// + public ExceptionFactory ExceptionFactory + { + get + { + if (this._exceptionFactory != null && this._exceptionFactory.GetInvocationList().Length > 1) + { + throw new InvalidOperationException("Multicast delegate for ExceptionFactory is unsupported."); + } + return this._exceptionFactory; + } + set { this._exceptionFactory = value; } + } + + /// + /// Gets the default header. + /// + /// Dictionary of HTTP header + [Obsolete("DefaultHeader is deprecated, please use Configuration.DefaultHeader instead.")] + public IDictionary DefaultHeader() + { + return new ReadOnlyDictionary(this.Configuration.DefaultHeader); + } + + /// + /// Add default header. + /// + /// Header field name. + /// Header field value. + /// + [Obsolete("AddDefaultHeader is deprecated, please use Configuration.AddDefaultHeader instead.")] + public void AddDefaultHeader(string key, string value) + { + this.Configuration.AddDefaultHeader(key, value); + } + + /// + /// Copies a snippet and discards it. + /// + /// Thrown when fails to make API call + /// The process group id. + /// The copy snippet request. + /// FlowEntity + public FlowEntity CopySnippet (string id, CopySnippetRequestEntity body) + { + ApiResponse localVarResponse = this.CopySnippetWithHttpInfo(id, body); + return localVarResponse.Data; + } + + /// + /// Copies a snippet and discards it. + /// + /// Thrown when fails to make API call + /// The process group id. + /// The copy snippet request. + /// ApiResponse of FlowEntity + public ApiResponse< FlowEntity > CopySnippetWithHttpInfo (string id, CopySnippetRequestEntity body) + { + // verify the required parameter 'id' is set + if (id == null) + throw new ApiException(400, "Missing required parameter 'id' when calling ProcessGroupsApi->CopySnippet"); + // verify the required parameter 'body' is set + if (body == null) + throw new ApiException(400, "Missing required parameter 'body' when calling ProcessGroupsApi->CopySnippet"); + + var localVarPath = "/process-groups/{id}/snippet-instance"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "application/json" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter + if (body != null && body.GetType() != typeof(byte[])) + { + localVarPostBody = this.Configuration.ApiClient.Serialize(body); // http body (model) parameter + } + else + { + localVarPostBody = body; // byte array + } + + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (this.ExceptionFactory != null) + { + Exception exception = this.ExceptionFactory("CopySnippet", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), + (FlowEntity) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(FlowEntity))); + } + + /// + /// Copies a snippet and discards it. + /// + /// Thrown when fails to make API call + /// The process group id. + /// The copy snippet request. + /// Task of FlowEntity + public async System.Threading.Tasks.Task CopySnippetAsync (string id, CopySnippetRequestEntity body) + { + ApiResponse localVarResponse = await this.CopySnippetAsyncWithHttpInfo(id, body); + return localVarResponse.Data; + + } + + /// + /// Copies a snippet and discards it. + /// + /// Thrown when fails to make API call + /// The process group id. + /// The copy snippet request. + /// Task of ApiResponse (FlowEntity) + public async System.Threading.Tasks.Task> CopySnippetAsyncWithHttpInfo (string id, CopySnippetRequestEntity body) + { + // verify the required parameter 'id' is set + if (id == null) + throw new ApiException(400, "Missing required parameter 'id' when calling ProcessGroupsApi->CopySnippet"); + // verify the required parameter 'body' is set + if (body == null) + throw new ApiException(400, "Missing required parameter 'body' when calling ProcessGroupsApi->CopySnippet"); + + var localVarPath = "/process-groups/{id}/snippet-instance"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "application/json" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter + if (body != null && body.GetType() != typeof(byte[])) + { + localVarPostBody = this.Configuration.ApiClient.Serialize(body); // http body (model) parameter + } + else + { + localVarPostBody = body; // byte array + } + + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (this.ExceptionFactory != null) + { + Exception exception = this.ExceptionFactory("CopySnippet", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), + (FlowEntity) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(FlowEntity))); + } + + /// + /// Creates a connection + /// + /// Thrown when fails to make API call + /// The process group id. + /// The connection configuration details. + /// ConnectionEntity + public ConnectionEntity CreateConnection (string id, ConnectionEntity body) + { + ApiResponse localVarResponse = this.CreateConnectionWithHttpInfo(id, body); + return localVarResponse.Data; + } + + /// + /// Creates a connection + /// + /// Thrown when fails to make API call + /// The process group id. + /// The connection configuration details. + /// ApiResponse of ConnectionEntity + public ApiResponse< ConnectionEntity > CreateConnectionWithHttpInfo (string id, ConnectionEntity body) + { + // verify the required parameter 'id' is set + if (id == null) + throw new ApiException(400, "Missing required parameter 'id' when calling ProcessGroupsApi->CreateConnection"); + // verify the required parameter 'body' is set + if (body == null) + throw new ApiException(400, "Missing required parameter 'body' when calling ProcessGroupsApi->CreateConnection"); + + var localVarPath = "/process-groups/{id}/connections"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "application/json" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter + if (body != null && body.GetType() != typeof(byte[])) + { + localVarPostBody = this.Configuration.ApiClient.Serialize(body); // http body (model) parameter + } + else + { + localVarPostBody = body; // byte array + } + + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (this.ExceptionFactory != null) + { + Exception exception = this.ExceptionFactory("CreateConnection", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), + (ConnectionEntity) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(ConnectionEntity))); + } + + /// + /// Creates a connection + /// + /// Thrown when fails to make API call + /// The process group id. + /// The connection configuration details. + /// Task of ConnectionEntity + public async System.Threading.Tasks.Task CreateConnectionAsync (string id, ConnectionEntity body) + { + ApiResponse localVarResponse = await this.CreateConnectionAsyncWithHttpInfo(id, body); + return localVarResponse.Data; + + } + + /// + /// Creates a connection + /// + /// Thrown when fails to make API call + /// The process group id. + /// The connection configuration details. + /// Task of ApiResponse (ConnectionEntity) + public async System.Threading.Tasks.Task> CreateConnectionAsyncWithHttpInfo (string id, ConnectionEntity body) + { + // verify the required parameter 'id' is set + if (id == null) + throw new ApiException(400, "Missing required parameter 'id' when calling ProcessGroupsApi->CreateConnection"); + // verify the required parameter 'body' is set + if (body == null) + throw new ApiException(400, "Missing required parameter 'body' when calling ProcessGroupsApi->CreateConnection"); + + var localVarPath = "/process-groups/{id}/connections"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "application/json" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter + if (body != null && body.GetType() != typeof(byte[])) + { + localVarPostBody = this.Configuration.ApiClient.Serialize(body); // http body (model) parameter + } + else + { + localVarPostBody = body; // byte array + } + + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (this.ExceptionFactory != null) + { + Exception exception = this.ExceptionFactory("CreateConnection", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), + (ConnectionEntity) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(ConnectionEntity))); + } + + /// + /// Creates a new controller service + /// + /// Thrown when fails to make API call + /// The process group id. + /// The controller service configuration details. + /// ControllerServiceEntity + public ControllerServiceEntity CreateControllerService (string id, ControllerServiceEntity body) + { + ApiResponse localVarResponse = this.CreateControllerServiceWithHttpInfo(id, body); + return localVarResponse.Data; + } + + /// + /// Creates a new controller service + /// + /// Thrown when fails to make API call + /// The process group id. + /// The controller service configuration details. + /// ApiResponse of ControllerServiceEntity + public ApiResponse< ControllerServiceEntity > CreateControllerServiceWithHttpInfo (string id, ControllerServiceEntity body) + { + // verify the required parameter 'id' is set + if (id == null) + throw new ApiException(400, "Missing required parameter 'id' when calling ProcessGroupsApi->CreateControllerService"); + // verify the required parameter 'body' is set + if (body == null) + throw new ApiException(400, "Missing required parameter 'body' when calling ProcessGroupsApi->CreateControllerService"); + + var localVarPath = "/process-groups/{id}/controller-services"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "application/json" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter + if (body != null && body.GetType() != typeof(byte[])) + { + localVarPostBody = this.Configuration.ApiClient.Serialize(body); // http body (model) parameter + } + else + { + localVarPostBody = body; // byte array + } + + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (this.ExceptionFactory != null) + { + Exception exception = this.ExceptionFactory("CreateControllerService", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), + (ControllerServiceEntity) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(ControllerServiceEntity))); + } + + /// + /// Creates a new controller service + /// + /// Thrown when fails to make API call + /// The process group id. + /// The controller service configuration details. + /// Task of ControllerServiceEntity + public async System.Threading.Tasks.Task CreateControllerServiceAsync (string id, ControllerServiceEntity body) + { + ApiResponse localVarResponse = await this.CreateControllerServiceAsyncWithHttpInfo(id, body); + return localVarResponse.Data; + + } + + /// + /// Creates a new controller service + /// + /// Thrown when fails to make API call + /// The process group id. + /// The controller service configuration details. + /// Task of ApiResponse (ControllerServiceEntity) + public async System.Threading.Tasks.Task> CreateControllerServiceAsyncWithHttpInfo (string id, ControllerServiceEntity body) + { + // verify the required parameter 'id' is set + if (id == null) + throw new ApiException(400, "Missing required parameter 'id' when calling ProcessGroupsApi->CreateControllerService"); + // verify the required parameter 'body' is set + if (body == null) + throw new ApiException(400, "Missing required parameter 'body' when calling ProcessGroupsApi->CreateControllerService"); + + var localVarPath = "/process-groups/{id}/controller-services"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "application/json" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter + if (body != null && body.GetType() != typeof(byte[])) + { + localVarPostBody = this.Configuration.ApiClient.Serialize(body); // http body (model) parameter + } + else + { + localVarPostBody = body; // byte array + } + + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (this.ExceptionFactory != null) + { + Exception exception = this.ExceptionFactory("CreateControllerService", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), + (ControllerServiceEntity) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(ControllerServiceEntity))); + } + + /// + /// Creates a funnel + /// + /// Thrown when fails to make API call + /// The process group id. + /// The funnel configuration details. + /// FunnelEntity + public FunnelEntity CreateFunnel (string id, FunnelEntity body) + { + ApiResponse localVarResponse = this.CreateFunnelWithHttpInfo(id, body); + return localVarResponse.Data; + } + + /// + /// Creates a funnel + /// + /// Thrown when fails to make API call + /// The process group id. + /// The funnel configuration details. + /// ApiResponse of FunnelEntity + public ApiResponse< FunnelEntity > CreateFunnelWithHttpInfo (string id, FunnelEntity body) + { + // verify the required parameter 'id' is set + if (id == null) + throw new ApiException(400, "Missing required parameter 'id' when calling ProcessGroupsApi->CreateFunnel"); + // verify the required parameter 'body' is set + if (body == null) + throw new ApiException(400, "Missing required parameter 'body' when calling ProcessGroupsApi->CreateFunnel"); + + var localVarPath = "/process-groups/{id}/funnels"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "application/json" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter + if (body != null && body.GetType() != typeof(byte[])) + { + localVarPostBody = this.Configuration.ApiClient.Serialize(body); // http body (model) parameter + } + else + { + localVarPostBody = body; // byte array + } + + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (this.ExceptionFactory != null) + { + Exception exception = this.ExceptionFactory("CreateFunnel", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), + (FunnelEntity) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(FunnelEntity))); + } + + /// + /// Creates a funnel + /// + /// Thrown when fails to make API call + /// The process group id. + /// The funnel configuration details. + /// Task of FunnelEntity + public async System.Threading.Tasks.Task CreateFunnelAsync (string id, FunnelEntity body) + { + ApiResponse localVarResponse = await this.CreateFunnelAsyncWithHttpInfo(id, body); + return localVarResponse.Data; + + } + + /// + /// Creates a funnel + /// + /// Thrown when fails to make API call + /// The process group id. + /// The funnel configuration details. + /// Task of ApiResponse (FunnelEntity) + public async System.Threading.Tasks.Task> CreateFunnelAsyncWithHttpInfo (string id, FunnelEntity body) + { + // verify the required parameter 'id' is set + if (id == null) + throw new ApiException(400, "Missing required parameter 'id' when calling ProcessGroupsApi->CreateFunnel"); + // verify the required parameter 'body' is set + if (body == null) + throw new ApiException(400, "Missing required parameter 'body' when calling ProcessGroupsApi->CreateFunnel"); + + var localVarPath = "/process-groups/{id}/funnels"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "application/json" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter + if (body != null && body.GetType() != typeof(byte[])) + { + localVarPostBody = this.Configuration.ApiClient.Serialize(body); // http body (model) parameter + } + else + { + localVarPostBody = body; // byte array + } + + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (this.ExceptionFactory != null) + { + Exception exception = this.ExceptionFactory("CreateFunnel", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), + (FunnelEntity) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(FunnelEntity))); + } + + /// + /// Creates an input port + /// + /// Thrown when fails to make API call + /// The process group id. + /// The input port configuration details. + /// PortEntity + public PortEntity CreateInputPort (string id, PortEntity body) + { + ApiResponse localVarResponse = this.CreateInputPortWithHttpInfo(id, body); + return localVarResponse.Data; + } + + /// + /// Creates an input port + /// + /// Thrown when fails to make API call + /// The process group id. + /// The input port configuration details. + /// ApiResponse of PortEntity + public ApiResponse< PortEntity > CreateInputPortWithHttpInfo (string id, PortEntity body) + { + // verify the required parameter 'id' is set + if (id == null) + throw new ApiException(400, "Missing required parameter 'id' when calling ProcessGroupsApi->CreateInputPort"); + // verify the required parameter 'body' is set + if (body == null) + throw new ApiException(400, "Missing required parameter 'body' when calling ProcessGroupsApi->CreateInputPort"); + + var localVarPath = "/process-groups/{id}/input-ports"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "application/json" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter + if (body != null && body.GetType() != typeof(byte[])) + { + localVarPostBody = this.Configuration.ApiClient.Serialize(body); // http body (model) parameter + } + else + { + localVarPostBody = body; // byte array + } + + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (this.ExceptionFactory != null) + { + Exception exception = this.ExceptionFactory("CreateInputPort", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), + (PortEntity) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(PortEntity))); + } + + /// + /// Creates an input port + /// + /// Thrown when fails to make API call + /// The process group id. + /// The input port configuration details. + /// Task of PortEntity + public async System.Threading.Tasks.Task CreateInputPortAsync (string id, PortEntity body) + { + ApiResponse localVarResponse = await this.CreateInputPortAsyncWithHttpInfo(id, body); + return localVarResponse.Data; + + } + + /// + /// Creates an input port + /// + /// Thrown when fails to make API call + /// The process group id. + /// The input port configuration details. + /// Task of ApiResponse (PortEntity) + public async System.Threading.Tasks.Task> CreateInputPortAsyncWithHttpInfo (string id, PortEntity body) + { + // verify the required parameter 'id' is set + if (id == null) + throw new ApiException(400, "Missing required parameter 'id' when calling ProcessGroupsApi->CreateInputPort"); + // verify the required parameter 'body' is set + if (body == null) + throw new ApiException(400, "Missing required parameter 'body' when calling ProcessGroupsApi->CreateInputPort"); + + var localVarPath = "/process-groups/{id}/input-ports"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "application/json" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter + if (body != null && body.GetType() != typeof(byte[])) + { + localVarPostBody = this.Configuration.ApiClient.Serialize(body); // http body (model) parameter + } + else + { + localVarPostBody = body; // byte array + } + + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (this.ExceptionFactory != null) + { + Exception exception = this.ExceptionFactory("CreateInputPort", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), + (PortEntity) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(PortEntity))); + } + + /// + /// Creates a label + /// + /// Thrown when fails to make API call + /// The process group id. + /// The label configuration details. + /// LabelEntity + public LabelEntity CreateLabel (string id, LabelEntity body) + { + ApiResponse localVarResponse = this.CreateLabelWithHttpInfo(id, body); + return localVarResponse.Data; + } + + /// + /// Creates a label + /// + /// Thrown when fails to make API call + /// The process group id. + /// The label configuration details. + /// ApiResponse of LabelEntity + public ApiResponse< LabelEntity > CreateLabelWithHttpInfo (string id, LabelEntity body) + { + // verify the required parameter 'id' is set + if (id == null) + throw new ApiException(400, "Missing required parameter 'id' when calling ProcessGroupsApi->CreateLabel"); + // verify the required parameter 'body' is set + if (body == null) + throw new ApiException(400, "Missing required parameter 'body' when calling ProcessGroupsApi->CreateLabel"); + + var localVarPath = "/process-groups/{id}/labels"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "application/json" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter + if (body != null && body.GetType() != typeof(byte[])) + { + localVarPostBody = this.Configuration.ApiClient.Serialize(body); // http body (model) parameter + } + else + { + localVarPostBody = body; // byte array + } + + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (this.ExceptionFactory != null) + { + Exception exception = this.ExceptionFactory("CreateLabel", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), + (LabelEntity) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(LabelEntity))); + } + + /// + /// Creates a label + /// + /// Thrown when fails to make API call + /// The process group id. + /// The label configuration details. + /// Task of LabelEntity + public async System.Threading.Tasks.Task CreateLabelAsync (string id, LabelEntity body) + { + ApiResponse localVarResponse = await this.CreateLabelAsyncWithHttpInfo(id, body); + return localVarResponse.Data; + + } + + /// + /// Creates a label + /// + /// Thrown when fails to make API call + /// The process group id. + /// The label configuration details. + /// Task of ApiResponse (LabelEntity) + public async System.Threading.Tasks.Task> CreateLabelAsyncWithHttpInfo (string id, LabelEntity body) + { + // verify the required parameter 'id' is set + if (id == null) + throw new ApiException(400, "Missing required parameter 'id' when calling ProcessGroupsApi->CreateLabel"); + // verify the required parameter 'body' is set + if (body == null) + throw new ApiException(400, "Missing required parameter 'body' when calling ProcessGroupsApi->CreateLabel"); + + var localVarPath = "/process-groups/{id}/labels"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "application/json" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter + if (body != null && body.GetType() != typeof(byte[])) + { + localVarPostBody = this.Configuration.ApiClient.Serialize(body); // http body (model) parameter + } + else + { + localVarPostBody = body; // byte array + } + + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (this.ExceptionFactory != null) + { + Exception exception = this.ExceptionFactory("CreateLabel", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), + (LabelEntity) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(LabelEntity))); + } + + /// + /// Creates an output port + /// + /// Thrown when fails to make API call + /// The process group id. + /// The output port configuration. + /// PortEntity + public PortEntity CreateOutputPort (string id, PortEntity body) + { + ApiResponse localVarResponse = this.CreateOutputPortWithHttpInfo(id, body); + return localVarResponse.Data; + } + + /// + /// Creates an output port + /// + /// Thrown when fails to make API call + /// The process group id. + /// The output port configuration. + /// ApiResponse of PortEntity + public ApiResponse< PortEntity > CreateOutputPortWithHttpInfo (string id, PortEntity body) + { + // verify the required parameter 'id' is set + if (id == null) + throw new ApiException(400, "Missing required parameter 'id' when calling ProcessGroupsApi->CreateOutputPort"); + // verify the required parameter 'body' is set + if (body == null) + throw new ApiException(400, "Missing required parameter 'body' when calling ProcessGroupsApi->CreateOutputPort"); + + var localVarPath = "/process-groups/{id}/output-ports"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "application/json" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter + if (body != null && body.GetType() != typeof(byte[])) + { + localVarPostBody = this.Configuration.ApiClient.Serialize(body); // http body (model) parameter + } + else + { + localVarPostBody = body; // byte array + } + + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (this.ExceptionFactory != null) + { + Exception exception = this.ExceptionFactory("CreateOutputPort", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), + (PortEntity) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(PortEntity))); + } + + /// + /// Creates an output port + /// + /// Thrown when fails to make API call + /// The process group id. + /// The output port configuration. + /// Task of PortEntity + public async System.Threading.Tasks.Task CreateOutputPortAsync (string id, PortEntity body) + { + ApiResponse localVarResponse = await this.CreateOutputPortAsyncWithHttpInfo(id, body); + return localVarResponse.Data; + + } + + /// + /// Creates an output port + /// + /// Thrown when fails to make API call + /// The process group id. + /// The output port configuration. + /// Task of ApiResponse (PortEntity) + public async System.Threading.Tasks.Task> CreateOutputPortAsyncWithHttpInfo (string id, PortEntity body) + { + // verify the required parameter 'id' is set + if (id == null) + throw new ApiException(400, "Missing required parameter 'id' when calling ProcessGroupsApi->CreateOutputPort"); + // verify the required parameter 'body' is set + if (body == null) + throw new ApiException(400, "Missing required parameter 'body' when calling ProcessGroupsApi->CreateOutputPort"); + + var localVarPath = "/process-groups/{id}/output-ports"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "application/json" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter + if (body != null && body.GetType() != typeof(byte[])) + { + localVarPostBody = this.Configuration.ApiClient.Serialize(body); // http body (model) parameter + } + else + { + localVarPostBody = body; // byte array + } + + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (this.ExceptionFactory != null) + { + Exception exception = this.ExceptionFactory("CreateOutputPort", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), + (PortEntity) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(PortEntity))); + } + + /// + /// Creates a process group + /// + /// Thrown when fails to make API call + /// The process group id. + /// The process group configuration details. + /// ProcessGroupEntity + public ProcessGroupEntity CreateProcessGroup (string id, ProcessGroupEntity body) + { + ApiResponse localVarResponse = this.CreateProcessGroupWithHttpInfo(id, body); + return localVarResponse.Data; + } + + /// + /// Creates a process group + /// + /// Thrown when fails to make API call + /// The process group id. + /// The process group configuration details. + /// ApiResponse of ProcessGroupEntity + public ApiResponse< ProcessGroupEntity > CreateProcessGroupWithHttpInfo (string id, ProcessGroupEntity body) + { + // verify the required parameter 'id' is set + if (id == null) + throw new ApiException(400, "Missing required parameter 'id' when calling ProcessGroupsApi->CreateProcessGroup"); + // verify the required parameter 'body' is set + if (body == null) + throw new ApiException(400, "Missing required parameter 'body' when calling ProcessGroupsApi->CreateProcessGroup"); + + var localVarPath = "/process-groups/{id}/process-groups"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "application/json" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter + if (body != null && body.GetType() != typeof(byte[])) + { + localVarPostBody = this.Configuration.ApiClient.Serialize(body); // http body (model) parameter + } + else + { + localVarPostBody = body; // byte array + } + + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (this.ExceptionFactory != null) + { + Exception exception = this.ExceptionFactory("CreateProcessGroup", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), + (ProcessGroupEntity) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(ProcessGroupEntity))); + } + + /// + /// Creates a process group + /// + /// Thrown when fails to make API call + /// The process group id. + /// The process group configuration details. + /// Task of ProcessGroupEntity + public async System.Threading.Tasks.Task CreateProcessGroupAsync (string id, ProcessGroupEntity body) + { + ApiResponse localVarResponse = await this.CreateProcessGroupAsyncWithHttpInfo(id, body); + return localVarResponse.Data; + + } + + /// + /// Creates a process group + /// + /// Thrown when fails to make API call + /// The process group id. + /// The process group configuration details. + /// Task of ApiResponse (ProcessGroupEntity) + public async System.Threading.Tasks.Task> CreateProcessGroupAsyncWithHttpInfo (string id, ProcessGroupEntity body) + { + // verify the required parameter 'id' is set + if (id == null) + throw new ApiException(400, "Missing required parameter 'id' when calling ProcessGroupsApi->CreateProcessGroup"); + // verify the required parameter 'body' is set + if (body == null) + throw new ApiException(400, "Missing required parameter 'body' when calling ProcessGroupsApi->CreateProcessGroup"); + + var localVarPath = "/process-groups/{id}/process-groups"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "application/json" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter + if (body != null && body.GetType() != typeof(byte[])) + { + localVarPostBody = this.Configuration.ApiClient.Serialize(body); // http body (model) parameter + } + else + { + localVarPostBody = body; // byte array + } + + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (this.ExceptionFactory != null) + { + Exception exception = this.ExceptionFactory("CreateProcessGroup", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), + (ProcessGroupEntity) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(ProcessGroupEntity))); + } + + /// + /// Creates a new processor + /// + /// Thrown when fails to make API call + /// The process group id. + /// The processor configuration details. + /// ProcessorEntity + public ProcessorEntity CreateProcessor (string id, ProcessorEntity body) + { + ApiResponse localVarResponse = this.CreateProcessorWithHttpInfo(id, body); + return localVarResponse.Data; + } + + /// + /// Creates a new processor + /// + /// Thrown when fails to make API call + /// The process group id. + /// The processor configuration details. + /// ApiResponse of ProcessorEntity + public ApiResponse< ProcessorEntity > CreateProcessorWithHttpInfo (string id, ProcessorEntity body) + { + // verify the required parameter 'id' is set + if (id == null) + throw new ApiException(400, "Missing required parameter 'id' when calling ProcessGroupsApi->CreateProcessor"); + // verify the required parameter 'body' is set + if (body == null) + throw new ApiException(400, "Missing required parameter 'body' when calling ProcessGroupsApi->CreateProcessor"); + + var localVarPath = "/process-groups/{id}/processors"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "application/json" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter + if (body != null && body.GetType() != typeof(byte[])) + { + localVarPostBody = this.Configuration.ApiClient.Serialize(body); // http body (model) parameter + } + else + { + localVarPostBody = body; // byte array + } + + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (this.ExceptionFactory != null) + { + Exception exception = this.ExceptionFactory("CreateProcessor", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), + (ProcessorEntity) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(ProcessorEntity))); + } + + /// + /// Creates a new processor + /// + /// Thrown when fails to make API call + /// The process group id. + /// The processor configuration details. + /// Task of ProcessorEntity + public async System.Threading.Tasks.Task CreateProcessorAsync (string id, ProcessorEntity body) + { + ApiResponse localVarResponse = await this.CreateProcessorAsyncWithHttpInfo(id, body); + return localVarResponse.Data; + + } + + /// + /// Creates a new processor + /// + /// Thrown when fails to make API call + /// The process group id. + /// The processor configuration details. + /// Task of ApiResponse (ProcessorEntity) + public async System.Threading.Tasks.Task> CreateProcessorAsyncWithHttpInfo (string id, ProcessorEntity body) + { + // verify the required parameter 'id' is set + if (id == null) + throw new ApiException(400, "Missing required parameter 'id' when calling ProcessGroupsApi->CreateProcessor"); + // verify the required parameter 'body' is set + if (body == null) + throw new ApiException(400, "Missing required parameter 'body' when calling ProcessGroupsApi->CreateProcessor"); + + var localVarPath = "/process-groups/{id}/processors"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "application/json" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter + if (body != null && body.GetType() != typeof(byte[])) + { + localVarPostBody = this.Configuration.ApiClient.Serialize(body); // http body (model) parameter + } + else + { + localVarPostBody = body; // byte array + } + + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (this.ExceptionFactory != null) + { + Exception exception = this.ExceptionFactory("CreateProcessor", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), + (ProcessorEntity) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(ProcessorEntity))); + } + + /// + /// Creates a new process group + /// + /// Thrown when fails to make API call + /// The process group id. + /// The remote process group configuration details. + /// RemoteProcessGroupEntity + public RemoteProcessGroupEntity CreateRemoteProcessGroup (string id, RemoteProcessGroupEntity body) + { + ApiResponse localVarResponse = this.CreateRemoteProcessGroupWithHttpInfo(id, body); + return localVarResponse.Data; + } + + /// + /// Creates a new process group + /// + /// Thrown when fails to make API call + /// The process group id. + /// The remote process group configuration details. + /// ApiResponse of RemoteProcessGroupEntity + public ApiResponse< RemoteProcessGroupEntity > CreateRemoteProcessGroupWithHttpInfo (string id, RemoteProcessGroupEntity body) + { + // verify the required parameter 'id' is set + if (id == null) + throw new ApiException(400, "Missing required parameter 'id' when calling ProcessGroupsApi->CreateRemoteProcessGroup"); + // verify the required parameter 'body' is set + if (body == null) + throw new ApiException(400, "Missing required parameter 'body' when calling ProcessGroupsApi->CreateRemoteProcessGroup"); + + var localVarPath = "/process-groups/{id}/remote-process-groups"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "application/json" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter + if (body != null && body.GetType() != typeof(byte[])) + { + localVarPostBody = this.Configuration.ApiClient.Serialize(body); // http body (model) parameter + } + else + { + localVarPostBody = body; // byte array + } + + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (this.ExceptionFactory != null) + { + Exception exception = this.ExceptionFactory("CreateRemoteProcessGroup", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), + (RemoteProcessGroupEntity) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RemoteProcessGroupEntity))); + } + + /// + /// Creates a new process group + /// + /// Thrown when fails to make API call + /// The process group id. + /// The remote process group configuration details. + /// Task of RemoteProcessGroupEntity + public async System.Threading.Tasks.Task CreateRemoteProcessGroupAsync (string id, RemoteProcessGroupEntity body) + { + ApiResponse localVarResponse = await this.CreateRemoteProcessGroupAsyncWithHttpInfo(id, body); + return localVarResponse.Data; + + } + + /// + /// Creates a new process group + /// + /// Thrown when fails to make API call + /// The process group id. + /// The remote process group configuration details. + /// Task of ApiResponse (RemoteProcessGroupEntity) + public async System.Threading.Tasks.Task> CreateRemoteProcessGroupAsyncWithHttpInfo (string id, RemoteProcessGroupEntity body) + { + // verify the required parameter 'id' is set + if (id == null) + throw new ApiException(400, "Missing required parameter 'id' when calling ProcessGroupsApi->CreateRemoteProcessGroup"); + // verify the required parameter 'body' is set + if (body == null) + throw new ApiException(400, "Missing required parameter 'body' when calling ProcessGroupsApi->CreateRemoteProcessGroup"); + + var localVarPath = "/process-groups/{id}/remote-process-groups"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "application/json" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter + if (body != null && body.GetType() != typeof(byte[])) + { + localVarPostBody = this.Configuration.ApiClient.Serialize(body); // http body (model) parameter + } + else + { + localVarPostBody = body; // byte array + } + + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (this.ExceptionFactory != null) + { + Exception exception = this.ExceptionFactory("CreateRemoteProcessGroup", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), + (RemoteProcessGroupEntity) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RemoteProcessGroupEntity))); + } + + /// + /// Creates a template and discards the specified snippet. + /// + /// Thrown when fails to make API call + /// The process group id. + /// The create template request. + /// TemplateEntity + public TemplateEntity CreateTemplate (string id, CreateTemplateRequestEntity body) + { + ApiResponse localVarResponse = this.CreateTemplateWithHttpInfo(id, body); + return localVarResponse.Data; + } + + /// + /// Creates a template and discards the specified snippet. + /// + /// Thrown when fails to make API call + /// The process group id. + /// The create template request. + /// ApiResponse of TemplateEntity + public ApiResponse< TemplateEntity > CreateTemplateWithHttpInfo (string id, CreateTemplateRequestEntity body) + { + // verify the required parameter 'id' is set + if (id == null) + throw new ApiException(400, "Missing required parameter 'id' when calling ProcessGroupsApi->CreateTemplate"); + // verify the required parameter 'body' is set + if (body == null) + throw new ApiException(400, "Missing required parameter 'body' when calling ProcessGroupsApi->CreateTemplate"); + + var localVarPath = "/process-groups/{id}/templates"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "application/json" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter + if (body != null && body.GetType() != typeof(byte[])) + { + localVarPostBody = this.Configuration.ApiClient.Serialize(body); // http body (model) parameter + } + else + { + localVarPostBody = body; // byte array + } + + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (this.ExceptionFactory != null) + { + Exception exception = this.ExceptionFactory("CreateTemplate", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), + (TemplateEntity) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(TemplateEntity))); + } + + /// + /// Creates a template and discards the specified snippet. + /// + /// Thrown when fails to make API call + /// The process group id. + /// The create template request. + /// Task of TemplateEntity + public async System.Threading.Tasks.Task CreateTemplateAsync (string id, CreateTemplateRequestEntity body) + { + ApiResponse localVarResponse = await this.CreateTemplateAsyncWithHttpInfo(id, body); + return localVarResponse.Data; + + } + + /// + /// Creates a template and discards the specified snippet. + /// + /// Thrown when fails to make API call + /// The process group id. + /// The create template request. + /// Task of ApiResponse (TemplateEntity) + public async System.Threading.Tasks.Task> CreateTemplateAsyncWithHttpInfo (string id, CreateTemplateRequestEntity body) + { + // verify the required parameter 'id' is set + if (id == null) + throw new ApiException(400, "Missing required parameter 'id' when calling ProcessGroupsApi->CreateTemplate"); + // verify the required parameter 'body' is set + if (body == null) + throw new ApiException(400, "Missing required parameter 'body' when calling ProcessGroupsApi->CreateTemplate"); + + var localVarPath = "/process-groups/{id}/templates"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "application/json" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter + if (body != null && body.GetType() != typeof(byte[])) + { + localVarPostBody = this.Configuration.ApiClient.Serialize(body); // http body (model) parameter + } + else + { + localVarPostBody = body; // byte array + } + + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (this.ExceptionFactory != null) + { + Exception exception = this.ExceptionFactory("CreateTemplate", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), + (TemplateEntity) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(TemplateEntity))); + } + + /// + /// Deletes an update request for a process group's variable registry. If the request is not yet complete, it will automatically be cancelled. Note: This endpoint is subject to change as NiFi and it's REST API evolve. + /// + /// Thrown when fails to make API call + /// The process group id. + /// The ID of the Variable Registry Update Request + /// Acknowledges that this node is disconnected to allow for mutable requests to proceed. (optional, default to false) + /// VariableRegistryUpdateRequestEntity + public VariableRegistryUpdateRequestEntity DeleteVariableRegistryUpdateRequest (string groupId, string updateId, bool? disconnectedNodeAcknowledged = null) + { + ApiResponse localVarResponse = this.DeleteVariableRegistryUpdateRequestWithHttpInfo(groupId, updateId, disconnectedNodeAcknowledged); + return localVarResponse.Data; + } + + /// + /// Deletes an update request for a process group's variable registry. If the request is not yet complete, it will automatically be cancelled. Note: This endpoint is subject to change as NiFi and it's REST API evolve. + /// + /// Thrown when fails to make API call + /// The process group id. + /// The ID of the Variable Registry Update Request + /// Acknowledges that this node is disconnected to allow for mutable requests to proceed. (optional, default to false) + /// ApiResponse of VariableRegistryUpdateRequestEntity + public ApiResponse< VariableRegistryUpdateRequestEntity > DeleteVariableRegistryUpdateRequestWithHttpInfo (string groupId, string updateId, bool? disconnectedNodeAcknowledged = null) + { + // verify the required parameter 'groupId' is set + if (groupId == null) + throw new ApiException(400, "Missing required parameter 'groupId' when calling ProcessGroupsApi->DeleteVariableRegistryUpdateRequest"); + // verify the required parameter 'updateId' is set + if (updateId == null) + throw new ApiException(400, "Missing required parameter 'updateId' when calling ProcessGroupsApi->DeleteVariableRegistryUpdateRequest"); + + var localVarPath = "/process-groups/{groupId}/variable-registry/update-requests/{updateId}"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "*/*" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (groupId != null) localVarPathParams.Add("groupId", this.Configuration.ApiClient.ParameterToString(groupId)); // path parameter + if (updateId != null) localVarPathParams.Add("updateId", this.Configuration.ApiClient.ParameterToString(updateId)); // path parameter + if (disconnectedNodeAcknowledged != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "disconnectedNodeAcknowledged", disconnectedNodeAcknowledged)); // query parameter + + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.DELETE, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (this.ExceptionFactory != null) + { + Exception exception = this.ExceptionFactory("DeleteVariableRegistryUpdateRequest", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), + (VariableRegistryUpdateRequestEntity) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(VariableRegistryUpdateRequestEntity))); + } + + /// + /// Deletes an update request for a process group's variable registry. If the request is not yet complete, it will automatically be cancelled. Note: This endpoint is subject to change as NiFi and it's REST API evolve. + /// + /// Thrown when fails to make API call + /// The process group id. + /// The ID of the Variable Registry Update Request + /// Acknowledges that this node is disconnected to allow for mutable requests to proceed. (optional, default to false) + /// Task of VariableRegistryUpdateRequestEntity + public async System.Threading.Tasks.Task DeleteVariableRegistryUpdateRequestAsync (string groupId, string updateId, bool? disconnectedNodeAcknowledged = null) + { + ApiResponse localVarResponse = await this.DeleteVariableRegistryUpdateRequestAsyncWithHttpInfo(groupId, updateId, disconnectedNodeAcknowledged); + return localVarResponse.Data; + + } + + /// + /// Deletes an update request for a process group's variable registry. If the request is not yet complete, it will automatically be cancelled. Note: This endpoint is subject to change as NiFi and it's REST API evolve. + /// + /// Thrown when fails to make API call + /// The process group id. + /// The ID of the Variable Registry Update Request + /// Acknowledges that this node is disconnected to allow for mutable requests to proceed. (optional, default to false) + /// Task of ApiResponse (VariableRegistryUpdateRequestEntity) + public async System.Threading.Tasks.Task> DeleteVariableRegistryUpdateRequestAsyncWithHttpInfo (string groupId, string updateId, bool? disconnectedNodeAcknowledged = null) + { + // verify the required parameter 'groupId' is set + if (groupId == null) + throw new ApiException(400, "Missing required parameter 'groupId' when calling ProcessGroupsApi->DeleteVariableRegistryUpdateRequest"); + // verify the required parameter 'updateId' is set + if (updateId == null) + throw new ApiException(400, "Missing required parameter 'updateId' when calling ProcessGroupsApi->DeleteVariableRegistryUpdateRequest"); + + var localVarPath = "/process-groups/{groupId}/variable-registry/update-requests/{updateId}"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "*/*" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (groupId != null) localVarPathParams.Add("groupId", this.Configuration.ApiClient.ParameterToString(groupId)); // path parameter + if (updateId != null) localVarPathParams.Add("updateId", this.Configuration.ApiClient.ParameterToString(updateId)); // path parameter + if (disconnectedNodeAcknowledged != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "disconnectedNodeAcknowledged", disconnectedNodeAcknowledged)); // query parameter + + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.DELETE, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (this.ExceptionFactory != null) + { + Exception exception = this.ExceptionFactory("DeleteVariableRegistryUpdateRequest", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), + (VariableRegistryUpdateRequestEntity) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(VariableRegistryUpdateRequestEntity))); + } + + /// + /// Gets all connections + /// + /// Thrown when fails to make API call + /// The process group id. + /// ConnectionsEntity + public ConnectionsEntity GetConnections (string id) + { + ApiResponse localVarResponse = this.GetConnectionsWithHttpInfo(id); + return localVarResponse.Data; + } + + /// + /// Gets all connections + /// + /// Thrown when fails to make API call + /// The process group id. + /// ApiResponse of ConnectionsEntity + public ApiResponse< ConnectionsEntity > GetConnectionsWithHttpInfo (string id) + { + // verify the required parameter 'id' is set + if (id == null) + throw new ApiException(400, "Missing required parameter 'id' when calling ProcessGroupsApi->GetConnections"); + + var localVarPath = "/process-groups/{id}/connections"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "*/*" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter + + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (this.ExceptionFactory != null) + { + Exception exception = this.ExceptionFactory("GetConnections", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), + (ConnectionsEntity) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(ConnectionsEntity))); + } + + /// + /// Gets all connections + /// + /// Thrown when fails to make API call + /// The process group id. + /// Task of ConnectionsEntity + public async System.Threading.Tasks.Task GetConnectionsAsync (string id) + { + ApiResponse localVarResponse = await this.GetConnectionsAsyncWithHttpInfo(id); + return localVarResponse.Data; + + } + + /// + /// Gets all connections + /// + /// Thrown when fails to make API call + /// The process group id. + /// Task of ApiResponse (ConnectionsEntity) + public async System.Threading.Tasks.Task> GetConnectionsAsyncWithHttpInfo (string id) + { + // verify the required parameter 'id' is set + if (id == null) + throw new ApiException(400, "Missing required parameter 'id' when calling ProcessGroupsApi->GetConnections"); + + var localVarPath = "/process-groups/{id}/connections"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "*/*" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter + + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (this.ExceptionFactory != null) + { + Exception exception = this.ExceptionFactory("GetConnections", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), + (ConnectionsEntity) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(ConnectionsEntity))); + } + + /// + /// Gets all funnels + /// + /// Thrown when fails to make API call + /// The process group id. + /// FunnelsEntity + public FunnelsEntity GetFunnels (string id) + { + ApiResponse localVarResponse = this.GetFunnelsWithHttpInfo(id); + return localVarResponse.Data; + } + + /// + /// Gets all funnels + /// + /// Thrown when fails to make API call + /// The process group id. + /// ApiResponse of FunnelsEntity + public ApiResponse< FunnelsEntity > GetFunnelsWithHttpInfo (string id) + { + // verify the required parameter 'id' is set + if (id == null) + throw new ApiException(400, "Missing required parameter 'id' when calling ProcessGroupsApi->GetFunnels"); + + var localVarPath = "/process-groups/{id}/funnels"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "*/*" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter + + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (this.ExceptionFactory != null) + { + Exception exception = this.ExceptionFactory("GetFunnels", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), + (FunnelsEntity) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(FunnelsEntity))); + } + + /// + /// Gets all funnels + /// + /// Thrown when fails to make API call + /// The process group id. + /// Task of FunnelsEntity + public async System.Threading.Tasks.Task GetFunnelsAsync (string id) + { + ApiResponse localVarResponse = await this.GetFunnelsAsyncWithHttpInfo(id); + return localVarResponse.Data; + + } + + /// + /// Gets all funnels + /// + /// Thrown when fails to make API call + /// The process group id. + /// Task of ApiResponse (FunnelsEntity) + public async System.Threading.Tasks.Task> GetFunnelsAsyncWithHttpInfo (string id) + { + // verify the required parameter 'id' is set + if (id == null) + throw new ApiException(400, "Missing required parameter 'id' when calling ProcessGroupsApi->GetFunnels"); + + var localVarPath = "/process-groups/{id}/funnels"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "*/*" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter + + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (this.ExceptionFactory != null) + { + Exception exception = this.ExceptionFactory("GetFunnels", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), + (FunnelsEntity) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(FunnelsEntity))); + } + + /// + /// Gets all input ports + /// + /// Thrown when fails to make API call + /// The process group id. + /// InputPortsEntity + public InputPortsEntity GetInputPorts (string id) + { + ApiResponse localVarResponse = this.GetInputPortsWithHttpInfo(id); + return localVarResponse.Data; + } + + /// + /// Gets all input ports + /// + /// Thrown when fails to make API call + /// The process group id. + /// ApiResponse of InputPortsEntity + public ApiResponse< InputPortsEntity > GetInputPortsWithHttpInfo (string id) + { + // verify the required parameter 'id' is set + if (id == null) + throw new ApiException(400, "Missing required parameter 'id' when calling ProcessGroupsApi->GetInputPorts"); + + var localVarPath = "/process-groups/{id}/input-ports"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "*/*" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter + + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (this.ExceptionFactory != null) + { + Exception exception = this.ExceptionFactory("GetInputPorts", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), + (InputPortsEntity) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(InputPortsEntity))); + } + + /// + /// Gets all input ports + /// + /// Thrown when fails to make API call + /// The process group id. + /// Task of InputPortsEntity + public async System.Threading.Tasks.Task GetInputPortsAsync (string id) + { + ApiResponse localVarResponse = await this.GetInputPortsAsyncWithHttpInfo(id); + return localVarResponse.Data; + + } + + /// + /// Gets all input ports + /// + /// Thrown when fails to make API call + /// The process group id. + /// Task of ApiResponse (InputPortsEntity) + public async System.Threading.Tasks.Task> GetInputPortsAsyncWithHttpInfo (string id) + { + // verify the required parameter 'id' is set + if (id == null) + throw new ApiException(400, "Missing required parameter 'id' when calling ProcessGroupsApi->GetInputPorts"); + + var localVarPath = "/process-groups/{id}/input-ports"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "*/*" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter + + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (this.ExceptionFactory != null) + { + Exception exception = this.ExceptionFactory("GetInputPorts", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), + (InputPortsEntity) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(InputPortsEntity))); + } + + /// + /// Gets all labels + /// + /// Thrown when fails to make API call + /// The process group id. + /// LabelsEntity + public LabelsEntity GetLabels (string id) + { + ApiResponse localVarResponse = this.GetLabelsWithHttpInfo(id); + return localVarResponse.Data; + } + + /// + /// Gets all labels + /// + /// Thrown when fails to make API call + /// The process group id. + /// ApiResponse of LabelsEntity + public ApiResponse< LabelsEntity > GetLabelsWithHttpInfo (string id) + { + // verify the required parameter 'id' is set + if (id == null) + throw new ApiException(400, "Missing required parameter 'id' when calling ProcessGroupsApi->GetLabels"); + + var localVarPath = "/process-groups/{id}/labels"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "*/*" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter + + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (this.ExceptionFactory != null) + { + Exception exception = this.ExceptionFactory("GetLabels", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), + (LabelsEntity) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(LabelsEntity))); + } + + /// + /// Gets all labels + /// + /// Thrown when fails to make API call + /// The process group id. + /// Task of LabelsEntity + public async System.Threading.Tasks.Task GetLabelsAsync (string id) + { + ApiResponse localVarResponse = await this.GetLabelsAsyncWithHttpInfo(id); + return localVarResponse.Data; + + } + + /// + /// Gets all labels + /// + /// Thrown when fails to make API call + /// The process group id. + /// Task of ApiResponse (LabelsEntity) + public async System.Threading.Tasks.Task> GetLabelsAsyncWithHttpInfo (string id) + { + // verify the required parameter 'id' is set + if (id == null) + throw new ApiException(400, "Missing required parameter 'id' when calling ProcessGroupsApi->GetLabels"); + + var localVarPath = "/process-groups/{id}/labels"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "*/*" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter + + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (this.ExceptionFactory != null) + { + Exception exception = this.ExceptionFactory("GetLabels", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), + (LabelsEntity) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(LabelsEntity))); + } + + /// + /// Gets a list of local modifications to the Process Group since it was last synchronized with the Flow Registry + /// + /// Thrown when fails to make API call + /// The process group id. + /// FlowComparisonEntity + public FlowComparisonEntity GetLocalModifications (string id) + { + ApiResponse localVarResponse = this.GetLocalModificationsWithHttpInfo(id); + return localVarResponse.Data; + } + + /// + /// Gets a list of local modifications to the Process Group since it was last synchronized with the Flow Registry + /// + /// Thrown when fails to make API call + /// The process group id. + /// ApiResponse of FlowComparisonEntity + public ApiResponse< FlowComparisonEntity > GetLocalModificationsWithHttpInfo (string id) + { + // verify the required parameter 'id' is set + if (id == null) + throw new ApiException(400, "Missing required parameter 'id' when calling ProcessGroupsApi->GetLocalModifications"); + + var localVarPath = "/process-groups/{id}/local-modifications"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "*/*" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter + + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (this.ExceptionFactory != null) + { + Exception exception = this.ExceptionFactory("GetLocalModifications", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), + (FlowComparisonEntity) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(FlowComparisonEntity))); + } + + /// + /// Gets a list of local modifications to the Process Group since it was last synchronized with the Flow Registry + /// + /// Thrown when fails to make API call + /// The process group id. + /// Task of FlowComparisonEntity + public async System.Threading.Tasks.Task GetLocalModificationsAsync (string id) + { + ApiResponse localVarResponse = await this.GetLocalModificationsAsyncWithHttpInfo(id); + return localVarResponse.Data; + + } + + /// + /// Gets a list of local modifications to the Process Group since it was last synchronized with the Flow Registry + /// + /// Thrown when fails to make API call + /// The process group id. + /// Task of ApiResponse (FlowComparisonEntity) + public async System.Threading.Tasks.Task> GetLocalModificationsAsyncWithHttpInfo (string id) + { + // verify the required parameter 'id' is set + if (id == null) + throw new ApiException(400, "Missing required parameter 'id' when calling ProcessGroupsApi->GetLocalModifications"); + + var localVarPath = "/process-groups/{id}/local-modifications"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "*/*" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter + + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (this.ExceptionFactory != null) + { + Exception exception = this.ExceptionFactory("GetLocalModifications", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), + (FlowComparisonEntity) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(FlowComparisonEntity))); + } + + /// + /// Gets all output ports + /// + /// Thrown when fails to make API call + /// The process group id. + /// OutputPortsEntity + public OutputPortsEntity GetOutputPorts (string id) + { + ApiResponse localVarResponse = this.GetOutputPortsWithHttpInfo(id); + return localVarResponse.Data; + } + + /// + /// Gets all output ports + /// + /// Thrown when fails to make API call + /// The process group id. + /// ApiResponse of OutputPortsEntity + public ApiResponse< OutputPortsEntity > GetOutputPortsWithHttpInfo (string id) + { + // verify the required parameter 'id' is set + if (id == null) + throw new ApiException(400, "Missing required parameter 'id' when calling ProcessGroupsApi->GetOutputPorts"); + + var localVarPath = "/process-groups/{id}/output-ports"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "*/*" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter + + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (this.ExceptionFactory != null) + { + Exception exception = this.ExceptionFactory("GetOutputPorts", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), + (OutputPortsEntity) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(OutputPortsEntity))); + } + + /// + /// Gets all output ports + /// + /// Thrown when fails to make API call + /// The process group id. + /// Task of OutputPortsEntity + public async System.Threading.Tasks.Task GetOutputPortsAsync (string id) + { + ApiResponse localVarResponse = await this.GetOutputPortsAsyncWithHttpInfo(id); + return localVarResponse.Data; + + } + + /// + /// Gets all output ports + /// + /// Thrown when fails to make API call + /// The process group id. + /// Task of ApiResponse (OutputPortsEntity) + public async System.Threading.Tasks.Task> GetOutputPortsAsyncWithHttpInfo (string id) + { + // verify the required parameter 'id' is set + if (id == null) + throw new ApiException(400, "Missing required parameter 'id' when calling ProcessGroupsApi->GetOutputPorts"); + + var localVarPath = "/process-groups/{id}/output-ports"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "*/*" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter + + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (this.ExceptionFactory != null) + { + Exception exception = this.ExceptionFactory("GetOutputPorts", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), + (OutputPortsEntity) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(OutputPortsEntity))); + } + + /// + /// Gets a process group + /// + /// Thrown when fails to make API call + /// The process group id. + /// ProcessGroupEntity + public ProcessGroupEntity GetProcessGroup (string id) + { + ApiResponse localVarResponse = this.GetProcessGroupWithHttpInfo(id); + return localVarResponse.Data; + } + + /// + /// Gets a process group + /// + /// Thrown when fails to make API call + /// The process group id. + /// ApiResponse of ProcessGroupEntity + public ApiResponse< ProcessGroupEntity > GetProcessGroupWithHttpInfo (string id) + { + // verify the required parameter 'id' is set + if (id == null) + throw new ApiException(400, "Missing required parameter 'id' when calling ProcessGroupsApi->GetProcessGroup"); + + var localVarPath = "/process-groups/{id}"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "*/*" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter + + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (this.ExceptionFactory != null) + { + Exception exception = this.ExceptionFactory("GetProcessGroup", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), + (ProcessGroupEntity) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(ProcessGroupEntity))); + } + + /// + /// Gets a process group + /// + /// Thrown when fails to make API call + /// The process group id. + /// Task of ProcessGroupEntity + public async System.Threading.Tasks.Task GetProcessGroupAsync (string id) + { + ApiResponse localVarResponse = await this.GetProcessGroupAsyncWithHttpInfo(id); + return localVarResponse.Data; + + } + + /// + /// Gets a process group + /// + /// Thrown when fails to make API call + /// The process group id. + /// Task of ApiResponse (ProcessGroupEntity) + public async System.Threading.Tasks.Task> GetProcessGroupAsyncWithHttpInfo (string id) + { + // verify the required parameter 'id' is set + if (id == null) + throw new ApiException(400, "Missing required parameter 'id' when calling ProcessGroupsApi->GetProcessGroup"); + + var localVarPath = "/process-groups/{id}"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "*/*" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter + + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (this.ExceptionFactory != null) + { + Exception exception = this.ExceptionFactory("GetProcessGroup", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), + (ProcessGroupEntity) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(ProcessGroupEntity))); + } + + /// + /// Gets all process groups + /// + /// Thrown when fails to make API call + /// The process group id. + /// ProcessGroupsEntity + public ProcessGroupsEntity GetProcessGroups (string id) + { + ApiResponse localVarResponse = this.GetProcessGroupsWithHttpInfo(id); + return localVarResponse.Data; + } + + /// + /// Gets all process groups + /// + /// Thrown when fails to make API call + /// The process group id. + /// ApiResponse of ProcessGroupsEntity + public ApiResponse< ProcessGroupsEntity > GetProcessGroupsWithHttpInfo (string id) + { + // verify the required parameter 'id' is set + if (id == null) + throw new ApiException(400, "Missing required parameter 'id' when calling ProcessGroupsApi->GetProcessGroups"); + + var localVarPath = "/process-groups/{id}/process-groups"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "*/*" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter + + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (this.ExceptionFactory != null) + { + Exception exception = this.ExceptionFactory("GetProcessGroups", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), + (ProcessGroupsEntity) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(ProcessGroupsEntity))); + } + + /// + /// Gets all process groups + /// + /// Thrown when fails to make API call + /// The process group id. + /// Task of ProcessGroupsEntity + public async System.Threading.Tasks.Task GetProcessGroupsAsync (string id) + { + ApiResponse localVarResponse = await this.GetProcessGroupsAsyncWithHttpInfo(id); + return localVarResponse.Data; + + } + + /// + /// Gets all process groups + /// + /// Thrown when fails to make API call + /// The process group id. + /// Task of ApiResponse (ProcessGroupsEntity) + public async System.Threading.Tasks.Task> GetProcessGroupsAsyncWithHttpInfo (string id) + { + // verify the required parameter 'id' is set + if (id == null) + throw new ApiException(400, "Missing required parameter 'id' when calling ProcessGroupsApi->GetProcessGroups"); + + var localVarPath = "/process-groups/{id}/process-groups"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "*/*" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter + + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (this.ExceptionFactory != null) + { + Exception exception = this.ExceptionFactory("GetProcessGroups", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), + (ProcessGroupsEntity) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(ProcessGroupsEntity))); + } + + /// + /// Gets all processors + /// + /// Thrown when fails to make API call + /// The process group id. + /// Whether or not to include processors from descendant process groups (optional, default to false) + /// ProcessorsEntity + public ProcessorsEntity GetProcessors (string id, bool? includeDescendantGroups = null) + { + ApiResponse localVarResponse = this.GetProcessorsWithHttpInfo(id, includeDescendantGroups); + return localVarResponse.Data; + } + + /// + /// Gets all processors + /// + /// Thrown when fails to make API call + /// The process group id. + /// Whether or not to include processors from descendant process groups (optional, default to false) + /// ApiResponse of ProcessorsEntity + public ApiResponse< ProcessorsEntity > GetProcessorsWithHttpInfo (string id, bool? includeDescendantGroups = null) + { + // verify the required parameter 'id' is set + if (id == null) + throw new ApiException(400, "Missing required parameter 'id' when calling ProcessGroupsApi->GetProcessors"); + + var localVarPath = "/process-groups/{id}/processors"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "*/*" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter + if (includeDescendantGroups != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "includeDescendantGroups", includeDescendantGroups)); // query parameter + + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (this.ExceptionFactory != null) + { + Exception exception = this.ExceptionFactory("GetProcessors", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), + (ProcessorsEntity) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(ProcessorsEntity))); + } + + /// + /// Gets all processors + /// + /// Thrown when fails to make API call + /// The process group id. + /// Whether or not to include processors from descendant process groups (optional, default to false) + /// Task of ProcessorsEntity + public async System.Threading.Tasks.Task GetProcessorsAsync (string id, bool? includeDescendantGroups = null) + { + ApiResponse localVarResponse = await this.GetProcessorsAsyncWithHttpInfo(id, includeDescendantGroups); + return localVarResponse.Data; + + } + + /// + /// Gets all processors + /// + /// Thrown when fails to make API call + /// The process group id. + /// Whether or not to include processors from descendant process groups (optional, default to false) + /// Task of ApiResponse (ProcessorsEntity) + public async System.Threading.Tasks.Task> GetProcessorsAsyncWithHttpInfo (string id, bool? includeDescendantGroups = null) + { + // verify the required parameter 'id' is set + if (id == null) + throw new ApiException(400, "Missing required parameter 'id' when calling ProcessGroupsApi->GetProcessors"); + + var localVarPath = "/process-groups/{id}/processors"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "*/*" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter + if (includeDescendantGroups != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "includeDescendantGroups", includeDescendantGroups)); // query parameter + + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (this.ExceptionFactory != null) + { + Exception exception = this.ExceptionFactory("GetProcessors", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), + (ProcessorsEntity) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(ProcessorsEntity))); + } + + /// + /// Gets all remote process groups + /// + /// Thrown when fails to make API call + /// The process group id. + /// RemoteProcessGroupsEntity + public RemoteProcessGroupsEntity GetRemoteProcessGroups (string id) + { + ApiResponse localVarResponse = this.GetRemoteProcessGroupsWithHttpInfo(id); + return localVarResponse.Data; + } + + /// + /// Gets all remote process groups + /// + /// Thrown when fails to make API call + /// The process group id. + /// ApiResponse of RemoteProcessGroupsEntity + public ApiResponse< RemoteProcessGroupsEntity > GetRemoteProcessGroupsWithHttpInfo (string id) + { + // verify the required parameter 'id' is set + if (id == null) + throw new ApiException(400, "Missing required parameter 'id' when calling ProcessGroupsApi->GetRemoteProcessGroups"); + + var localVarPath = "/process-groups/{id}/remote-process-groups"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "*/*" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter + + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (this.ExceptionFactory != null) + { + Exception exception = this.ExceptionFactory("GetRemoteProcessGroups", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), + (RemoteProcessGroupsEntity) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RemoteProcessGroupsEntity))); + } + + /// + /// Gets all remote process groups + /// + /// Thrown when fails to make API call + /// The process group id. + /// Task of RemoteProcessGroupsEntity + public async System.Threading.Tasks.Task GetRemoteProcessGroupsAsync (string id) + { + ApiResponse localVarResponse = await this.GetRemoteProcessGroupsAsyncWithHttpInfo(id); + return localVarResponse.Data; + + } + + /// + /// Gets all remote process groups + /// + /// Thrown when fails to make API call + /// The process group id. + /// Task of ApiResponse (RemoteProcessGroupsEntity) + public async System.Threading.Tasks.Task> GetRemoteProcessGroupsAsyncWithHttpInfo (string id) + { + // verify the required parameter 'id' is set + if (id == null) + throw new ApiException(400, "Missing required parameter 'id' when calling ProcessGroupsApi->GetRemoteProcessGroups"); + + var localVarPath = "/process-groups/{id}/remote-process-groups"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "*/*" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter + + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (this.ExceptionFactory != null) + { + Exception exception = this.ExceptionFactory("GetRemoteProcessGroups", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), + (RemoteProcessGroupsEntity) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RemoteProcessGroupsEntity))); + } + + /// + /// Gets a process group's variable registry Note: This endpoint is subject to change as NiFi and it's REST API evolve. + /// + /// Thrown when fails to make API call + /// The process group id. + /// Whether or not to include ancestor groups (optional, default to true) + /// VariableRegistryEntity + public VariableRegistryEntity GetVariableRegistry (string id, bool? includeAncestorGroups = null) + { + ApiResponse localVarResponse = this.GetVariableRegistryWithHttpInfo(id, includeAncestorGroups); + return localVarResponse.Data; + } + + /// + /// Gets a process group's variable registry Note: This endpoint is subject to change as NiFi and it's REST API evolve. + /// + /// Thrown when fails to make API call + /// The process group id. + /// Whether or not to include ancestor groups (optional, default to true) + /// ApiResponse of VariableRegistryEntity + public ApiResponse< VariableRegistryEntity > GetVariableRegistryWithHttpInfo (string id, bool? includeAncestorGroups = null) + { + // verify the required parameter 'id' is set + if (id == null) + throw new ApiException(400, "Missing required parameter 'id' when calling ProcessGroupsApi->GetVariableRegistry"); + + var localVarPath = "/process-groups/{id}/variable-registry"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "*/*" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter + if (includeAncestorGroups != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "includeAncestorGroups", includeAncestorGroups)); // query parameter + + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (this.ExceptionFactory != null) + { + Exception exception = this.ExceptionFactory("GetVariableRegistry", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), + (VariableRegistryEntity) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(VariableRegistryEntity))); + } + + /// + /// Gets a process group's variable registry Note: This endpoint is subject to change as NiFi and it's REST API evolve. + /// + /// Thrown when fails to make API call + /// The process group id. + /// Whether or not to include ancestor groups (optional, default to true) + /// Task of VariableRegistryEntity + public async System.Threading.Tasks.Task GetVariableRegistryAsync (string id, bool? includeAncestorGroups = null) + { + ApiResponse localVarResponse = await this.GetVariableRegistryAsyncWithHttpInfo(id, includeAncestorGroups); + return localVarResponse.Data; + + } + + /// + /// Gets a process group's variable registry Note: This endpoint is subject to change as NiFi and it's REST API evolve. + /// + /// Thrown when fails to make API call + /// The process group id. + /// Whether or not to include ancestor groups (optional, default to true) + /// Task of ApiResponse (VariableRegistryEntity) + public async System.Threading.Tasks.Task> GetVariableRegistryAsyncWithHttpInfo (string id, bool? includeAncestorGroups = null) + { + // verify the required parameter 'id' is set + if (id == null) + throw new ApiException(400, "Missing required parameter 'id' when calling ProcessGroupsApi->GetVariableRegistry"); + + var localVarPath = "/process-groups/{id}/variable-registry"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "*/*" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter + if (includeAncestorGroups != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "includeAncestorGroups", includeAncestorGroups)); // query parameter + + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (this.ExceptionFactory != null) + { + Exception exception = this.ExceptionFactory("GetVariableRegistry", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), + (VariableRegistryEntity) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(VariableRegistryEntity))); + } + + /// + /// Gets a process group's variable registry Note: This endpoint is subject to change as NiFi and it's REST API evolve. + /// + /// Thrown when fails to make API call + /// The process group id. + /// The ID of the Variable Registry Update Request + /// VariableRegistryUpdateRequestEntity + public VariableRegistryUpdateRequestEntity GetVariableRegistryUpdateRequest (string groupId, string updateId) + { + ApiResponse localVarResponse = this.GetVariableRegistryUpdateRequestWithHttpInfo(groupId, updateId); + return localVarResponse.Data; + } + + /// + /// Gets a process group's variable registry Note: This endpoint is subject to change as NiFi and it's REST API evolve. + /// + /// Thrown when fails to make API call + /// The process group id. + /// The ID of the Variable Registry Update Request + /// ApiResponse of VariableRegistryUpdateRequestEntity + public ApiResponse< VariableRegistryUpdateRequestEntity > GetVariableRegistryUpdateRequestWithHttpInfo (string groupId, string updateId) + { + // verify the required parameter 'groupId' is set + if (groupId == null) + throw new ApiException(400, "Missing required parameter 'groupId' when calling ProcessGroupsApi->GetVariableRegistryUpdateRequest"); + // verify the required parameter 'updateId' is set + if (updateId == null) + throw new ApiException(400, "Missing required parameter 'updateId' when calling ProcessGroupsApi->GetVariableRegistryUpdateRequest"); + + var localVarPath = "/process-groups/{groupId}/variable-registry/update-requests/{updateId}"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "*/*" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (groupId != null) localVarPathParams.Add("groupId", this.Configuration.ApiClient.ParameterToString(groupId)); // path parameter + if (updateId != null) localVarPathParams.Add("updateId", this.Configuration.ApiClient.ParameterToString(updateId)); // path parameter + + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (this.ExceptionFactory != null) + { + Exception exception = this.ExceptionFactory("GetVariableRegistryUpdateRequest", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), + (VariableRegistryUpdateRequestEntity) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(VariableRegistryUpdateRequestEntity))); + } + + /// + /// Gets a process group's variable registry Note: This endpoint is subject to change as NiFi and it's REST API evolve. + /// + /// Thrown when fails to make API call + /// The process group id. + /// The ID of the Variable Registry Update Request + /// Task of VariableRegistryUpdateRequestEntity + public async System.Threading.Tasks.Task GetVariableRegistryUpdateRequestAsync (string groupId, string updateId) + { + ApiResponse localVarResponse = await this.GetVariableRegistryUpdateRequestAsyncWithHttpInfo(groupId, updateId); + return localVarResponse.Data; + + } + + /// + /// Gets a process group's variable registry Note: This endpoint is subject to change as NiFi and it's REST API evolve. + /// + /// Thrown when fails to make API call + /// The process group id. + /// The ID of the Variable Registry Update Request + /// Task of ApiResponse (VariableRegistryUpdateRequestEntity) + public async System.Threading.Tasks.Task> GetVariableRegistryUpdateRequestAsyncWithHttpInfo (string groupId, string updateId) + { + // verify the required parameter 'groupId' is set + if (groupId == null) + throw new ApiException(400, "Missing required parameter 'groupId' when calling ProcessGroupsApi->GetVariableRegistryUpdateRequest"); + // verify the required parameter 'updateId' is set + if (updateId == null) + throw new ApiException(400, "Missing required parameter 'updateId' when calling ProcessGroupsApi->GetVariableRegistryUpdateRequest"); + + var localVarPath = "/process-groups/{groupId}/variable-registry/update-requests/{updateId}"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "*/*" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (groupId != null) localVarPathParams.Add("groupId", this.Configuration.ApiClient.ParameterToString(groupId)); // path parameter + if (updateId != null) localVarPathParams.Add("updateId", this.Configuration.ApiClient.ParameterToString(updateId)); // path parameter + + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (this.ExceptionFactory != null) + { + Exception exception = this.ExceptionFactory("GetVariableRegistryUpdateRequest", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), + (VariableRegistryUpdateRequestEntity) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(VariableRegistryUpdateRequestEntity))); + } + + /// + /// Imports a template + /// + /// Thrown when fails to make API call + /// The process group id. + /// TemplateEntity + public TemplateEntity ImportTemplate (string id) + { + ApiResponse localVarResponse = this.ImportTemplateWithHttpInfo(id); + return localVarResponse.Data; + } + + /// + /// Imports a template + /// + /// Thrown when fails to make API call + /// The process group id. + /// ApiResponse of TemplateEntity + public ApiResponse< TemplateEntity > ImportTemplateWithHttpInfo (string id) + { + // verify the required parameter 'id' is set + if (id == null) + throw new ApiException(400, "Missing required parameter 'id' when calling ProcessGroupsApi->ImportTemplate"); + + var localVarPath = "/process-groups/{id}/templates/import"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "application/xml" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter + + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (this.ExceptionFactory != null) + { + Exception exception = this.ExceptionFactory("ImportTemplate", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), + (TemplateEntity) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(TemplateEntity))); + } + + /// + /// Imports a template + /// + /// Thrown when fails to make API call + /// The process group id. + /// Task of TemplateEntity + public async System.Threading.Tasks.Task ImportTemplateAsync (string id) + { + ApiResponse localVarResponse = await this.ImportTemplateAsyncWithHttpInfo(id); + return localVarResponse.Data; + + } + + /// + /// Imports a template + /// + /// Thrown when fails to make API call + /// The process group id. + /// Task of ApiResponse (TemplateEntity) + public async System.Threading.Tasks.Task> ImportTemplateAsyncWithHttpInfo (string id) + { + // verify the required parameter 'id' is set + if (id == null) + throw new ApiException(400, "Missing required parameter 'id' when calling ProcessGroupsApi->ImportTemplate"); + + var localVarPath = "/process-groups/{id}/templates/import"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "application/xml" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter + + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (this.ExceptionFactory != null) + { + Exception exception = this.ExceptionFactory("ImportTemplate", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), + (TemplateEntity) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(TemplateEntity))); + } + + /// + /// Instantiates a template + /// + /// Thrown when fails to make API call + /// The process group id. + /// The instantiate template request. + /// FlowEntity + public FlowEntity InstantiateTemplate (string id, InstantiateTemplateRequestEntity body) + { + ApiResponse localVarResponse = this.InstantiateTemplateWithHttpInfo(id, body); + return localVarResponse.Data; + } + + /// + /// Instantiates a template + /// + /// Thrown when fails to make API call + /// The process group id. + /// The instantiate template request. + /// ApiResponse of FlowEntity + public ApiResponse< FlowEntity > InstantiateTemplateWithHttpInfo (string id, InstantiateTemplateRequestEntity body) + { + // verify the required parameter 'id' is set + if (id == null) + throw new ApiException(400, "Missing required parameter 'id' when calling ProcessGroupsApi->InstantiateTemplate"); + // verify the required parameter 'body' is set + if (body == null) + throw new ApiException(400, "Missing required parameter 'body' when calling ProcessGroupsApi->InstantiateTemplate"); + + var localVarPath = "/process-groups/{id}/template-instance"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "application/json" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter + if (body != null && body.GetType() != typeof(byte[])) + { + localVarPostBody = this.Configuration.ApiClient.Serialize(body); // http body (model) parameter + } + else + { + localVarPostBody = body; // byte array + } + + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (this.ExceptionFactory != null) + { + Exception exception = this.ExceptionFactory("InstantiateTemplate", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), + (FlowEntity) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(FlowEntity))); + } + + /// + /// Instantiates a template + /// + /// Thrown when fails to make API call + /// The process group id. + /// The instantiate template request. + /// Task of FlowEntity + public async System.Threading.Tasks.Task InstantiateTemplateAsync (string id, InstantiateTemplateRequestEntity body) + { + ApiResponse localVarResponse = await this.InstantiateTemplateAsyncWithHttpInfo(id, body); + return localVarResponse.Data; + + } + + /// + /// Instantiates a template + /// + /// Thrown when fails to make API call + /// The process group id. + /// The instantiate template request. + /// Task of ApiResponse (FlowEntity) + public async System.Threading.Tasks.Task> InstantiateTemplateAsyncWithHttpInfo (string id, InstantiateTemplateRequestEntity body) + { + // verify the required parameter 'id' is set + if (id == null) + throw new ApiException(400, "Missing required parameter 'id' when calling ProcessGroupsApi->InstantiateTemplate"); + // verify the required parameter 'body' is set + if (body == null) + throw new ApiException(400, "Missing required parameter 'body' when calling ProcessGroupsApi->InstantiateTemplate"); + + var localVarPath = "/process-groups/{id}/template-instance"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "application/json" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter + if (body != null && body.GetType() != typeof(byte[])) + { + localVarPostBody = this.Configuration.ApiClient.Serialize(body); // http body (model) parameter + } + else + { + localVarPostBody = body; // byte array + } + + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (this.ExceptionFactory != null) + { + Exception exception = this.ExceptionFactory("InstantiateTemplate", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), + (FlowEntity) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(FlowEntity))); + } + + /// + /// Deletes a process group + /// + /// Thrown when fails to make API call + /// The process group id. + /// The revision is used to verify the client is working with the latest version of the flow. (optional) + /// If the client id is not specified, new one will be generated. This value (whether specified or generated) is included in the response. (optional) + /// Acknowledges that this node is disconnected to allow for mutable requests to proceed. (optional, default to false) + /// ProcessGroupEntity + public ProcessGroupEntity RemoveProcessGroup (string id, string version = null, string clientId = null, bool? disconnectedNodeAcknowledged = null) + { + ApiResponse localVarResponse = this.RemoveProcessGroupWithHttpInfo(id, version, clientId, disconnectedNodeAcknowledged); + return localVarResponse.Data; + } + + /// + /// Deletes a process group + /// + /// Thrown when fails to make API call + /// The process group id. + /// The revision is used to verify the client is working with the latest version of the flow. (optional) + /// If the client id is not specified, new one will be generated. This value (whether specified or generated) is included in the response. (optional) + /// Acknowledges that this node is disconnected to allow for mutable requests to proceed. (optional, default to false) + /// ApiResponse of ProcessGroupEntity + public ApiResponse< ProcessGroupEntity > RemoveProcessGroupWithHttpInfo (string id, string version = null, string clientId = null, bool? disconnectedNodeAcknowledged = null) + { + // verify the required parameter 'id' is set + if (id == null) + throw new ApiException(400, "Missing required parameter 'id' when calling ProcessGroupsApi->RemoveProcessGroup"); + + var localVarPath = "/process-groups/{id}"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "*/*" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter + if (version != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "version", version)); // query parameter + if (clientId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "clientId", clientId)); // query parameter + if (disconnectedNodeAcknowledged != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "disconnectedNodeAcknowledged", disconnectedNodeAcknowledged)); // query parameter + + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.DELETE, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (this.ExceptionFactory != null) + { + Exception exception = this.ExceptionFactory("RemoveProcessGroup", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), + (ProcessGroupEntity) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(ProcessGroupEntity))); + } + + /// + /// Deletes a process group + /// + /// Thrown when fails to make API call + /// The process group id. + /// The revision is used to verify the client is working with the latest version of the flow. (optional) + /// If the client id is not specified, new one will be generated. This value (whether specified or generated) is included in the response. (optional) + /// Acknowledges that this node is disconnected to allow for mutable requests to proceed. (optional, default to false) + /// Task of ProcessGroupEntity + public async System.Threading.Tasks.Task RemoveProcessGroupAsync (string id, string version = null, string clientId = null, bool? disconnectedNodeAcknowledged = null) + { + ApiResponse localVarResponse = await this.RemoveProcessGroupAsyncWithHttpInfo(id, version, clientId, disconnectedNodeAcknowledged); + return localVarResponse.Data; + + } + + /// + /// Deletes a process group + /// + /// Thrown when fails to make API call + /// The process group id. + /// The revision is used to verify the client is working with the latest version of the flow. (optional) + /// If the client id is not specified, new one will be generated. This value (whether specified or generated) is included in the response. (optional) + /// Acknowledges that this node is disconnected to allow for mutable requests to proceed. (optional, default to false) + /// Task of ApiResponse (ProcessGroupEntity) + public async System.Threading.Tasks.Task> RemoveProcessGroupAsyncWithHttpInfo (string id, string version = null, string clientId = null, bool? disconnectedNodeAcknowledged = null) + { + // verify the required parameter 'id' is set + if (id == null) + throw new ApiException(400, "Missing required parameter 'id' when calling ProcessGroupsApi->RemoveProcessGroup"); + + var localVarPath = "/process-groups/{id}"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "*/*" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter + if (version != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "version", version)); // query parameter + if (clientId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "clientId", clientId)); // query parameter + if (disconnectedNodeAcknowledged != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "disconnectedNodeAcknowledged", disconnectedNodeAcknowledged)); // query parameter + + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.DELETE, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (this.ExceptionFactory != null) + { + Exception exception = this.ExceptionFactory("RemoveProcessGroup", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), + (ProcessGroupEntity) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(ProcessGroupEntity))); + } + + /// + /// Submits a request to update a process group's variable registry Note: This endpoint is subject to change as NiFi and it's REST API evolve. + /// + /// Thrown when fails to make API call + /// The process group id. + /// The variable registry configuration details. + /// VariableRegistryUpdateRequestEntity + public VariableRegistryUpdateRequestEntity SubmitUpdateVariableRegistryRequest (string id, VariableRegistryEntity body) + { + ApiResponse localVarResponse = this.SubmitUpdateVariableRegistryRequestWithHttpInfo(id, body); + return localVarResponse.Data; + } + + /// + /// Submits a request to update a process group's variable registry Note: This endpoint is subject to change as NiFi and it's REST API evolve. + /// + /// Thrown when fails to make API call + /// The process group id. + /// The variable registry configuration details. + /// ApiResponse of VariableRegistryUpdateRequestEntity + public ApiResponse< VariableRegistryUpdateRequestEntity > SubmitUpdateVariableRegistryRequestWithHttpInfo (string id, VariableRegistryEntity body) + { + // verify the required parameter 'id' is set + if (id == null) + throw new ApiException(400, "Missing required parameter 'id' when calling ProcessGroupsApi->SubmitUpdateVariableRegistryRequest"); + // verify the required parameter 'body' is set + if (body == null) + throw new ApiException(400, "Missing required parameter 'body' when calling ProcessGroupsApi->SubmitUpdateVariableRegistryRequest"); + + var localVarPath = "/process-groups/{id}/variable-registry/update-requests"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "application/json" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter + if (body != null && body.GetType() != typeof(byte[])) + { + localVarPostBody = this.Configuration.ApiClient.Serialize(body); // http body (model) parameter + } + else + { + localVarPostBody = body; // byte array + } + + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (this.ExceptionFactory != null) + { + Exception exception = this.ExceptionFactory("SubmitUpdateVariableRegistryRequest", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), + (VariableRegistryUpdateRequestEntity) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(VariableRegistryUpdateRequestEntity))); + } + + /// + /// Submits a request to update a process group's variable registry Note: This endpoint is subject to change as NiFi and it's REST API evolve. + /// + /// Thrown when fails to make API call + /// The process group id. + /// The variable registry configuration details. + /// Task of VariableRegistryUpdateRequestEntity + public async System.Threading.Tasks.Task SubmitUpdateVariableRegistryRequestAsync (string id, VariableRegistryEntity body) + { + ApiResponse localVarResponse = await this.SubmitUpdateVariableRegistryRequestAsyncWithHttpInfo(id, body); + return localVarResponse.Data; + + } + + /// + /// Submits a request to update a process group's variable registry Note: This endpoint is subject to change as NiFi and it's REST API evolve. + /// + /// Thrown when fails to make API call + /// The process group id. + /// The variable registry configuration details. + /// Task of ApiResponse (VariableRegistryUpdateRequestEntity) + public async System.Threading.Tasks.Task> SubmitUpdateVariableRegistryRequestAsyncWithHttpInfo (string id, VariableRegistryEntity body) + { + // verify the required parameter 'id' is set + if (id == null) + throw new ApiException(400, "Missing required parameter 'id' when calling ProcessGroupsApi->SubmitUpdateVariableRegistryRequest"); + // verify the required parameter 'body' is set + if (body == null) + throw new ApiException(400, "Missing required parameter 'body' when calling ProcessGroupsApi->SubmitUpdateVariableRegistryRequest"); + + var localVarPath = "/process-groups/{id}/variable-registry/update-requests"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "application/json" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter + if (body != null && body.GetType() != typeof(byte[])) + { + localVarPostBody = this.Configuration.ApiClient.Serialize(body); // http body (model) parameter + } + else + { + localVarPostBody = body; // byte array + } + + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (this.ExceptionFactory != null) + { + Exception exception = this.ExceptionFactory("SubmitUpdateVariableRegistryRequest", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), + (VariableRegistryUpdateRequestEntity) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(VariableRegistryUpdateRequestEntity))); + } + + /// + /// Updates a process group + /// + /// Thrown when fails to make API call + /// The process group id. + /// The process group configuration details. + /// ProcessGroupEntity + public ProcessGroupEntity UpdateProcessGroup (string id, ProcessGroupEntity body) + { + ApiResponse localVarResponse = this.UpdateProcessGroupWithHttpInfo(id, body); + return localVarResponse.Data; + } + + /// + /// Updates a process group + /// + /// Thrown when fails to make API call + /// The process group id. + /// The process group configuration details. + /// ApiResponse of ProcessGroupEntity + public ApiResponse< ProcessGroupEntity > UpdateProcessGroupWithHttpInfo (string id, ProcessGroupEntity body) + { + // verify the required parameter 'id' is set + if (id == null) + throw new ApiException(400, "Missing required parameter 'id' when calling ProcessGroupsApi->UpdateProcessGroup"); + // verify the required parameter 'body' is set + if (body == null) + throw new ApiException(400, "Missing required parameter 'body' when calling ProcessGroupsApi->UpdateProcessGroup"); + + var localVarPath = "/process-groups/{id}"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "application/json" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter + if (body != null && body.GetType() != typeof(byte[])) + { + localVarPostBody = this.Configuration.ApiClient.Serialize(body); // http body (model) parameter + } + else + { + localVarPostBody = body; // byte array + } + + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.PUT, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (this.ExceptionFactory != null) + { + Exception exception = this.ExceptionFactory("UpdateProcessGroup", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), + (ProcessGroupEntity) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(ProcessGroupEntity))); + } + + /// + /// Updates a process group + /// + /// Thrown when fails to make API call + /// The process group id. + /// The process group configuration details. + /// Task of ProcessGroupEntity + public async System.Threading.Tasks.Task UpdateProcessGroupAsync (string id, ProcessGroupEntity body) + { + ApiResponse localVarResponse = await this.UpdateProcessGroupAsyncWithHttpInfo(id, body); + return localVarResponse.Data; + + } + + /// + /// Updates a process group + /// + /// Thrown when fails to make API call + /// The process group id. + /// The process group configuration details. + /// Task of ApiResponse (ProcessGroupEntity) + public async System.Threading.Tasks.Task> UpdateProcessGroupAsyncWithHttpInfo (string id, ProcessGroupEntity body) + { + // verify the required parameter 'id' is set + if (id == null) + throw new ApiException(400, "Missing required parameter 'id' when calling ProcessGroupsApi->UpdateProcessGroup"); + // verify the required parameter 'body' is set + if (body == null) + throw new ApiException(400, "Missing required parameter 'body' when calling ProcessGroupsApi->UpdateProcessGroup"); + + var localVarPath = "/process-groups/{id}"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "application/json" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter + if (body != null && body.GetType() != typeof(byte[])) + { + localVarPostBody = this.Configuration.ApiClient.Serialize(body); // http body (model) parameter + } + else + { + localVarPostBody = body; // byte array + } + + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.PUT, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (this.ExceptionFactory != null) + { + Exception exception = this.ExceptionFactory("UpdateProcessGroup", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), + (ProcessGroupEntity) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(ProcessGroupEntity))); + } + + /// + /// Updates the contents of a Process Group's variable Registry Note: This endpoint is subject to change as NiFi and it's REST API evolve. + /// + /// Thrown when fails to make API call + /// The process group id. + /// The variable registry configuration details. + /// VariableRegistryEntity + public VariableRegistryEntity UpdateVariableRegistry (string id, VariableRegistryEntity body) + { + ApiResponse localVarResponse = this.UpdateVariableRegistryWithHttpInfo(id, body); + return localVarResponse.Data; + } + + /// + /// Updates the contents of a Process Group's variable Registry Note: This endpoint is subject to change as NiFi and it's REST API evolve. + /// + /// Thrown when fails to make API call + /// The process group id. + /// The variable registry configuration details. + /// ApiResponse of VariableRegistryEntity + public ApiResponse< VariableRegistryEntity > UpdateVariableRegistryWithHttpInfo (string id, VariableRegistryEntity body) + { + // verify the required parameter 'id' is set + if (id == null) + throw new ApiException(400, "Missing required parameter 'id' when calling ProcessGroupsApi->UpdateVariableRegistry"); + // verify the required parameter 'body' is set + if (body == null) + throw new ApiException(400, "Missing required parameter 'body' when calling ProcessGroupsApi->UpdateVariableRegistry"); + + var localVarPath = "/process-groups/{id}/variable-registry"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "application/json" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter + if (body != null && body.GetType() != typeof(byte[])) + { + localVarPostBody = this.Configuration.ApiClient.Serialize(body); // http body (model) parameter + } + else + { + localVarPostBody = body; // byte array + } + + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.PUT, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (this.ExceptionFactory != null) + { + Exception exception = this.ExceptionFactory("UpdateVariableRegistry", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), + (VariableRegistryEntity) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(VariableRegistryEntity))); + } + + /// + /// Updates the contents of a Process Group's variable Registry Note: This endpoint is subject to change as NiFi and it's REST API evolve. + /// + /// Thrown when fails to make API call + /// The process group id. + /// The variable registry configuration details. + /// Task of VariableRegistryEntity + public async System.Threading.Tasks.Task UpdateVariableRegistryAsync (string id, VariableRegistryEntity body) + { + ApiResponse localVarResponse = await this.UpdateVariableRegistryAsyncWithHttpInfo(id, body); + return localVarResponse.Data; + + } + + /// + /// Updates the contents of a Process Group's variable Registry Note: This endpoint is subject to change as NiFi and it's REST API evolve. + /// + /// Thrown when fails to make API call + /// The process group id. + /// The variable registry configuration details. + /// Task of ApiResponse (VariableRegistryEntity) + public async System.Threading.Tasks.Task> UpdateVariableRegistryAsyncWithHttpInfo (string id, VariableRegistryEntity body) + { + // verify the required parameter 'id' is set + if (id == null) + throw new ApiException(400, "Missing required parameter 'id' when calling ProcessGroupsApi->UpdateVariableRegistry"); + // verify the required parameter 'body' is set + if (body == null) + throw new ApiException(400, "Missing required parameter 'body' when calling ProcessGroupsApi->UpdateVariableRegistry"); + + var localVarPath = "/process-groups/{id}/variable-registry"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "application/json" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter + if (body != null && body.GetType() != typeof(byte[])) + { + localVarPostBody = this.Configuration.ApiClient.Serialize(body); // http body (model) parameter + } + else + { + localVarPostBody = body; // byte array + } + + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.PUT, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (this.ExceptionFactory != null) + { + Exception exception = this.ExceptionFactory("UpdateVariableRegistry", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), + (VariableRegistryEntity) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(VariableRegistryEntity))); + } + + /// + /// Uploads a template + /// + /// Thrown when fails to make API call + /// The process group id. + /// The binary content of the template file being uploaded. + /// Acknowledges that this node is disconnected to allow for mutable requests to proceed. (optional) + /// TemplateEntity + public TemplateEntity UploadTemplate (string id, System.IO.Stream template, bool? body = null) + { + ApiResponse localVarResponse = this.UploadTemplateWithHttpInfo(id, template, body); + return localVarResponse.Data; + } + + /// + /// Uploads a template + /// + /// Thrown when fails to make API call + /// The process group id. + /// The binary content of the template file being uploaded. + /// Acknowledges that this node is disconnected to allow for mutable requests to proceed. (optional) + /// ApiResponse of TemplateEntity + public ApiResponse< TemplateEntity > UploadTemplateWithHttpInfo (string id, System.IO.Stream template, bool? body = null) + { + // verify the required parameter 'id' is set + if (id == null) + throw new ApiException(400, "Missing required parameter 'id' when calling ProcessGroupsApi->UploadTemplate"); + // verify the required parameter 'template' is set + if (template == null) + throw new ApiException(400, "Missing required parameter 'template' when calling ProcessGroupsApi->UploadTemplate"); + + var localVarPath = "/process-groups/{id}/templates/upload"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "multipart/form-data" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter + if (template != null) localVarFileParams.Add("template", this.Configuration.ApiClient.ParameterToFile("template", template)); + if (body != null && body.GetType() != typeof(byte[])) + { + localVarPostBody = this.Configuration.ApiClient.Serialize(body); // http body (model) parameter + } + else + { + localVarPostBody = body; // byte array + } + + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (this.ExceptionFactory != null) + { + Exception exception = this.ExceptionFactory("UploadTemplate", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), + (TemplateEntity) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(TemplateEntity))); + } + + /// + /// Uploads a template + /// + /// Thrown when fails to make API call + /// The process group id. + /// The binary content of the template file being uploaded. + /// Acknowledges that this node is disconnected to allow for mutable requests to proceed. (optional) + /// Task of TemplateEntity + public async System.Threading.Tasks.Task UploadTemplateAsync (string id, System.IO.Stream template, bool? body = null) + { + ApiResponse localVarResponse = await this.UploadTemplateAsyncWithHttpInfo(id, template, body); + return localVarResponse.Data; + + } + + /// + /// Uploads a template + /// + /// Thrown when fails to make API call + /// The process group id. + /// The binary content of the template file being uploaded. + /// Acknowledges that this node is disconnected to allow for mutable requests to proceed. (optional) + /// Task of ApiResponse (TemplateEntity) + public async System.Threading.Tasks.Task> UploadTemplateAsyncWithHttpInfo (string id, System.IO.Stream template, bool? body = null) + { + // verify the required parameter 'id' is set + if (id == null) + throw new ApiException(400, "Missing required parameter 'id' when calling ProcessGroupsApi->UploadTemplate"); + // verify the required parameter 'template' is set + if (template == null) + throw new ApiException(400, "Missing required parameter 'template' when calling ProcessGroupsApi->UploadTemplate"); + + var localVarPath = "/process-groups/{id}/templates/upload"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "multipart/form-data" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter + if (template != null) localVarFileParams.Add("template", this.Configuration.ApiClient.ParameterToFile("template", template)); + if (body != null && body.GetType() != typeof(byte[])) + { + localVarPostBody = this.Configuration.ApiClient.Serialize(body); // http body (model) parameter + } + else + { + localVarPostBody = body; // byte array + } + + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (this.ExceptionFactory != null) + { + Exception exception = this.ExceptionFactory("UploadTemplate", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), + (TemplateEntity) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(TemplateEntity))); + } + + } +} diff --git a/NiFi.Swagger/Api/ProcessorsApi.cs b/NiFi.Swagger/Api/ProcessorsApi.cs new file mode 100644 index 0000000..7a4d167 --- /dev/null +++ b/NiFi.Swagger/Api/ProcessorsApi.cs @@ -0,0 +1,1841 @@ +/* + * NiFi Rest Api + * + * The Rest Api provides programmatic access to command and control a NiFi instance in real time. Start and stop processors, monitor queues, query provenance data, and more. Each endpoint below includes a description, definitions of the expected input and output, potential response codes, and the authorizations required to invoke each service. + * + * OpenAPI spec version: 1.9.1 + * Contact: dev@nifi.apache.org + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +namespace NiFi.Swagger.Api +{ + using System; + using System.Collections.Generic; + using System.Collections.ObjectModel; + using System.Linq; + + using NiFi.Swagger.Client; + using NiFi.Swagger.Model; + + using RestSharp; + + /// + /// Represents a collection of functions to interact with the API endpoints + /// + public interface IProcessorsApi : IApiAccessor + { + #region Synchronous Operations + /// + /// Clears the state for a processor + /// + /// + /// + /// + /// Thrown when fails to make API call + /// The processor id. + /// ComponentStateEntity + ComponentStateEntity ClearState (string id); + + /// + /// Clears the state for a processor + /// + /// + /// + /// + /// Thrown when fails to make API call + /// The processor id. + /// ApiResponse of ComponentStateEntity + ApiResponse ClearStateWithHttpInfo (string id); + /// + /// Deletes a processor + /// + /// + /// + /// + /// Thrown when fails to make API call + /// The processor id. + /// The revision is used to verify the client is working with the latest version of the flow. (optional) + /// If the client id is not specified, new one will be generated. This value (whether specified or generated) is included in the response. (optional) + /// Acknowledges that this node is disconnected to allow for mutable requests to proceed. (optional, default to false) + /// ProcessorEntity + ProcessorEntity DeleteProcessor (string id, string version = null, string clientId = null, bool? disconnectedNodeAcknowledged = null); + + /// + /// Deletes a processor + /// + /// + /// + /// + /// Thrown when fails to make API call + /// The processor id. + /// The revision is used to verify the client is working with the latest version of the flow. (optional) + /// If the client id is not specified, new one will be generated. This value (whether specified or generated) is included in the response. (optional) + /// Acknowledges that this node is disconnected to allow for mutable requests to proceed. (optional, default to false) + /// ApiResponse of ProcessorEntity + ApiResponse DeleteProcessorWithHttpInfo (string id, string version = null, string clientId = null, bool? disconnectedNodeAcknowledged = null); + /// + /// Gets a processor + /// + /// + /// + /// + /// Thrown when fails to make API call + /// The processor id. + /// ProcessorEntity + ProcessorEntity GetProcessor (string id); + + /// + /// Gets a processor + /// + /// + /// + /// + /// Thrown when fails to make API call + /// The processor id. + /// ApiResponse of ProcessorEntity + ApiResponse GetProcessorWithHttpInfo (string id); + /// + /// Gets diagnostics information about a processor + /// + /// + /// Note: This endpoint is subject to change as NiFi and it's REST API evolve. + /// + /// Thrown when fails to make API call + /// The processor id. + /// ProcessorEntity + ProcessorEntity GetProcessorDiagnostics (string id); + + /// + /// Gets diagnostics information about a processor + /// + /// + /// Note: This endpoint is subject to change as NiFi and it's REST API evolve. + /// + /// Thrown when fails to make API call + /// The processor id. + /// ApiResponse of ProcessorEntity + ApiResponse GetProcessorDiagnosticsWithHttpInfo (string id); + /// + /// Gets the descriptor for a processor property + /// + /// + /// + /// + /// Thrown when fails to make API call + /// The processor id. + /// The property name. + /// If the client id is not specified, new one will be generated. This value (whether specified or generated) is included in the response. (optional) + /// PropertyDescriptorEntity + PropertyDescriptorEntity GetPropertyDescriptor (string id, string propertyName, string clientId = null); + + /// + /// Gets the descriptor for a processor property + /// + /// + /// + /// + /// Thrown when fails to make API call + /// The processor id. + /// The property name. + /// If the client id is not specified, new one will be generated. This value (whether specified or generated) is included in the response. (optional) + /// ApiResponse of PropertyDescriptorEntity + ApiResponse GetPropertyDescriptorWithHttpInfo (string id, string propertyName, string clientId = null); + /// + /// Gets the state for a processor + /// + /// + /// + /// + /// Thrown when fails to make API call + /// The processor id. + /// ComponentStateEntity + ComponentStateEntity GetState (string id); + + /// + /// Gets the state for a processor + /// + /// + /// + /// + /// Thrown when fails to make API call + /// The processor id. + /// ApiResponse of ComponentStateEntity + ApiResponse GetStateWithHttpInfo (string id); + /// + /// Terminates a processor, essentially \"deleting\" its threads and any active tasks + /// + /// + /// + /// + /// Thrown when fails to make API call + /// The processor id. + /// ProcessorEntity + ProcessorEntity TerminateProcessor (string id); + + /// + /// Terminates a processor, essentially \"deleting\" its threads and any active tasks + /// + /// + /// + /// + /// Thrown when fails to make API call + /// The processor id. + /// ApiResponse of ProcessorEntity + ApiResponse TerminateProcessorWithHttpInfo (string id); + /// + /// Updates a processor + /// + /// + /// + /// + /// Thrown when fails to make API call + /// The processor id. + /// The processor configuration details. + /// ProcessorEntity + ProcessorEntity UpdateProcessor (string id, ProcessorEntity body); + + /// + /// Updates a processor + /// + /// + /// + /// + /// Thrown when fails to make API call + /// The processor id. + /// The processor configuration details. + /// ApiResponse of ProcessorEntity + ApiResponse UpdateProcessorWithHttpInfo (string id, ProcessorEntity body); + /// + /// Updates run status of a processor + /// + /// + /// + /// + /// Thrown when fails to make API call + /// The processor id. + /// The processor run status. + /// ProcessorEntity + ProcessorEntity UpdateRunStatus (string id, ProcessorRunStatusEntity body); + + /// + /// Updates run status of a processor + /// + /// + /// + /// + /// Thrown when fails to make API call + /// The processor id. + /// The processor run status. + /// ApiResponse of ProcessorEntity + ApiResponse UpdateRunStatusWithHttpInfo (string id, ProcessorRunStatusEntity body); + #endregion Synchronous Operations + #region Asynchronous Operations + /// + /// Clears the state for a processor + /// + /// + /// + /// + /// Thrown when fails to make API call + /// The processor id. + /// Task of ComponentStateEntity + System.Threading.Tasks.Task ClearStateAsync (string id); + + /// + /// Clears the state for a processor + /// + /// + /// + /// + /// Thrown when fails to make API call + /// The processor id. + /// Task of ApiResponse (ComponentStateEntity) + System.Threading.Tasks.Task> ClearStateAsyncWithHttpInfo (string id); + /// + /// Deletes a processor + /// + /// + /// + /// + /// Thrown when fails to make API call + /// The processor id. + /// The revision is used to verify the client is working with the latest version of the flow. (optional) + /// If the client id is not specified, new one will be generated. This value (whether specified or generated) is included in the response. (optional) + /// Acknowledges that this node is disconnected to allow for mutable requests to proceed. (optional, default to false) + /// Task of ProcessorEntity + System.Threading.Tasks.Task DeleteProcessorAsync (string id, string version = null, string clientId = null, bool? disconnectedNodeAcknowledged = null); + + /// + /// Deletes a processor + /// + /// + /// + /// + /// Thrown when fails to make API call + /// The processor id. + /// The revision is used to verify the client is working with the latest version of the flow. (optional) + /// If the client id is not specified, new one will be generated. This value (whether specified or generated) is included in the response. (optional) + /// Acknowledges that this node is disconnected to allow for mutable requests to proceed. (optional, default to false) + /// Task of ApiResponse (ProcessorEntity) + System.Threading.Tasks.Task> DeleteProcessorAsyncWithHttpInfo (string id, string version = null, string clientId = null, bool? disconnectedNodeAcknowledged = null); + /// + /// Gets a processor + /// + /// + /// + /// + /// Thrown when fails to make API call + /// The processor id. + /// Task of ProcessorEntity + System.Threading.Tasks.Task GetProcessorAsync (string id); + + /// + /// Gets a processor + /// + /// + /// + /// + /// Thrown when fails to make API call + /// The processor id. + /// Task of ApiResponse (ProcessorEntity) + System.Threading.Tasks.Task> GetProcessorAsyncWithHttpInfo (string id); + /// + /// Gets diagnostics information about a processor + /// + /// + /// Note: This endpoint is subject to change as NiFi and it's REST API evolve. + /// + /// Thrown when fails to make API call + /// The processor id. + /// Task of ProcessorEntity + System.Threading.Tasks.Task GetProcessorDiagnosticsAsync (string id); + + /// + /// Gets diagnostics information about a processor + /// + /// + /// Note: This endpoint is subject to change as NiFi and it's REST API evolve. + /// + /// Thrown when fails to make API call + /// The processor id. + /// Task of ApiResponse (ProcessorEntity) + System.Threading.Tasks.Task> GetProcessorDiagnosticsAsyncWithHttpInfo (string id); + /// + /// Gets the descriptor for a processor property + /// + /// + /// + /// + /// Thrown when fails to make API call + /// The processor id. + /// The property name. + /// If the client id is not specified, new one will be generated. This value (whether specified or generated) is included in the response. (optional) + /// Task of PropertyDescriptorEntity + System.Threading.Tasks.Task GetPropertyDescriptorAsync (string id, string propertyName, string clientId = null); + + /// + /// Gets the descriptor for a processor property + /// + /// + /// + /// + /// Thrown when fails to make API call + /// The processor id. + /// The property name. + /// If the client id is not specified, new one will be generated. This value (whether specified or generated) is included in the response. (optional) + /// Task of ApiResponse (PropertyDescriptorEntity) + System.Threading.Tasks.Task> GetPropertyDescriptorAsyncWithHttpInfo (string id, string propertyName, string clientId = null); + /// + /// Gets the state for a processor + /// + /// + /// + /// + /// Thrown when fails to make API call + /// The processor id. + /// Task of ComponentStateEntity + System.Threading.Tasks.Task GetStateAsync (string id); + + /// + /// Gets the state for a processor + /// + /// + /// + /// + /// Thrown when fails to make API call + /// The processor id. + /// Task of ApiResponse (ComponentStateEntity) + System.Threading.Tasks.Task> GetStateAsyncWithHttpInfo (string id); + /// + /// Terminates a processor, essentially \"deleting\" its threads and any active tasks + /// + /// + /// + /// + /// Thrown when fails to make API call + /// The processor id. + /// Task of ProcessorEntity + System.Threading.Tasks.Task TerminateProcessorAsync (string id); + + /// + /// Terminates a processor, essentially \"deleting\" its threads and any active tasks + /// + /// + /// + /// + /// Thrown when fails to make API call + /// The processor id. + /// Task of ApiResponse (ProcessorEntity) + System.Threading.Tasks.Task> TerminateProcessorAsyncWithHttpInfo (string id); + /// + /// Updates a processor + /// + /// + /// + /// + /// Thrown when fails to make API call + /// The processor id. + /// The processor configuration details. + /// Task of ProcessorEntity + System.Threading.Tasks.Task UpdateProcessorAsync (string id, ProcessorEntity body); + + /// + /// Updates a processor + /// + /// + /// + /// + /// Thrown when fails to make API call + /// The processor id. + /// The processor configuration details. + /// Task of ApiResponse (ProcessorEntity) + System.Threading.Tasks.Task> UpdateProcessorAsyncWithHttpInfo (string id, ProcessorEntity body); + /// + /// Updates run status of a processor + /// + /// + /// + /// + /// Thrown when fails to make API call + /// The processor id. + /// The processor run status. + /// Task of ProcessorEntity + System.Threading.Tasks.Task UpdateRunStatusAsync (string id, ProcessorRunStatusEntity body); + + /// + /// Updates run status of a processor + /// + /// + /// + /// + /// Thrown when fails to make API call + /// The processor id. + /// The processor run status. + /// Task of ApiResponse (ProcessorEntity) + System.Threading.Tasks.Task> UpdateRunStatusAsyncWithHttpInfo (string id, ProcessorRunStatusEntity body); + #endregion Asynchronous Operations + } + + /// + /// Represents a collection of functions to interact with the API endpoints + /// + public partial class ProcessorsApi : IProcessorsApi + { + private ExceptionFactory _exceptionFactory = (name, response) => null; + + /// + /// Initializes a new instance of the class. + /// + /// + public ProcessorsApi(String basePath) + { + this.Configuration = new Configuration { BasePath = basePath }; + + this.ExceptionFactory = Configuration.DefaultExceptionFactory; + } + + /// + /// Initializes a new instance of the class + /// using Configuration object + /// + /// An instance of Configuration + /// + public ProcessorsApi(Configuration configuration = null) + { + if (configuration == null) // use the default one in Configuration + this.Configuration = Configuration.Default; + else + this.Configuration = configuration; + + this.ExceptionFactory = Configuration.DefaultExceptionFactory; + } + + /// + /// Gets the base path of the API client. + /// + /// The base path + public String GetBasePath() + { + return this.Configuration.ApiClient.RestClient.BaseUrl.ToString(); + } + + /// + /// Sets the base path of the API client. + /// + /// The base path + [Obsolete("SetBasePath is deprecated, please do 'Configuration.ApiClient = new ApiClient(\"http://new-path\")' instead.")] + public void SetBasePath(String basePath) + { + // do nothing + } + + /// + /// Gets or sets the configuration object + /// + /// An instance of the Configuration + public Configuration Configuration {get; set;} + + /// + /// Provides a factory method hook for the creation of exceptions. + /// + public ExceptionFactory ExceptionFactory + { + get + { + if (this._exceptionFactory != null && this._exceptionFactory.GetInvocationList().Length > 1) + { + throw new InvalidOperationException("Multicast delegate for ExceptionFactory is unsupported."); + } + return this._exceptionFactory; + } + set { this._exceptionFactory = value; } + } + + /// + /// Gets the default header. + /// + /// Dictionary of HTTP header + [Obsolete("DefaultHeader is deprecated, please use Configuration.DefaultHeader instead.")] + public IDictionary DefaultHeader() + { + return new ReadOnlyDictionary(this.Configuration.DefaultHeader); + } + + /// + /// Add default header. + /// + /// Header field name. + /// Header field value. + /// + [Obsolete("AddDefaultHeader is deprecated, please use Configuration.AddDefaultHeader instead.")] + public void AddDefaultHeader(string key, string value) + { + this.Configuration.AddDefaultHeader(key, value); + } + + /// + /// Clears the state for a processor + /// + /// Thrown when fails to make API call + /// The processor id. + /// ComponentStateEntity + public ComponentStateEntity ClearState (string id) + { + ApiResponse localVarResponse = this.ClearStateWithHttpInfo(id); + return localVarResponse.Data; + } + + /// + /// Clears the state for a processor + /// + /// Thrown when fails to make API call + /// The processor id. + /// ApiResponse of ComponentStateEntity + public ApiResponse< ComponentStateEntity > ClearStateWithHttpInfo (string id) + { + // verify the required parameter 'id' is set + if (id == null) + throw new ApiException(400, "Missing required parameter 'id' when calling ProcessorsApi->ClearState"); + + var localVarPath = "/processors/{id}/state/clear-requests"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "*/*" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter + + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (this.ExceptionFactory != null) + { + Exception exception = this.ExceptionFactory("ClearState", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), + (ComponentStateEntity) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(ComponentStateEntity))); + } + + /// + /// Clears the state for a processor + /// + /// Thrown when fails to make API call + /// The processor id. + /// Task of ComponentStateEntity + public async System.Threading.Tasks.Task ClearStateAsync (string id) + { + ApiResponse localVarResponse = await this.ClearStateAsyncWithHttpInfo(id); + return localVarResponse.Data; + + } + + /// + /// Clears the state for a processor + /// + /// Thrown when fails to make API call + /// The processor id. + /// Task of ApiResponse (ComponentStateEntity) + public async System.Threading.Tasks.Task> ClearStateAsyncWithHttpInfo (string id) + { + // verify the required parameter 'id' is set + if (id == null) + throw new ApiException(400, "Missing required parameter 'id' when calling ProcessorsApi->ClearState"); + + var localVarPath = "/processors/{id}/state/clear-requests"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "*/*" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter + + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (this.ExceptionFactory != null) + { + Exception exception = this.ExceptionFactory("ClearState", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), + (ComponentStateEntity) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(ComponentStateEntity))); + } + + /// + /// Deletes a processor + /// + /// Thrown when fails to make API call + /// The processor id. + /// The revision is used to verify the client is working with the latest version of the flow. (optional) + /// If the client id is not specified, new one will be generated. This value (whether specified or generated) is included in the response. (optional) + /// Acknowledges that this node is disconnected to allow for mutable requests to proceed. (optional, default to false) + /// ProcessorEntity + public ProcessorEntity DeleteProcessor (string id, string version = null, string clientId = null, bool? disconnectedNodeAcknowledged = null) + { + ApiResponse localVarResponse = this.DeleteProcessorWithHttpInfo(id, version, clientId, disconnectedNodeAcknowledged); + return localVarResponse.Data; + } + + /// + /// Deletes a processor + /// + /// Thrown when fails to make API call + /// The processor id. + /// The revision is used to verify the client is working with the latest version of the flow. (optional) + /// If the client id is not specified, new one will be generated. This value (whether specified or generated) is included in the response. (optional) + /// Acknowledges that this node is disconnected to allow for mutable requests to proceed. (optional, default to false) + /// ApiResponse of ProcessorEntity + public ApiResponse< ProcessorEntity > DeleteProcessorWithHttpInfo (string id, string version = null, string clientId = null, bool? disconnectedNodeAcknowledged = null) + { + // verify the required parameter 'id' is set + if (id == null) + throw new ApiException(400, "Missing required parameter 'id' when calling ProcessorsApi->DeleteProcessor"); + + var localVarPath = "/processors/{id}"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "*/*" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter + if (version != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "version", version)); // query parameter + if (clientId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "clientId", clientId)); // query parameter + if (disconnectedNodeAcknowledged != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "disconnectedNodeAcknowledged", disconnectedNodeAcknowledged)); // query parameter + + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.DELETE, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (this.ExceptionFactory != null) + { + Exception exception = this.ExceptionFactory("DeleteProcessor", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), + (ProcessorEntity) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(ProcessorEntity))); + } + + /// + /// Deletes a processor + /// + /// Thrown when fails to make API call + /// The processor id. + /// The revision is used to verify the client is working with the latest version of the flow. (optional) + /// If the client id is not specified, new one will be generated. This value (whether specified or generated) is included in the response. (optional) + /// Acknowledges that this node is disconnected to allow for mutable requests to proceed. (optional, default to false) + /// Task of ProcessorEntity + public async System.Threading.Tasks.Task DeleteProcessorAsync (string id, string version = null, string clientId = null, bool? disconnectedNodeAcknowledged = null) + { + ApiResponse localVarResponse = await this.DeleteProcessorAsyncWithHttpInfo(id, version, clientId, disconnectedNodeAcknowledged); + return localVarResponse.Data; + + } + + /// + /// Deletes a processor + /// + /// Thrown when fails to make API call + /// The processor id. + /// The revision is used to verify the client is working with the latest version of the flow. (optional) + /// If the client id is not specified, new one will be generated. This value (whether specified or generated) is included in the response. (optional) + /// Acknowledges that this node is disconnected to allow for mutable requests to proceed. (optional, default to false) + /// Task of ApiResponse (ProcessorEntity) + public async System.Threading.Tasks.Task> DeleteProcessorAsyncWithHttpInfo (string id, string version = null, string clientId = null, bool? disconnectedNodeAcknowledged = null) + { + // verify the required parameter 'id' is set + if (id == null) + throw new ApiException(400, "Missing required parameter 'id' when calling ProcessorsApi->DeleteProcessor"); + + var localVarPath = "/processors/{id}"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "*/*" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter + if (version != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "version", version)); // query parameter + if (clientId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "clientId", clientId)); // query parameter + if (disconnectedNodeAcknowledged != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "disconnectedNodeAcknowledged", disconnectedNodeAcknowledged)); // query parameter + + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.DELETE, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (this.ExceptionFactory != null) + { + Exception exception = this.ExceptionFactory("DeleteProcessor", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), + (ProcessorEntity) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(ProcessorEntity))); + } + + /// + /// Gets a processor + /// + /// Thrown when fails to make API call + /// The processor id. + /// ProcessorEntity + public ProcessorEntity GetProcessor (string id) + { + ApiResponse localVarResponse = this.GetProcessorWithHttpInfo(id); + return localVarResponse.Data; + } + + /// + /// Gets a processor + /// + /// Thrown when fails to make API call + /// The processor id. + /// ApiResponse of ProcessorEntity + public ApiResponse< ProcessorEntity > GetProcessorWithHttpInfo (string id) + { + // verify the required parameter 'id' is set + if (id == null) + throw new ApiException(400, "Missing required parameter 'id' when calling ProcessorsApi->GetProcessor"); + + var localVarPath = "/processors/{id}"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "*/*" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter + + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (this.ExceptionFactory != null) + { + Exception exception = this.ExceptionFactory("GetProcessor", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), + (ProcessorEntity) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(ProcessorEntity))); + } + + /// + /// Gets a processor + /// + /// Thrown when fails to make API call + /// The processor id. + /// Task of ProcessorEntity + public async System.Threading.Tasks.Task GetProcessorAsync (string id) + { + ApiResponse localVarResponse = await this.GetProcessorAsyncWithHttpInfo(id); + return localVarResponse.Data; + + } + + /// + /// Gets a processor + /// + /// Thrown when fails to make API call + /// The processor id. + /// Task of ApiResponse (ProcessorEntity) + public async System.Threading.Tasks.Task> GetProcessorAsyncWithHttpInfo (string id) + { + // verify the required parameter 'id' is set + if (id == null) + throw new ApiException(400, "Missing required parameter 'id' when calling ProcessorsApi->GetProcessor"); + + var localVarPath = "/processors/{id}"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "*/*" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter + + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (this.ExceptionFactory != null) + { + Exception exception = this.ExceptionFactory("GetProcessor", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), + (ProcessorEntity) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(ProcessorEntity))); + } + + /// + /// Gets diagnostics information about a processor Note: This endpoint is subject to change as NiFi and it's REST API evolve. + /// + /// Thrown when fails to make API call + /// The processor id. + /// ProcessorEntity + public ProcessorEntity GetProcessorDiagnostics (string id) + { + ApiResponse localVarResponse = this.GetProcessorDiagnosticsWithHttpInfo(id); + return localVarResponse.Data; + } + + /// + /// Gets diagnostics information about a processor Note: This endpoint is subject to change as NiFi and it's REST API evolve. + /// + /// Thrown when fails to make API call + /// The processor id. + /// ApiResponse of ProcessorEntity + public ApiResponse< ProcessorEntity > GetProcessorDiagnosticsWithHttpInfo (string id) + { + // verify the required parameter 'id' is set + if (id == null) + throw new ApiException(400, "Missing required parameter 'id' when calling ProcessorsApi->GetProcessorDiagnostics"); + + var localVarPath = "/processors/{id}/diagnostics"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "*/*" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter + + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (this.ExceptionFactory != null) + { + Exception exception = this.ExceptionFactory("GetProcessorDiagnostics", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), + (ProcessorEntity) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(ProcessorEntity))); + } + + /// + /// Gets diagnostics information about a processor Note: This endpoint is subject to change as NiFi and it's REST API evolve. + /// + /// Thrown when fails to make API call + /// The processor id. + /// Task of ProcessorEntity + public async System.Threading.Tasks.Task GetProcessorDiagnosticsAsync (string id) + { + ApiResponse localVarResponse = await this.GetProcessorDiagnosticsAsyncWithHttpInfo(id); + return localVarResponse.Data; + + } + + /// + /// Gets diagnostics information about a processor Note: This endpoint is subject to change as NiFi and it's REST API evolve. + /// + /// Thrown when fails to make API call + /// The processor id. + /// Task of ApiResponse (ProcessorEntity) + public async System.Threading.Tasks.Task> GetProcessorDiagnosticsAsyncWithHttpInfo (string id) + { + // verify the required parameter 'id' is set + if (id == null) + throw new ApiException(400, "Missing required parameter 'id' when calling ProcessorsApi->GetProcessorDiagnostics"); + + var localVarPath = "/processors/{id}/diagnostics"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "*/*" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter + + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (this.ExceptionFactory != null) + { + Exception exception = this.ExceptionFactory("GetProcessorDiagnostics", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), + (ProcessorEntity) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(ProcessorEntity))); + } + + /// + /// Gets the descriptor for a processor property + /// + /// Thrown when fails to make API call + /// The processor id. + /// The property name. + /// If the client id is not specified, new one will be generated. This value (whether specified or generated) is included in the response. (optional) + /// PropertyDescriptorEntity + public PropertyDescriptorEntity GetPropertyDescriptor (string id, string propertyName, string clientId = null) + { + ApiResponse localVarResponse = this.GetPropertyDescriptorWithHttpInfo(id, propertyName, clientId); + return localVarResponse.Data; + } + + /// + /// Gets the descriptor for a processor property + /// + /// Thrown when fails to make API call + /// The processor id. + /// The property name. + /// If the client id is not specified, new one will be generated. This value (whether specified or generated) is included in the response. (optional) + /// ApiResponse of PropertyDescriptorEntity + public ApiResponse< PropertyDescriptorEntity > GetPropertyDescriptorWithHttpInfo (string id, string propertyName, string clientId = null) + { + // verify the required parameter 'id' is set + if (id == null) + throw new ApiException(400, "Missing required parameter 'id' when calling ProcessorsApi->GetPropertyDescriptor"); + // verify the required parameter 'propertyName' is set + if (propertyName == null) + throw new ApiException(400, "Missing required parameter 'propertyName' when calling ProcessorsApi->GetPropertyDescriptor"); + + var localVarPath = "/processors/{id}/descriptors"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "*/*" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter + if (clientId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "clientId", clientId)); // query parameter + if (propertyName != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "propertyName", propertyName)); // query parameter + + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (this.ExceptionFactory != null) + { + Exception exception = this.ExceptionFactory("GetPropertyDescriptor", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), + (PropertyDescriptorEntity) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(PropertyDescriptorEntity))); + } + + /// + /// Gets the descriptor for a processor property + /// + /// Thrown when fails to make API call + /// The processor id. + /// The property name. + /// If the client id is not specified, new one will be generated. This value (whether specified or generated) is included in the response. (optional) + /// Task of PropertyDescriptorEntity + public async System.Threading.Tasks.Task GetPropertyDescriptorAsync (string id, string propertyName, string clientId = null) + { + ApiResponse localVarResponse = await this.GetPropertyDescriptorAsyncWithHttpInfo(id, propertyName, clientId); + return localVarResponse.Data; + + } + + /// + /// Gets the descriptor for a processor property + /// + /// Thrown when fails to make API call + /// The processor id. + /// The property name. + /// If the client id is not specified, new one will be generated. This value (whether specified or generated) is included in the response. (optional) + /// Task of ApiResponse (PropertyDescriptorEntity) + public async System.Threading.Tasks.Task> GetPropertyDescriptorAsyncWithHttpInfo (string id, string propertyName, string clientId = null) + { + // verify the required parameter 'id' is set + if (id == null) + throw new ApiException(400, "Missing required parameter 'id' when calling ProcessorsApi->GetPropertyDescriptor"); + // verify the required parameter 'propertyName' is set + if (propertyName == null) + throw new ApiException(400, "Missing required parameter 'propertyName' when calling ProcessorsApi->GetPropertyDescriptor"); + + var localVarPath = "/processors/{id}/descriptors"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "*/*" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter + if (clientId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "clientId", clientId)); // query parameter + if (propertyName != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "propertyName", propertyName)); // query parameter + + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (this.ExceptionFactory != null) + { + Exception exception = this.ExceptionFactory("GetPropertyDescriptor", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), + (PropertyDescriptorEntity) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(PropertyDescriptorEntity))); + } + + /// + /// Gets the state for a processor + /// + /// Thrown when fails to make API call + /// The processor id. + /// ComponentStateEntity + public ComponentStateEntity GetState (string id) + { + ApiResponse localVarResponse = this.GetStateWithHttpInfo(id); + return localVarResponse.Data; + } + + /// + /// Gets the state for a processor + /// + /// Thrown when fails to make API call + /// The processor id. + /// ApiResponse of ComponentStateEntity + public ApiResponse< ComponentStateEntity > GetStateWithHttpInfo (string id) + { + // verify the required parameter 'id' is set + if (id == null) + throw new ApiException(400, "Missing required parameter 'id' when calling ProcessorsApi->GetState"); + + var localVarPath = "/processors/{id}/state"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "*/*" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter + + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (this.ExceptionFactory != null) + { + Exception exception = this.ExceptionFactory("GetState", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), + (ComponentStateEntity) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(ComponentStateEntity))); + } + + /// + /// Gets the state for a processor + /// + /// Thrown when fails to make API call + /// The processor id. + /// Task of ComponentStateEntity + public async System.Threading.Tasks.Task GetStateAsync (string id) + { + ApiResponse localVarResponse = await this.GetStateAsyncWithHttpInfo(id); + return localVarResponse.Data; + + } + + /// + /// Gets the state for a processor + /// + /// Thrown when fails to make API call + /// The processor id. + /// Task of ApiResponse (ComponentStateEntity) + public async System.Threading.Tasks.Task> GetStateAsyncWithHttpInfo (string id) + { + // verify the required parameter 'id' is set + if (id == null) + throw new ApiException(400, "Missing required parameter 'id' when calling ProcessorsApi->GetState"); + + var localVarPath = "/processors/{id}/state"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "*/*" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter + + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (this.ExceptionFactory != null) + { + Exception exception = this.ExceptionFactory("GetState", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), + (ComponentStateEntity) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(ComponentStateEntity))); + } + + /// + /// Terminates a processor, essentially \"deleting\" its threads and any active tasks + /// + /// Thrown when fails to make API call + /// The processor id. + /// ProcessorEntity + public ProcessorEntity TerminateProcessor (string id) + { + ApiResponse localVarResponse = this.TerminateProcessorWithHttpInfo(id); + return localVarResponse.Data; + } + + /// + /// Terminates a processor, essentially \"deleting\" its threads and any active tasks + /// + /// Thrown when fails to make API call + /// The processor id. + /// ApiResponse of ProcessorEntity + public ApiResponse< ProcessorEntity > TerminateProcessorWithHttpInfo (string id) + { + // verify the required parameter 'id' is set + if (id == null) + throw new ApiException(400, "Missing required parameter 'id' when calling ProcessorsApi->TerminateProcessor"); + + var localVarPath = "/processors/{id}/threads"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "*/*" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter + + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.DELETE, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (this.ExceptionFactory != null) + { + Exception exception = this.ExceptionFactory("TerminateProcessor", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), + (ProcessorEntity) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(ProcessorEntity))); + } + + /// + /// Terminates a processor, essentially \"deleting\" its threads and any active tasks + /// + /// Thrown when fails to make API call + /// The processor id. + /// Task of ProcessorEntity + public async System.Threading.Tasks.Task TerminateProcessorAsync (string id) + { + ApiResponse localVarResponse = await this.TerminateProcessorAsyncWithHttpInfo(id); + return localVarResponse.Data; + + } + + /// + /// Terminates a processor, essentially \"deleting\" its threads and any active tasks + /// + /// Thrown when fails to make API call + /// The processor id. + /// Task of ApiResponse (ProcessorEntity) + public async System.Threading.Tasks.Task> TerminateProcessorAsyncWithHttpInfo (string id) + { + // verify the required parameter 'id' is set + if (id == null) + throw new ApiException(400, "Missing required parameter 'id' when calling ProcessorsApi->TerminateProcessor"); + + var localVarPath = "/processors/{id}/threads"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "*/*" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter + + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.DELETE, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (this.ExceptionFactory != null) + { + Exception exception = this.ExceptionFactory("TerminateProcessor", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), + (ProcessorEntity) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(ProcessorEntity))); + } + + /// + /// Updates a processor + /// + /// Thrown when fails to make API call + /// The processor id. + /// The processor configuration details. + /// ProcessorEntity + public ProcessorEntity UpdateProcessor (string id, ProcessorEntity body) + { + ApiResponse localVarResponse = this.UpdateProcessorWithHttpInfo(id, body); + return localVarResponse.Data; + } + + /// + /// Updates a processor + /// + /// Thrown when fails to make API call + /// The processor id. + /// The processor configuration details. + /// ApiResponse of ProcessorEntity + public ApiResponse< ProcessorEntity > UpdateProcessorWithHttpInfo (string id, ProcessorEntity body) + { + // verify the required parameter 'id' is set + if (id == null) + throw new ApiException(400, "Missing required parameter 'id' when calling ProcessorsApi->UpdateProcessor"); + // verify the required parameter 'body' is set + if (body == null) + throw new ApiException(400, "Missing required parameter 'body' when calling ProcessorsApi->UpdateProcessor"); + + var localVarPath = "/processors/{id}"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "application/json" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter + if (body != null && body.GetType() != typeof(byte[])) + { + localVarPostBody = this.Configuration.ApiClient.Serialize(body); // http body (model) parameter + } + else + { + localVarPostBody = body; // byte array + } + + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.PUT, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (this.ExceptionFactory != null) + { + Exception exception = this.ExceptionFactory("UpdateProcessor", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), + (ProcessorEntity) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(ProcessorEntity))); + } + + /// + /// Updates a processor + /// + /// Thrown when fails to make API call + /// The processor id. + /// The processor configuration details. + /// Task of ProcessorEntity + public async System.Threading.Tasks.Task UpdateProcessorAsync (string id, ProcessorEntity body) + { + ApiResponse localVarResponse = await this.UpdateProcessorAsyncWithHttpInfo(id, body); + return localVarResponse.Data; + + } + + /// + /// Updates a processor + /// + /// Thrown when fails to make API call + /// The processor id. + /// The processor configuration details. + /// Task of ApiResponse (ProcessorEntity) + public async System.Threading.Tasks.Task> UpdateProcessorAsyncWithHttpInfo (string id, ProcessorEntity body) + { + // verify the required parameter 'id' is set + if (id == null) + throw new ApiException(400, "Missing required parameter 'id' when calling ProcessorsApi->UpdateProcessor"); + // verify the required parameter 'body' is set + if (body == null) + throw new ApiException(400, "Missing required parameter 'body' when calling ProcessorsApi->UpdateProcessor"); + + var localVarPath = "/processors/{id}"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "application/json" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter + if (body != null && body.GetType() != typeof(byte[])) + { + localVarPostBody = this.Configuration.ApiClient.Serialize(body); // http body (model) parameter + } + else + { + localVarPostBody = body; // byte array + } + + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.PUT, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (this.ExceptionFactory != null) + { + Exception exception = this.ExceptionFactory("UpdateProcessor", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), + (ProcessorEntity) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(ProcessorEntity))); + } + + /// + /// Updates run status of a processor + /// + /// Thrown when fails to make API call + /// The processor id. + /// The processor run status. + /// ProcessorEntity + public ProcessorEntity UpdateRunStatus (string id, ProcessorRunStatusEntity body) + { + ApiResponse localVarResponse = this.UpdateRunStatusWithHttpInfo(id, body); + return localVarResponse.Data; + } + + /// + /// Updates run status of a processor + /// + /// Thrown when fails to make API call + /// The processor id. + /// The processor run status. + /// ApiResponse of ProcessorEntity + public ApiResponse< ProcessorEntity > UpdateRunStatusWithHttpInfo (string id, ProcessorRunStatusEntity body) + { + // verify the required parameter 'id' is set + if (id == null) + throw new ApiException(400, "Missing required parameter 'id' when calling ProcessorsApi->UpdateRunStatus"); + // verify the required parameter 'body' is set + if (body == null) + throw new ApiException(400, "Missing required parameter 'body' when calling ProcessorsApi->UpdateRunStatus"); + + var localVarPath = "/processors/{id}/run-status"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "application/json" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter + if (body != null && body.GetType() != typeof(byte[])) + { + localVarPostBody = this.Configuration.ApiClient.Serialize(body); // http body (model) parameter + } + else + { + localVarPostBody = body; // byte array + } + + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.PUT, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (this.ExceptionFactory != null) + { + Exception exception = this.ExceptionFactory("UpdateRunStatus", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), + (ProcessorEntity) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(ProcessorEntity))); + } + + /// + /// Updates run status of a processor + /// + /// Thrown when fails to make API call + /// The processor id. + /// The processor run status. + /// Task of ProcessorEntity + public async System.Threading.Tasks.Task UpdateRunStatusAsync (string id, ProcessorRunStatusEntity body) + { + ApiResponse localVarResponse = await this.UpdateRunStatusAsyncWithHttpInfo(id, body); + return localVarResponse.Data; + + } + + /// + /// Updates run status of a processor + /// + /// Thrown when fails to make API call + /// The processor id. + /// The processor run status. + /// Task of ApiResponse (ProcessorEntity) + public async System.Threading.Tasks.Task> UpdateRunStatusAsyncWithHttpInfo (string id, ProcessorRunStatusEntity body) + { + // verify the required parameter 'id' is set + if (id == null) + throw new ApiException(400, "Missing required parameter 'id' when calling ProcessorsApi->UpdateRunStatus"); + // verify the required parameter 'body' is set + if (body == null) + throw new ApiException(400, "Missing required parameter 'body' when calling ProcessorsApi->UpdateRunStatus"); + + var localVarPath = "/processors/{id}/run-status"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "application/json" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter + if (body != null && body.GetType() != typeof(byte[])) + { + localVarPostBody = this.Configuration.ApiClient.Serialize(body); // http body (model) parameter + } + else + { + localVarPostBody = body; // byte array + } + + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.PUT, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (this.ExceptionFactory != null) + { + Exception exception = this.ExceptionFactory("UpdateRunStatus", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), + (ProcessorEntity) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(ProcessorEntity))); + } + + } +} diff --git a/NiFi.Swagger/Api/ProvenanceApi.cs b/NiFi.Swagger/Api/ProvenanceApi.cs new file mode 100644 index 0000000..3b89f85 --- /dev/null +++ b/NiFi.Swagger/Api/ProvenanceApi.cs @@ -0,0 +1,1443 @@ +/* + * NiFi Rest Api + * + * The Rest Api provides programmatic access to command and control a NiFi instance in real time. Start and stop processors, monitor queues, query provenance data, and more. Each endpoint below includes a description, definitions of the expected input and output, potential response codes, and the authorizations required to invoke each service. + * + * OpenAPI spec version: 1.9.1 + * Contact: dev@nifi.apache.org + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +namespace NiFi.Swagger.Api +{ + using System; + using System.Collections.Generic; + using System.Collections.ObjectModel; + using System.Linq; + + using NiFi.Swagger.Client; + using NiFi.Swagger.Model; + + using RestSharp; + + /// + /// Represents a collection of functions to interact with the API endpoints + /// + public interface IProvenanceApi : IApiAccessor + { + #region Synchronous Operations + /// + /// Deletes a lineage query + /// + /// + /// + /// + /// Thrown when fails to make API call + /// The id of the lineage query. + /// The id of the node where this query exists if clustered. (optional) + /// LineageEntity + LineageEntity DeleteLineage (string id, string clusterNodeId = null); + + /// + /// Deletes a lineage query + /// + /// + /// + /// + /// Thrown when fails to make API call + /// The id of the lineage query. + /// The id of the node where this query exists if clustered. (optional) + /// ApiResponse of LineageEntity + ApiResponse DeleteLineageWithHttpInfo (string id, string clusterNodeId = null); + /// + /// Deletes a provenance query + /// + /// + /// + /// + /// Thrown when fails to make API call + /// The id of the provenance query. + /// The id of the node where this query exists if clustered. (optional) + /// ProvenanceEntity + ProvenanceEntity DeleteProvenance (string id, string clusterNodeId = null); + + /// + /// Deletes a provenance query + /// + /// + /// + /// + /// Thrown when fails to make API call + /// The id of the provenance query. + /// The id of the node where this query exists if clustered. (optional) + /// ApiResponse of ProvenanceEntity + ApiResponse DeleteProvenanceWithHttpInfo (string id, string clusterNodeId = null); + /// + /// Gets a lineage query + /// + /// + /// + /// + /// Thrown when fails to make API call + /// The id of the lineage query. + /// The id of the node where this query exists if clustered. (optional) + /// LineageEntity + LineageEntity GetLineage (string id, string clusterNodeId = null); + + /// + /// Gets a lineage query + /// + /// + /// + /// + /// Thrown when fails to make API call + /// The id of the lineage query. + /// The id of the node where this query exists if clustered. (optional) + /// ApiResponse of LineageEntity + ApiResponse GetLineageWithHttpInfo (string id, string clusterNodeId = null); + /// + /// Gets a provenance query + /// + /// + /// + /// + /// Thrown when fails to make API call + /// The id of the provenance query. + /// The id of the node where this query exists if clustered. (optional) + /// Whether or not incremental results are returned. If false, provenance events are only returned once the query completes. This property is true by default. (optional, default to false) + /// Whether or not to summarize provenance events returned. This property is false by default. (optional, default to true) + /// ProvenanceEntity + ProvenanceEntity GetProvenance (string id, string clusterNodeId = null, bool? summarize = null, bool? incrementalResults = null); + + /// + /// Gets a provenance query + /// + /// + /// + /// + /// Thrown when fails to make API call + /// The id of the provenance query. + /// The id of the node where this query exists if clustered. (optional) + /// Whether or not incremental results are returned. If false, provenance events are only returned once the query completes. This property is true by default. (optional, default to false) + /// Whether or not to summarize provenance events returned. This property is false by default. (optional, default to true) + /// ApiResponse of ProvenanceEntity + ApiResponse GetProvenanceWithHttpInfo (string id, string clusterNodeId = null, bool? summarize = null, bool? incrementalResults = null); + /// + /// Gets the searchable attributes for provenance events + /// + /// + /// + /// + /// Thrown when fails to make API call + /// ProvenanceOptionsEntity + ProvenanceOptionsEntity GetSearchOptions (); + + /// + /// Gets the searchable attributes for provenance events + /// + /// + /// + /// + /// Thrown when fails to make API call + /// ApiResponse of ProvenanceOptionsEntity + ApiResponse GetSearchOptionsWithHttpInfo (); + /// + /// Submits a lineage query + /// + /// + /// Lineage queries may be long running so this endpoint submits a request. The response will include the current state of the query. If the request is not completed the URI in the response can be used at a later time to get the updated state of the query. Once the query has completed the lineage request should be deleted by the client who originally submitted it. + /// + /// Thrown when fails to make API call + /// The lineage query details. + /// LineageEntity + LineageEntity SubmitLineageRequest (LineageEntity body); + + /// + /// Submits a lineage query + /// + /// + /// Lineage queries may be long running so this endpoint submits a request. The response will include the current state of the query. If the request is not completed the URI in the response can be used at a later time to get the updated state of the query. Once the query has completed the lineage request should be deleted by the client who originally submitted it. + /// + /// Thrown when fails to make API call + /// The lineage query details. + /// ApiResponse of LineageEntity + ApiResponse SubmitLineageRequestWithHttpInfo (LineageEntity body); + /// + /// Submits a provenance query + /// + /// + /// Provenance queries may be long running so this endpoint submits a request. The response will include the current state of the query. If the request is not completed the URI in the response can be used at a later time to get the updated state of the query. Once the query has completed the provenance request should be deleted by the client who originally submitted it. + /// + /// Thrown when fails to make API call + /// The provenance query details. + /// ProvenanceEntity + ProvenanceEntity SubmitProvenanceRequest (ProvenanceEntity body); + + /// + /// Submits a provenance query + /// + /// + /// Provenance queries may be long running so this endpoint submits a request. The response will include the current state of the query. If the request is not completed the URI in the response can be used at a later time to get the updated state of the query. Once the query has completed the provenance request should be deleted by the client who originally submitted it. + /// + /// Thrown when fails to make API call + /// The provenance query details. + /// ApiResponse of ProvenanceEntity + ApiResponse SubmitProvenanceRequestWithHttpInfo (ProvenanceEntity body); + #endregion Synchronous Operations + #region Asynchronous Operations + /// + /// Deletes a lineage query + /// + /// + /// + /// + /// Thrown when fails to make API call + /// The id of the lineage query. + /// The id of the node where this query exists if clustered. (optional) + /// Task of LineageEntity + System.Threading.Tasks.Task DeleteLineageAsync (string id, string clusterNodeId = null); + + /// + /// Deletes a lineage query + /// + /// + /// + /// + /// Thrown when fails to make API call + /// The id of the lineage query. + /// The id of the node where this query exists if clustered. (optional) + /// Task of ApiResponse (LineageEntity) + System.Threading.Tasks.Task> DeleteLineageAsyncWithHttpInfo (string id, string clusterNodeId = null); + /// + /// Deletes a provenance query + /// + /// + /// + /// + /// Thrown when fails to make API call + /// The id of the provenance query. + /// The id of the node where this query exists if clustered. (optional) + /// Task of ProvenanceEntity + System.Threading.Tasks.Task DeleteProvenanceAsync (string id, string clusterNodeId = null); + + /// + /// Deletes a provenance query + /// + /// + /// + /// + /// Thrown when fails to make API call + /// The id of the provenance query. + /// The id of the node where this query exists if clustered. (optional) + /// Task of ApiResponse (ProvenanceEntity) + System.Threading.Tasks.Task> DeleteProvenanceAsyncWithHttpInfo (string id, string clusterNodeId = null); + /// + /// Gets a lineage query + /// + /// + /// + /// + /// Thrown when fails to make API call + /// The id of the lineage query. + /// The id of the node where this query exists if clustered. (optional) + /// Task of LineageEntity + System.Threading.Tasks.Task GetLineageAsync (string id, string clusterNodeId = null); + + /// + /// Gets a lineage query + /// + /// + /// + /// + /// Thrown when fails to make API call + /// The id of the lineage query. + /// The id of the node where this query exists if clustered. (optional) + /// Task of ApiResponse (LineageEntity) + System.Threading.Tasks.Task> GetLineageAsyncWithHttpInfo (string id, string clusterNodeId = null); + /// + /// Gets a provenance query + /// + /// + /// + /// + /// Thrown when fails to make API call + /// The id of the provenance query. + /// The id of the node where this query exists if clustered. (optional) + /// Whether or not incremental results are returned. If false, provenance events are only returned once the query completes. This property is true by default. (optional, default to false) + /// Whether or not to summarize provenance events returned. This property is false by default. (optional, default to true) + /// Task of ProvenanceEntity + System.Threading.Tasks.Task GetProvenanceAsync (string id, string clusterNodeId = null, bool? summarize = null, bool? incrementalResults = null); + + /// + /// Gets a provenance query + /// + /// + /// + /// + /// Thrown when fails to make API call + /// The id of the provenance query. + /// The id of the node where this query exists if clustered. (optional) + /// Whether or not incremental results are returned. If false, provenance events are only returned once the query completes. This property is true by default. (optional, default to false) + /// Whether or not to summarize provenance events returned. This property is false by default. (optional, default to true) + /// Task of ApiResponse (ProvenanceEntity) + System.Threading.Tasks.Task> GetProvenanceAsyncWithHttpInfo (string id, string clusterNodeId = null, bool? summarize = null, bool? incrementalResults = null); + /// + /// Gets the searchable attributes for provenance events + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Task of ProvenanceOptionsEntity + System.Threading.Tasks.Task GetSearchOptionsAsync (); + + /// + /// Gets the searchable attributes for provenance events + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Task of ApiResponse (ProvenanceOptionsEntity) + System.Threading.Tasks.Task> GetSearchOptionsAsyncWithHttpInfo (); + /// + /// Submits a lineage query + /// + /// + /// Lineage queries may be long running so this endpoint submits a request. The response will include the current state of the query. If the request is not completed the URI in the response can be used at a later time to get the updated state of the query. Once the query has completed the lineage request should be deleted by the client who originally submitted it. + /// + /// Thrown when fails to make API call + /// The lineage query details. + /// Task of LineageEntity + System.Threading.Tasks.Task SubmitLineageRequestAsync (LineageEntity body); + + /// + /// Submits a lineage query + /// + /// + /// Lineage queries may be long running so this endpoint submits a request. The response will include the current state of the query. If the request is not completed the URI in the response can be used at a later time to get the updated state of the query. Once the query has completed the lineage request should be deleted by the client who originally submitted it. + /// + /// Thrown when fails to make API call + /// The lineage query details. + /// Task of ApiResponse (LineageEntity) + System.Threading.Tasks.Task> SubmitLineageRequestAsyncWithHttpInfo (LineageEntity body); + /// + /// Submits a provenance query + /// + /// + /// Provenance queries may be long running so this endpoint submits a request. The response will include the current state of the query. If the request is not completed the URI in the response can be used at a later time to get the updated state of the query. Once the query has completed the provenance request should be deleted by the client who originally submitted it. + /// + /// Thrown when fails to make API call + /// The provenance query details. + /// Task of ProvenanceEntity + System.Threading.Tasks.Task SubmitProvenanceRequestAsync (ProvenanceEntity body); + + /// + /// Submits a provenance query + /// + /// + /// Provenance queries may be long running so this endpoint submits a request. The response will include the current state of the query. If the request is not completed the URI in the response can be used at a later time to get the updated state of the query. Once the query has completed the provenance request should be deleted by the client who originally submitted it. + /// + /// Thrown when fails to make API call + /// The provenance query details. + /// Task of ApiResponse (ProvenanceEntity) + System.Threading.Tasks.Task> SubmitProvenanceRequestAsyncWithHttpInfo (ProvenanceEntity body); + #endregion Asynchronous Operations + } + + /// + /// Represents a collection of functions to interact with the API endpoints + /// + public partial class ProvenanceApi : IProvenanceApi + { + private ExceptionFactory _exceptionFactory = (name, response) => null; + + /// + /// Initializes a new instance of the class. + /// + /// + public ProvenanceApi(String basePath) + { + this.Configuration = new Configuration { BasePath = basePath }; + + this.ExceptionFactory = Configuration.DefaultExceptionFactory; + } + + /// + /// Initializes a new instance of the class + /// using Configuration object + /// + /// An instance of Configuration + /// + public ProvenanceApi(Configuration configuration = null) + { + if (configuration == null) // use the default one in Configuration + this.Configuration = Configuration.Default; + else + this.Configuration = configuration; + + this.ExceptionFactory = Configuration.DefaultExceptionFactory; + } + + /// + /// Gets the base path of the API client. + /// + /// The base path + public String GetBasePath() + { + return this.Configuration.ApiClient.RestClient.BaseUrl.ToString(); + } + + /// + /// Sets the base path of the API client. + /// + /// The base path + [Obsolete("SetBasePath is deprecated, please do 'Configuration.ApiClient = new ApiClient(\"http://new-path\")' instead.")] + public void SetBasePath(String basePath) + { + // do nothing + } + + /// + /// Gets or sets the configuration object + /// + /// An instance of the Configuration + public Configuration Configuration {get; set;} + + /// + /// Provides a factory method hook for the creation of exceptions. + /// + public ExceptionFactory ExceptionFactory + { + get + { + if (this._exceptionFactory != null && this._exceptionFactory.GetInvocationList().Length > 1) + { + throw new InvalidOperationException("Multicast delegate for ExceptionFactory is unsupported."); + } + return this._exceptionFactory; + } + set { this._exceptionFactory = value; } + } + + /// + /// Gets the default header. + /// + /// Dictionary of HTTP header + [Obsolete("DefaultHeader is deprecated, please use Configuration.DefaultHeader instead.")] + public IDictionary DefaultHeader() + { + return new ReadOnlyDictionary(this.Configuration.DefaultHeader); + } + + /// + /// Add default header. + /// + /// Header field name. + /// Header field value. + /// + [Obsolete("AddDefaultHeader is deprecated, please use Configuration.AddDefaultHeader instead.")] + public void AddDefaultHeader(string key, string value) + { + this.Configuration.AddDefaultHeader(key, value); + } + + /// + /// Deletes a lineage query + /// + /// Thrown when fails to make API call + /// The id of the lineage query. + /// The id of the node where this query exists if clustered. (optional) + /// LineageEntity + public LineageEntity DeleteLineage (string id, string clusterNodeId = null) + { + ApiResponse localVarResponse = this.DeleteLineageWithHttpInfo(id, clusterNodeId); + return localVarResponse.Data; + } + + /// + /// Deletes a lineage query + /// + /// Thrown when fails to make API call + /// The id of the lineage query. + /// The id of the node where this query exists if clustered. (optional) + /// ApiResponse of LineageEntity + public ApiResponse< LineageEntity > DeleteLineageWithHttpInfo (string id, string clusterNodeId = null) + { + // verify the required parameter 'id' is set + if (id == null) + throw new ApiException(400, "Missing required parameter 'id' when calling ProvenanceApi->DeleteLineage"); + + var localVarPath = "/provenance/lineage/{id}"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "*/*" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter + if (clusterNodeId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "clusterNodeId", clusterNodeId)); // query parameter + + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.DELETE, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (this.ExceptionFactory != null) + { + Exception exception = this.ExceptionFactory("DeleteLineage", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), + (LineageEntity) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(LineageEntity))); + } + + /// + /// Deletes a lineage query + /// + /// Thrown when fails to make API call + /// The id of the lineage query. + /// The id of the node where this query exists if clustered. (optional) + /// Task of LineageEntity + public async System.Threading.Tasks.Task DeleteLineageAsync (string id, string clusterNodeId = null) + { + ApiResponse localVarResponse = await this.DeleteLineageAsyncWithHttpInfo(id, clusterNodeId); + return localVarResponse.Data; + + } + + /// + /// Deletes a lineage query + /// + /// Thrown when fails to make API call + /// The id of the lineage query. + /// The id of the node where this query exists if clustered. (optional) + /// Task of ApiResponse (LineageEntity) + public async System.Threading.Tasks.Task> DeleteLineageAsyncWithHttpInfo (string id, string clusterNodeId = null) + { + // verify the required parameter 'id' is set + if (id == null) + throw new ApiException(400, "Missing required parameter 'id' when calling ProvenanceApi->DeleteLineage"); + + var localVarPath = "/provenance/lineage/{id}"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "*/*" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter + if (clusterNodeId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "clusterNodeId", clusterNodeId)); // query parameter + + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.DELETE, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (this.ExceptionFactory != null) + { + Exception exception = this.ExceptionFactory("DeleteLineage", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), + (LineageEntity) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(LineageEntity))); + } + + /// + /// Deletes a provenance query + /// + /// Thrown when fails to make API call + /// The id of the provenance query. + /// The id of the node where this query exists if clustered. (optional) + /// ProvenanceEntity + public ProvenanceEntity DeleteProvenance (string id, string clusterNodeId = null) + { + ApiResponse localVarResponse = this.DeleteProvenanceWithHttpInfo(id, clusterNodeId); + return localVarResponse.Data; + } + + /// + /// Deletes a provenance query + /// + /// Thrown when fails to make API call + /// The id of the provenance query. + /// The id of the node where this query exists if clustered. (optional) + /// ApiResponse of ProvenanceEntity + public ApiResponse< ProvenanceEntity > DeleteProvenanceWithHttpInfo (string id, string clusterNodeId = null) + { + // verify the required parameter 'id' is set + if (id == null) + throw new ApiException(400, "Missing required parameter 'id' when calling ProvenanceApi->DeleteProvenance"); + + var localVarPath = "/provenance/{id}"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "*/*" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter + if (clusterNodeId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "clusterNodeId", clusterNodeId)); // query parameter + + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.DELETE, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (this.ExceptionFactory != null) + { + Exception exception = this.ExceptionFactory("DeleteProvenance", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), + (ProvenanceEntity) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(ProvenanceEntity))); + } + + /// + /// Deletes a provenance query + /// + /// Thrown when fails to make API call + /// The id of the provenance query. + /// The id of the node where this query exists if clustered. (optional) + /// Task of ProvenanceEntity + public async System.Threading.Tasks.Task DeleteProvenanceAsync (string id, string clusterNodeId = null) + { + ApiResponse localVarResponse = await this.DeleteProvenanceAsyncWithHttpInfo(id, clusterNodeId); + return localVarResponse.Data; + + } + + /// + /// Deletes a provenance query + /// + /// Thrown when fails to make API call + /// The id of the provenance query. + /// The id of the node where this query exists if clustered. (optional) + /// Task of ApiResponse (ProvenanceEntity) + public async System.Threading.Tasks.Task> DeleteProvenanceAsyncWithHttpInfo (string id, string clusterNodeId = null) + { + // verify the required parameter 'id' is set + if (id == null) + throw new ApiException(400, "Missing required parameter 'id' when calling ProvenanceApi->DeleteProvenance"); + + var localVarPath = "/provenance/{id}"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "*/*" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter + if (clusterNodeId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "clusterNodeId", clusterNodeId)); // query parameter + + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.DELETE, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (this.ExceptionFactory != null) + { + Exception exception = this.ExceptionFactory("DeleteProvenance", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), + (ProvenanceEntity) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(ProvenanceEntity))); + } + + /// + /// Gets a lineage query + /// + /// Thrown when fails to make API call + /// The id of the lineage query. + /// The id of the node where this query exists if clustered. (optional) + /// LineageEntity + public LineageEntity GetLineage (string id, string clusterNodeId = null) + { + ApiResponse localVarResponse = this.GetLineageWithHttpInfo(id, clusterNodeId); + return localVarResponse.Data; + } + + /// + /// Gets a lineage query + /// + /// Thrown when fails to make API call + /// The id of the lineage query. + /// The id of the node where this query exists if clustered. (optional) + /// ApiResponse of LineageEntity + public ApiResponse< LineageEntity > GetLineageWithHttpInfo (string id, string clusterNodeId = null) + { + // verify the required parameter 'id' is set + if (id == null) + throw new ApiException(400, "Missing required parameter 'id' when calling ProvenanceApi->GetLineage"); + + var localVarPath = "/provenance/lineage/{id}"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "*/*" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter + if (clusterNodeId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "clusterNodeId", clusterNodeId)); // query parameter + + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (this.ExceptionFactory != null) + { + Exception exception = this.ExceptionFactory("GetLineage", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), + (LineageEntity) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(LineageEntity))); + } + + /// + /// Gets a lineage query + /// + /// Thrown when fails to make API call + /// The id of the lineage query. + /// The id of the node where this query exists if clustered. (optional) + /// Task of LineageEntity + public async System.Threading.Tasks.Task GetLineageAsync (string id, string clusterNodeId = null) + { + ApiResponse localVarResponse = await this.GetLineageAsyncWithHttpInfo(id, clusterNodeId); + return localVarResponse.Data; + + } + + /// + /// Gets a lineage query + /// + /// Thrown when fails to make API call + /// The id of the lineage query. + /// The id of the node where this query exists if clustered. (optional) + /// Task of ApiResponse (LineageEntity) + public async System.Threading.Tasks.Task> GetLineageAsyncWithHttpInfo (string id, string clusterNodeId = null) + { + // verify the required parameter 'id' is set + if (id == null) + throw new ApiException(400, "Missing required parameter 'id' when calling ProvenanceApi->GetLineage"); + + var localVarPath = "/provenance/lineage/{id}"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "*/*" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter + if (clusterNodeId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "clusterNodeId", clusterNodeId)); // query parameter + + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (this.ExceptionFactory != null) + { + Exception exception = this.ExceptionFactory("GetLineage", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), + (LineageEntity) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(LineageEntity))); + } + + /// + /// Gets a provenance query + /// + /// Thrown when fails to make API call + /// The id of the provenance query. + /// The id of the node where this query exists if clustered. (optional) + /// Whether or not incremental results are returned. If false, provenance events are only returned once the query completes. This property is true by default. (optional, default to false) + /// Whether or not to summarize provenance events returned. This property is false by default. (optional, default to true) + /// ProvenanceEntity + public ProvenanceEntity GetProvenance (string id, string clusterNodeId = null, bool? summarize = null, bool? incrementalResults = null) + { + ApiResponse localVarResponse = this.GetProvenanceWithHttpInfo(id, clusterNodeId, summarize, incrementalResults); + return localVarResponse.Data; + } + + /// + /// Gets a provenance query + /// + /// Thrown when fails to make API call + /// The id of the provenance query. + /// The id of the node where this query exists if clustered. (optional) + /// Whether or not incremental results are returned. If false, provenance events are only returned once the query completes. This property is true by default. (optional, default to false) + /// Whether or not to summarize provenance events returned. This property is false by default. (optional, default to true) + /// ApiResponse of ProvenanceEntity + public ApiResponse< ProvenanceEntity > GetProvenanceWithHttpInfo (string id, string clusterNodeId = null, bool? summarize = null, bool? incrementalResults = null) + { + // verify the required parameter 'id' is set + if (id == null) + throw new ApiException(400, "Missing required parameter 'id' when calling ProvenanceApi->GetProvenance"); + + var localVarPath = "/provenance/{id}"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "*/*" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter + if (clusterNodeId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "clusterNodeId", clusterNodeId)); // query parameter + if (summarize != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "summarize", summarize)); // query parameter + if (incrementalResults != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "incrementalResults", incrementalResults)); // query parameter + + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (this.ExceptionFactory != null) + { + Exception exception = this.ExceptionFactory("GetProvenance", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), + (ProvenanceEntity) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(ProvenanceEntity))); + } + + /// + /// Gets a provenance query + /// + /// Thrown when fails to make API call + /// The id of the provenance query. + /// The id of the node where this query exists if clustered. (optional) + /// Whether or not incremental results are returned. If false, provenance events are only returned once the query completes. This property is true by default. (optional, default to false) + /// Whether or not to summarize provenance events returned. This property is false by default. (optional, default to true) + /// Task of ProvenanceEntity + public async System.Threading.Tasks.Task GetProvenanceAsync (string id, string clusterNodeId = null, bool? summarize = null, bool? incrementalResults = null) + { + ApiResponse localVarResponse = await this.GetProvenanceAsyncWithHttpInfo(id, clusterNodeId, summarize, incrementalResults); + return localVarResponse.Data; + + } + + /// + /// Gets a provenance query + /// + /// Thrown when fails to make API call + /// The id of the provenance query. + /// The id of the node where this query exists if clustered. (optional) + /// Whether or not incremental results are returned. If false, provenance events are only returned once the query completes. This property is true by default. (optional, default to false) + /// Whether or not to summarize provenance events returned. This property is false by default. (optional, default to true) + /// Task of ApiResponse (ProvenanceEntity) + public async System.Threading.Tasks.Task> GetProvenanceAsyncWithHttpInfo (string id, string clusterNodeId = null, bool? summarize = null, bool? incrementalResults = null) + { + // verify the required parameter 'id' is set + if (id == null) + throw new ApiException(400, "Missing required parameter 'id' when calling ProvenanceApi->GetProvenance"); + + var localVarPath = "/provenance/{id}"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "*/*" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter + if (clusterNodeId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "clusterNodeId", clusterNodeId)); // query parameter + if (summarize != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "summarize", summarize)); // query parameter + if (incrementalResults != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "incrementalResults", incrementalResults)); // query parameter + + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (this.ExceptionFactory != null) + { + Exception exception = this.ExceptionFactory("GetProvenance", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), + (ProvenanceEntity) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(ProvenanceEntity))); + } + + /// + /// Gets the searchable attributes for provenance events + /// + /// Thrown when fails to make API call + /// ProvenanceOptionsEntity + public ProvenanceOptionsEntity GetSearchOptions () + { + ApiResponse localVarResponse = this.GetSearchOptionsWithHttpInfo(); + return localVarResponse.Data; + } + + /// + /// Gets the searchable attributes for provenance events + /// + /// Thrown when fails to make API call + /// ApiResponse of ProvenanceOptionsEntity + public ApiResponse< ProvenanceOptionsEntity > GetSearchOptionsWithHttpInfo () + { + + var localVarPath = "/provenance/search-options"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "*/*" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (this.ExceptionFactory != null) + { + Exception exception = this.ExceptionFactory("GetSearchOptions", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), + (ProvenanceOptionsEntity) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(ProvenanceOptionsEntity))); + } + + /// + /// Gets the searchable attributes for provenance events + /// + /// Thrown when fails to make API call + /// Task of ProvenanceOptionsEntity + public async System.Threading.Tasks.Task GetSearchOptionsAsync () + { + ApiResponse localVarResponse = await this.GetSearchOptionsAsyncWithHttpInfo(); + return localVarResponse.Data; + + } + + /// + /// Gets the searchable attributes for provenance events + /// + /// Thrown when fails to make API call + /// Task of ApiResponse (ProvenanceOptionsEntity) + public async System.Threading.Tasks.Task> GetSearchOptionsAsyncWithHttpInfo () + { + + var localVarPath = "/provenance/search-options"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "*/*" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (this.ExceptionFactory != null) + { + Exception exception = this.ExceptionFactory("GetSearchOptions", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), + (ProvenanceOptionsEntity) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(ProvenanceOptionsEntity))); + } + + /// + /// Submits a lineage query Lineage queries may be long running so this endpoint submits a request. The response will include the current state of the query. If the request is not completed the URI in the response can be used at a later time to get the updated state of the query. Once the query has completed the lineage request should be deleted by the client who originally submitted it. + /// + /// Thrown when fails to make API call + /// The lineage query details. + /// LineageEntity + public LineageEntity SubmitLineageRequest (LineageEntity body) + { + ApiResponse localVarResponse = this.SubmitLineageRequestWithHttpInfo(body); + return localVarResponse.Data; + } + + /// + /// Submits a lineage query Lineage queries may be long running so this endpoint submits a request. The response will include the current state of the query. If the request is not completed the URI in the response can be used at a later time to get the updated state of the query. Once the query has completed the lineage request should be deleted by the client who originally submitted it. + /// + /// Thrown when fails to make API call + /// The lineage query details. + /// ApiResponse of LineageEntity + public ApiResponse< LineageEntity > SubmitLineageRequestWithHttpInfo (LineageEntity body) + { + // verify the required parameter 'body' is set + if (body == null) + throw new ApiException(400, "Missing required parameter 'body' when calling ProvenanceApi->SubmitLineageRequest"); + + var localVarPath = "/provenance/lineage"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "application/json" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (body != null && body.GetType() != typeof(byte[])) + { + localVarPostBody = this.Configuration.ApiClient.Serialize(body); // http body (model) parameter + } + else + { + localVarPostBody = body; // byte array + } + + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (this.ExceptionFactory != null) + { + Exception exception = this.ExceptionFactory("SubmitLineageRequest", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), + (LineageEntity) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(LineageEntity))); + } + + /// + /// Submits a lineage query Lineage queries may be long running so this endpoint submits a request. The response will include the current state of the query. If the request is not completed the URI in the response can be used at a later time to get the updated state of the query. Once the query has completed the lineage request should be deleted by the client who originally submitted it. + /// + /// Thrown when fails to make API call + /// The lineage query details. + /// Task of LineageEntity + public async System.Threading.Tasks.Task SubmitLineageRequestAsync (LineageEntity body) + { + ApiResponse localVarResponse = await this.SubmitLineageRequestAsyncWithHttpInfo(body); + return localVarResponse.Data; + + } + + /// + /// Submits a lineage query Lineage queries may be long running so this endpoint submits a request. The response will include the current state of the query. If the request is not completed the URI in the response can be used at a later time to get the updated state of the query. Once the query has completed the lineage request should be deleted by the client who originally submitted it. + /// + /// Thrown when fails to make API call + /// The lineage query details. + /// Task of ApiResponse (LineageEntity) + public async System.Threading.Tasks.Task> SubmitLineageRequestAsyncWithHttpInfo (LineageEntity body) + { + // verify the required parameter 'body' is set + if (body == null) + throw new ApiException(400, "Missing required parameter 'body' when calling ProvenanceApi->SubmitLineageRequest"); + + var localVarPath = "/provenance/lineage"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "application/json" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (body != null && body.GetType() != typeof(byte[])) + { + localVarPostBody = this.Configuration.ApiClient.Serialize(body); // http body (model) parameter + } + else + { + localVarPostBody = body; // byte array + } + + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (this.ExceptionFactory != null) + { + Exception exception = this.ExceptionFactory("SubmitLineageRequest", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), + (LineageEntity) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(LineageEntity))); + } + + /// + /// Submits a provenance query Provenance queries may be long running so this endpoint submits a request. The response will include the current state of the query. If the request is not completed the URI in the response can be used at a later time to get the updated state of the query. Once the query has completed the provenance request should be deleted by the client who originally submitted it. + /// + /// Thrown when fails to make API call + /// The provenance query details. + /// ProvenanceEntity + public ProvenanceEntity SubmitProvenanceRequest (ProvenanceEntity body) + { + ApiResponse localVarResponse = this.SubmitProvenanceRequestWithHttpInfo(body); + return localVarResponse.Data; + } + + /// + /// Submits a provenance query Provenance queries may be long running so this endpoint submits a request. The response will include the current state of the query. If the request is not completed the URI in the response can be used at a later time to get the updated state of the query. Once the query has completed the provenance request should be deleted by the client who originally submitted it. + /// + /// Thrown when fails to make API call + /// The provenance query details. + /// ApiResponse of ProvenanceEntity + public ApiResponse< ProvenanceEntity > SubmitProvenanceRequestWithHttpInfo (ProvenanceEntity body) + { + // verify the required parameter 'body' is set + if (body == null) + throw new ApiException(400, "Missing required parameter 'body' when calling ProvenanceApi->SubmitProvenanceRequest"); + + var localVarPath = "/provenance"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "application/json" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (body != null && body.GetType() != typeof(byte[])) + { + localVarPostBody = this.Configuration.ApiClient.Serialize(body); // http body (model) parameter + } + else + { + localVarPostBody = body; // byte array + } + + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (this.ExceptionFactory != null) + { + Exception exception = this.ExceptionFactory("SubmitProvenanceRequest", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), + (ProvenanceEntity) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(ProvenanceEntity))); + } + + /// + /// Submits a provenance query Provenance queries may be long running so this endpoint submits a request. The response will include the current state of the query. If the request is not completed the URI in the response can be used at a later time to get the updated state of the query. Once the query has completed the provenance request should be deleted by the client who originally submitted it. + /// + /// Thrown when fails to make API call + /// The provenance query details. + /// Task of ProvenanceEntity + public async System.Threading.Tasks.Task SubmitProvenanceRequestAsync (ProvenanceEntity body) + { + ApiResponse localVarResponse = await this.SubmitProvenanceRequestAsyncWithHttpInfo(body); + return localVarResponse.Data; + + } + + /// + /// Submits a provenance query Provenance queries may be long running so this endpoint submits a request. The response will include the current state of the query. If the request is not completed the URI in the response can be used at a later time to get the updated state of the query. Once the query has completed the provenance request should be deleted by the client who originally submitted it. + /// + /// Thrown when fails to make API call + /// The provenance query details. + /// Task of ApiResponse (ProvenanceEntity) + public async System.Threading.Tasks.Task> SubmitProvenanceRequestAsyncWithHttpInfo (ProvenanceEntity body) + { + // verify the required parameter 'body' is set + if (body == null) + throw new ApiException(400, "Missing required parameter 'body' when calling ProvenanceApi->SubmitProvenanceRequest"); + + var localVarPath = "/provenance"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "application/json" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (body != null && body.GetType() != typeof(byte[])) + { + localVarPostBody = this.Configuration.ApiClient.Serialize(body); // http body (model) parameter + } + else + { + localVarPostBody = body; // byte array + } + + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (this.ExceptionFactory != null) + { + Exception exception = this.ExceptionFactory("SubmitProvenanceRequest", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), + (ProvenanceEntity) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(ProvenanceEntity))); + } + + } +} diff --git a/NiFi.Swagger/Api/ProvenanceEventsApi.cs b/NiFi.Swagger/Api/ProvenanceEventsApi.cs new file mode 100644 index 0000000..0fe8fc3 --- /dev/null +++ b/NiFi.Swagger/Api/ProvenanceEventsApi.cs @@ -0,0 +1,884 @@ +/* + * NiFi Rest Api + * + * The Rest Api provides programmatic access to command and control a NiFi instance in real time. Start and stop processors, monitor queues, query provenance data, and more. Each endpoint below includes a description, definitions of the expected input and output, potential response codes, and the authorizations required to invoke each service. + * + * OpenAPI spec version: 1.9.1 + * Contact: dev@nifi.apache.org + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +namespace NiFi.Swagger.Api +{ + using System; + using System.Collections.Generic; + using System.Collections.ObjectModel; + using System.Linq; + + using NiFi.Swagger.Client; + using NiFi.Swagger.Model; + + using RestSharp; + + /// + /// Represents a collection of functions to interact with the API endpoints + /// + public interface IProvenanceEventsApi : IApiAccessor + { + #region Synchronous Operations + /// + /// Gets the input content for a provenance event + /// + /// + /// + /// + /// Thrown when fails to make API call + /// The provenance event id. + /// The id of the node where the content exists if clustered. (optional) + /// StreamingOutput + StreamingOutput GetInputContent (string id, string clusterNodeId = null); + + /// + /// Gets the input content for a provenance event + /// + /// + /// + /// + /// Thrown when fails to make API call + /// The provenance event id. + /// The id of the node where the content exists if clustered. (optional) + /// ApiResponse of StreamingOutput + ApiResponse GetInputContentWithHttpInfo (string id, string clusterNodeId = null); + /// + /// Gets the output content for a provenance event + /// + /// + /// + /// + /// Thrown when fails to make API call + /// The provenance event id. + /// The id of the node where the content exists if clustered. (optional) + /// StreamingOutput + StreamingOutput GetOutputContent (string id, string clusterNodeId = null); + + /// + /// Gets the output content for a provenance event + /// + /// + /// + /// + /// Thrown when fails to make API call + /// The provenance event id. + /// The id of the node where the content exists if clustered. (optional) + /// ApiResponse of StreamingOutput + ApiResponse GetOutputContentWithHttpInfo (string id, string clusterNodeId = null); + /// + /// Gets a provenance event + /// + /// + /// + /// + /// Thrown when fails to make API call + /// The provenance event id. + /// The id of the node where this event exists if clustered. (optional) + /// ProvenanceEventEntity + ProvenanceEventEntity GetProvenanceEvent (string id, string clusterNodeId = null); + + /// + /// Gets a provenance event + /// + /// + /// + /// + /// Thrown when fails to make API call + /// The provenance event id. + /// The id of the node where this event exists if clustered. (optional) + /// ApiResponse of ProvenanceEventEntity + ApiResponse GetProvenanceEventWithHttpInfo (string id, string clusterNodeId = null); + /// + /// Replays content from a provenance event + /// + /// + /// + /// + /// Thrown when fails to make API call + /// The replay request. + /// ProvenanceEventEntity + ProvenanceEventEntity SubmitReplay (SubmitReplayRequestEntity body); + + /// + /// Replays content from a provenance event + /// + /// + /// + /// + /// Thrown when fails to make API call + /// The replay request. + /// ApiResponse of ProvenanceEventEntity + ApiResponse SubmitReplayWithHttpInfo (SubmitReplayRequestEntity body); + #endregion Synchronous Operations + #region Asynchronous Operations + /// + /// Gets the input content for a provenance event + /// + /// + /// + /// + /// Thrown when fails to make API call + /// The provenance event id. + /// The id of the node where the content exists if clustered. (optional) + /// Task of StreamingOutput + System.Threading.Tasks.Task GetInputContentAsync (string id, string clusterNodeId = null); + + /// + /// Gets the input content for a provenance event + /// + /// + /// + /// + /// Thrown when fails to make API call + /// The provenance event id. + /// The id of the node where the content exists if clustered. (optional) + /// Task of ApiResponse (StreamingOutput) + System.Threading.Tasks.Task> GetInputContentAsyncWithHttpInfo (string id, string clusterNodeId = null); + /// + /// Gets the output content for a provenance event + /// + /// + /// + /// + /// Thrown when fails to make API call + /// The provenance event id. + /// The id of the node where the content exists if clustered. (optional) + /// Task of StreamingOutput + System.Threading.Tasks.Task GetOutputContentAsync (string id, string clusterNodeId = null); + + /// + /// Gets the output content for a provenance event + /// + /// + /// + /// + /// Thrown when fails to make API call + /// The provenance event id. + /// The id of the node where the content exists if clustered. (optional) + /// Task of ApiResponse (StreamingOutput) + System.Threading.Tasks.Task> GetOutputContentAsyncWithHttpInfo (string id, string clusterNodeId = null); + /// + /// Gets a provenance event + /// + /// + /// + /// + /// Thrown when fails to make API call + /// The provenance event id. + /// The id of the node where this event exists if clustered. (optional) + /// Task of ProvenanceEventEntity + System.Threading.Tasks.Task GetProvenanceEventAsync (string id, string clusterNodeId = null); + + /// + /// Gets a provenance event + /// + /// + /// + /// + /// Thrown when fails to make API call + /// The provenance event id. + /// The id of the node where this event exists if clustered. (optional) + /// Task of ApiResponse (ProvenanceEventEntity) + System.Threading.Tasks.Task> GetProvenanceEventAsyncWithHttpInfo (string id, string clusterNodeId = null); + /// + /// Replays content from a provenance event + /// + /// + /// + /// + /// Thrown when fails to make API call + /// The replay request. + /// Task of ProvenanceEventEntity + System.Threading.Tasks.Task SubmitReplayAsync (SubmitReplayRequestEntity body); + + /// + /// Replays content from a provenance event + /// + /// + /// + /// + /// Thrown when fails to make API call + /// The replay request. + /// Task of ApiResponse (ProvenanceEventEntity) + System.Threading.Tasks.Task> SubmitReplayAsyncWithHttpInfo (SubmitReplayRequestEntity body); + #endregion Asynchronous Operations + } + + /// + /// Represents a collection of functions to interact with the API endpoints + /// + public partial class ProvenanceEventsApi : IProvenanceEventsApi + { + private ExceptionFactory _exceptionFactory = (name, response) => null; + + /// + /// Initializes a new instance of the class. + /// + /// + public ProvenanceEventsApi(String basePath) + { + this.Configuration = new Configuration { BasePath = basePath }; + + this.ExceptionFactory = Configuration.DefaultExceptionFactory; + } + + /// + /// Initializes a new instance of the class + /// using Configuration object + /// + /// An instance of Configuration + /// + public ProvenanceEventsApi(Configuration configuration = null) + { + if (configuration == null) // use the default one in Configuration + this.Configuration = Configuration.Default; + else + this.Configuration = configuration; + + this.ExceptionFactory = Configuration.DefaultExceptionFactory; + } + + /// + /// Gets the base path of the API client. + /// + /// The base path + public String GetBasePath() + { + return this.Configuration.ApiClient.RestClient.BaseUrl.ToString(); + } + + /// + /// Sets the base path of the API client. + /// + /// The base path + [Obsolete("SetBasePath is deprecated, please do 'Configuration.ApiClient = new ApiClient(\"http://new-path\")' instead.")] + public void SetBasePath(String basePath) + { + // do nothing + } + + /// + /// Gets or sets the configuration object + /// + /// An instance of the Configuration + public Configuration Configuration {get; set;} + + /// + /// Provides a factory method hook for the creation of exceptions. + /// + public ExceptionFactory ExceptionFactory + { + get + { + if (this._exceptionFactory != null && this._exceptionFactory.GetInvocationList().Length > 1) + { + throw new InvalidOperationException("Multicast delegate for ExceptionFactory is unsupported."); + } + return this._exceptionFactory; + } + set { this._exceptionFactory = value; } + } + + /// + /// Gets the default header. + /// + /// Dictionary of HTTP header + [Obsolete("DefaultHeader is deprecated, please use Configuration.DefaultHeader instead.")] + public IDictionary DefaultHeader() + { + return new ReadOnlyDictionary(this.Configuration.DefaultHeader); + } + + /// + /// Add default header. + /// + /// Header field name. + /// Header field value. + /// + [Obsolete("AddDefaultHeader is deprecated, please use Configuration.AddDefaultHeader instead.")] + public void AddDefaultHeader(string key, string value) + { + this.Configuration.AddDefaultHeader(key, value); + } + + /// + /// Gets the input content for a provenance event + /// + /// Thrown when fails to make API call + /// The provenance event id. + /// The id of the node where the content exists if clustered. (optional) + /// StreamingOutput + public StreamingOutput GetInputContent (string id, string clusterNodeId = null) + { + ApiResponse localVarResponse = this.GetInputContentWithHttpInfo(id, clusterNodeId); + return localVarResponse.Data; + } + + /// + /// Gets the input content for a provenance event + /// + /// Thrown when fails to make API call + /// The provenance event id. + /// The id of the node where the content exists if clustered. (optional) + /// ApiResponse of StreamingOutput + public ApiResponse< StreamingOutput > GetInputContentWithHttpInfo (string id, string clusterNodeId = null) + { + // verify the required parameter 'id' is set + if (id == null) + throw new ApiException(400, "Missing required parameter 'id' when calling ProvenanceEventsApi->GetInputContent"); + + var localVarPath = "/provenance-events/{id}/content/input"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "*/*" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "*/*" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter + if (clusterNodeId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "clusterNodeId", clusterNodeId)); // query parameter + + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (this.ExceptionFactory != null) + { + Exception exception = this.ExceptionFactory("GetInputContent", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), + (StreamingOutput) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(StreamingOutput))); + } + + /// + /// Gets the input content for a provenance event + /// + /// Thrown when fails to make API call + /// The provenance event id. + /// The id of the node where the content exists if clustered. (optional) + /// Task of StreamingOutput + public async System.Threading.Tasks.Task GetInputContentAsync (string id, string clusterNodeId = null) + { + ApiResponse localVarResponse = await this.GetInputContentAsyncWithHttpInfo(id, clusterNodeId); + return localVarResponse.Data; + + } + + /// + /// Gets the input content for a provenance event + /// + /// Thrown when fails to make API call + /// The provenance event id. + /// The id of the node where the content exists if clustered. (optional) + /// Task of ApiResponse (StreamingOutput) + public async System.Threading.Tasks.Task> GetInputContentAsyncWithHttpInfo (string id, string clusterNodeId = null) + { + // verify the required parameter 'id' is set + if (id == null) + throw new ApiException(400, "Missing required parameter 'id' when calling ProvenanceEventsApi->GetInputContent"); + + var localVarPath = "/provenance-events/{id}/content/input"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "*/*" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "*/*" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter + if (clusterNodeId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "clusterNodeId", clusterNodeId)); // query parameter + + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (this.ExceptionFactory != null) + { + Exception exception = this.ExceptionFactory("GetInputContent", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), + (StreamingOutput) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(StreamingOutput))); + } + + /// + /// Gets the output content for a provenance event + /// + /// Thrown when fails to make API call + /// The provenance event id. + /// The id of the node where the content exists if clustered. (optional) + /// StreamingOutput + public StreamingOutput GetOutputContent (string id, string clusterNodeId = null) + { + ApiResponse localVarResponse = this.GetOutputContentWithHttpInfo(id, clusterNodeId); + return localVarResponse.Data; + } + + /// + /// Gets the output content for a provenance event + /// + /// Thrown when fails to make API call + /// The provenance event id. + /// The id of the node where the content exists if clustered. (optional) + /// ApiResponse of StreamingOutput + public ApiResponse< StreamingOutput > GetOutputContentWithHttpInfo (string id, string clusterNodeId = null) + { + // verify the required parameter 'id' is set + if (id == null) + throw new ApiException(400, "Missing required parameter 'id' when calling ProvenanceEventsApi->GetOutputContent"); + + var localVarPath = "/provenance-events/{id}/content/output"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "*/*" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "*/*" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter + if (clusterNodeId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "clusterNodeId", clusterNodeId)); // query parameter + + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (this.ExceptionFactory != null) + { + Exception exception = this.ExceptionFactory("GetOutputContent", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), + (StreamingOutput) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(StreamingOutput))); + } + + /// + /// Gets the output content for a provenance event + /// + /// Thrown when fails to make API call + /// The provenance event id. + /// The id of the node where the content exists if clustered. (optional) + /// Task of StreamingOutput + public async System.Threading.Tasks.Task GetOutputContentAsync (string id, string clusterNodeId = null) + { + ApiResponse localVarResponse = await this.GetOutputContentAsyncWithHttpInfo(id, clusterNodeId); + return localVarResponse.Data; + + } + + /// + /// Gets the output content for a provenance event + /// + /// Thrown when fails to make API call + /// The provenance event id. + /// The id of the node where the content exists if clustered. (optional) + /// Task of ApiResponse (StreamingOutput) + public async System.Threading.Tasks.Task> GetOutputContentAsyncWithHttpInfo (string id, string clusterNodeId = null) + { + // verify the required parameter 'id' is set + if (id == null) + throw new ApiException(400, "Missing required parameter 'id' when calling ProvenanceEventsApi->GetOutputContent"); + + var localVarPath = "/provenance-events/{id}/content/output"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "*/*" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "*/*" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter + if (clusterNodeId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "clusterNodeId", clusterNodeId)); // query parameter + + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (this.ExceptionFactory != null) + { + Exception exception = this.ExceptionFactory("GetOutputContent", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), + (StreamingOutput) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(StreamingOutput))); + } + + /// + /// Gets a provenance event + /// + /// Thrown when fails to make API call + /// The provenance event id. + /// The id of the node where this event exists if clustered. (optional) + /// ProvenanceEventEntity + public ProvenanceEventEntity GetProvenanceEvent (string id, string clusterNodeId = null) + { + ApiResponse localVarResponse = this.GetProvenanceEventWithHttpInfo(id, clusterNodeId); + return localVarResponse.Data; + } + + /// + /// Gets a provenance event + /// + /// Thrown when fails to make API call + /// The provenance event id. + /// The id of the node where this event exists if clustered. (optional) + /// ApiResponse of ProvenanceEventEntity + public ApiResponse< ProvenanceEventEntity > GetProvenanceEventWithHttpInfo (string id, string clusterNodeId = null) + { + // verify the required parameter 'id' is set + if (id == null) + throw new ApiException(400, "Missing required parameter 'id' when calling ProvenanceEventsApi->GetProvenanceEvent"); + + var localVarPath = "/provenance-events/{id}"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "*/*" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter + if (clusterNodeId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "clusterNodeId", clusterNodeId)); // query parameter + + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (this.ExceptionFactory != null) + { + Exception exception = this.ExceptionFactory("GetProvenanceEvent", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), + (ProvenanceEventEntity) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(ProvenanceEventEntity))); + } + + /// + /// Gets a provenance event + /// + /// Thrown when fails to make API call + /// The provenance event id. + /// The id of the node where this event exists if clustered. (optional) + /// Task of ProvenanceEventEntity + public async System.Threading.Tasks.Task GetProvenanceEventAsync (string id, string clusterNodeId = null) + { + ApiResponse localVarResponse = await this.GetProvenanceEventAsyncWithHttpInfo(id, clusterNodeId); + return localVarResponse.Data; + + } + + /// + /// Gets a provenance event + /// + /// Thrown when fails to make API call + /// The provenance event id. + /// The id of the node where this event exists if clustered. (optional) + /// Task of ApiResponse (ProvenanceEventEntity) + public async System.Threading.Tasks.Task> GetProvenanceEventAsyncWithHttpInfo (string id, string clusterNodeId = null) + { + // verify the required parameter 'id' is set + if (id == null) + throw new ApiException(400, "Missing required parameter 'id' when calling ProvenanceEventsApi->GetProvenanceEvent"); + + var localVarPath = "/provenance-events/{id}"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "*/*" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter + if (clusterNodeId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "clusterNodeId", clusterNodeId)); // query parameter + + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (this.ExceptionFactory != null) + { + Exception exception = this.ExceptionFactory("GetProvenanceEvent", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), + (ProvenanceEventEntity) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(ProvenanceEventEntity))); + } + + /// + /// Replays content from a provenance event + /// + /// Thrown when fails to make API call + /// The replay request. + /// ProvenanceEventEntity + public ProvenanceEventEntity SubmitReplay (SubmitReplayRequestEntity body) + { + ApiResponse localVarResponse = this.SubmitReplayWithHttpInfo(body); + return localVarResponse.Data; + } + + /// + /// Replays content from a provenance event + /// + /// Thrown when fails to make API call + /// The replay request. + /// ApiResponse of ProvenanceEventEntity + public ApiResponse< ProvenanceEventEntity > SubmitReplayWithHttpInfo (SubmitReplayRequestEntity body) + { + // verify the required parameter 'body' is set + if (body == null) + throw new ApiException(400, "Missing required parameter 'body' when calling ProvenanceEventsApi->SubmitReplay"); + + var localVarPath = "/provenance-events/replays"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "application/json" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (body != null && body.GetType() != typeof(byte[])) + { + localVarPostBody = this.Configuration.ApiClient.Serialize(body); // http body (model) parameter + } + else + { + localVarPostBody = body; // byte array + } + + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (this.ExceptionFactory != null) + { + Exception exception = this.ExceptionFactory("SubmitReplay", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), + (ProvenanceEventEntity) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(ProvenanceEventEntity))); + } + + /// + /// Replays content from a provenance event + /// + /// Thrown when fails to make API call + /// The replay request. + /// Task of ProvenanceEventEntity + public async System.Threading.Tasks.Task SubmitReplayAsync (SubmitReplayRequestEntity body) + { + ApiResponse localVarResponse = await this.SubmitReplayAsyncWithHttpInfo(body); + return localVarResponse.Data; + + } + + /// + /// Replays content from a provenance event + /// + /// Thrown when fails to make API call + /// The replay request. + /// Task of ApiResponse (ProvenanceEventEntity) + public async System.Threading.Tasks.Task> SubmitReplayAsyncWithHttpInfo (SubmitReplayRequestEntity body) + { + // verify the required parameter 'body' is set + if (body == null) + throw new ApiException(400, "Missing required parameter 'body' when calling ProvenanceEventsApi->SubmitReplay"); + + var localVarPath = "/provenance-events/replays"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "application/json" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (body != null && body.GetType() != typeof(byte[])) + { + localVarPostBody = this.Configuration.ApiClient.Serialize(body); // http body (model) parameter + } + else + { + localVarPostBody = body; // byte array + } + + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (this.ExceptionFactory != null) + { + Exception exception = this.ExceptionFactory("SubmitReplay", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), + (ProvenanceEventEntity) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(ProvenanceEventEntity))); + } + + } +} diff --git a/NiFi.Swagger/Api/RemoteProcessGroupsApi.cs b/NiFi.Swagger/Api/RemoteProcessGroupsApi.cs new file mode 100644 index 0000000..142a2e1 --- /dev/null +++ b/NiFi.Swagger/Api/RemoteProcessGroupsApi.cs @@ -0,0 +1,1822 @@ +/* + * NiFi Rest Api + * + * The Rest Api provides programmatic access to command and control a NiFi instance in real time. Start and stop processors, monitor queues, query provenance data, and more. Each endpoint below includes a description, definitions of the expected input and output, potential response codes, and the authorizations required to invoke each service. + * + * OpenAPI spec version: 1.9.1 + * Contact: dev@nifi.apache.org + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +namespace NiFi.Swagger.Api +{ + using System; + using System.Collections.Generic; + using System.Collections.ObjectModel; + using System.Linq; + + using NiFi.Swagger.Client; + using NiFi.Swagger.Model; + + using RestSharp; + + /// + /// Represents a collection of functions to interact with the API endpoints + /// + public interface IRemoteProcessGroupsApi : IApiAccessor + { + #region Synchronous Operations + /// + /// Gets a remote process group + /// + /// + /// + /// + /// Thrown when fails to make API call + /// The remote process group id. + /// RemoteProcessGroupEntity + RemoteProcessGroupEntity GetRemoteProcessGroup (string id); + + /// + /// Gets a remote process group + /// + /// + /// + /// + /// Thrown when fails to make API call + /// The remote process group id. + /// ApiResponse of RemoteProcessGroupEntity + ApiResponse GetRemoteProcessGroupWithHttpInfo (string id); + /// + /// Deletes a remote process group + /// + /// + /// + /// + /// Thrown when fails to make API call + /// The remote process group id. + /// The revision is used to verify the client is working with the latest version of the flow. (optional) + /// If the client id is not specified, new one will be generated. This value (whether specified or generated) is included in the response. (optional) + /// Acknowledges that this node is disconnected to allow for mutable requests to proceed. (optional, default to false) + /// RemoteProcessGroupEntity + RemoteProcessGroupEntity RemoveRemoteProcessGroup (string id, string version = null, string clientId = null, bool? disconnectedNodeAcknowledged = null); + + /// + /// Deletes a remote process group + /// + /// + /// + /// + /// Thrown when fails to make API call + /// The remote process group id. + /// The revision is used to verify the client is working with the latest version of the flow. (optional) + /// If the client id is not specified, new one will be generated. This value (whether specified or generated) is included in the response. (optional) + /// Acknowledges that this node is disconnected to allow for mutable requests to proceed. (optional, default to false) + /// ApiResponse of RemoteProcessGroupEntity + ApiResponse RemoveRemoteProcessGroupWithHttpInfo (string id, string version = null, string clientId = null, bool? disconnectedNodeAcknowledged = null); + /// + /// Updates a remote process group + /// + /// + /// + /// + /// Thrown when fails to make API call + /// The remote process group id. + /// The remote process group. + /// RemoteProcessGroupEntity + RemoteProcessGroupEntity UpdateRemoteProcessGroup (string id, RemoteProcessGroupEntity body); + + /// + /// Updates a remote process group + /// + /// + /// + /// + /// Thrown when fails to make API call + /// The remote process group id. + /// The remote process group. + /// ApiResponse of RemoteProcessGroupEntity + ApiResponse UpdateRemoteProcessGroupWithHttpInfo (string id, RemoteProcessGroupEntity body); + /// + /// Updates a remote port + /// + /// + /// Note: This endpoint is subject to change as NiFi and it's REST API evolve. + /// + /// Thrown when fails to make API call + /// The remote process group id. + /// The remote process group port id. + /// The remote process group port. + /// RemoteProcessGroupPortEntity + RemoteProcessGroupPortEntity UpdateRemoteProcessGroupInputPort (string id, string portId, RemoteProcessGroupPortEntity body); + + /// + /// Updates a remote port + /// + /// + /// Note: This endpoint is subject to change as NiFi and it's REST API evolve. + /// + /// Thrown when fails to make API call + /// The remote process group id. + /// The remote process group port id. + /// The remote process group port. + /// ApiResponse of RemoteProcessGroupPortEntity + ApiResponse UpdateRemoteProcessGroupInputPortWithHttpInfo (string id, string portId, RemoteProcessGroupPortEntity body); + /// + /// Updates run status of a remote port + /// + /// + /// Note: This endpoint is subject to change as NiFi and it's REST API evolve. + /// + /// Thrown when fails to make API call + /// The remote process group id. + /// The remote process group port id. + /// The remote process group port. + /// RemoteProcessGroupPortEntity + RemoteProcessGroupPortEntity UpdateRemoteProcessGroupInputPortRunStatus (string id, string portId, RemotePortRunStatusEntity body); + + /// + /// Updates run status of a remote port + /// + /// + /// Note: This endpoint is subject to change as NiFi and it's REST API evolve. + /// + /// Thrown when fails to make API call + /// The remote process group id. + /// The remote process group port id. + /// The remote process group port. + /// ApiResponse of RemoteProcessGroupPortEntity + ApiResponse UpdateRemoteProcessGroupInputPortRunStatusWithHttpInfo (string id, string portId, RemotePortRunStatusEntity body); + /// + /// Updates a remote port + /// + /// + /// Note: This endpoint is subject to change as NiFi and it's REST API evolve. + /// + /// Thrown when fails to make API call + /// The remote process group id. + /// The remote process group port id. + /// The remote process group port. + /// RemoteProcessGroupPortEntity + RemoteProcessGroupPortEntity UpdateRemoteProcessGroupOutputPort (string id, string portId, RemoteProcessGroupPortEntity body); + + /// + /// Updates a remote port + /// + /// + /// Note: This endpoint is subject to change as NiFi and it's REST API evolve. + /// + /// Thrown when fails to make API call + /// The remote process group id. + /// The remote process group port id. + /// The remote process group port. + /// ApiResponse of RemoteProcessGroupPortEntity + ApiResponse UpdateRemoteProcessGroupOutputPortWithHttpInfo (string id, string portId, RemoteProcessGroupPortEntity body); + /// + /// Updates run status of a remote port + /// + /// + /// Note: This endpoint is subject to change as NiFi and it's REST API evolve. + /// + /// Thrown when fails to make API call + /// The remote process group id. + /// The remote process group port id. + /// The remote process group port. + /// RemoteProcessGroupPortEntity + RemoteProcessGroupPortEntity UpdateRemoteProcessGroupOutputPortRunStatus (string id, string portId, RemotePortRunStatusEntity body); + + /// + /// Updates run status of a remote port + /// + /// + /// Note: This endpoint is subject to change as NiFi and it's REST API evolve. + /// + /// Thrown when fails to make API call + /// The remote process group id. + /// The remote process group port id. + /// The remote process group port. + /// ApiResponse of RemoteProcessGroupPortEntity + ApiResponse UpdateRemoteProcessGroupOutputPortRunStatusWithHttpInfo (string id, string portId, RemotePortRunStatusEntity body); + /// + /// Updates run status of a remote process group + /// + /// + /// + /// + /// Thrown when fails to make API call + /// The remote process group id. + /// The remote process group run status. + /// RemoteProcessGroupEntity + RemoteProcessGroupEntity UpdateRemoteProcessGroupRunStatus (string id, RemotePortRunStatusEntity body); + + /// + /// Updates run status of a remote process group + /// + /// + /// + /// + /// Thrown when fails to make API call + /// The remote process group id. + /// The remote process group run status. + /// ApiResponse of RemoteProcessGroupEntity + ApiResponse UpdateRemoteProcessGroupRunStatusWithHttpInfo (string id, RemotePortRunStatusEntity body); + #endregion Synchronous Operations + #region Asynchronous Operations + /// + /// Gets a remote process group + /// + /// + /// + /// + /// Thrown when fails to make API call + /// The remote process group id. + /// Task of RemoteProcessGroupEntity + System.Threading.Tasks.Task GetRemoteProcessGroupAsync (string id); + + /// + /// Gets a remote process group + /// + /// + /// + /// + /// Thrown when fails to make API call + /// The remote process group id. + /// Task of ApiResponse (RemoteProcessGroupEntity) + System.Threading.Tasks.Task> GetRemoteProcessGroupAsyncWithHttpInfo (string id); + /// + /// Deletes a remote process group + /// + /// + /// + /// + /// Thrown when fails to make API call + /// The remote process group id. + /// The revision is used to verify the client is working with the latest version of the flow. (optional) + /// If the client id is not specified, new one will be generated. This value (whether specified or generated) is included in the response. (optional) + /// Acknowledges that this node is disconnected to allow for mutable requests to proceed. (optional, default to false) + /// Task of RemoteProcessGroupEntity + System.Threading.Tasks.Task RemoveRemoteProcessGroupAsync (string id, string version = null, string clientId = null, bool? disconnectedNodeAcknowledged = null); + + /// + /// Deletes a remote process group + /// + /// + /// + /// + /// Thrown when fails to make API call + /// The remote process group id. + /// The revision is used to verify the client is working with the latest version of the flow. (optional) + /// If the client id is not specified, new one will be generated. This value (whether specified or generated) is included in the response. (optional) + /// Acknowledges that this node is disconnected to allow for mutable requests to proceed. (optional, default to false) + /// Task of ApiResponse (RemoteProcessGroupEntity) + System.Threading.Tasks.Task> RemoveRemoteProcessGroupAsyncWithHttpInfo (string id, string version = null, string clientId = null, bool? disconnectedNodeAcknowledged = null); + /// + /// Updates a remote process group + /// + /// + /// + /// + /// Thrown when fails to make API call + /// The remote process group id. + /// The remote process group. + /// Task of RemoteProcessGroupEntity + System.Threading.Tasks.Task UpdateRemoteProcessGroupAsync (string id, RemoteProcessGroupEntity body); + + /// + /// Updates a remote process group + /// + /// + /// + /// + /// Thrown when fails to make API call + /// The remote process group id. + /// The remote process group. + /// Task of ApiResponse (RemoteProcessGroupEntity) + System.Threading.Tasks.Task> UpdateRemoteProcessGroupAsyncWithHttpInfo (string id, RemoteProcessGroupEntity body); + /// + /// Updates a remote port + /// + /// + /// Note: This endpoint is subject to change as NiFi and it's REST API evolve. + /// + /// Thrown when fails to make API call + /// The remote process group id. + /// The remote process group port id. + /// The remote process group port. + /// Task of RemoteProcessGroupPortEntity + System.Threading.Tasks.Task UpdateRemoteProcessGroupInputPortAsync (string id, string portId, RemoteProcessGroupPortEntity body); + + /// + /// Updates a remote port + /// + /// + /// Note: This endpoint is subject to change as NiFi and it's REST API evolve. + /// + /// Thrown when fails to make API call + /// The remote process group id. + /// The remote process group port id. + /// The remote process group port. + /// Task of ApiResponse (RemoteProcessGroupPortEntity) + System.Threading.Tasks.Task> UpdateRemoteProcessGroupInputPortAsyncWithHttpInfo (string id, string portId, RemoteProcessGroupPortEntity body); + /// + /// Updates run status of a remote port + /// + /// + /// Note: This endpoint is subject to change as NiFi and it's REST API evolve. + /// + /// Thrown when fails to make API call + /// The remote process group id. + /// The remote process group port id. + /// The remote process group port. + /// Task of RemoteProcessGroupPortEntity + System.Threading.Tasks.Task UpdateRemoteProcessGroupInputPortRunStatusAsync (string id, string portId, RemotePortRunStatusEntity body); + + /// + /// Updates run status of a remote port + /// + /// + /// Note: This endpoint is subject to change as NiFi and it's REST API evolve. + /// + /// Thrown when fails to make API call + /// The remote process group id. + /// The remote process group port id. + /// The remote process group port. + /// Task of ApiResponse (RemoteProcessGroupPortEntity) + System.Threading.Tasks.Task> UpdateRemoteProcessGroupInputPortRunStatusAsyncWithHttpInfo (string id, string portId, RemotePortRunStatusEntity body); + /// + /// Updates a remote port + /// + /// + /// Note: This endpoint is subject to change as NiFi and it's REST API evolve. + /// + /// Thrown when fails to make API call + /// The remote process group id. + /// The remote process group port id. + /// The remote process group port. + /// Task of RemoteProcessGroupPortEntity + System.Threading.Tasks.Task UpdateRemoteProcessGroupOutputPortAsync (string id, string portId, RemoteProcessGroupPortEntity body); + + /// + /// Updates a remote port + /// + /// + /// Note: This endpoint is subject to change as NiFi and it's REST API evolve. + /// + /// Thrown when fails to make API call + /// The remote process group id. + /// The remote process group port id. + /// The remote process group port. + /// Task of ApiResponse (RemoteProcessGroupPortEntity) + System.Threading.Tasks.Task> UpdateRemoteProcessGroupOutputPortAsyncWithHttpInfo (string id, string portId, RemoteProcessGroupPortEntity body); + /// + /// Updates run status of a remote port + /// + /// + /// Note: This endpoint is subject to change as NiFi and it's REST API evolve. + /// + /// Thrown when fails to make API call + /// The remote process group id. + /// The remote process group port id. + /// The remote process group port. + /// Task of RemoteProcessGroupPortEntity + System.Threading.Tasks.Task UpdateRemoteProcessGroupOutputPortRunStatusAsync (string id, string portId, RemotePortRunStatusEntity body); + + /// + /// Updates run status of a remote port + /// + /// + /// Note: This endpoint is subject to change as NiFi and it's REST API evolve. + /// + /// Thrown when fails to make API call + /// The remote process group id. + /// The remote process group port id. + /// The remote process group port. + /// Task of ApiResponse (RemoteProcessGroupPortEntity) + System.Threading.Tasks.Task> UpdateRemoteProcessGroupOutputPortRunStatusAsyncWithHttpInfo (string id, string portId, RemotePortRunStatusEntity body); + /// + /// Updates run status of a remote process group + /// + /// + /// + /// + /// Thrown when fails to make API call + /// The remote process group id. + /// The remote process group run status. + /// Task of RemoteProcessGroupEntity + System.Threading.Tasks.Task UpdateRemoteProcessGroupRunStatusAsync (string id, RemotePortRunStatusEntity body); + + /// + /// Updates run status of a remote process group + /// + /// + /// + /// + /// Thrown when fails to make API call + /// The remote process group id. + /// The remote process group run status. + /// Task of ApiResponse (RemoteProcessGroupEntity) + System.Threading.Tasks.Task> UpdateRemoteProcessGroupRunStatusAsyncWithHttpInfo (string id, RemotePortRunStatusEntity body); + #endregion Asynchronous Operations + } + + /// + /// Represents a collection of functions to interact with the API endpoints + /// + public partial class RemoteProcessGroupsApi : IRemoteProcessGroupsApi + { + private ExceptionFactory _exceptionFactory = (name, response) => null; + + /// + /// Initializes a new instance of the class. + /// + /// + public RemoteProcessGroupsApi(String basePath) + { + this.Configuration = new Configuration { BasePath = basePath }; + + this.ExceptionFactory = Configuration.DefaultExceptionFactory; + } + + /// + /// Initializes a new instance of the class + /// using Configuration object + /// + /// An instance of Configuration + /// + public RemoteProcessGroupsApi(Configuration configuration = null) + { + if (configuration == null) // use the default one in Configuration + this.Configuration = Configuration.Default; + else + this.Configuration = configuration; + + this.ExceptionFactory = Configuration.DefaultExceptionFactory; + } + + /// + /// Gets the base path of the API client. + /// + /// The base path + public String GetBasePath() + { + return this.Configuration.ApiClient.RestClient.BaseUrl.ToString(); + } + + /// + /// Sets the base path of the API client. + /// + /// The base path + [Obsolete("SetBasePath is deprecated, please do 'Configuration.ApiClient = new ApiClient(\"http://new-path\")' instead.")] + public void SetBasePath(String basePath) + { + // do nothing + } + + /// + /// Gets or sets the configuration object + /// + /// An instance of the Configuration + public Configuration Configuration {get; set;} + + /// + /// Provides a factory method hook for the creation of exceptions. + /// + public ExceptionFactory ExceptionFactory + { + get + { + if (this._exceptionFactory != null && this._exceptionFactory.GetInvocationList().Length > 1) + { + throw new InvalidOperationException("Multicast delegate for ExceptionFactory is unsupported."); + } + return this._exceptionFactory; + } + set { this._exceptionFactory = value; } + } + + /// + /// Gets the default header. + /// + /// Dictionary of HTTP header + [Obsolete("DefaultHeader is deprecated, please use Configuration.DefaultHeader instead.")] + public IDictionary DefaultHeader() + { + return new ReadOnlyDictionary(this.Configuration.DefaultHeader); + } + + /// + /// Add default header. + /// + /// Header field name. + /// Header field value. + /// + [Obsolete("AddDefaultHeader is deprecated, please use Configuration.AddDefaultHeader instead.")] + public void AddDefaultHeader(string key, string value) + { + this.Configuration.AddDefaultHeader(key, value); + } + + /// + /// Gets a remote process group + /// + /// Thrown when fails to make API call + /// The remote process group id. + /// RemoteProcessGroupEntity + public RemoteProcessGroupEntity GetRemoteProcessGroup (string id) + { + ApiResponse localVarResponse = this.GetRemoteProcessGroupWithHttpInfo(id); + return localVarResponse.Data; + } + + /// + /// Gets a remote process group + /// + /// Thrown when fails to make API call + /// The remote process group id. + /// ApiResponse of RemoteProcessGroupEntity + public ApiResponse< RemoteProcessGroupEntity > GetRemoteProcessGroupWithHttpInfo (string id) + { + // verify the required parameter 'id' is set + if (id == null) + throw new ApiException(400, "Missing required parameter 'id' when calling RemoteProcessGroupsApi->GetRemoteProcessGroup"); + + var localVarPath = "/remote-process-groups/{id}"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "*/*" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter + + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (this.ExceptionFactory != null) + { + Exception exception = this.ExceptionFactory("GetRemoteProcessGroup", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), + (RemoteProcessGroupEntity) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RemoteProcessGroupEntity))); + } + + /// + /// Gets a remote process group + /// + /// Thrown when fails to make API call + /// The remote process group id. + /// Task of RemoteProcessGroupEntity + public async System.Threading.Tasks.Task GetRemoteProcessGroupAsync (string id) + { + ApiResponse localVarResponse = await this.GetRemoteProcessGroupAsyncWithHttpInfo(id); + return localVarResponse.Data; + + } + + /// + /// Gets a remote process group + /// + /// Thrown when fails to make API call + /// The remote process group id. + /// Task of ApiResponse (RemoteProcessGroupEntity) + public async System.Threading.Tasks.Task> GetRemoteProcessGroupAsyncWithHttpInfo (string id) + { + // verify the required parameter 'id' is set + if (id == null) + throw new ApiException(400, "Missing required parameter 'id' when calling RemoteProcessGroupsApi->GetRemoteProcessGroup"); + + var localVarPath = "/remote-process-groups/{id}"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "*/*" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter + + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (this.ExceptionFactory != null) + { + Exception exception = this.ExceptionFactory("GetRemoteProcessGroup", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), + (RemoteProcessGroupEntity) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RemoteProcessGroupEntity))); + } + + /// + /// Deletes a remote process group + /// + /// Thrown when fails to make API call + /// The remote process group id. + /// The revision is used to verify the client is working with the latest version of the flow. (optional) + /// If the client id is not specified, new one will be generated. This value (whether specified or generated) is included in the response. (optional) + /// Acknowledges that this node is disconnected to allow for mutable requests to proceed. (optional, default to false) + /// RemoteProcessGroupEntity + public RemoteProcessGroupEntity RemoveRemoteProcessGroup (string id, string version = null, string clientId = null, bool? disconnectedNodeAcknowledged = null) + { + ApiResponse localVarResponse = this.RemoveRemoteProcessGroupWithHttpInfo(id, version, clientId, disconnectedNodeAcknowledged); + return localVarResponse.Data; + } + + /// + /// Deletes a remote process group + /// + /// Thrown when fails to make API call + /// The remote process group id. + /// The revision is used to verify the client is working with the latest version of the flow. (optional) + /// If the client id is not specified, new one will be generated. This value (whether specified or generated) is included in the response. (optional) + /// Acknowledges that this node is disconnected to allow for mutable requests to proceed. (optional, default to false) + /// ApiResponse of RemoteProcessGroupEntity + public ApiResponse< RemoteProcessGroupEntity > RemoveRemoteProcessGroupWithHttpInfo (string id, string version = null, string clientId = null, bool? disconnectedNodeAcknowledged = null) + { + // verify the required parameter 'id' is set + if (id == null) + throw new ApiException(400, "Missing required parameter 'id' when calling RemoteProcessGroupsApi->RemoveRemoteProcessGroup"); + + var localVarPath = "/remote-process-groups/{id}"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "*/*" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter + if (version != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "version", version)); // query parameter + if (clientId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "clientId", clientId)); // query parameter + if (disconnectedNodeAcknowledged != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "disconnectedNodeAcknowledged", disconnectedNodeAcknowledged)); // query parameter + + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.DELETE, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (this.ExceptionFactory != null) + { + Exception exception = this.ExceptionFactory("RemoveRemoteProcessGroup", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), + (RemoteProcessGroupEntity) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RemoteProcessGroupEntity))); + } + + /// + /// Deletes a remote process group + /// + /// Thrown when fails to make API call + /// The remote process group id. + /// The revision is used to verify the client is working with the latest version of the flow. (optional) + /// If the client id is not specified, new one will be generated. This value (whether specified or generated) is included in the response. (optional) + /// Acknowledges that this node is disconnected to allow for mutable requests to proceed. (optional, default to false) + /// Task of RemoteProcessGroupEntity + public async System.Threading.Tasks.Task RemoveRemoteProcessGroupAsync (string id, string version = null, string clientId = null, bool? disconnectedNodeAcknowledged = null) + { + ApiResponse localVarResponse = await this.RemoveRemoteProcessGroupAsyncWithHttpInfo(id, version, clientId, disconnectedNodeAcknowledged); + return localVarResponse.Data; + + } + + /// + /// Deletes a remote process group + /// + /// Thrown when fails to make API call + /// The remote process group id. + /// The revision is used to verify the client is working with the latest version of the flow. (optional) + /// If the client id is not specified, new one will be generated. This value (whether specified or generated) is included in the response. (optional) + /// Acknowledges that this node is disconnected to allow for mutable requests to proceed. (optional, default to false) + /// Task of ApiResponse (RemoteProcessGroupEntity) + public async System.Threading.Tasks.Task> RemoveRemoteProcessGroupAsyncWithHttpInfo (string id, string version = null, string clientId = null, bool? disconnectedNodeAcknowledged = null) + { + // verify the required parameter 'id' is set + if (id == null) + throw new ApiException(400, "Missing required parameter 'id' when calling RemoteProcessGroupsApi->RemoveRemoteProcessGroup"); + + var localVarPath = "/remote-process-groups/{id}"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "*/*" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter + if (version != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "version", version)); // query parameter + if (clientId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "clientId", clientId)); // query parameter + if (disconnectedNodeAcknowledged != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "disconnectedNodeAcknowledged", disconnectedNodeAcknowledged)); // query parameter + + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.DELETE, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (this.ExceptionFactory != null) + { + Exception exception = this.ExceptionFactory("RemoveRemoteProcessGroup", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), + (RemoteProcessGroupEntity) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RemoteProcessGroupEntity))); + } + + /// + /// Updates a remote process group + /// + /// Thrown when fails to make API call + /// The remote process group id. + /// The remote process group. + /// RemoteProcessGroupEntity + public RemoteProcessGroupEntity UpdateRemoteProcessGroup (string id, RemoteProcessGroupEntity body) + { + ApiResponse localVarResponse = this.UpdateRemoteProcessGroupWithHttpInfo(id, body); + return localVarResponse.Data; + } + + /// + /// Updates a remote process group + /// + /// Thrown when fails to make API call + /// The remote process group id. + /// The remote process group. + /// ApiResponse of RemoteProcessGroupEntity + public ApiResponse< RemoteProcessGroupEntity > UpdateRemoteProcessGroupWithHttpInfo (string id, RemoteProcessGroupEntity body) + { + // verify the required parameter 'id' is set + if (id == null) + throw new ApiException(400, "Missing required parameter 'id' when calling RemoteProcessGroupsApi->UpdateRemoteProcessGroup"); + // verify the required parameter 'body' is set + if (body == null) + throw new ApiException(400, "Missing required parameter 'body' when calling RemoteProcessGroupsApi->UpdateRemoteProcessGroup"); + + var localVarPath = "/remote-process-groups/{id}"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "application/json" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter + if (body != null && body.GetType() != typeof(byte[])) + { + localVarPostBody = this.Configuration.ApiClient.Serialize(body); // http body (model) parameter + } + else + { + localVarPostBody = body; // byte array + } + + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.PUT, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (this.ExceptionFactory != null) + { + Exception exception = this.ExceptionFactory("UpdateRemoteProcessGroup", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), + (RemoteProcessGroupEntity) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RemoteProcessGroupEntity))); + } + + /// + /// Updates a remote process group + /// + /// Thrown when fails to make API call + /// The remote process group id. + /// The remote process group. + /// Task of RemoteProcessGroupEntity + public async System.Threading.Tasks.Task UpdateRemoteProcessGroupAsync (string id, RemoteProcessGroupEntity body) + { + ApiResponse localVarResponse = await this.UpdateRemoteProcessGroupAsyncWithHttpInfo(id, body); + return localVarResponse.Data; + + } + + /// + /// Updates a remote process group + /// + /// Thrown when fails to make API call + /// The remote process group id. + /// The remote process group. + /// Task of ApiResponse (RemoteProcessGroupEntity) + public async System.Threading.Tasks.Task> UpdateRemoteProcessGroupAsyncWithHttpInfo (string id, RemoteProcessGroupEntity body) + { + // verify the required parameter 'id' is set + if (id == null) + throw new ApiException(400, "Missing required parameter 'id' when calling RemoteProcessGroupsApi->UpdateRemoteProcessGroup"); + // verify the required parameter 'body' is set + if (body == null) + throw new ApiException(400, "Missing required parameter 'body' when calling RemoteProcessGroupsApi->UpdateRemoteProcessGroup"); + + var localVarPath = "/remote-process-groups/{id}"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "application/json" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter + if (body != null && body.GetType() != typeof(byte[])) + { + localVarPostBody = this.Configuration.ApiClient.Serialize(body); // http body (model) parameter + } + else + { + localVarPostBody = body; // byte array + } + + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.PUT, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (this.ExceptionFactory != null) + { + Exception exception = this.ExceptionFactory("UpdateRemoteProcessGroup", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), + (RemoteProcessGroupEntity) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RemoteProcessGroupEntity))); + } + + /// + /// Updates a remote port Note: This endpoint is subject to change as NiFi and it's REST API evolve. + /// + /// Thrown when fails to make API call + /// The remote process group id. + /// The remote process group port id. + /// The remote process group port. + /// RemoteProcessGroupPortEntity + public RemoteProcessGroupPortEntity UpdateRemoteProcessGroupInputPort (string id, string portId, RemoteProcessGroupPortEntity body) + { + ApiResponse localVarResponse = this.UpdateRemoteProcessGroupInputPortWithHttpInfo(id, portId, body); + return localVarResponse.Data; + } + + /// + /// Updates a remote port Note: This endpoint is subject to change as NiFi and it's REST API evolve. + /// + /// Thrown when fails to make API call + /// The remote process group id. + /// The remote process group port id. + /// The remote process group port. + /// ApiResponse of RemoteProcessGroupPortEntity + public ApiResponse< RemoteProcessGroupPortEntity > UpdateRemoteProcessGroupInputPortWithHttpInfo (string id, string portId, RemoteProcessGroupPortEntity body) + { + // verify the required parameter 'id' is set + if (id == null) + throw new ApiException(400, "Missing required parameter 'id' when calling RemoteProcessGroupsApi->UpdateRemoteProcessGroupInputPort"); + // verify the required parameter 'portId' is set + if (portId == null) + throw new ApiException(400, "Missing required parameter 'portId' when calling RemoteProcessGroupsApi->UpdateRemoteProcessGroupInputPort"); + // verify the required parameter 'body' is set + if (body == null) + throw new ApiException(400, "Missing required parameter 'body' when calling RemoteProcessGroupsApi->UpdateRemoteProcessGroupInputPort"); + + var localVarPath = "/remote-process-groups/{id}/input-ports/{port-id}"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "application/json" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter + if (portId != null) localVarPathParams.Add("port-id", this.Configuration.ApiClient.ParameterToString(portId)); // path parameter + if (body != null && body.GetType() != typeof(byte[])) + { + localVarPostBody = this.Configuration.ApiClient.Serialize(body); // http body (model) parameter + } + else + { + localVarPostBody = body; // byte array + } + + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.PUT, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (this.ExceptionFactory != null) + { + Exception exception = this.ExceptionFactory("UpdateRemoteProcessGroupInputPort", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), + (RemoteProcessGroupPortEntity) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RemoteProcessGroupPortEntity))); + } + + /// + /// Updates a remote port Note: This endpoint is subject to change as NiFi and it's REST API evolve. + /// + /// Thrown when fails to make API call + /// The remote process group id. + /// The remote process group port id. + /// The remote process group port. + /// Task of RemoteProcessGroupPortEntity + public async System.Threading.Tasks.Task UpdateRemoteProcessGroupInputPortAsync (string id, string portId, RemoteProcessGroupPortEntity body) + { + ApiResponse localVarResponse = await this.UpdateRemoteProcessGroupInputPortAsyncWithHttpInfo(id, portId, body); + return localVarResponse.Data; + + } + + /// + /// Updates a remote port Note: This endpoint is subject to change as NiFi and it's REST API evolve. + /// + /// Thrown when fails to make API call + /// The remote process group id. + /// The remote process group port id. + /// The remote process group port. + /// Task of ApiResponse (RemoteProcessGroupPortEntity) + public async System.Threading.Tasks.Task> UpdateRemoteProcessGroupInputPortAsyncWithHttpInfo (string id, string portId, RemoteProcessGroupPortEntity body) + { + // verify the required parameter 'id' is set + if (id == null) + throw new ApiException(400, "Missing required parameter 'id' when calling RemoteProcessGroupsApi->UpdateRemoteProcessGroupInputPort"); + // verify the required parameter 'portId' is set + if (portId == null) + throw new ApiException(400, "Missing required parameter 'portId' when calling RemoteProcessGroupsApi->UpdateRemoteProcessGroupInputPort"); + // verify the required parameter 'body' is set + if (body == null) + throw new ApiException(400, "Missing required parameter 'body' when calling RemoteProcessGroupsApi->UpdateRemoteProcessGroupInputPort"); + + var localVarPath = "/remote-process-groups/{id}/input-ports/{port-id}"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "application/json" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter + if (portId != null) localVarPathParams.Add("port-id", this.Configuration.ApiClient.ParameterToString(portId)); // path parameter + if (body != null && body.GetType() != typeof(byte[])) + { + localVarPostBody = this.Configuration.ApiClient.Serialize(body); // http body (model) parameter + } + else + { + localVarPostBody = body; // byte array + } + + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.PUT, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (this.ExceptionFactory != null) + { + Exception exception = this.ExceptionFactory("UpdateRemoteProcessGroupInputPort", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), + (RemoteProcessGroupPortEntity) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RemoteProcessGroupPortEntity))); + } + + /// + /// Updates run status of a remote port Note: This endpoint is subject to change as NiFi and it's REST API evolve. + /// + /// Thrown when fails to make API call + /// The remote process group id. + /// The remote process group port id. + /// The remote process group port. + /// RemoteProcessGroupPortEntity + public RemoteProcessGroupPortEntity UpdateRemoteProcessGroupInputPortRunStatus (string id, string portId, RemotePortRunStatusEntity body) + { + ApiResponse localVarResponse = this.UpdateRemoteProcessGroupInputPortRunStatusWithHttpInfo(id, portId, body); + return localVarResponse.Data; + } + + /// + /// Updates run status of a remote port Note: This endpoint is subject to change as NiFi and it's REST API evolve. + /// + /// Thrown when fails to make API call + /// The remote process group id. + /// The remote process group port id. + /// The remote process group port. + /// ApiResponse of RemoteProcessGroupPortEntity + public ApiResponse< RemoteProcessGroupPortEntity > UpdateRemoteProcessGroupInputPortRunStatusWithHttpInfo (string id, string portId, RemotePortRunStatusEntity body) + { + // verify the required parameter 'id' is set + if (id == null) + throw new ApiException(400, "Missing required parameter 'id' when calling RemoteProcessGroupsApi->UpdateRemoteProcessGroupInputPortRunStatus"); + // verify the required parameter 'portId' is set + if (portId == null) + throw new ApiException(400, "Missing required parameter 'portId' when calling RemoteProcessGroupsApi->UpdateRemoteProcessGroupInputPortRunStatus"); + // verify the required parameter 'body' is set + if (body == null) + throw new ApiException(400, "Missing required parameter 'body' when calling RemoteProcessGroupsApi->UpdateRemoteProcessGroupInputPortRunStatus"); + + var localVarPath = "/remote-process-groups/{id}/input-ports/{port-id}/run-status"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "application/json" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter + if (portId != null) localVarPathParams.Add("port-id", this.Configuration.ApiClient.ParameterToString(portId)); // path parameter + if (body != null && body.GetType() != typeof(byte[])) + { + localVarPostBody = this.Configuration.ApiClient.Serialize(body); // http body (model) parameter + } + else + { + localVarPostBody = body; // byte array + } + + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.PUT, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (this.ExceptionFactory != null) + { + Exception exception = this.ExceptionFactory("UpdateRemoteProcessGroupInputPortRunStatus", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), + (RemoteProcessGroupPortEntity) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RemoteProcessGroupPortEntity))); + } + + /// + /// Updates run status of a remote port Note: This endpoint is subject to change as NiFi and it's REST API evolve. + /// + /// Thrown when fails to make API call + /// The remote process group id. + /// The remote process group port id. + /// The remote process group port. + /// Task of RemoteProcessGroupPortEntity + public async System.Threading.Tasks.Task UpdateRemoteProcessGroupInputPortRunStatusAsync (string id, string portId, RemotePortRunStatusEntity body) + { + ApiResponse localVarResponse = await this.UpdateRemoteProcessGroupInputPortRunStatusAsyncWithHttpInfo(id, portId, body); + return localVarResponse.Data; + + } + + /// + /// Updates run status of a remote port Note: This endpoint is subject to change as NiFi and it's REST API evolve. + /// + /// Thrown when fails to make API call + /// The remote process group id. + /// The remote process group port id. + /// The remote process group port. + /// Task of ApiResponse (RemoteProcessGroupPortEntity) + public async System.Threading.Tasks.Task> UpdateRemoteProcessGroupInputPortRunStatusAsyncWithHttpInfo (string id, string portId, RemotePortRunStatusEntity body) + { + // verify the required parameter 'id' is set + if (id == null) + throw new ApiException(400, "Missing required parameter 'id' when calling RemoteProcessGroupsApi->UpdateRemoteProcessGroupInputPortRunStatus"); + // verify the required parameter 'portId' is set + if (portId == null) + throw new ApiException(400, "Missing required parameter 'portId' when calling RemoteProcessGroupsApi->UpdateRemoteProcessGroupInputPortRunStatus"); + // verify the required parameter 'body' is set + if (body == null) + throw new ApiException(400, "Missing required parameter 'body' when calling RemoteProcessGroupsApi->UpdateRemoteProcessGroupInputPortRunStatus"); + + var localVarPath = "/remote-process-groups/{id}/input-ports/{port-id}/run-status"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "application/json" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter + if (portId != null) localVarPathParams.Add("port-id", this.Configuration.ApiClient.ParameterToString(portId)); // path parameter + if (body != null && body.GetType() != typeof(byte[])) + { + localVarPostBody = this.Configuration.ApiClient.Serialize(body); // http body (model) parameter + } + else + { + localVarPostBody = body; // byte array + } + + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.PUT, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (this.ExceptionFactory != null) + { + Exception exception = this.ExceptionFactory("UpdateRemoteProcessGroupInputPortRunStatus", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), + (RemoteProcessGroupPortEntity) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RemoteProcessGroupPortEntity))); + } + + /// + /// Updates a remote port Note: This endpoint is subject to change as NiFi and it's REST API evolve. + /// + /// Thrown when fails to make API call + /// The remote process group id. + /// The remote process group port id. + /// The remote process group port. + /// RemoteProcessGroupPortEntity + public RemoteProcessGroupPortEntity UpdateRemoteProcessGroupOutputPort (string id, string portId, RemoteProcessGroupPortEntity body) + { + ApiResponse localVarResponse = this.UpdateRemoteProcessGroupOutputPortWithHttpInfo(id, portId, body); + return localVarResponse.Data; + } + + /// + /// Updates a remote port Note: This endpoint is subject to change as NiFi and it's REST API evolve. + /// + /// Thrown when fails to make API call + /// The remote process group id. + /// The remote process group port id. + /// The remote process group port. + /// ApiResponse of RemoteProcessGroupPortEntity + public ApiResponse< RemoteProcessGroupPortEntity > UpdateRemoteProcessGroupOutputPortWithHttpInfo (string id, string portId, RemoteProcessGroupPortEntity body) + { + // verify the required parameter 'id' is set + if (id == null) + throw new ApiException(400, "Missing required parameter 'id' when calling RemoteProcessGroupsApi->UpdateRemoteProcessGroupOutputPort"); + // verify the required parameter 'portId' is set + if (portId == null) + throw new ApiException(400, "Missing required parameter 'portId' when calling RemoteProcessGroupsApi->UpdateRemoteProcessGroupOutputPort"); + // verify the required parameter 'body' is set + if (body == null) + throw new ApiException(400, "Missing required parameter 'body' when calling RemoteProcessGroupsApi->UpdateRemoteProcessGroupOutputPort"); + + var localVarPath = "/remote-process-groups/{id}/output-ports/{port-id}"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "application/json" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter + if (portId != null) localVarPathParams.Add("port-id", this.Configuration.ApiClient.ParameterToString(portId)); // path parameter + if (body != null && body.GetType() != typeof(byte[])) + { + localVarPostBody = this.Configuration.ApiClient.Serialize(body); // http body (model) parameter + } + else + { + localVarPostBody = body; // byte array + } + + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.PUT, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (this.ExceptionFactory != null) + { + Exception exception = this.ExceptionFactory("UpdateRemoteProcessGroupOutputPort", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), + (RemoteProcessGroupPortEntity) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RemoteProcessGroupPortEntity))); + } + + /// + /// Updates a remote port Note: This endpoint is subject to change as NiFi and it's REST API evolve. + /// + /// Thrown when fails to make API call + /// The remote process group id. + /// The remote process group port id. + /// The remote process group port. + /// Task of RemoteProcessGroupPortEntity + public async System.Threading.Tasks.Task UpdateRemoteProcessGroupOutputPortAsync (string id, string portId, RemoteProcessGroupPortEntity body) + { + ApiResponse localVarResponse = await this.UpdateRemoteProcessGroupOutputPortAsyncWithHttpInfo(id, portId, body); + return localVarResponse.Data; + + } + + /// + /// Updates a remote port Note: This endpoint is subject to change as NiFi and it's REST API evolve. + /// + /// Thrown when fails to make API call + /// The remote process group id. + /// The remote process group port id. + /// The remote process group port. + /// Task of ApiResponse (RemoteProcessGroupPortEntity) + public async System.Threading.Tasks.Task> UpdateRemoteProcessGroupOutputPortAsyncWithHttpInfo (string id, string portId, RemoteProcessGroupPortEntity body) + { + // verify the required parameter 'id' is set + if (id == null) + throw new ApiException(400, "Missing required parameter 'id' when calling RemoteProcessGroupsApi->UpdateRemoteProcessGroupOutputPort"); + // verify the required parameter 'portId' is set + if (portId == null) + throw new ApiException(400, "Missing required parameter 'portId' when calling RemoteProcessGroupsApi->UpdateRemoteProcessGroupOutputPort"); + // verify the required parameter 'body' is set + if (body == null) + throw new ApiException(400, "Missing required parameter 'body' when calling RemoteProcessGroupsApi->UpdateRemoteProcessGroupOutputPort"); + + var localVarPath = "/remote-process-groups/{id}/output-ports/{port-id}"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "application/json" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter + if (portId != null) localVarPathParams.Add("port-id", this.Configuration.ApiClient.ParameterToString(portId)); // path parameter + if (body != null && body.GetType() != typeof(byte[])) + { + localVarPostBody = this.Configuration.ApiClient.Serialize(body); // http body (model) parameter + } + else + { + localVarPostBody = body; // byte array + } + + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.PUT, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (this.ExceptionFactory != null) + { + Exception exception = this.ExceptionFactory("UpdateRemoteProcessGroupOutputPort", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), + (RemoteProcessGroupPortEntity) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RemoteProcessGroupPortEntity))); + } + + /// + /// Updates run status of a remote port Note: This endpoint is subject to change as NiFi and it's REST API evolve. + /// + /// Thrown when fails to make API call + /// The remote process group id. + /// The remote process group port id. + /// The remote process group port. + /// RemoteProcessGroupPortEntity + public RemoteProcessGroupPortEntity UpdateRemoteProcessGroupOutputPortRunStatus (string id, string portId, RemotePortRunStatusEntity body) + { + ApiResponse localVarResponse = this.UpdateRemoteProcessGroupOutputPortRunStatusWithHttpInfo(id, portId, body); + return localVarResponse.Data; + } + + /// + /// Updates run status of a remote port Note: This endpoint is subject to change as NiFi and it's REST API evolve. + /// + /// Thrown when fails to make API call + /// The remote process group id. + /// The remote process group port id. + /// The remote process group port. + /// ApiResponse of RemoteProcessGroupPortEntity + public ApiResponse< RemoteProcessGroupPortEntity > UpdateRemoteProcessGroupOutputPortRunStatusWithHttpInfo (string id, string portId, RemotePortRunStatusEntity body) + { + // verify the required parameter 'id' is set + if (id == null) + throw new ApiException(400, "Missing required parameter 'id' when calling RemoteProcessGroupsApi->UpdateRemoteProcessGroupOutputPortRunStatus"); + // verify the required parameter 'portId' is set + if (portId == null) + throw new ApiException(400, "Missing required parameter 'portId' when calling RemoteProcessGroupsApi->UpdateRemoteProcessGroupOutputPortRunStatus"); + // verify the required parameter 'body' is set + if (body == null) + throw new ApiException(400, "Missing required parameter 'body' when calling RemoteProcessGroupsApi->UpdateRemoteProcessGroupOutputPortRunStatus"); + + var localVarPath = "/remote-process-groups/{id}/output-ports/{port-id}/run-status"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "application/json" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter + if (portId != null) localVarPathParams.Add("port-id", this.Configuration.ApiClient.ParameterToString(portId)); // path parameter + if (body != null && body.GetType() != typeof(byte[])) + { + localVarPostBody = this.Configuration.ApiClient.Serialize(body); // http body (model) parameter + } + else + { + localVarPostBody = body; // byte array + } + + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.PUT, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (this.ExceptionFactory != null) + { + Exception exception = this.ExceptionFactory("UpdateRemoteProcessGroupOutputPortRunStatus", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), + (RemoteProcessGroupPortEntity) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RemoteProcessGroupPortEntity))); + } + + /// + /// Updates run status of a remote port Note: This endpoint is subject to change as NiFi and it's REST API evolve. + /// + /// Thrown when fails to make API call + /// The remote process group id. + /// The remote process group port id. + /// The remote process group port. + /// Task of RemoteProcessGroupPortEntity + public async System.Threading.Tasks.Task UpdateRemoteProcessGroupOutputPortRunStatusAsync (string id, string portId, RemotePortRunStatusEntity body) + { + ApiResponse localVarResponse = await this.UpdateRemoteProcessGroupOutputPortRunStatusAsyncWithHttpInfo(id, portId, body); + return localVarResponse.Data; + + } + + /// + /// Updates run status of a remote port Note: This endpoint is subject to change as NiFi and it's REST API evolve. + /// + /// Thrown when fails to make API call + /// The remote process group id. + /// The remote process group port id. + /// The remote process group port. + /// Task of ApiResponse (RemoteProcessGroupPortEntity) + public async System.Threading.Tasks.Task> UpdateRemoteProcessGroupOutputPortRunStatusAsyncWithHttpInfo (string id, string portId, RemotePortRunStatusEntity body) + { + // verify the required parameter 'id' is set + if (id == null) + throw new ApiException(400, "Missing required parameter 'id' when calling RemoteProcessGroupsApi->UpdateRemoteProcessGroupOutputPortRunStatus"); + // verify the required parameter 'portId' is set + if (portId == null) + throw new ApiException(400, "Missing required parameter 'portId' when calling RemoteProcessGroupsApi->UpdateRemoteProcessGroupOutputPortRunStatus"); + // verify the required parameter 'body' is set + if (body == null) + throw new ApiException(400, "Missing required parameter 'body' when calling RemoteProcessGroupsApi->UpdateRemoteProcessGroupOutputPortRunStatus"); + + var localVarPath = "/remote-process-groups/{id}/output-ports/{port-id}/run-status"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "application/json" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter + if (portId != null) localVarPathParams.Add("port-id", this.Configuration.ApiClient.ParameterToString(portId)); // path parameter + if (body != null && body.GetType() != typeof(byte[])) + { + localVarPostBody = this.Configuration.ApiClient.Serialize(body); // http body (model) parameter + } + else + { + localVarPostBody = body; // byte array + } + + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.PUT, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (this.ExceptionFactory != null) + { + Exception exception = this.ExceptionFactory("UpdateRemoteProcessGroupOutputPortRunStatus", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), + (RemoteProcessGroupPortEntity) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RemoteProcessGroupPortEntity))); + } + + /// + /// Updates run status of a remote process group + /// + /// Thrown when fails to make API call + /// The remote process group id. + /// The remote process group run status. + /// RemoteProcessGroupEntity + public RemoteProcessGroupEntity UpdateRemoteProcessGroupRunStatus (string id, RemotePortRunStatusEntity body) + { + ApiResponse localVarResponse = this.UpdateRemoteProcessGroupRunStatusWithHttpInfo(id, body); + return localVarResponse.Data; + } + + /// + /// Updates run status of a remote process group + /// + /// Thrown when fails to make API call + /// The remote process group id. + /// The remote process group run status. + /// ApiResponse of RemoteProcessGroupEntity + public ApiResponse< RemoteProcessGroupEntity > UpdateRemoteProcessGroupRunStatusWithHttpInfo (string id, RemotePortRunStatusEntity body) + { + // verify the required parameter 'id' is set + if (id == null) + throw new ApiException(400, "Missing required parameter 'id' when calling RemoteProcessGroupsApi->UpdateRemoteProcessGroupRunStatus"); + // verify the required parameter 'body' is set + if (body == null) + throw new ApiException(400, "Missing required parameter 'body' when calling RemoteProcessGroupsApi->UpdateRemoteProcessGroupRunStatus"); + + var localVarPath = "/remote-process-groups/{id}/run-status"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "application/json" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter + if (body != null && body.GetType() != typeof(byte[])) + { + localVarPostBody = this.Configuration.ApiClient.Serialize(body); // http body (model) parameter + } + else + { + localVarPostBody = body; // byte array + } + + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.PUT, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (this.ExceptionFactory != null) + { + Exception exception = this.ExceptionFactory("UpdateRemoteProcessGroupRunStatus", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), + (RemoteProcessGroupEntity) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RemoteProcessGroupEntity))); + } + + /// + /// Updates run status of a remote process group + /// + /// Thrown when fails to make API call + /// The remote process group id. + /// The remote process group run status. + /// Task of RemoteProcessGroupEntity + public async System.Threading.Tasks.Task UpdateRemoteProcessGroupRunStatusAsync (string id, RemotePortRunStatusEntity body) + { + ApiResponse localVarResponse = await this.UpdateRemoteProcessGroupRunStatusAsyncWithHttpInfo(id, body); + return localVarResponse.Data; + + } + + /// + /// Updates run status of a remote process group + /// + /// Thrown when fails to make API call + /// The remote process group id. + /// The remote process group run status. + /// Task of ApiResponse (RemoteProcessGroupEntity) + public async System.Threading.Tasks.Task> UpdateRemoteProcessGroupRunStatusAsyncWithHttpInfo (string id, RemotePortRunStatusEntity body) + { + // verify the required parameter 'id' is set + if (id == null) + throw new ApiException(400, "Missing required parameter 'id' when calling RemoteProcessGroupsApi->UpdateRemoteProcessGroupRunStatus"); + // verify the required parameter 'body' is set + if (body == null) + throw new ApiException(400, "Missing required parameter 'body' when calling RemoteProcessGroupsApi->UpdateRemoteProcessGroupRunStatus"); + + var localVarPath = "/remote-process-groups/{id}/run-status"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "application/json" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter + if (body != null && body.GetType() != typeof(byte[])) + { + localVarPostBody = this.Configuration.ApiClient.Serialize(body); // http body (model) parameter + } + else + { + localVarPostBody = body; // byte array + } + + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.PUT, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (this.ExceptionFactory != null) + { + Exception exception = this.ExceptionFactory("UpdateRemoteProcessGroupRunStatus", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), + (RemoteProcessGroupEntity) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RemoteProcessGroupEntity))); + } + + } +} diff --git a/NiFi.Swagger/Api/ReportingTasksApi.cs b/NiFi.Swagger/Api/ReportingTasksApi.cs new file mode 100644 index 0000000..ec82656 --- /dev/null +++ b/NiFi.Swagger/Api/ReportingTasksApi.cs @@ -0,0 +1,1477 @@ +/* + * NiFi Rest Api + * + * The Rest Api provides programmatic access to command and control a NiFi instance in real time. Start and stop processors, monitor queues, query provenance data, and more. Each endpoint below includes a description, definitions of the expected input and output, potential response codes, and the authorizations required to invoke each service. + * + * OpenAPI spec version: 1.9.1 + * Contact: dev@nifi.apache.org + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +namespace NiFi.Swagger.Api +{ + using System; + using System.Collections.Generic; + using System.Collections.ObjectModel; + using System.Linq; + + using NiFi.Swagger.Client; + using NiFi.Swagger.Model; + + using RestSharp; + + /// + /// Represents a collection of functions to interact with the API endpoints + /// + public interface IReportingTasksApi : IApiAccessor + { + #region Synchronous Operations + /// + /// Clears the state for a reporting task + /// + /// + /// + /// + /// Thrown when fails to make API call + /// The reporting task id. + /// ComponentStateEntity + ComponentStateEntity ClearState (string id); + + /// + /// Clears the state for a reporting task + /// + /// + /// + /// + /// Thrown when fails to make API call + /// The reporting task id. + /// ApiResponse of ComponentStateEntity + ApiResponse ClearStateWithHttpInfo (string id); + /// + /// Gets a reporting task property descriptor + /// + /// + /// + /// + /// Thrown when fails to make API call + /// The reporting task id. + /// The property name. + /// PropertyDescriptorEntity + PropertyDescriptorEntity GetPropertyDescriptor (string id, string propertyName); + + /// + /// Gets a reporting task property descriptor + /// + /// + /// + /// + /// Thrown when fails to make API call + /// The reporting task id. + /// The property name. + /// ApiResponse of PropertyDescriptorEntity + ApiResponse GetPropertyDescriptorWithHttpInfo (string id, string propertyName); + /// + /// Gets a reporting task + /// + /// + /// + /// + /// Thrown when fails to make API call + /// The reporting task id. + /// ReportingTaskEntity + ReportingTaskEntity GetReportingTask (string id); + + /// + /// Gets a reporting task + /// + /// + /// + /// + /// Thrown when fails to make API call + /// The reporting task id. + /// ApiResponse of ReportingTaskEntity + ApiResponse GetReportingTaskWithHttpInfo (string id); + /// + /// Gets the state for a reporting task + /// + /// + /// + /// + /// Thrown when fails to make API call + /// The reporting task id. + /// ComponentStateEntity + ComponentStateEntity GetState (string id); + + /// + /// Gets the state for a reporting task + /// + /// + /// + /// + /// Thrown when fails to make API call + /// The reporting task id. + /// ApiResponse of ComponentStateEntity + ApiResponse GetStateWithHttpInfo (string id); + /// + /// Deletes a reporting task + /// + /// + /// + /// + /// Thrown when fails to make API call + /// The reporting task id. + /// The revision is used to verify the client is working with the latest version of the flow. (optional) + /// If the client id is not specified, new one will be generated. This value (whether specified or generated) is included in the response. (optional) + /// Acknowledges that this node is disconnected to allow for mutable requests to proceed. (optional, default to false) + /// ReportingTaskEntity + ReportingTaskEntity RemoveReportingTask (string id, string version = null, string clientId = null, bool? disconnectedNodeAcknowledged = null); + + /// + /// Deletes a reporting task + /// + /// + /// + /// + /// Thrown when fails to make API call + /// The reporting task id. + /// The revision is used to verify the client is working with the latest version of the flow. (optional) + /// If the client id is not specified, new one will be generated. This value (whether specified or generated) is included in the response. (optional) + /// Acknowledges that this node is disconnected to allow for mutable requests to proceed. (optional, default to false) + /// ApiResponse of ReportingTaskEntity + ApiResponse RemoveReportingTaskWithHttpInfo (string id, string version = null, string clientId = null, bool? disconnectedNodeAcknowledged = null); + /// + /// Updates a reporting task + /// + /// + /// + /// + /// Thrown when fails to make API call + /// The reporting task id. + /// The reporting task configuration details. + /// ReportingTaskEntity + ReportingTaskEntity UpdateReportingTask (string id, ReportingTaskEntity body); + + /// + /// Updates a reporting task + /// + /// + /// + /// + /// Thrown when fails to make API call + /// The reporting task id. + /// The reporting task configuration details. + /// ApiResponse of ReportingTaskEntity + ApiResponse UpdateReportingTaskWithHttpInfo (string id, ReportingTaskEntity body); + /// + /// Updates run status of a reporting task + /// + /// + /// + /// + /// Thrown when fails to make API call + /// The reporting task id. + /// The reporting task run status. + /// ReportingTaskEntity + ReportingTaskEntity UpdateRunStatus (string id, ReportingTaskRunStatusEntity body); + + /// + /// Updates run status of a reporting task + /// + /// + /// + /// + /// Thrown when fails to make API call + /// The reporting task id. + /// The reporting task run status. + /// ApiResponse of ReportingTaskEntity + ApiResponse UpdateRunStatusWithHttpInfo (string id, ReportingTaskRunStatusEntity body); + #endregion Synchronous Operations + #region Asynchronous Operations + /// + /// Clears the state for a reporting task + /// + /// + /// + /// + /// Thrown when fails to make API call + /// The reporting task id. + /// Task of ComponentStateEntity + System.Threading.Tasks.Task ClearStateAsync (string id); + + /// + /// Clears the state for a reporting task + /// + /// + /// + /// + /// Thrown when fails to make API call + /// The reporting task id. + /// Task of ApiResponse (ComponentStateEntity) + System.Threading.Tasks.Task> ClearStateAsyncWithHttpInfo (string id); + /// + /// Gets a reporting task property descriptor + /// + /// + /// + /// + /// Thrown when fails to make API call + /// The reporting task id. + /// The property name. + /// Task of PropertyDescriptorEntity + System.Threading.Tasks.Task GetPropertyDescriptorAsync (string id, string propertyName); + + /// + /// Gets a reporting task property descriptor + /// + /// + /// + /// + /// Thrown when fails to make API call + /// The reporting task id. + /// The property name. + /// Task of ApiResponse (PropertyDescriptorEntity) + System.Threading.Tasks.Task> GetPropertyDescriptorAsyncWithHttpInfo (string id, string propertyName); + /// + /// Gets a reporting task + /// + /// + /// + /// + /// Thrown when fails to make API call + /// The reporting task id. + /// Task of ReportingTaskEntity + System.Threading.Tasks.Task GetReportingTaskAsync (string id); + + /// + /// Gets a reporting task + /// + /// + /// + /// + /// Thrown when fails to make API call + /// The reporting task id. + /// Task of ApiResponse (ReportingTaskEntity) + System.Threading.Tasks.Task> GetReportingTaskAsyncWithHttpInfo (string id); + /// + /// Gets the state for a reporting task + /// + /// + /// + /// + /// Thrown when fails to make API call + /// The reporting task id. + /// Task of ComponentStateEntity + System.Threading.Tasks.Task GetStateAsync (string id); + + /// + /// Gets the state for a reporting task + /// + /// + /// + /// + /// Thrown when fails to make API call + /// The reporting task id. + /// Task of ApiResponse (ComponentStateEntity) + System.Threading.Tasks.Task> GetStateAsyncWithHttpInfo (string id); + /// + /// Deletes a reporting task + /// + /// + /// + /// + /// Thrown when fails to make API call + /// The reporting task id. + /// The revision is used to verify the client is working with the latest version of the flow. (optional) + /// If the client id is not specified, new one will be generated. This value (whether specified or generated) is included in the response. (optional) + /// Acknowledges that this node is disconnected to allow for mutable requests to proceed. (optional, default to false) + /// Task of ReportingTaskEntity + System.Threading.Tasks.Task RemoveReportingTaskAsync (string id, string version = null, string clientId = null, bool? disconnectedNodeAcknowledged = null); + + /// + /// Deletes a reporting task + /// + /// + /// + /// + /// Thrown when fails to make API call + /// The reporting task id. + /// The revision is used to verify the client is working with the latest version of the flow. (optional) + /// If the client id is not specified, new one will be generated. This value (whether specified or generated) is included in the response. (optional) + /// Acknowledges that this node is disconnected to allow for mutable requests to proceed. (optional, default to false) + /// Task of ApiResponse (ReportingTaskEntity) + System.Threading.Tasks.Task> RemoveReportingTaskAsyncWithHttpInfo (string id, string version = null, string clientId = null, bool? disconnectedNodeAcknowledged = null); + /// + /// Updates a reporting task + /// + /// + /// + /// + /// Thrown when fails to make API call + /// The reporting task id. + /// The reporting task configuration details. + /// Task of ReportingTaskEntity + System.Threading.Tasks.Task UpdateReportingTaskAsync (string id, ReportingTaskEntity body); + + /// + /// Updates a reporting task + /// + /// + /// + /// + /// Thrown when fails to make API call + /// The reporting task id. + /// The reporting task configuration details. + /// Task of ApiResponse (ReportingTaskEntity) + System.Threading.Tasks.Task> UpdateReportingTaskAsyncWithHttpInfo (string id, ReportingTaskEntity body); + /// + /// Updates run status of a reporting task + /// + /// + /// + /// + /// Thrown when fails to make API call + /// The reporting task id. + /// The reporting task run status. + /// Task of ReportingTaskEntity + System.Threading.Tasks.Task UpdateRunStatusAsync (string id, ReportingTaskRunStatusEntity body); + + /// + /// Updates run status of a reporting task + /// + /// + /// + /// + /// Thrown when fails to make API call + /// The reporting task id. + /// The reporting task run status. + /// Task of ApiResponse (ReportingTaskEntity) + System.Threading.Tasks.Task> UpdateRunStatusAsyncWithHttpInfo (string id, ReportingTaskRunStatusEntity body); + #endregion Asynchronous Operations + } + + /// + /// Represents a collection of functions to interact with the API endpoints + /// + public partial class ReportingTasksApi : IReportingTasksApi + { + private ExceptionFactory _exceptionFactory = (name, response) => null; + + /// + /// Initializes a new instance of the class. + /// + /// + public ReportingTasksApi(String basePath) + { + this.Configuration = new Configuration { BasePath = basePath }; + + this.ExceptionFactory = Configuration.DefaultExceptionFactory; + } + + /// + /// Initializes a new instance of the class + /// using Configuration object + /// + /// An instance of Configuration + /// + public ReportingTasksApi(Configuration configuration = null) + { + if (configuration == null) // use the default one in Configuration + this.Configuration = Configuration.Default; + else + this.Configuration = configuration; + + this.ExceptionFactory = Configuration.DefaultExceptionFactory; + } + + /// + /// Gets the base path of the API client. + /// + /// The base path + public String GetBasePath() + { + return this.Configuration.ApiClient.RestClient.BaseUrl.ToString(); + } + + /// + /// Sets the base path of the API client. + /// + /// The base path + [Obsolete("SetBasePath is deprecated, please do 'Configuration.ApiClient = new ApiClient(\"http://new-path\")' instead.")] + public void SetBasePath(String basePath) + { + // do nothing + } + + /// + /// Gets or sets the configuration object + /// + /// An instance of the Configuration + public Configuration Configuration {get; set;} + + /// + /// Provides a factory method hook for the creation of exceptions. + /// + public ExceptionFactory ExceptionFactory + { + get + { + if (this._exceptionFactory != null && this._exceptionFactory.GetInvocationList().Length > 1) + { + throw new InvalidOperationException("Multicast delegate for ExceptionFactory is unsupported."); + } + return this._exceptionFactory; + } + set { this._exceptionFactory = value; } + } + + /// + /// Gets the default header. + /// + /// Dictionary of HTTP header + [Obsolete("DefaultHeader is deprecated, please use Configuration.DefaultHeader instead.")] + public IDictionary DefaultHeader() + { + return new ReadOnlyDictionary(this.Configuration.DefaultHeader); + } + + /// + /// Add default header. + /// + /// Header field name. + /// Header field value. + /// + [Obsolete("AddDefaultHeader is deprecated, please use Configuration.AddDefaultHeader instead.")] + public void AddDefaultHeader(string key, string value) + { + this.Configuration.AddDefaultHeader(key, value); + } + + /// + /// Clears the state for a reporting task + /// + /// Thrown when fails to make API call + /// The reporting task id. + /// ComponentStateEntity + public ComponentStateEntity ClearState (string id) + { + ApiResponse localVarResponse = this.ClearStateWithHttpInfo(id); + return localVarResponse.Data; + } + + /// + /// Clears the state for a reporting task + /// + /// Thrown when fails to make API call + /// The reporting task id. + /// ApiResponse of ComponentStateEntity + public ApiResponse< ComponentStateEntity > ClearStateWithHttpInfo (string id) + { + // verify the required parameter 'id' is set + if (id == null) + throw new ApiException(400, "Missing required parameter 'id' when calling ReportingTasksApi->ClearState"); + + var localVarPath = "/reporting-tasks/{id}/state/clear-requests"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "*/*" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter + + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (this.ExceptionFactory != null) + { + Exception exception = this.ExceptionFactory("ClearState", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), + (ComponentStateEntity) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(ComponentStateEntity))); + } + + /// + /// Clears the state for a reporting task + /// + /// Thrown when fails to make API call + /// The reporting task id. + /// Task of ComponentStateEntity + public async System.Threading.Tasks.Task ClearStateAsync (string id) + { + ApiResponse localVarResponse = await this.ClearStateAsyncWithHttpInfo(id); + return localVarResponse.Data; + + } + + /// + /// Clears the state for a reporting task + /// + /// Thrown when fails to make API call + /// The reporting task id. + /// Task of ApiResponse (ComponentStateEntity) + public async System.Threading.Tasks.Task> ClearStateAsyncWithHttpInfo (string id) + { + // verify the required parameter 'id' is set + if (id == null) + throw new ApiException(400, "Missing required parameter 'id' when calling ReportingTasksApi->ClearState"); + + var localVarPath = "/reporting-tasks/{id}/state/clear-requests"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "*/*" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter + + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (this.ExceptionFactory != null) + { + Exception exception = this.ExceptionFactory("ClearState", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), + (ComponentStateEntity) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(ComponentStateEntity))); + } + + /// + /// Gets a reporting task property descriptor + /// + /// Thrown when fails to make API call + /// The reporting task id. + /// The property name. + /// PropertyDescriptorEntity + public PropertyDescriptorEntity GetPropertyDescriptor (string id, string propertyName) + { + ApiResponse localVarResponse = this.GetPropertyDescriptorWithHttpInfo(id, propertyName); + return localVarResponse.Data; + } + + /// + /// Gets a reporting task property descriptor + /// + /// Thrown when fails to make API call + /// The reporting task id. + /// The property name. + /// ApiResponse of PropertyDescriptorEntity + public ApiResponse< PropertyDescriptorEntity > GetPropertyDescriptorWithHttpInfo (string id, string propertyName) + { + // verify the required parameter 'id' is set + if (id == null) + throw new ApiException(400, "Missing required parameter 'id' when calling ReportingTasksApi->GetPropertyDescriptor"); + // verify the required parameter 'propertyName' is set + if (propertyName == null) + throw new ApiException(400, "Missing required parameter 'propertyName' when calling ReportingTasksApi->GetPropertyDescriptor"); + + var localVarPath = "/reporting-tasks/{id}/descriptors"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "*/*" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter + if (propertyName != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "propertyName", propertyName)); // query parameter + + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (this.ExceptionFactory != null) + { + Exception exception = this.ExceptionFactory("GetPropertyDescriptor", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), + (PropertyDescriptorEntity) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(PropertyDescriptorEntity))); + } + + /// + /// Gets a reporting task property descriptor + /// + /// Thrown when fails to make API call + /// The reporting task id. + /// The property name. + /// Task of PropertyDescriptorEntity + public async System.Threading.Tasks.Task GetPropertyDescriptorAsync (string id, string propertyName) + { + ApiResponse localVarResponse = await this.GetPropertyDescriptorAsyncWithHttpInfo(id, propertyName); + return localVarResponse.Data; + + } + + /// + /// Gets a reporting task property descriptor + /// + /// Thrown when fails to make API call + /// The reporting task id. + /// The property name. + /// Task of ApiResponse (PropertyDescriptorEntity) + public async System.Threading.Tasks.Task> GetPropertyDescriptorAsyncWithHttpInfo (string id, string propertyName) + { + // verify the required parameter 'id' is set + if (id == null) + throw new ApiException(400, "Missing required parameter 'id' when calling ReportingTasksApi->GetPropertyDescriptor"); + // verify the required parameter 'propertyName' is set + if (propertyName == null) + throw new ApiException(400, "Missing required parameter 'propertyName' when calling ReportingTasksApi->GetPropertyDescriptor"); + + var localVarPath = "/reporting-tasks/{id}/descriptors"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "*/*" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter + if (propertyName != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "propertyName", propertyName)); // query parameter + + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (this.ExceptionFactory != null) + { + Exception exception = this.ExceptionFactory("GetPropertyDescriptor", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), + (PropertyDescriptorEntity) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(PropertyDescriptorEntity))); + } + + /// + /// Gets a reporting task + /// + /// Thrown when fails to make API call + /// The reporting task id. + /// ReportingTaskEntity + public ReportingTaskEntity GetReportingTask (string id) + { + ApiResponse localVarResponse = this.GetReportingTaskWithHttpInfo(id); + return localVarResponse.Data; + } + + /// + /// Gets a reporting task + /// + /// Thrown when fails to make API call + /// The reporting task id. + /// ApiResponse of ReportingTaskEntity + public ApiResponse< ReportingTaskEntity > GetReportingTaskWithHttpInfo (string id) + { + // verify the required parameter 'id' is set + if (id == null) + throw new ApiException(400, "Missing required parameter 'id' when calling ReportingTasksApi->GetReportingTask"); + + var localVarPath = "/reporting-tasks/{id}"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "*/*" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter + + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (this.ExceptionFactory != null) + { + Exception exception = this.ExceptionFactory("GetReportingTask", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), + (ReportingTaskEntity) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(ReportingTaskEntity))); + } + + /// + /// Gets a reporting task + /// + /// Thrown when fails to make API call + /// The reporting task id. + /// Task of ReportingTaskEntity + public async System.Threading.Tasks.Task GetReportingTaskAsync (string id) + { + ApiResponse localVarResponse = await this.GetReportingTaskAsyncWithHttpInfo(id); + return localVarResponse.Data; + + } + + /// + /// Gets a reporting task + /// + /// Thrown when fails to make API call + /// The reporting task id. + /// Task of ApiResponse (ReportingTaskEntity) + public async System.Threading.Tasks.Task> GetReportingTaskAsyncWithHttpInfo (string id) + { + // verify the required parameter 'id' is set + if (id == null) + throw new ApiException(400, "Missing required parameter 'id' when calling ReportingTasksApi->GetReportingTask"); + + var localVarPath = "/reporting-tasks/{id}"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "*/*" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter + + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (this.ExceptionFactory != null) + { + Exception exception = this.ExceptionFactory("GetReportingTask", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), + (ReportingTaskEntity) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(ReportingTaskEntity))); + } + + /// + /// Gets the state for a reporting task + /// + /// Thrown when fails to make API call + /// The reporting task id. + /// ComponentStateEntity + public ComponentStateEntity GetState (string id) + { + ApiResponse localVarResponse = this.GetStateWithHttpInfo(id); + return localVarResponse.Data; + } + + /// + /// Gets the state for a reporting task + /// + /// Thrown when fails to make API call + /// The reporting task id. + /// ApiResponse of ComponentStateEntity + public ApiResponse< ComponentStateEntity > GetStateWithHttpInfo (string id) + { + // verify the required parameter 'id' is set + if (id == null) + throw new ApiException(400, "Missing required parameter 'id' when calling ReportingTasksApi->GetState"); + + var localVarPath = "/reporting-tasks/{id}/state"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "*/*" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter + + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (this.ExceptionFactory != null) + { + Exception exception = this.ExceptionFactory("GetState", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), + (ComponentStateEntity) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(ComponentStateEntity))); + } + + /// + /// Gets the state for a reporting task + /// + /// Thrown when fails to make API call + /// The reporting task id. + /// Task of ComponentStateEntity + public async System.Threading.Tasks.Task GetStateAsync (string id) + { + ApiResponse localVarResponse = await this.GetStateAsyncWithHttpInfo(id); + return localVarResponse.Data; + + } + + /// + /// Gets the state for a reporting task + /// + /// Thrown when fails to make API call + /// The reporting task id. + /// Task of ApiResponse (ComponentStateEntity) + public async System.Threading.Tasks.Task> GetStateAsyncWithHttpInfo (string id) + { + // verify the required parameter 'id' is set + if (id == null) + throw new ApiException(400, "Missing required parameter 'id' when calling ReportingTasksApi->GetState"); + + var localVarPath = "/reporting-tasks/{id}/state"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "*/*" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter + + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (this.ExceptionFactory != null) + { + Exception exception = this.ExceptionFactory("GetState", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), + (ComponentStateEntity) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(ComponentStateEntity))); + } + + /// + /// Deletes a reporting task + /// + /// Thrown when fails to make API call + /// The reporting task id. + /// The revision is used to verify the client is working with the latest version of the flow. (optional) + /// If the client id is not specified, new one will be generated. This value (whether specified or generated) is included in the response. (optional) + /// Acknowledges that this node is disconnected to allow for mutable requests to proceed. (optional, default to false) + /// ReportingTaskEntity + public ReportingTaskEntity RemoveReportingTask (string id, string version = null, string clientId = null, bool? disconnectedNodeAcknowledged = null) + { + ApiResponse localVarResponse = this.RemoveReportingTaskWithHttpInfo(id, version, clientId, disconnectedNodeAcknowledged); + return localVarResponse.Data; + } + + /// + /// Deletes a reporting task + /// + /// Thrown when fails to make API call + /// The reporting task id. + /// The revision is used to verify the client is working with the latest version of the flow. (optional) + /// If the client id is not specified, new one will be generated. This value (whether specified or generated) is included in the response. (optional) + /// Acknowledges that this node is disconnected to allow for mutable requests to proceed. (optional, default to false) + /// ApiResponse of ReportingTaskEntity + public ApiResponse< ReportingTaskEntity > RemoveReportingTaskWithHttpInfo (string id, string version = null, string clientId = null, bool? disconnectedNodeAcknowledged = null) + { + // verify the required parameter 'id' is set + if (id == null) + throw new ApiException(400, "Missing required parameter 'id' when calling ReportingTasksApi->RemoveReportingTask"); + + var localVarPath = "/reporting-tasks/{id}"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "*/*" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter + if (version != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "version", version)); // query parameter + if (clientId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "clientId", clientId)); // query parameter + if (disconnectedNodeAcknowledged != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "disconnectedNodeAcknowledged", disconnectedNodeAcknowledged)); // query parameter + + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.DELETE, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (this.ExceptionFactory != null) + { + Exception exception = this.ExceptionFactory("RemoveReportingTask", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), + (ReportingTaskEntity) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(ReportingTaskEntity))); + } + + /// + /// Deletes a reporting task + /// + /// Thrown when fails to make API call + /// The reporting task id. + /// The revision is used to verify the client is working with the latest version of the flow. (optional) + /// If the client id is not specified, new one will be generated. This value (whether specified or generated) is included in the response. (optional) + /// Acknowledges that this node is disconnected to allow for mutable requests to proceed. (optional, default to false) + /// Task of ReportingTaskEntity + public async System.Threading.Tasks.Task RemoveReportingTaskAsync (string id, string version = null, string clientId = null, bool? disconnectedNodeAcknowledged = null) + { + ApiResponse localVarResponse = await this.RemoveReportingTaskAsyncWithHttpInfo(id, version, clientId, disconnectedNodeAcknowledged); + return localVarResponse.Data; + + } + + /// + /// Deletes a reporting task + /// + /// Thrown when fails to make API call + /// The reporting task id. + /// The revision is used to verify the client is working with the latest version of the flow. (optional) + /// If the client id is not specified, new one will be generated. This value (whether specified or generated) is included in the response. (optional) + /// Acknowledges that this node is disconnected to allow for mutable requests to proceed. (optional, default to false) + /// Task of ApiResponse (ReportingTaskEntity) + public async System.Threading.Tasks.Task> RemoveReportingTaskAsyncWithHttpInfo (string id, string version = null, string clientId = null, bool? disconnectedNodeAcknowledged = null) + { + // verify the required parameter 'id' is set + if (id == null) + throw new ApiException(400, "Missing required parameter 'id' when calling ReportingTasksApi->RemoveReportingTask"); + + var localVarPath = "/reporting-tasks/{id}"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "*/*" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter + if (version != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "version", version)); // query parameter + if (clientId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "clientId", clientId)); // query parameter + if (disconnectedNodeAcknowledged != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "disconnectedNodeAcknowledged", disconnectedNodeAcknowledged)); // query parameter + + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.DELETE, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (this.ExceptionFactory != null) + { + Exception exception = this.ExceptionFactory("RemoveReportingTask", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), + (ReportingTaskEntity) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(ReportingTaskEntity))); + } + + /// + /// Updates a reporting task + /// + /// Thrown when fails to make API call + /// The reporting task id. + /// The reporting task configuration details. + /// ReportingTaskEntity + public ReportingTaskEntity UpdateReportingTask (string id, ReportingTaskEntity body) + { + ApiResponse localVarResponse = this.UpdateReportingTaskWithHttpInfo(id, body); + return localVarResponse.Data; + } + + /// + /// Updates a reporting task + /// + /// Thrown when fails to make API call + /// The reporting task id. + /// The reporting task configuration details. + /// ApiResponse of ReportingTaskEntity + public ApiResponse< ReportingTaskEntity > UpdateReportingTaskWithHttpInfo (string id, ReportingTaskEntity body) + { + // verify the required parameter 'id' is set + if (id == null) + throw new ApiException(400, "Missing required parameter 'id' when calling ReportingTasksApi->UpdateReportingTask"); + // verify the required parameter 'body' is set + if (body == null) + throw new ApiException(400, "Missing required parameter 'body' when calling ReportingTasksApi->UpdateReportingTask"); + + var localVarPath = "/reporting-tasks/{id}"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "application/json" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter + if (body != null && body.GetType() != typeof(byte[])) + { + localVarPostBody = this.Configuration.ApiClient.Serialize(body); // http body (model) parameter + } + else + { + localVarPostBody = body; // byte array + } + + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.PUT, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (this.ExceptionFactory != null) + { + Exception exception = this.ExceptionFactory("UpdateReportingTask", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), + (ReportingTaskEntity) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(ReportingTaskEntity))); + } + + /// + /// Updates a reporting task + /// + /// Thrown when fails to make API call + /// The reporting task id. + /// The reporting task configuration details. + /// Task of ReportingTaskEntity + public async System.Threading.Tasks.Task UpdateReportingTaskAsync (string id, ReportingTaskEntity body) + { + ApiResponse localVarResponse = await this.UpdateReportingTaskAsyncWithHttpInfo(id, body); + return localVarResponse.Data; + + } + + /// + /// Updates a reporting task + /// + /// Thrown when fails to make API call + /// The reporting task id. + /// The reporting task configuration details. + /// Task of ApiResponse (ReportingTaskEntity) + public async System.Threading.Tasks.Task> UpdateReportingTaskAsyncWithHttpInfo (string id, ReportingTaskEntity body) + { + // verify the required parameter 'id' is set + if (id == null) + throw new ApiException(400, "Missing required parameter 'id' when calling ReportingTasksApi->UpdateReportingTask"); + // verify the required parameter 'body' is set + if (body == null) + throw new ApiException(400, "Missing required parameter 'body' when calling ReportingTasksApi->UpdateReportingTask"); + + var localVarPath = "/reporting-tasks/{id}"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "application/json" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter + if (body != null && body.GetType() != typeof(byte[])) + { + localVarPostBody = this.Configuration.ApiClient.Serialize(body); // http body (model) parameter + } + else + { + localVarPostBody = body; // byte array + } + + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.PUT, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (this.ExceptionFactory != null) + { + Exception exception = this.ExceptionFactory("UpdateReportingTask", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), + (ReportingTaskEntity) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(ReportingTaskEntity))); + } + + /// + /// Updates run status of a reporting task + /// + /// Thrown when fails to make API call + /// The reporting task id. + /// The reporting task run status. + /// ReportingTaskEntity + public ReportingTaskEntity UpdateRunStatus (string id, ReportingTaskRunStatusEntity body) + { + ApiResponse localVarResponse = this.UpdateRunStatusWithHttpInfo(id, body); + return localVarResponse.Data; + } + + /// + /// Updates run status of a reporting task + /// + /// Thrown when fails to make API call + /// The reporting task id. + /// The reporting task run status. + /// ApiResponse of ReportingTaskEntity + public ApiResponse< ReportingTaskEntity > UpdateRunStatusWithHttpInfo (string id, ReportingTaskRunStatusEntity body) + { + // verify the required parameter 'id' is set + if (id == null) + throw new ApiException(400, "Missing required parameter 'id' when calling ReportingTasksApi->UpdateRunStatus"); + // verify the required parameter 'body' is set + if (body == null) + throw new ApiException(400, "Missing required parameter 'body' when calling ReportingTasksApi->UpdateRunStatus"); + + var localVarPath = "/reporting-tasks/{id}/run-status"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "application/json" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter + if (body != null && body.GetType() != typeof(byte[])) + { + localVarPostBody = this.Configuration.ApiClient.Serialize(body); // http body (model) parameter + } + else + { + localVarPostBody = body; // byte array + } + + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.PUT, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (this.ExceptionFactory != null) + { + Exception exception = this.ExceptionFactory("UpdateRunStatus", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), + (ReportingTaskEntity) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(ReportingTaskEntity))); + } + + /// + /// Updates run status of a reporting task + /// + /// Thrown when fails to make API call + /// The reporting task id. + /// The reporting task run status. + /// Task of ReportingTaskEntity + public async System.Threading.Tasks.Task UpdateRunStatusAsync (string id, ReportingTaskRunStatusEntity body) + { + ApiResponse localVarResponse = await this.UpdateRunStatusAsyncWithHttpInfo(id, body); + return localVarResponse.Data; + + } + + /// + /// Updates run status of a reporting task + /// + /// Thrown when fails to make API call + /// The reporting task id. + /// The reporting task run status. + /// Task of ApiResponse (ReportingTaskEntity) + public async System.Threading.Tasks.Task> UpdateRunStatusAsyncWithHttpInfo (string id, ReportingTaskRunStatusEntity body) + { + // verify the required parameter 'id' is set + if (id == null) + throw new ApiException(400, "Missing required parameter 'id' when calling ReportingTasksApi->UpdateRunStatus"); + // verify the required parameter 'body' is set + if (body == null) + throw new ApiException(400, "Missing required parameter 'body' when calling ReportingTasksApi->UpdateRunStatus"); + + var localVarPath = "/reporting-tasks/{id}/run-status"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "application/json" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter + if (body != null && body.GetType() != typeof(byte[])) + { + localVarPostBody = this.Configuration.ApiClient.Serialize(body); // http body (model) parameter + } + else + { + localVarPostBody = body; // byte array + } + + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.PUT, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (this.ExceptionFactory != null) + { + Exception exception = this.ExceptionFactory("UpdateRunStatus", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), + (ReportingTaskEntity) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(ReportingTaskEntity))); + } + + } +} diff --git a/NiFi.Swagger/Api/ResourcesApi.cs b/NiFi.Swagger/Api/ResourcesApi.cs new file mode 100644 index 0000000..664b39b --- /dev/null +++ b/NiFi.Swagger/Api/ResourcesApi.cs @@ -0,0 +1,293 @@ +/* + * NiFi Rest Api + * + * The Rest Api provides programmatic access to command and control a NiFi instance in real time. Start and stop processors, monitor queues, query provenance data, and more. Each endpoint below includes a description, definitions of the expected input and output, potential response codes, and the authorizations required to invoke each service. + * + * OpenAPI spec version: 1.9.1 + * Contact: dev@nifi.apache.org + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +namespace NiFi.Swagger.Api +{ + using System; + using System.Collections.Generic; + using System.Collections.ObjectModel; + using System.Linq; + + using NiFi.Swagger.Client; + using NiFi.Swagger.Model; + + using RestSharp; + + /// + /// Represents a collection of functions to interact with the API endpoints + /// + public interface IResourcesApi : IApiAccessor + { + #region Synchronous Operations + /// + /// Gets the available resources that support access/authorization policies + /// + /// + /// + /// + /// Thrown when fails to make API call + /// ResourcesEntity + ResourcesEntity GetResources (); + + /// + /// Gets the available resources that support access/authorization policies + /// + /// + /// + /// + /// Thrown when fails to make API call + /// ApiResponse of ResourcesEntity + ApiResponse GetResourcesWithHttpInfo (); + #endregion Synchronous Operations + #region Asynchronous Operations + /// + /// Gets the available resources that support access/authorization policies + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Task of ResourcesEntity + System.Threading.Tasks.Task GetResourcesAsync (); + + /// + /// Gets the available resources that support access/authorization policies + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Task of ApiResponse (ResourcesEntity) + System.Threading.Tasks.Task> GetResourcesAsyncWithHttpInfo (); + #endregion Asynchronous Operations + } + + /// + /// Represents a collection of functions to interact with the API endpoints + /// + public partial class ResourcesApi : IResourcesApi + { + private ExceptionFactory _exceptionFactory = (name, response) => null; + + /// + /// Initializes a new instance of the class. + /// + /// + public ResourcesApi(String basePath) + { + this.Configuration = new Configuration { BasePath = basePath }; + + this.ExceptionFactory = Configuration.DefaultExceptionFactory; + } + + /// + /// Initializes a new instance of the class + /// using Configuration object + /// + /// An instance of Configuration + /// + public ResourcesApi(Configuration configuration = null) + { + if (configuration == null) // use the default one in Configuration + this.Configuration = Configuration.Default; + else + this.Configuration = configuration; + + this.ExceptionFactory = Configuration.DefaultExceptionFactory; + } + + /// + /// Gets the base path of the API client. + /// + /// The base path + public String GetBasePath() + { + return this.Configuration.ApiClient.RestClient.BaseUrl.ToString(); + } + + /// + /// Sets the base path of the API client. + /// + /// The base path + [Obsolete("SetBasePath is deprecated, please do 'Configuration.ApiClient = new ApiClient(\"http://new-path\")' instead.")] + public void SetBasePath(String basePath) + { + // do nothing + } + + /// + /// Gets or sets the configuration object + /// + /// An instance of the Configuration + public Configuration Configuration {get; set;} + + /// + /// Provides a factory method hook for the creation of exceptions. + /// + public ExceptionFactory ExceptionFactory + { + get + { + if (this._exceptionFactory != null && this._exceptionFactory.GetInvocationList().Length > 1) + { + throw new InvalidOperationException("Multicast delegate for ExceptionFactory is unsupported."); + } + return this._exceptionFactory; + } + set { this._exceptionFactory = value; } + } + + /// + /// Gets the default header. + /// + /// Dictionary of HTTP header + [Obsolete("DefaultHeader is deprecated, please use Configuration.DefaultHeader instead.")] + public IDictionary DefaultHeader() + { + return new ReadOnlyDictionary(this.Configuration.DefaultHeader); + } + + /// + /// Add default header. + /// + /// Header field name. + /// Header field value. + /// + [Obsolete("AddDefaultHeader is deprecated, please use Configuration.AddDefaultHeader instead.")] + public void AddDefaultHeader(string key, string value) + { + this.Configuration.AddDefaultHeader(key, value); + } + + /// + /// Gets the available resources that support access/authorization policies + /// + /// Thrown when fails to make API call + /// ResourcesEntity + public ResourcesEntity GetResources () + { + ApiResponse localVarResponse = this.GetResourcesWithHttpInfo(); + return localVarResponse.Data; + } + + /// + /// Gets the available resources that support access/authorization policies + /// + /// Thrown when fails to make API call + /// ApiResponse of ResourcesEntity + public ApiResponse< ResourcesEntity > GetResourcesWithHttpInfo () + { + + var localVarPath = "/resources"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "*/*" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (this.ExceptionFactory != null) + { + Exception exception = this.ExceptionFactory("GetResources", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), + (ResourcesEntity) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(ResourcesEntity))); + } + + /// + /// Gets the available resources that support access/authorization policies + /// + /// Thrown when fails to make API call + /// Task of ResourcesEntity + public async System.Threading.Tasks.Task GetResourcesAsync () + { + ApiResponse localVarResponse = await this.GetResourcesAsyncWithHttpInfo(); + return localVarResponse.Data; + + } + + /// + /// Gets the available resources that support access/authorization policies + /// + /// Thrown when fails to make API call + /// Task of ApiResponse (ResourcesEntity) + public async System.Threading.Tasks.Task> GetResourcesAsyncWithHttpInfo () + { + + var localVarPath = "/resources"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "*/*" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (this.ExceptionFactory != null) + { + Exception exception = this.ExceptionFactory("GetResources", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), + (ResourcesEntity) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(ResourcesEntity))); + } + + } +} diff --git a/NiFi.Swagger/Api/SiteToSiteApi.cs b/NiFi.Swagger/Api/SiteToSiteApi.cs new file mode 100644 index 0000000..11fb5ba --- /dev/null +++ b/NiFi.Swagger/Api/SiteToSiteApi.cs @@ -0,0 +1,456 @@ +/* + * NiFi Rest Api + * + * The Rest Api provides programmatic access to command and control a NiFi instance in real time. Start and stop processors, monitor queues, query provenance data, and more. Each endpoint below includes a description, definitions of the expected input and output, potential response codes, and the authorizations required to invoke each service. + * + * OpenAPI spec version: 1.9.1 + * Contact: dev@nifi.apache.org + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +namespace NiFi.Swagger.Api +{ + using System; + using System.Collections.Generic; + using System.Collections.ObjectModel; + using System.Linq; + + using NiFi.Swagger.Client; + using NiFi.Swagger.Model; + + using RestSharp; + + /// + /// Represents a collection of functions to interact with the API endpoints + /// + public interface ISiteToSiteApi : IApiAccessor + { + #region Synchronous Operations + /// + /// Returns the available Peers and its status of this NiFi + /// + /// + /// + /// + /// Thrown when fails to make API call + /// PeersEntity + PeersEntity GetPeers (); + + /// + /// Returns the available Peers and its status of this NiFi + /// + /// + /// + /// + /// Thrown when fails to make API call + /// ApiResponse of PeersEntity + ApiResponse GetPeersWithHttpInfo (); + /// + /// Returns the details about this NiFi necessary to communicate via site to site + /// + /// + /// + /// + /// Thrown when fails to make API call + /// ControllerEntity + ControllerEntity GetSiteToSiteDetails (); + + /// + /// Returns the details about this NiFi necessary to communicate via site to site + /// + /// + /// + /// + /// Thrown when fails to make API call + /// ApiResponse of ControllerEntity + ApiResponse GetSiteToSiteDetailsWithHttpInfo (); + #endregion Synchronous Operations + #region Asynchronous Operations + /// + /// Returns the available Peers and its status of this NiFi + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Task of PeersEntity + System.Threading.Tasks.Task GetPeersAsync (); + + /// + /// Returns the available Peers and its status of this NiFi + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Task of ApiResponse (PeersEntity) + System.Threading.Tasks.Task> GetPeersAsyncWithHttpInfo (); + /// + /// Returns the details about this NiFi necessary to communicate via site to site + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Task of ControllerEntity + System.Threading.Tasks.Task GetSiteToSiteDetailsAsync (); + + /// + /// Returns the details about this NiFi necessary to communicate via site to site + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Task of ApiResponse (ControllerEntity) + System.Threading.Tasks.Task> GetSiteToSiteDetailsAsyncWithHttpInfo (); + #endregion Asynchronous Operations + } + + /// + /// Represents a collection of functions to interact with the API endpoints + /// + public partial class SiteToSiteApi : ISiteToSiteApi + { + private ExceptionFactory _exceptionFactory = (name, response) => null; + + /// + /// Initializes a new instance of the class. + /// + /// + public SiteToSiteApi(String basePath) + { + this.Configuration = new Configuration { BasePath = basePath }; + + this.ExceptionFactory = Configuration.DefaultExceptionFactory; + } + + /// + /// Initializes a new instance of the class + /// using Configuration object + /// + /// An instance of Configuration + /// + public SiteToSiteApi(Configuration configuration = null) + { + if (configuration == null) // use the default one in Configuration + this.Configuration = Configuration.Default; + else + this.Configuration = configuration; + + this.ExceptionFactory = Configuration.DefaultExceptionFactory; + } + + /// + /// Gets the base path of the API client. + /// + /// The base path + public String GetBasePath() + { + return this.Configuration.ApiClient.RestClient.BaseUrl.ToString(); + } + + /// + /// Sets the base path of the API client. + /// + /// The base path + [Obsolete("SetBasePath is deprecated, please do 'Configuration.ApiClient = new ApiClient(\"http://new-path\")' instead.")] + public void SetBasePath(String basePath) + { + // do nothing + } + + /// + /// Gets or sets the configuration object + /// + /// An instance of the Configuration + public Configuration Configuration {get; set;} + + /// + /// Provides a factory method hook for the creation of exceptions. + /// + public ExceptionFactory ExceptionFactory + { + get + { + if (this._exceptionFactory != null && this._exceptionFactory.GetInvocationList().Length > 1) + { + throw new InvalidOperationException("Multicast delegate for ExceptionFactory is unsupported."); + } + return this._exceptionFactory; + } + set { this._exceptionFactory = value; } + } + + /// + /// Gets the default header. + /// + /// Dictionary of HTTP header + [Obsolete("DefaultHeader is deprecated, please use Configuration.DefaultHeader instead.")] + public IDictionary DefaultHeader() + { + return new ReadOnlyDictionary(this.Configuration.DefaultHeader); + } + + /// + /// Add default header. + /// + /// Header field name. + /// Header field value. + /// + [Obsolete("AddDefaultHeader is deprecated, please use Configuration.AddDefaultHeader instead.")] + public void AddDefaultHeader(string key, string value) + { + this.Configuration.AddDefaultHeader(key, value); + } + + /// + /// Returns the available Peers and its status of this NiFi + /// + /// Thrown when fails to make API call + /// PeersEntity + public PeersEntity GetPeers () + { + ApiResponse localVarResponse = this.GetPeersWithHttpInfo(); + return localVarResponse.Data; + } + + /// + /// Returns the available Peers and its status of this NiFi + /// + /// Thrown when fails to make API call + /// ApiResponse of PeersEntity + public ApiResponse< PeersEntity > GetPeersWithHttpInfo () + { + + var localVarPath = "/site-to-site/peers"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "*/*" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "application/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (this.ExceptionFactory != null) + { + Exception exception = this.ExceptionFactory("GetPeers", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), + (PeersEntity) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(PeersEntity))); + } + + /// + /// Returns the available Peers and its status of this NiFi + /// + /// Thrown when fails to make API call + /// Task of PeersEntity + public async System.Threading.Tasks.Task GetPeersAsync () + { + ApiResponse localVarResponse = await this.GetPeersAsyncWithHttpInfo(); + return localVarResponse.Data; + + } + + /// + /// Returns the available Peers and its status of this NiFi + /// + /// Thrown when fails to make API call + /// Task of ApiResponse (PeersEntity) + public async System.Threading.Tasks.Task> GetPeersAsyncWithHttpInfo () + { + + var localVarPath = "/site-to-site/peers"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "*/*" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json", + "application/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (this.ExceptionFactory != null) + { + Exception exception = this.ExceptionFactory("GetPeers", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), + (PeersEntity) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(PeersEntity))); + } + + /// + /// Returns the details about this NiFi necessary to communicate via site to site + /// + /// Thrown when fails to make API call + /// ControllerEntity + public ControllerEntity GetSiteToSiteDetails () + { + ApiResponse localVarResponse = this.GetSiteToSiteDetailsWithHttpInfo(); + return localVarResponse.Data; + } + + /// + /// Returns the details about this NiFi necessary to communicate via site to site + /// + /// Thrown when fails to make API call + /// ApiResponse of ControllerEntity + public ApiResponse< ControllerEntity > GetSiteToSiteDetailsWithHttpInfo () + { + + var localVarPath = "/site-to-site"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "*/*" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (this.ExceptionFactory != null) + { + Exception exception = this.ExceptionFactory("GetSiteToSiteDetails", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), + (ControllerEntity) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(ControllerEntity))); + } + + /// + /// Returns the details about this NiFi necessary to communicate via site to site + /// + /// Thrown when fails to make API call + /// Task of ControllerEntity + public async System.Threading.Tasks.Task GetSiteToSiteDetailsAsync () + { + ApiResponse localVarResponse = await this.GetSiteToSiteDetailsAsyncWithHttpInfo(); + return localVarResponse.Data; + + } + + /// + /// Returns the details about this NiFi necessary to communicate via site to site + /// + /// Thrown when fails to make API call + /// Task of ApiResponse (ControllerEntity) + public async System.Threading.Tasks.Task> GetSiteToSiteDetailsAsyncWithHttpInfo () + { + + var localVarPath = "/site-to-site"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "*/*" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (this.ExceptionFactory != null) + { + Exception exception = this.ExceptionFactory("GetSiteToSiteDetails", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), + (ControllerEntity) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(ControllerEntity))); + } + + } +} diff --git a/NiFi.Swagger/Api/SnippetsApi.cs b/NiFi.Swagger/Api/SnippetsApi.cs new file mode 100644 index 0000000..00186f7 --- /dev/null +++ b/NiFi.Swagger/Api/SnippetsApi.cs @@ -0,0 +1,717 @@ +/* + * NiFi Rest Api + * + * The Rest Api provides programmatic access to command and control a NiFi instance in real time. Start and stop processors, monitor queues, query provenance data, and more. Each endpoint below includes a description, definitions of the expected input and output, potential response codes, and the authorizations required to invoke each service. + * + * OpenAPI spec version: 1.9.1 + * Contact: dev@nifi.apache.org + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +namespace NiFi.Swagger.Api +{ + using System; + using System.Collections.Generic; + using System.Collections.ObjectModel; + using System.Linq; + + using NiFi.Swagger.Client; + using NiFi.Swagger.Model; + + using RestSharp; + + /// + /// Represents a collection of functions to interact with the API endpoints + /// + public interface ISnippetsApi : IApiAccessor + { + #region Synchronous Operations + /// + /// Creates a snippet. The snippet will be automatically discarded if not used in a subsequent request after 1 minute. + /// + /// + /// + /// + /// Thrown when fails to make API call + /// The snippet configuration details. + /// SnippetEntity + SnippetEntity CreateSnippet (SnippetEntity body); + + /// + /// Creates a snippet. The snippet will be automatically discarded if not used in a subsequent request after 1 minute. + /// + /// + /// + /// + /// Thrown when fails to make API call + /// The snippet configuration details. + /// ApiResponse of SnippetEntity + ApiResponse CreateSnippetWithHttpInfo (SnippetEntity body); + /// + /// Deletes the components in a snippet and discards the snippet + /// + /// + /// + /// + /// Thrown when fails to make API call + /// The snippet id. + /// Acknowledges that this node is disconnected to allow for mutable requests to proceed. (optional, default to false) + /// SnippetEntity + SnippetEntity DeleteSnippet (string id, bool? disconnectedNodeAcknowledged = null); + + /// + /// Deletes the components in a snippet and discards the snippet + /// + /// + /// + /// + /// Thrown when fails to make API call + /// The snippet id. + /// Acknowledges that this node is disconnected to allow for mutable requests to proceed. (optional, default to false) + /// ApiResponse of SnippetEntity + ApiResponse DeleteSnippetWithHttpInfo (string id, bool? disconnectedNodeAcknowledged = null); + /// + /// Move's the components in this Snippet into a new Process Group and discards the snippet + /// + /// + /// + /// + /// Thrown when fails to make API call + /// The snippet id. + /// The snippet configuration details. + /// SnippetEntity + SnippetEntity UpdateSnippet (string id, SnippetEntity body); + + /// + /// Move's the components in this Snippet into a new Process Group and discards the snippet + /// + /// + /// + /// + /// Thrown when fails to make API call + /// The snippet id. + /// The snippet configuration details. + /// ApiResponse of SnippetEntity + ApiResponse UpdateSnippetWithHttpInfo (string id, SnippetEntity body); + #endregion Synchronous Operations + #region Asynchronous Operations + /// + /// Creates a snippet. The snippet will be automatically discarded if not used in a subsequent request after 1 minute. + /// + /// + /// + /// + /// Thrown when fails to make API call + /// The snippet configuration details. + /// Task of SnippetEntity + System.Threading.Tasks.Task CreateSnippetAsync (SnippetEntity body); + + /// + /// Creates a snippet. The snippet will be automatically discarded if not used in a subsequent request after 1 minute. + /// + /// + /// + /// + /// Thrown when fails to make API call + /// The snippet configuration details. + /// Task of ApiResponse (SnippetEntity) + System.Threading.Tasks.Task> CreateSnippetAsyncWithHttpInfo (SnippetEntity body); + /// + /// Deletes the components in a snippet and discards the snippet + /// + /// + /// + /// + /// Thrown when fails to make API call + /// The snippet id. + /// Acknowledges that this node is disconnected to allow for mutable requests to proceed. (optional, default to false) + /// Task of SnippetEntity + System.Threading.Tasks.Task DeleteSnippetAsync (string id, bool? disconnectedNodeAcknowledged = null); + + /// + /// Deletes the components in a snippet and discards the snippet + /// + /// + /// + /// + /// Thrown when fails to make API call + /// The snippet id. + /// Acknowledges that this node is disconnected to allow for mutable requests to proceed. (optional, default to false) + /// Task of ApiResponse (SnippetEntity) + System.Threading.Tasks.Task> DeleteSnippetAsyncWithHttpInfo (string id, bool? disconnectedNodeAcknowledged = null); + /// + /// Move's the components in this Snippet into a new Process Group and discards the snippet + /// + /// + /// + /// + /// Thrown when fails to make API call + /// The snippet id. + /// The snippet configuration details. + /// Task of SnippetEntity + System.Threading.Tasks.Task UpdateSnippetAsync (string id, SnippetEntity body); + + /// + /// Move's the components in this Snippet into a new Process Group and discards the snippet + /// + /// + /// + /// + /// Thrown when fails to make API call + /// The snippet id. + /// The snippet configuration details. + /// Task of ApiResponse (SnippetEntity) + System.Threading.Tasks.Task> UpdateSnippetAsyncWithHttpInfo (string id, SnippetEntity body); + #endregion Asynchronous Operations + } + + /// + /// Represents a collection of functions to interact with the API endpoints + /// + public partial class SnippetsApi : ISnippetsApi + { + private ExceptionFactory _exceptionFactory = (name, response) => null; + + /// + /// Initializes a new instance of the class. + /// + /// + public SnippetsApi(String basePath) + { + this.Configuration = new Configuration { BasePath = basePath }; + + this.ExceptionFactory = Configuration.DefaultExceptionFactory; + } + + /// + /// Initializes a new instance of the class + /// using Configuration object + /// + /// An instance of Configuration + /// + public SnippetsApi(Configuration configuration = null) + { + if (configuration == null) // use the default one in Configuration + this.Configuration = Configuration.Default; + else + this.Configuration = configuration; + + this.ExceptionFactory = Configuration.DefaultExceptionFactory; + } + + /// + /// Gets the base path of the API client. + /// + /// The base path + public String GetBasePath() + { + return this.Configuration.ApiClient.RestClient.BaseUrl.ToString(); + } + + /// + /// Sets the base path of the API client. + /// + /// The base path + [Obsolete("SetBasePath is deprecated, please do 'Configuration.ApiClient = new ApiClient(\"http://new-path\")' instead.")] + public void SetBasePath(String basePath) + { + // do nothing + } + + /// + /// Gets or sets the configuration object + /// + /// An instance of the Configuration + public Configuration Configuration {get; set;} + + /// + /// Provides a factory method hook for the creation of exceptions. + /// + public ExceptionFactory ExceptionFactory + { + get + { + if (this._exceptionFactory != null && this._exceptionFactory.GetInvocationList().Length > 1) + { + throw new InvalidOperationException("Multicast delegate for ExceptionFactory is unsupported."); + } + return this._exceptionFactory; + } + set { this._exceptionFactory = value; } + } + + /// + /// Gets the default header. + /// + /// Dictionary of HTTP header + [Obsolete("DefaultHeader is deprecated, please use Configuration.DefaultHeader instead.")] + public IDictionary DefaultHeader() + { + return new ReadOnlyDictionary(this.Configuration.DefaultHeader); + } + + /// + /// Add default header. + /// + /// Header field name. + /// Header field value. + /// + [Obsolete("AddDefaultHeader is deprecated, please use Configuration.AddDefaultHeader instead.")] + public void AddDefaultHeader(string key, string value) + { + this.Configuration.AddDefaultHeader(key, value); + } + + /// + /// Creates a snippet. The snippet will be automatically discarded if not used in a subsequent request after 1 minute. + /// + /// Thrown when fails to make API call + /// The snippet configuration details. + /// SnippetEntity + public SnippetEntity CreateSnippet (SnippetEntity body) + { + ApiResponse localVarResponse = this.CreateSnippetWithHttpInfo(body); + return localVarResponse.Data; + } + + /// + /// Creates a snippet. The snippet will be automatically discarded if not used in a subsequent request after 1 minute. + /// + /// Thrown when fails to make API call + /// The snippet configuration details. + /// ApiResponse of SnippetEntity + public ApiResponse< SnippetEntity > CreateSnippetWithHttpInfo (SnippetEntity body) + { + // verify the required parameter 'body' is set + if (body == null) + throw new ApiException(400, "Missing required parameter 'body' when calling SnippetsApi->CreateSnippet"); + + var localVarPath = "/snippets"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "application/json" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (body != null && body.GetType() != typeof(byte[])) + { + localVarPostBody = this.Configuration.ApiClient.Serialize(body); // http body (model) parameter + } + else + { + localVarPostBody = body; // byte array + } + + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (this.ExceptionFactory != null) + { + Exception exception = this.ExceptionFactory("CreateSnippet", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), + (SnippetEntity) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(SnippetEntity))); + } + + /// + /// Creates a snippet. The snippet will be automatically discarded if not used in a subsequent request after 1 minute. + /// + /// Thrown when fails to make API call + /// The snippet configuration details. + /// Task of SnippetEntity + public async System.Threading.Tasks.Task CreateSnippetAsync (SnippetEntity body) + { + ApiResponse localVarResponse = await this.CreateSnippetAsyncWithHttpInfo(body); + return localVarResponse.Data; + + } + + /// + /// Creates a snippet. The snippet will be automatically discarded if not used in a subsequent request after 1 minute. + /// + /// Thrown when fails to make API call + /// The snippet configuration details. + /// Task of ApiResponse (SnippetEntity) + public async System.Threading.Tasks.Task> CreateSnippetAsyncWithHttpInfo (SnippetEntity body) + { + // verify the required parameter 'body' is set + if (body == null) + throw new ApiException(400, "Missing required parameter 'body' when calling SnippetsApi->CreateSnippet"); + + var localVarPath = "/snippets"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "application/json" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (body != null && body.GetType() != typeof(byte[])) + { + localVarPostBody = this.Configuration.ApiClient.Serialize(body); // http body (model) parameter + } + else + { + localVarPostBody = body; // byte array + } + + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (this.ExceptionFactory != null) + { + Exception exception = this.ExceptionFactory("CreateSnippet", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), + (SnippetEntity) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(SnippetEntity))); + } + + /// + /// Deletes the components in a snippet and discards the snippet + /// + /// Thrown when fails to make API call + /// The snippet id. + /// Acknowledges that this node is disconnected to allow for mutable requests to proceed. (optional, default to false) + /// SnippetEntity + public SnippetEntity DeleteSnippet (string id, bool? disconnectedNodeAcknowledged = null) + { + ApiResponse localVarResponse = this.DeleteSnippetWithHttpInfo(id, disconnectedNodeAcknowledged); + return localVarResponse.Data; + } + + /// + /// Deletes the components in a snippet and discards the snippet + /// + /// Thrown when fails to make API call + /// The snippet id. + /// Acknowledges that this node is disconnected to allow for mutable requests to proceed. (optional, default to false) + /// ApiResponse of SnippetEntity + public ApiResponse< SnippetEntity > DeleteSnippetWithHttpInfo (string id, bool? disconnectedNodeAcknowledged = null) + { + // verify the required parameter 'id' is set + if (id == null) + throw new ApiException(400, "Missing required parameter 'id' when calling SnippetsApi->DeleteSnippet"); + + var localVarPath = "/snippets/{id}"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "*/*" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter + if (disconnectedNodeAcknowledged != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "disconnectedNodeAcknowledged", disconnectedNodeAcknowledged)); // query parameter + + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.DELETE, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (this.ExceptionFactory != null) + { + Exception exception = this.ExceptionFactory("DeleteSnippet", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), + (SnippetEntity) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(SnippetEntity))); + } + + /// + /// Deletes the components in a snippet and discards the snippet + /// + /// Thrown when fails to make API call + /// The snippet id. + /// Acknowledges that this node is disconnected to allow for mutable requests to proceed. (optional, default to false) + /// Task of SnippetEntity + public async System.Threading.Tasks.Task DeleteSnippetAsync (string id, bool? disconnectedNodeAcknowledged = null) + { + ApiResponse localVarResponse = await this.DeleteSnippetAsyncWithHttpInfo(id, disconnectedNodeAcknowledged); + return localVarResponse.Data; + + } + + /// + /// Deletes the components in a snippet and discards the snippet + /// + /// Thrown when fails to make API call + /// The snippet id. + /// Acknowledges that this node is disconnected to allow for mutable requests to proceed. (optional, default to false) + /// Task of ApiResponse (SnippetEntity) + public async System.Threading.Tasks.Task> DeleteSnippetAsyncWithHttpInfo (string id, bool? disconnectedNodeAcknowledged = null) + { + // verify the required parameter 'id' is set + if (id == null) + throw new ApiException(400, "Missing required parameter 'id' when calling SnippetsApi->DeleteSnippet"); + + var localVarPath = "/snippets/{id}"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "*/*" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter + if (disconnectedNodeAcknowledged != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "disconnectedNodeAcknowledged", disconnectedNodeAcknowledged)); // query parameter + + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.DELETE, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (this.ExceptionFactory != null) + { + Exception exception = this.ExceptionFactory("DeleteSnippet", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), + (SnippetEntity) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(SnippetEntity))); + } + + /// + /// Move's the components in this Snippet into a new Process Group and discards the snippet + /// + /// Thrown when fails to make API call + /// The snippet id. + /// The snippet configuration details. + /// SnippetEntity + public SnippetEntity UpdateSnippet (string id, SnippetEntity body) + { + ApiResponse localVarResponse = this.UpdateSnippetWithHttpInfo(id, body); + return localVarResponse.Data; + } + + /// + /// Move's the components in this Snippet into a new Process Group and discards the snippet + /// + /// Thrown when fails to make API call + /// The snippet id. + /// The snippet configuration details. + /// ApiResponse of SnippetEntity + public ApiResponse< SnippetEntity > UpdateSnippetWithHttpInfo (string id, SnippetEntity body) + { + // verify the required parameter 'id' is set + if (id == null) + throw new ApiException(400, "Missing required parameter 'id' when calling SnippetsApi->UpdateSnippet"); + // verify the required parameter 'body' is set + if (body == null) + throw new ApiException(400, "Missing required parameter 'body' when calling SnippetsApi->UpdateSnippet"); + + var localVarPath = "/snippets/{id}"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "application/json" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter + if (body != null && body.GetType() != typeof(byte[])) + { + localVarPostBody = this.Configuration.ApiClient.Serialize(body); // http body (model) parameter + } + else + { + localVarPostBody = body; // byte array + } + + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.PUT, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (this.ExceptionFactory != null) + { + Exception exception = this.ExceptionFactory("UpdateSnippet", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), + (SnippetEntity) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(SnippetEntity))); + } + + /// + /// Move's the components in this Snippet into a new Process Group and discards the snippet + /// + /// Thrown when fails to make API call + /// The snippet id. + /// The snippet configuration details. + /// Task of SnippetEntity + public async System.Threading.Tasks.Task UpdateSnippetAsync (string id, SnippetEntity body) + { + ApiResponse localVarResponse = await this.UpdateSnippetAsyncWithHttpInfo(id, body); + return localVarResponse.Data; + + } + + /// + /// Move's the components in this Snippet into a new Process Group and discards the snippet + /// + /// Thrown when fails to make API call + /// The snippet id. + /// The snippet configuration details. + /// Task of ApiResponse (SnippetEntity) + public async System.Threading.Tasks.Task> UpdateSnippetAsyncWithHttpInfo (string id, SnippetEntity body) + { + // verify the required parameter 'id' is set + if (id == null) + throw new ApiException(400, "Missing required parameter 'id' when calling SnippetsApi->UpdateSnippet"); + // verify the required parameter 'body' is set + if (body == null) + throw new ApiException(400, "Missing required parameter 'body' when calling SnippetsApi->UpdateSnippet"); + + var localVarPath = "/snippets/{id}"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "application/json" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter + if (body != null && body.GetType() != typeof(byte[])) + { + localVarPostBody = this.Configuration.ApiClient.Serialize(body); // http body (model) parameter + } + else + { + localVarPostBody = body; // byte array + } + + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.PUT, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (this.ExceptionFactory != null) + { + Exception exception = this.ExceptionFactory("UpdateSnippet", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), + (SnippetEntity) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(SnippetEntity))); + } + + } +} diff --git a/NiFi.Swagger/Api/SystemDiagnosticsApi.cs b/NiFi.Swagger/Api/SystemDiagnosticsApi.cs new file mode 100644 index 0000000..d3ab91d --- /dev/null +++ b/NiFi.Swagger/Api/SystemDiagnosticsApi.cs @@ -0,0 +1,313 @@ +/* + * NiFi Rest Api + * + * The Rest Api provides programmatic access to command and control a NiFi instance in real time. Start and stop processors, monitor queues, query provenance data, and more. Each endpoint below includes a description, definitions of the expected input and output, potential response codes, and the authorizations required to invoke each service. + * + * OpenAPI spec version: 1.9.1 + * Contact: dev@nifi.apache.org + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +namespace NiFi.Swagger.Api +{ + using System; + using System.Collections.Generic; + using System.Collections.ObjectModel; + using System.Linq; + + using NiFi.Swagger.Client; + using NiFi.Swagger.Model; + + using RestSharp; + + /// + /// Represents a collection of functions to interact with the API endpoints + /// + public interface ISystemDiagnosticsApi : IApiAccessor + { + #region Synchronous Operations + /// + /// Gets the diagnostics for the system NiFi is running on + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Whether or not to include the breakdown per node. Optional, defaults to false (optional, default to false) + /// The id of the node where to get the status. (optional) + /// SystemDiagnosticsEntity + SystemDiagnosticsEntity GetSystemDiagnostics (bool? nodewise = null, string clusterNodeId = null); + + /// + /// Gets the diagnostics for the system NiFi is running on + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Whether or not to include the breakdown per node. Optional, defaults to false (optional, default to false) + /// The id of the node where to get the status. (optional) + /// ApiResponse of SystemDiagnosticsEntity + ApiResponse GetSystemDiagnosticsWithHttpInfo (bool? nodewise = null, string clusterNodeId = null); + #endregion Synchronous Operations + #region Asynchronous Operations + /// + /// Gets the diagnostics for the system NiFi is running on + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Whether or not to include the breakdown per node. Optional, defaults to false (optional, default to false) + /// The id of the node where to get the status. (optional) + /// Task of SystemDiagnosticsEntity + System.Threading.Tasks.Task GetSystemDiagnosticsAsync (bool? nodewise = null, string clusterNodeId = null); + + /// + /// Gets the diagnostics for the system NiFi is running on + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Whether or not to include the breakdown per node. Optional, defaults to false (optional, default to false) + /// The id of the node where to get the status. (optional) + /// Task of ApiResponse (SystemDiagnosticsEntity) + System.Threading.Tasks.Task> GetSystemDiagnosticsAsyncWithHttpInfo (bool? nodewise = null, string clusterNodeId = null); + #endregion Asynchronous Operations + } + + /// + /// Represents a collection of functions to interact with the API endpoints + /// + public partial class SystemDiagnosticsApi : ISystemDiagnosticsApi + { + private ExceptionFactory _exceptionFactory = (name, response) => null; + + /// + /// Initializes a new instance of the class. + /// + /// + public SystemDiagnosticsApi(String basePath) + { + this.Configuration = new Configuration { BasePath = basePath }; + + this.ExceptionFactory = Configuration.DefaultExceptionFactory; + } + + /// + /// Initializes a new instance of the class + /// using Configuration object + /// + /// An instance of Configuration + /// + public SystemDiagnosticsApi(Configuration configuration = null) + { + if (configuration == null) // use the default one in Configuration + this.Configuration = Configuration.Default; + else + this.Configuration = configuration; + + this.ExceptionFactory = Configuration.DefaultExceptionFactory; + } + + /// + /// Gets the base path of the API client. + /// + /// The base path + public String GetBasePath() + { + return this.Configuration.ApiClient.RestClient.BaseUrl.ToString(); + } + + /// + /// Sets the base path of the API client. + /// + /// The base path + [Obsolete("SetBasePath is deprecated, please do 'Configuration.ApiClient = new ApiClient(\"http://new-path\")' instead.")] + public void SetBasePath(String basePath) + { + // do nothing + } + + /// + /// Gets or sets the configuration object + /// + /// An instance of the Configuration + public Configuration Configuration {get; set;} + + /// + /// Provides a factory method hook for the creation of exceptions. + /// + public ExceptionFactory ExceptionFactory + { + get + { + if (this._exceptionFactory != null && this._exceptionFactory.GetInvocationList().Length > 1) + { + throw new InvalidOperationException("Multicast delegate for ExceptionFactory is unsupported."); + } + return this._exceptionFactory; + } + set { this._exceptionFactory = value; } + } + + /// + /// Gets the default header. + /// + /// Dictionary of HTTP header + [Obsolete("DefaultHeader is deprecated, please use Configuration.DefaultHeader instead.")] + public IDictionary DefaultHeader() + { + return new ReadOnlyDictionary(this.Configuration.DefaultHeader); + } + + /// + /// Add default header. + /// + /// Header field name. + /// Header field value. + /// + [Obsolete("AddDefaultHeader is deprecated, please use Configuration.AddDefaultHeader instead.")] + public void AddDefaultHeader(string key, string value) + { + this.Configuration.AddDefaultHeader(key, value); + } + + /// + /// Gets the diagnostics for the system NiFi is running on + /// + /// Thrown when fails to make API call + /// Whether or not to include the breakdown per node. Optional, defaults to false (optional, default to false) + /// The id of the node where to get the status. (optional) + /// SystemDiagnosticsEntity + public SystemDiagnosticsEntity GetSystemDiagnostics (bool? nodewise = null, string clusterNodeId = null) + { + ApiResponse localVarResponse = this.GetSystemDiagnosticsWithHttpInfo(nodewise, clusterNodeId); + return localVarResponse.Data; + } + + /// + /// Gets the diagnostics for the system NiFi is running on + /// + /// Thrown when fails to make API call + /// Whether or not to include the breakdown per node. Optional, defaults to false (optional, default to false) + /// The id of the node where to get the status. (optional) + /// ApiResponse of SystemDiagnosticsEntity + public ApiResponse< SystemDiagnosticsEntity > GetSystemDiagnosticsWithHttpInfo (bool? nodewise = null, string clusterNodeId = null) + { + + var localVarPath = "/system-diagnostics"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "*/*" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (nodewise != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "nodewise", nodewise)); // query parameter + if (clusterNodeId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "clusterNodeId", clusterNodeId)); // query parameter + + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (this.ExceptionFactory != null) + { + Exception exception = this.ExceptionFactory("GetSystemDiagnostics", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), + (SystemDiagnosticsEntity) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(SystemDiagnosticsEntity))); + } + + /// + /// Gets the diagnostics for the system NiFi is running on + /// + /// Thrown when fails to make API call + /// Whether or not to include the breakdown per node. Optional, defaults to false (optional, default to false) + /// The id of the node where to get the status. (optional) + /// Task of SystemDiagnosticsEntity + public async System.Threading.Tasks.Task GetSystemDiagnosticsAsync (bool? nodewise = null, string clusterNodeId = null) + { + ApiResponse localVarResponse = await this.GetSystemDiagnosticsAsyncWithHttpInfo(nodewise, clusterNodeId); + return localVarResponse.Data; + + } + + /// + /// Gets the diagnostics for the system NiFi is running on + /// + /// Thrown when fails to make API call + /// Whether or not to include the breakdown per node. Optional, defaults to false (optional, default to false) + /// The id of the node where to get the status. (optional) + /// Task of ApiResponse (SystemDiagnosticsEntity) + public async System.Threading.Tasks.Task> GetSystemDiagnosticsAsyncWithHttpInfo (bool? nodewise = null, string clusterNodeId = null) + { + + var localVarPath = "/system-diagnostics"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "*/*" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (nodewise != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "nodewise", nodewise)); // query parameter + if (clusterNodeId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "clusterNodeId", clusterNodeId)); // query parameter + + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (this.ExceptionFactory != null) + { + Exception exception = this.ExceptionFactory("GetSystemDiagnostics", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), + (SystemDiagnosticsEntity) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(SystemDiagnosticsEntity))); + } + + } +} diff --git a/NiFi.Swagger/Api/TemplatesApi.cs b/NiFi.Swagger/Api/TemplatesApi.cs new file mode 100644 index 0000000..1360d65 --- /dev/null +++ b/NiFi.Swagger/Api/TemplatesApi.cs @@ -0,0 +1,496 @@ +/* + * NiFi Rest Api + * + * The Rest Api provides programmatic access to command and control a NiFi instance in real time. Start and stop processors, monitor queues, query provenance data, and more. Each endpoint below includes a description, definitions of the expected input and output, potential response codes, and the authorizations required to invoke each service. + * + * OpenAPI spec version: 1.9.1 + * Contact: dev@nifi.apache.org + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +namespace NiFi.Swagger.Api +{ + using System; + using System.Collections.Generic; + using System.Collections.ObjectModel; + using System.Linq; + + using NiFi.Swagger.Client; + using NiFi.Swagger.Model; + + using RestSharp; + + /// + /// Represents a collection of functions to interact with the API endpoints + /// + public interface ITemplatesApi : IApiAccessor + { + #region Synchronous Operations + /// + /// Exports a template + /// + /// + /// + /// + /// Thrown when fails to make API call + /// The template id. + /// string + string ExportTemplate (string id); + + /// + /// Exports a template + /// + /// + /// + /// + /// Thrown when fails to make API call + /// The template id. + /// ApiResponse of string + ApiResponse ExportTemplateWithHttpInfo (string id); + /// + /// Deletes a template + /// + /// + /// + /// + /// Thrown when fails to make API call + /// The template id. + /// Acknowledges that this node is disconnected to allow for mutable requests to proceed. (optional, default to false) + /// TemplateEntity + TemplateEntity RemoveTemplate (string id, bool? disconnectedNodeAcknowledged = null); + + /// + /// Deletes a template + /// + /// + /// + /// + /// Thrown when fails to make API call + /// The template id. + /// Acknowledges that this node is disconnected to allow for mutable requests to proceed. (optional, default to false) + /// ApiResponse of TemplateEntity + ApiResponse RemoveTemplateWithHttpInfo (string id, bool? disconnectedNodeAcknowledged = null); + #endregion Synchronous Operations + #region Asynchronous Operations + /// + /// Exports a template + /// + /// + /// + /// + /// Thrown when fails to make API call + /// The template id. + /// Task of string + System.Threading.Tasks.Task ExportTemplateAsync (string id); + + /// + /// Exports a template + /// + /// + /// + /// + /// Thrown when fails to make API call + /// The template id. + /// Task of ApiResponse (string) + System.Threading.Tasks.Task> ExportTemplateAsyncWithHttpInfo (string id); + /// + /// Deletes a template + /// + /// + /// + /// + /// Thrown when fails to make API call + /// The template id. + /// Acknowledges that this node is disconnected to allow for mutable requests to proceed. (optional, default to false) + /// Task of TemplateEntity + System.Threading.Tasks.Task RemoveTemplateAsync (string id, bool? disconnectedNodeAcknowledged = null); + + /// + /// Deletes a template + /// + /// + /// + /// + /// Thrown when fails to make API call + /// The template id. + /// Acknowledges that this node is disconnected to allow for mutable requests to proceed. (optional, default to false) + /// Task of ApiResponse (TemplateEntity) + System.Threading.Tasks.Task> RemoveTemplateAsyncWithHttpInfo (string id, bool? disconnectedNodeAcknowledged = null); + #endregion Asynchronous Operations + } + + /// + /// Represents a collection of functions to interact with the API endpoints + /// + public partial class TemplatesApi : ITemplatesApi + { + private ExceptionFactory _exceptionFactory = (name, response) => null; + + /// + /// Initializes a new instance of the class. + /// + /// + public TemplatesApi(String basePath) + { + this.Configuration = new Configuration { BasePath = basePath }; + + this.ExceptionFactory = Configuration.DefaultExceptionFactory; + } + + /// + /// Initializes a new instance of the class + /// using Configuration object + /// + /// An instance of Configuration + /// + public TemplatesApi(Configuration configuration = null) + { + if (configuration == null) // use the default one in Configuration + this.Configuration = Configuration.Default; + else + this.Configuration = configuration; + + this.ExceptionFactory = Configuration.DefaultExceptionFactory; + } + + /// + /// Gets the base path of the API client. + /// + /// The base path + public String GetBasePath() + { + return this.Configuration.ApiClient.RestClient.BaseUrl.ToString(); + } + + /// + /// Sets the base path of the API client. + /// + /// The base path + [Obsolete("SetBasePath is deprecated, please do 'Configuration.ApiClient = new ApiClient(\"http://new-path\")' instead.")] + public void SetBasePath(String basePath) + { + // do nothing + } + + /// + /// Gets or sets the configuration object + /// + /// An instance of the Configuration + public Configuration Configuration {get; set;} + + /// + /// Provides a factory method hook for the creation of exceptions. + /// + public ExceptionFactory ExceptionFactory + { + get + { + if (this._exceptionFactory != null && this._exceptionFactory.GetInvocationList().Length > 1) + { + throw new InvalidOperationException("Multicast delegate for ExceptionFactory is unsupported."); + } + return this._exceptionFactory; + } + set { this._exceptionFactory = value; } + } + + /// + /// Gets the default header. + /// + /// Dictionary of HTTP header + [Obsolete("DefaultHeader is deprecated, please use Configuration.DefaultHeader instead.")] + public IDictionary DefaultHeader() + { + return new ReadOnlyDictionary(this.Configuration.DefaultHeader); + } + + /// + /// Add default header. + /// + /// Header field name. + /// Header field value. + /// + [Obsolete("AddDefaultHeader is deprecated, please use Configuration.AddDefaultHeader instead.")] + public void AddDefaultHeader(string key, string value) + { + this.Configuration.AddDefaultHeader(key, value); + } + + /// + /// Exports a template + /// + /// Thrown when fails to make API call + /// The template id. + /// string + public string ExportTemplate (string id) + { + ApiResponse localVarResponse = this.ExportTemplateWithHttpInfo(id); + return localVarResponse.Data; + } + + /// + /// Exports a template + /// + /// Thrown when fails to make API call + /// The template id. + /// ApiResponse of string + public ApiResponse< string > ExportTemplateWithHttpInfo (string id) + { + // verify the required parameter 'id' is set + if (id == null) + throw new ApiException(400, "Missing required parameter 'id' when calling TemplatesApi->ExportTemplate"); + + var localVarPath = "/templates/{id}/download"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "*/*" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter + + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (this.ExceptionFactory != null) + { + Exception exception = this.ExceptionFactory("ExportTemplate", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), + (string) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(string))); + } + + /// + /// Exports a template + /// + /// Thrown when fails to make API call + /// The template id. + /// Task of string + public async System.Threading.Tasks.Task ExportTemplateAsync (string id) + { + ApiResponse localVarResponse = await this.ExportTemplateAsyncWithHttpInfo(id); + return localVarResponse.Data; + + } + + /// + /// Exports a template + /// + /// Thrown when fails to make API call + /// The template id. + /// Task of ApiResponse (string) + public async System.Threading.Tasks.Task> ExportTemplateAsyncWithHttpInfo (string id) + { + // verify the required parameter 'id' is set + if (id == null) + throw new ApiException(400, "Missing required parameter 'id' when calling TemplatesApi->ExportTemplate"); + + var localVarPath = "/templates/{id}/download"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "*/*" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/xml" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter + + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (this.ExceptionFactory != null) + { + Exception exception = this.ExceptionFactory("ExportTemplate", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), + (string) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(string))); + } + + /// + /// Deletes a template + /// + /// Thrown when fails to make API call + /// The template id. + /// Acknowledges that this node is disconnected to allow for mutable requests to proceed. (optional, default to false) + /// TemplateEntity + public TemplateEntity RemoveTemplate (string id, bool? disconnectedNodeAcknowledged = null) + { + ApiResponse localVarResponse = this.RemoveTemplateWithHttpInfo(id, disconnectedNodeAcknowledged); + return localVarResponse.Data; + } + + /// + /// Deletes a template + /// + /// Thrown when fails to make API call + /// The template id. + /// Acknowledges that this node is disconnected to allow for mutable requests to proceed. (optional, default to false) + /// ApiResponse of TemplateEntity + public ApiResponse< TemplateEntity > RemoveTemplateWithHttpInfo (string id, bool? disconnectedNodeAcknowledged = null) + { + // verify the required parameter 'id' is set + if (id == null) + throw new ApiException(400, "Missing required parameter 'id' when calling TemplatesApi->RemoveTemplate"); + + var localVarPath = "/templates/{id}"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "*/*" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter + if (disconnectedNodeAcknowledged != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "disconnectedNodeAcknowledged", disconnectedNodeAcknowledged)); // query parameter + + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.DELETE, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (this.ExceptionFactory != null) + { + Exception exception = this.ExceptionFactory("RemoveTemplate", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), + (TemplateEntity) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(TemplateEntity))); + } + + /// + /// Deletes a template + /// + /// Thrown when fails to make API call + /// The template id. + /// Acknowledges that this node is disconnected to allow for mutable requests to proceed. (optional, default to false) + /// Task of TemplateEntity + public async System.Threading.Tasks.Task RemoveTemplateAsync (string id, bool? disconnectedNodeAcknowledged = null) + { + ApiResponse localVarResponse = await this.RemoveTemplateAsyncWithHttpInfo(id, disconnectedNodeAcknowledged); + return localVarResponse.Data; + + } + + /// + /// Deletes a template + /// + /// Thrown when fails to make API call + /// The template id. + /// Acknowledges that this node is disconnected to allow for mutable requests to proceed. (optional, default to false) + /// Task of ApiResponse (TemplateEntity) + public async System.Threading.Tasks.Task> RemoveTemplateAsyncWithHttpInfo (string id, bool? disconnectedNodeAcknowledged = null) + { + // verify the required parameter 'id' is set + if (id == null) + throw new ApiException(400, "Missing required parameter 'id' when calling TemplatesApi->RemoveTemplate"); + + var localVarPath = "/templates/{id}"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "*/*" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter + if (disconnectedNodeAcknowledged != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "disconnectedNodeAcknowledged", disconnectedNodeAcknowledged)); // query parameter + + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.DELETE, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (this.ExceptionFactory != null) + { + Exception exception = this.ExceptionFactory("RemoveTemplate", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), + (TemplateEntity) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(TemplateEntity))); + } + + } +} diff --git a/NiFi.Swagger/Api/TenantsApi.cs b/NiFi.Swagger/Api/TenantsApi.cs new file mode 100644 index 0000000..3b98e89 --- /dev/null +++ b/NiFi.Swagger/Api/TenantsApi.cs @@ -0,0 +1,2195 @@ +/* + * NiFi Rest Api + * + * The Rest Api provides programmatic access to command and control a NiFi instance in real time. Start and stop processors, monitor queues, query provenance data, and more. Each endpoint below includes a description, definitions of the expected input and output, potential response codes, and the authorizations required to invoke each service. + * + * OpenAPI spec version: 1.9.1 + * Contact: dev@nifi.apache.org + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +namespace NiFi.Swagger.Api +{ + using System; + using System.Collections.Generic; + using System.Collections.ObjectModel; + using System.Linq; + + using NiFi.Swagger.Client; + using NiFi.Swagger.Model; + + using RestSharp; + + /// + /// Represents a collection of functions to interact with the API endpoints + /// + public interface ITenantsApi : IApiAccessor + { + #region Synchronous Operations + /// + /// Creates a user + /// + /// + /// Note: This endpoint is subject to change as NiFi and it's REST API evolve. + /// + /// Thrown when fails to make API call + /// The user configuration details. + /// UserEntity + UserEntity CreateUser (UserEntity body); + + /// + /// Creates a user + /// + /// + /// Note: This endpoint is subject to change as NiFi and it's REST API evolve. + /// + /// Thrown when fails to make API call + /// The user configuration details. + /// ApiResponse of UserEntity + ApiResponse CreateUserWithHttpInfo (UserEntity body); + /// + /// Creates a user group + /// + /// + /// Note: This endpoint is subject to change as NiFi and it's REST API evolve. + /// + /// Thrown when fails to make API call + /// The user group configuration details. + /// UserGroupEntity + UserGroupEntity CreateUserGroup (UserGroupEntity body); + + /// + /// Creates a user group + /// + /// + /// Note: This endpoint is subject to change as NiFi and it's REST API evolve. + /// + /// Thrown when fails to make API call + /// The user group configuration details. + /// ApiResponse of UserGroupEntity + ApiResponse CreateUserGroupWithHttpInfo (UserGroupEntity body); + /// + /// Gets a user + /// + /// + /// Note: This endpoint is subject to change as NiFi and it's REST API evolve. + /// + /// Thrown when fails to make API call + /// The user id. + /// UserEntity + UserEntity GetUser (string id); + + /// + /// Gets a user + /// + /// + /// Note: This endpoint is subject to change as NiFi and it's REST API evolve. + /// + /// Thrown when fails to make API call + /// The user id. + /// ApiResponse of UserEntity + ApiResponse GetUserWithHttpInfo (string id); + /// + /// Gets a user group + /// + /// + /// Note: This endpoint is subject to change as NiFi and it's REST API evolve. + /// + /// Thrown when fails to make API call + /// The user group id. + /// UserGroupEntity + UserGroupEntity GetUserGroup (string id); + + /// + /// Gets a user group + /// + /// + /// Note: This endpoint is subject to change as NiFi and it's REST API evolve. + /// + /// Thrown when fails to make API call + /// The user group id. + /// ApiResponse of UserGroupEntity + ApiResponse GetUserGroupWithHttpInfo (string id); + /// + /// Gets all user groups + /// + /// + /// Note: This endpoint is subject to change as NiFi and it's REST API evolve. + /// + /// Thrown when fails to make API call + /// UserGroupsEntity + UserGroupsEntity GetUserGroups (); + + /// + /// Gets all user groups + /// + /// + /// Note: This endpoint is subject to change as NiFi and it's REST API evolve. + /// + /// Thrown when fails to make API call + /// ApiResponse of UserGroupsEntity + ApiResponse GetUserGroupsWithHttpInfo (); + /// + /// Gets all users + /// + /// + /// Note: This endpoint is subject to change as NiFi and it's REST API evolve. + /// + /// Thrown when fails to make API call + /// UsersEntity + UsersEntity GetUsers (); + + /// + /// Gets all users + /// + /// + /// Note: This endpoint is subject to change as NiFi and it's REST API evolve. + /// + /// Thrown when fails to make API call + /// ApiResponse of UsersEntity + ApiResponse GetUsersWithHttpInfo (); + /// + /// Deletes a user + /// + /// + /// Note: This endpoint is subject to change as NiFi and it's REST API evolve. + /// + /// Thrown when fails to make API call + /// The user id. + /// The revision is used to verify the client is working with the latest version of the flow. (optional) + /// If the client id is not specified, new one will be generated. This value (whether specified or generated) is included in the response. (optional) + /// Acknowledges that this node is disconnected to allow for mutable requests to proceed. (optional, default to false) + /// UserEntity + UserEntity RemoveUser (string id, string version = null, string clientId = null, bool? disconnectedNodeAcknowledged = null); + + /// + /// Deletes a user + /// + /// + /// Note: This endpoint is subject to change as NiFi and it's REST API evolve. + /// + /// Thrown when fails to make API call + /// The user id. + /// The revision is used to verify the client is working with the latest version of the flow. (optional) + /// If the client id is not specified, new one will be generated. This value (whether specified or generated) is included in the response. (optional) + /// Acknowledges that this node is disconnected to allow for mutable requests to proceed. (optional, default to false) + /// ApiResponse of UserEntity + ApiResponse RemoveUserWithHttpInfo (string id, string version = null, string clientId = null, bool? disconnectedNodeAcknowledged = null); + /// + /// Deletes a user group + /// + /// + /// Note: This endpoint is subject to change as NiFi and it's REST API evolve. + /// + /// Thrown when fails to make API call + /// The user group id. + /// The revision is used to verify the client is working with the latest version of the flow. (optional) + /// If the client id is not specified, new one will be generated. This value (whether specified or generated) is included in the response. (optional) + /// Acknowledges that this node is disconnected to allow for mutable requests to proceed. (optional, default to false) + /// UserGroupEntity + UserGroupEntity RemoveUserGroup (string id, string version = null, string clientId = null, bool? disconnectedNodeAcknowledged = null); + + /// + /// Deletes a user group + /// + /// + /// Note: This endpoint is subject to change as NiFi and it's REST API evolve. + /// + /// Thrown when fails to make API call + /// The user group id. + /// The revision is used to verify the client is working with the latest version of the flow. (optional) + /// If the client id is not specified, new one will be generated. This value (whether specified or generated) is included in the response. (optional) + /// Acknowledges that this node is disconnected to allow for mutable requests to proceed. (optional, default to false) + /// ApiResponse of UserGroupEntity + ApiResponse RemoveUserGroupWithHttpInfo (string id, string version = null, string clientId = null, bool? disconnectedNodeAcknowledged = null); + /// + /// Searches for a tenant with the specified identity + /// + /// + /// Note: This endpoint is subject to change as NiFi and it's REST API evolve. + /// + /// Thrown when fails to make API call + /// Identity to search for. + /// TenantsEntity + TenantsEntity SearchTenants (string q); + + /// + /// Searches for a tenant with the specified identity + /// + /// + /// Note: This endpoint is subject to change as NiFi and it's REST API evolve. + /// + /// Thrown when fails to make API call + /// Identity to search for. + /// ApiResponse of TenantsEntity + ApiResponse SearchTenantsWithHttpInfo (string q); + /// + /// Updates a user + /// + /// + /// Note: This endpoint is subject to change as NiFi and it's REST API evolve. + /// + /// Thrown when fails to make API call + /// The user id. + /// The user configuration details. + /// UserEntity + UserEntity UpdateUser (string id, UserEntity body); + + /// + /// Updates a user + /// + /// + /// Note: This endpoint is subject to change as NiFi and it's REST API evolve. + /// + /// Thrown when fails to make API call + /// The user id. + /// The user configuration details. + /// ApiResponse of UserEntity + ApiResponse UpdateUserWithHttpInfo (string id, UserEntity body); + /// + /// Updates a user group + /// + /// + /// Note: This endpoint is subject to change as NiFi and it's REST API evolve. + /// + /// Thrown when fails to make API call + /// The user group id. + /// The user group configuration details. + /// UserGroupEntity + UserGroupEntity UpdateUserGroup (string id, UserGroupEntity body); + + /// + /// Updates a user group + /// + /// + /// Note: This endpoint is subject to change as NiFi and it's REST API evolve. + /// + /// Thrown when fails to make API call + /// The user group id. + /// The user group configuration details. + /// ApiResponse of UserGroupEntity + ApiResponse UpdateUserGroupWithHttpInfo (string id, UserGroupEntity body); + #endregion Synchronous Operations + #region Asynchronous Operations + /// + /// Creates a user + /// + /// + /// Note: This endpoint is subject to change as NiFi and it's REST API evolve. + /// + /// Thrown when fails to make API call + /// The user configuration details. + /// Task of UserEntity + System.Threading.Tasks.Task CreateUserAsync (UserEntity body); + + /// + /// Creates a user + /// + /// + /// Note: This endpoint is subject to change as NiFi and it's REST API evolve. + /// + /// Thrown when fails to make API call + /// The user configuration details. + /// Task of ApiResponse (UserEntity) + System.Threading.Tasks.Task> CreateUserAsyncWithHttpInfo (UserEntity body); + /// + /// Creates a user group + /// + /// + /// Note: This endpoint is subject to change as NiFi and it's REST API evolve. + /// + /// Thrown when fails to make API call + /// The user group configuration details. + /// Task of UserGroupEntity + System.Threading.Tasks.Task CreateUserGroupAsync (UserGroupEntity body); + + /// + /// Creates a user group + /// + /// + /// Note: This endpoint is subject to change as NiFi and it's REST API evolve. + /// + /// Thrown when fails to make API call + /// The user group configuration details. + /// Task of ApiResponse (UserGroupEntity) + System.Threading.Tasks.Task> CreateUserGroupAsyncWithHttpInfo (UserGroupEntity body); + /// + /// Gets a user + /// + /// + /// Note: This endpoint is subject to change as NiFi and it's REST API evolve. + /// + /// Thrown when fails to make API call + /// The user id. + /// Task of UserEntity + System.Threading.Tasks.Task GetUserAsync (string id); + + /// + /// Gets a user + /// + /// + /// Note: This endpoint is subject to change as NiFi and it's REST API evolve. + /// + /// Thrown when fails to make API call + /// The user id. + /// Task of ApiResponse (UserEntity) + System.Threading.Tasks.Task> GetUserAsyncWithHttpInfo (string id); + /// + /// Gets a user group + /// + /// + /// Note: This endpoint is subject to change as NiFi and it's REST API evolve. + /// + /// Thrown when fails to make API call + /// The user group id. + /// Task of UserGroupEntity + System.Threading.Tasks.Task GetUserGroupAsync (string id); + + /// + /// Gets a user group + /// + /// + /// Note: This endpoint is subject to change as NiFi and it's REST API evolve. + /// + /// Thrown when fails to make API call + /// The user group id. + /// Task of ApiResponse (UserGroupEntity) + System.Threading.Tasks.Task> GetUserGroupAsyncWithHttpInfo (string id); + /// + /// Gets all user groups + /// + /// + /// Note: This endpoint is subject to change as NiFi and it's REST API evolve. + /// + /// Thrown when fails to make API call + /// Task of UserGroupsEntity + System.Threading.Tasks.Task GetUserGroupsAsync (); + + /// + /// Gets all user groups + /// + /// + /// Note: This endpoint is subject to change as NiFi and it's REST API evolve. + /// + /// Thrown when fails to make API call + /// Task of ApiResponse (UserGroupsEntity) + System.Threading.Tasks.Task> GetUserGroupsAsyncWithHttpInfo (); + /// + /// Gets all users + /// + /// + /// Note: This endpoint is subject to change as NiFi and it's REST API evolve. + /// + /// Thrown when fails to make API call + /// Task of UsersEntity + System.Threading.Tasks.Task GetUsersAsync (); + + /// + /// Gets all users + /// + /// + /// Note: This endpoint is subject to change as NiFi and it's REST API evolve. + /// + /// Thrown when fails to make API call + /// Task of ApiResponse (UsersEntity) + System.Threading.Tasks.Task> GetUsersAsyncWithHttpInfo (); + /// + /// Deletes a user + /// + /// + /// Note: This endpoint is subject to change as NiFi and it's REST API evolve. + /// + /// Thrown when fails to make API call + /// The user id. + /// The revision is used to verify the client is working with the latest version of the flow. (optional) + /// If the client id is not specified, new one will be generated. This value (whether specified or generated) is included in the response. (optional) + /// Acknowledges that this node is disconnected to allow for mutable requests to proceed. (optional, default to false) + /// Task of UserEntity + System.Threading.Tasks.Task RemoveUserAsync (string id, string version = null, string clientId = null, bool? disconnectedNodeAcknowledged = null); + + /// + /// Deletes a user + /// + /// + /// Note: This endpoint is subject to change as NiFi and it's REST API evolve. + /// + /// Thrown when fails to make API call + /// The user id. + /// The revision is used to verify the client is working with the latest version of the flow. (optional) + /// If the client id is not specified, new one will be generated. This value (whether specified or generated) is included in the response. (optional) + /// Acknowledges that this node is disconnected to allow for mutable requests to proceed. (optional, default to false) + /// Task of ApiResponse (UserEntity) + System.Threading.Tasks.Task> RemoveUserAsyncWithHttpInfo (string id, string version = null, string clientId = null, bool? disconnectedNodeAcknowledged = null); + /// + /// Deletes a user group + /// + /// + /// Note: This endpoint is subject to change as NiFi and it's REST API evolve. + /// + /// Thrown when fails to make API call + /// The user group id. + /// The revision is used to verify the client is working with the latest version of the flow. (optional) + /// If the client id is not specified, new one will be generated. This value (whether specified or generated) is included in the response. (optional) + /// Acknowledges that this node is disconnected to allow for mutable requests to proceed. (optional, default to false) + /// Task of UserGroupEntity + System.Threading.Tasks.Task RemoveUserGroupAsync (string id, string version = null, string clientId = null, bool? disconnectedNodeAcknowledged = null); + + /// + /// Deletes a user group + /// + /// + /// Note: This endpoint is subject to change as NiFi and it's REST API evolve. + /// + /// Thrown when fails to make API call + /// The user group id. + /// The revision is used to verify the client is working with the latest version of the flow. (optional) + /// If the client id is not specified, new one will be generated. This value (whether specified or generated) is included in the response. (optional) + /// Acknowledges that this node is disconnected to allow for mutable requests to proceed. (optional, default to false) + /// Task of ApiResponse (UserGroupEntity) + System.Threading.Tasks.Task> RemoveUserGroupAsyncWithHttpInfo (string id, string version = null, string clientId = null, bool? disconnectedNodeAcknowledged = null); + /// + /// Searches for a tenant with the specified identity + /// + /// + /// Note: This endpoint is subject to change as NiFi and it's REST API evolve. + /// + /// Thrown when fails to make API call + /// Identity to search for. + /// Task of TenantsEntity + System.Threading.Tasks.Task SearchTenantsAsync (string q); + + /// + /// Searches for a tenant with the specified identity + /// + /// + /// Note: This endpoint is subject to change as NiFi and it's REST API evolve. + /// + /// Thrown when fails to make API call + /// Identity to search for. + /// Task of ApiResponse (TenantsEntity) + System.Threading.Tasks.Task> SearchTenantsAsyncWithHttpInfo (string q); + /// + /// Updates a user + /// + /// + /// Note: This endpoint is subject to change as NiFi and it's REST API evolve. + /// + /// Thrown when fails to make API call + /// The user id. + /// The user configuration details. + /// Task of UserEntity + System.Threading.Tasks.Task UpdateUserAsync (string id, UserEntity body); + + /// + /// Updates a user + /// + /// + /// Note: This endpoint is subject to change as NiFi and it's REST API evolve. + /// + /// Thrown when fails to make API call + /// The user id. + /// The user configuration details. + /// Task of ApiResponse (UserEntity) + System.Threading.Tasks.Task> UpdateUserAsyncWithHttpInfo (string id, UserEntity body); + /// + /// Updates a user group + /// + /// + /// Note: This endpoint is subject to change as NiFi and it's REST API evolve. + /// + /// Thrown when fails to make API call + /// The user group id. + /// The user group configuration details. + /// Task of UserGroupEntity + System.Threading.Tasks.Task UpdateUserGroupAsync (string id, UserGroupEntity body); + + /// + /// Updates a user group + /// + /// + /// Note: This endpoint is subject to change as NiFi and it's REST API evolve. + /// + /// Thrown when fails to make API call + /// The user group id. + /// The user group configuration details. + /// Task of ApiResponse (UserGroupEntity) + System.Threading.Tasks.Task> UpdateUserGroupAsyncWithHttpInfo (string id, UserGroupEntity body); + #endregion Asynchronous Operations + } + + /// + /// Represents a collection of functions to interact with the API endpoints + /// + public partial class TenantsApi : ITenantsApi + { + private ExceptionFactory _exceptionFactory = (name, response) => null; + + /// + /// Initializes a new instance of the class. + /// + /// + public TenantsApi(String basePath) + { + this.Configuration = new Configuration { BasePath = basePath }; + + this.ExceptionFactory = Configuration.DefaultExceptionFactory; + } + + /// + /// Initializes a new instance of the class + /// using Configuration object + /// + /// An instance of Configuration + /// + public TenantsApi(Configuration configuration = null) + { + if (configuration == null) // use the default one in Configuration + this.Configuration = Configuration.Default; + else + this.Configuration = configuration; + + this.ExceptionFactory = Configuration.DefaultExceptionFactory; + } + + /// + /// Gets the base path of the API client. + /// + /// The base path + public String GetBasePath() + { + return this.Configuration.ApiClient.RestClient.BaseUrl.ToString(); + } + + /// + /// Sets the base path of the API client. + /// + /// The base path + [Obsolete("SetBasePath is deprecated, please do 'Configuration.ApiClient = new ApiClient(\"http://new-path\")' instead.")] + public void SetBasePath(String basePath) + { + // do nothing + } + + /// + /// Gets or sets the configuration object + /// + /// An instance of the Configuration + public Configuration Configuration {get; set;} + + /// + /// Provides a factory method hook for the creation of exceptions. + /// + public ExceptionFactory ExceptionFactory + { + get + { + if (this._exceptionFactory != null && this._exceptionFactory.GetInvocationList().Length > 1) + { + throw new InvalidOperationException("Multicast delegate for ExceptionFactory is unsupported."); + } + return this._exceptionFactory; + } + set { this._exceptionFactory = value; } + } + + /// + /// Gets the default header. + /// + /// Dictionary of HTTP header + [Obsolete("DefaultHeader is deprecated, please use Configuration.DefaultHeader instead.")] + public IDictionary DefaultHeader() + { + return new ReadOnlyDictionary(this.Configuration.DefaultHeader); + } + + /// + /// Add default header. + /// + /// Header field name. + /// Header field value. + /// + [Obsolete("AddDefaultHeader is deprecated, please use Configuration.AddDefaultHeader instead.")] + public void AddDefaultHeader(string key, string value) + { + this.Configuration.AddDefaultHeader(key, value); + } + + /// + /// Creates a user Note: This endpoint is subject to change as NiFi and it's REST API evolve. + /// + /// Thrown when fails to make API call + /// The user configuration details. + /// UserEntity + public UserEntity CreateUser (UserEntity body) + { + ApiResponse localVarResponse = this.CreateUserWithHttpInfo(body); + return localVarResponse.Data; + } + + /// + /// Creates a user Note: This endpoint is subject to change as NiFi and it's REST API evolve. + /// + /// Thrown when fails to make API call + /// The user configuration details. + /// ApiResponse of UserEntity + public ApiResponse< UserEntity > CreateUserWithHttpInfo (UserEntity body) + { + // verify the required parameter 'body' is set + if (body == null) + throw new ApiException(400, "Missing required parameter 'body' when calling TenantsApi->CreateUser"); + + var localVarPath = "/tenants/users"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "application/json" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (body != null && body.GetType() != typeof(byte[])) + { + localVarPostBody = this.Configuration.ApiClient.Serialize(body); // http body (model) parameter + } + else + { + localVarPostBody = body; // byte array + } + + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (this.ExceptionFactory != null) + { + Exception exception = this.ExceptionFactory("CreateUser", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), + (UserEntity) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(UserEntity))); + } + + /// + /// Creates a user Note: This endpoint is subject to change as NiFi and it's REST API evolve. + /// + /// Thrown when fails to make API call + /// The user configuration details. + /// Task of UserEntity + public async System.Threading.Tasks.Task CreateUserAsync (UserEntity body) + { + ApiResponse localVarResponse = await this.CreateUserAsyncWithHttpInfo(body); + return localVarResponse.Data; + + } + + /// + /// Creates a user Note: This endpoint is subject to change as NiFi and it's REST API evolve. + /// + /// Thrown when fails to make API call + /// The user configuration details. + /// Task of ApiResponse (UserEntity) + public async System.Threading.Tasks.Task> CreateUserAsyncWithHttpInfo (UserEntity body) + { + // verify the required parameter 'body' is set + if (body == null) + throw new ApiException(400, "Missing required parameter 'body' when calling TenantsApi->CreateUser"); + + var localVarPath = "/tenants/users"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "application/json" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (body != null && body.GetType() != typeof(byte[])) + { + localVarPostBody = this.Configuration.ApiClient.Serialize(body); // http body (model) parameter + } + else + { + localVarPostBody = body; // byte array + } + + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (this.ExceptionFactory != null) + { + Exception exception = this.ExceptionFactory("CreateUser", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), + (UserEntity) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(UserEntity))); + } + + /// + /// Creates a user group Note: This endpoint is subject to change as NiFi and it's REST API evolve. + /// + /// Thrown when fails to make API call + /// The user group configuration details. + /// UserGroupEntity + public UserGroupEntity CreateUserGroup (UserGroupEntity body) + { + ApiResponse localVarResponse = this.CreateUserGroupWithHttpInfo(body); + return localVarResponse.Data; + } + + /// + /// Creates a user group Note: This endpoint is subject to change as NiFi and it's REST API evolve. + /// + /// Thrown when fails to make API call + /// The user group configuration details. + /// ApiResponse of UserGroupEntity + public ApiResponse< UserGroupEntity > CreateUserGroupWithHttpInfo (UserGroupEntity body) + { + // verify the required parameter 'body' is set + if (body == null) + throw new ApiException(400, "Missing required parameter 'body' when calling TenantsApi->CreateUserGroup"); + + var localVarPath = "/tenants/user-groups"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "application/json" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (body != null && body.GetType() != typeof(byte[])) + { + localVarPostBody = this.Configuration.ApiClient.Serialize(body); // http body (model) parameter + } + else + { + localVarPostBody = body; // byte array + } + + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (this.ExceptionFactory != null) + { + Exception exception = this.ExceptionFactory("CreateUserGroup", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), + (UserGroupEntity) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(UserGroupEntity))); + } + + /// + /// Creates a user group Note: This endpoint is subject to change as NiFi and it's REST API evolve. + /// + /// Thrown when fails to make API call + /// The user group configuration details. + /// Task of UserGroupEntity + public async System.Threading.Tasks.Task CreateUserGroupAsync (UserGroupEntity body) + { + ApiResponse localVarResponse = await this.CreateUserGroupAsyncWithHttpInfo(body); + return localVarResponse.Data; + + } + + /// + /// Creates a user group Note: This endpoint is subject to change as NiFi and it's REST API evolve. + /// + /// Thrown when fails to make API call + /// The user group configuration details. + /// Task of ApiResponse (UserGroupEntity) + public async System.Threading.Tasks.Task> CreateUserGroupAsyncWithHttpInfo (UserGroupEntity body) + { + // verify the required parameter 'body' is set + if (body == null) + throw new ApiException(400, "Missing required parameter 'body' when calling TenantsApi->CreateUserGroup"); + + var localVarPath = "/tenants/user-groups"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "application/json" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (body != null && body.GetType() != typeof(byte[])) + { + localVarPostBody = this.Configuration.ApiClient.Serialize(body); // http body (model) parameter + } + else + { + localVarPostBody = body; // byte array + } + + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (this.ExceptionFactory != null) + { + Exception exception = this.ExceptionFactory("CreateUserGroup", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), + (UserGroupEntity) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(UserGroupEntity))); + } + + /// + /// Gets a user Note: This endpoint is subject to change as NiFi and it's REST API evolve. + /// + /// Thrown when fails to make API call + /// The user id. + /// UserEntity + public UserEntity GetUser (string id) + { + ApiResponse localVarResponse = this.GetUserWithHttpInfo(id); + return localVarResponse.Data; + } + + /// + /// Gets a user Note: This endpoint is subject to change as NiFi and it's REST API evolve. + /// + /// Thrown when fails to make API call + /// The user id. + /// ApiResponse of UserEntity + public ApiResponse< UserEntity > GetUserWithHttpInfo (string id) + { + // verify the required parameter 'id' is set + if (id == null) + throw new ApiException(400, "Missing required parameter 'id' when calling TenantsApi->GetUser"); + + var localVarPath = "/tenants/users/{id}"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "*/*" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter + + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (this.ExceptionFactory != null) + { + Exception exception = this.ExceptionFactory("GetUser", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), + (UserEntity) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(UserEntity))); + } + + /// + /// Gets a user Note: This endpoint is subject to change as NiFi and it's REST API evolve. + /// + /// Thrown when fails to make API call + /// The user id. + /// Task of UserEntity + public async System.Threading.Tasks.Task GetUserAsync (string id) + { + ApiResponse localVarResponse = await this.GetUserAsyncWithHttpInfo(id); + return localVarResponse.Data; + + } + + /// + /// Gets a user Note: This endpoint is subject to change as NiFi and it's REST API evolve. + /// + /// Thrown when fails to make API call + /// The user id. + /// Task of ApiResponse (UserEntity) + public async System.Threading.Tasks.Task> GetUserAsyncWithHttpInfo (string id) + { + // verify the required parameter 'id' is set + if (id == null) + throw new ApiException(400, "Missing required parameter 'id' when calling TenantsApi->GetUser"); + + var localVarPath = "/tenants/users/{id}"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "*/*" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter + + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (this.ExceptionFactory != null) + { + Exception exception = this.ExceptionFactory("GetUser", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), + (UserEntity) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(UserEntity))); + } + + /// + /// Gets a user group Note: This endpoint is subject to change as NiFi and it's REST API evolve. + /// + /// Thrown when fails to make API call + /// The user group id. + /// UserGroupEntity + public UserGroupEntity GetUserGroup (string id) + { + ApiResponse localVarResponse = this.GetUserGroupWithHttpInfo(id); + return localVarResponse.Data; + } + + /// + /// Gets a user group Note: This endpoint is subject to change as NiFi and it's REST API evolve. + /// + /// Thrown when fails to make API call + /// The user group id. + /// ApiResponse of UserGroupEntity + public ApiResponse< UserGroupEntity > GetUserGroupWithHttpInfo (string id) + { + // verify the required parameter 'id' is set + if (id == null) + throw new ApiException(400, "Missing required parameter 'id' when calling TenantsApi->GetUserGroup"); + + var localVarPath = "/tenants/user-groups/{id}"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "*/*" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter + + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (this.ExceptionFactory != null) + { + Exception exception = this.ExceptionFactory("GetUserGroup", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), + (UserGroupEntity) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(UserGroupEntity))); + } + + /// + /// Gets a user group Note: This endpoint is subject to change as NiFi and it's REST API evolve. + /// + /// Thrown when fails to make API call + /// The user group id. + /// Task of UserGroupEntity + public async System.Threading.Tasks.Task GetUserGroupAsync (string id) + { + ApiResponse localVarResponse = await this.GetUserGroupAsyncWithHttpInfo(id); + return localVarResponse.Data; + + } + + /// + /// Gets a user group Note: This endpoint is subject to change as NiFi and it's REST API evolve. + /// + /// Thrown when fails to make API call + /// The user group id. + /// Task of ApiResponse (UserGroupEntity) + public async System.Threading.Tasks.Task> GetUserGroupAsyncWithHttpInfo (string id) + { + // verify the required parameter 'id' is set + if (id == null) + throw new ApiException(400, "Missing required parameter 'id' when calling TenantsApi->GetUserGroup"); + + var localVarPath = "/tenants/user-groups/{id}"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "*/*" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter + + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (this.ExceptionFactory != null) + { + Exception exception = this.ExceptionFactory("GetUserGroup", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), + (UserGroupEntity) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(UserGroupEntity))); + } + + /// + /// Gets all user groups Note: This endpoint is subject to change as NiFi and it's REST API evolve. + /// + /// Thrown when fails to make API call + /// UserGroupsEntity + public UserGroupsEntity GetUserGroups () + { + ApiResponse localVarResponse = this.GetUserGroupsWithHttpInfo(); + return localVarResponse.Data; + } + + /// + /// Gets all user groups Note: This endpoint is subject to change as NiFi and it's REST API evolve. + /// + /// Thrown when fails to make API call + /// ApiResponse of UserGroupsEntity + public ApiResponse< UserGroupsEntity > GetUserGroupsWithHttpInfo () + { + + var localVarPath = "/tenants/user-groups"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "*/*" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (this.ExceptionFactory != null) + { + Exception exception = this.ExceptionFactory("GetUserGroups", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), + (UserGroupsEntity) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(UserGroupsEntity))); + } + + /// + /// Gets all user groups Note: This endpoint is subject to change as NiFi and it's REST API evolve. + /// + /// Thrown when fails to make API call + /// Task of UserGroupsEntity + public async System.Threading.Tasks.Task GetUserGroupsAsync () + { + ApiResponse localVarResponse = await this.GetUserGroupsAsyncWithHttpInfo(); + return localVarResponse.Data; + + } + + /// + /// Gets all user groups Note: This endpoint is subject to change as NiFi and it's REST API evolve. + /// + /// Thrown when fails to make API call + /// Task of ApiResponse (UserGroupsEntity) + public async System.Threading.Tasks.Task> GetUserGroupsAsyncWithHttpInfo () + { + + var localVarPath = "/tenants/user-groups"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "*/*" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (this.ExceptionFactory != null) + { + Exception exception = this.ExceptionFactory("GetUserGroups", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), + (UserGroupsEntity) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(UserGroupsEntity))); + } + + /// + /// Gets all users Note: This endpoint is subject to change as NiFi and it's REST API evolve. + /// + /// Thrown when fails to make API call + /// UsersEntity + public UsersEntity GetUsers () + { + ApiResponse localVarResponse = this.GetUsersWithHttpInfo(); + return localVarResponse.Data; + } + + /// + /// Gets all users Note: This endpoint is subject to change as NiFi and it's REST API evolve. + /// + /// Thrown when fails to make API call + /// ApiResponse of UsersEntity + public ApiResponse< UsersEntity > GetUsersWithHttpInfo () + { + + var localVarPath = "/tenants/users"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "*/*" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (this.ExceptionFactory != null) + { + Exception exception = this.ExceptionFactory("GetUsers", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), + (UsersEntity) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(UsersEntity))); + } + + /// + /// Gets all users Note: This endpoint is subject to change as NiFi and it's REST API evolve. + /// + /// Thrown when fails to make API call + /// Task of UsersEntity + public async System.Threading.Tasks.Task GetUsersAsync () + { + ApiResponse localVarResponse = await this.GetUsersAsyncWithHttpInfo(); + return localVarResponse.Data; + + } + + /// + /// Gets all users Note: This endpoint is subject to change as NiFi and it's REST API evolve. + /// + /// Thrown when fails to make API call + /// Task of ApiResponse (UsersEntity) + public async System.Threading.Tasks.Task> GetUsersAsyncWithHttpInfo () + { + + var localVarPath = "/tenants/users"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "*/*" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (this.ExceptionFactory != null) + { + Exception exception = this.ExceptionFactory("GetUsers", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), + (UsersEntity) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(UsersEntity))); + } + + /// + /// Deletes a user Note: This endpoint is subject to change as NiFi and it's REST API evolve. + /// + /// Thrown when fails to make API call + /// The user id. + /// The revision is used to verify the client is working with the latest version of the flow. (optional) + /// If the client id is not specified, new one will be generated. This value (whether specified or generated) is included in the response. (optional) + /// Acknowledges that this node is disconnected to allow for mutable requests to proceed. (optional, default to false) + /// UserEntity + public UserEntity RemoveUser (string id, string version = null, string clientId = null, bool? disconnectedNodeAcknowledged = null) + { + ApiResponse localVarResponse = this.RemoveUserWithHttpInfo(id, version, clientId, disconnectedNodeAcknowledged); + return localVarResponse.Data; + } + + /// + /// Deletes a user Note: This endpoint is subject to change as NiFi and it's REST API evolve. + /// + /// Thrown when fails to make API call + /// The user id. + /// The revision is used to verify the client is working with the latest version of the flow. (optional) + /// If the client id is not specified, new one will be generated. This value (whether specified or generated) is included in the response. (optional) + /// Acknowledges that this node is disconnected to allow for mutable requests to proceed. (optional, default to false) + /// ApiResponse of UserEntity + public ApiResponse< UserEntity > RemoveUserWithHttpInfo (string id, string version = null, string clientId = null, bool? disconnectedNodeAcknowledged = null) + { + // verify the required parameter 'id' is set + if (id == null) + throw new ApiException(400, "Missing required parameter 'id' when calling TenantsApi->RemoveUser"); + + var localVarPath = "/tenants/users/{id}"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "*/*" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter + if (version != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "version", version)); // query parameter + if (clientId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "clientId", clientId)); // query parameter + if (disconnectedNodeAcknowledged != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "disconnectedNodeAcknowledged", disconnectedNodeAcknowledged)); // query parameter + + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.DELETE, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (this.ExceptionFactory != null) + { + Exception exception = this.ExceptionFactory("RemoveUser", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), + (UserEntity) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(UserEntity))); + } + + /// + /// Deletes a user Note: This endpoint is subject to change as NiFi and it's REST API evolve. + /// + /// Thrown when fails to make API call + /// The user id. + /// The revision is used to verify the client is working with the latest version of the flow. (optional) + /// If the client id is not specified, new one will be generated. This value (whether specified or generated) is included in the response. (optional) + /// Acknowledges that this node is disconnected to allow for mutable requests to proceed. (optional, default to false) + /// Task of UserEntity + public async System.Threading.Tasks.Task RemoveUserAsync (string id, string version = null, string clientId = null, bool? disconnectedNodeAcknowledged = null) + { + ApiResponse localVarResponse = await this.RemoveUserAsyncWithHttpInfo(id, version, clientId, disconnectedNodeAcknowledged); + return localVarResponse.Data; + + } + + /// + /// Deletes a user Note: This endpoint is subject to change as NiFi and it's REST API evolve. + /// + /// Thrown when fails to make API call + /// The user id. + /// The revision is used to verify the client is working with the latest version of the flow. (optional) + /// If the client id is not specified, new one will be generated. This value (whether specified or generated) is included in the response. (optional) + /// Acknowledges that this node is disconnected to allow for mutable requests to proceed. (optional, default to false) + /// Task of ApiResponse (UserEntity) + public async System.Threading.Tasks.Task> RemoveUserAsyncWithHttpInfo (string id, string version = null, string clientId = null, bool? disconnectedNodeAcknowledged = null) + { + // verify the required parameter 'id' is set + if (id == null) + throw new ApiException(400, "Missing required parameter 'id' when calling TenantsApi->RemoveUser"); + + var localVarPath = "/tenants/users/{id}"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "*/*" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter + if (version != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "version", version)); // query parameter + if (clientId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "clientId", clientId)); // query parameter + if (disconnectedNodeAcknowledged != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "disconnectedNodeAcknowledged", disconnectedNodeAcknowledged)); // query parameter + + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.DELETE, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (this.ExceptionFactory != null) + { + Exception exception = this.ExceptionFactory("RemoveUser", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), + (UserEntity) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(UserEntity))); + } + + /// + /// Deletes a user group Note: This endpoint is subject to change as NiFi and it's REST API evolve. + /// + /// Thrown when fails to make API call + /// The user group id. + /// The revision is used to verify the client is working with the latest version of the flow. (optional) + /// If the client id is not specified, new one will be generated. This value (whether specified or generated) is included in the response. (optional) + /// Acknowledges that this node is disconnected to allow for mutable requests to proceed. (optional, default to false) + /// UserGroupEntity + public UserGroupEntity RemoveUserGroup (string id, string version = null, string clientId = null, bool? disconnectedNodeAcknowledged = null) + { + ApiResponse localVarResponse = this.RemoveUserGroupWithHttpInfo(id, version, clientId, disconnectedNodeAcknowledged); + return localVarResponse.Data; + } + + /// + /// Deletes a user group Note: This endpoint is subject to change as NiFi and it's REST API evolve. + /// + /// Thrown when fails to make API call + /// The user group id. + /// The revision is used to verify the client is working with the latest version of the flow. (optional) + /// If the client id is not specified, new one will be generated. This value (whether specified or generated) is included in the response. (optional) + /// Acknowledges that this node is disconnected to allow for mutable requests to proceed. (optional, default to false) + /// ApiResponse of UserGroupEntity + public ApiResponse< UserGroupEntity > RemoveUserGroupWithHttpInfo (string id, string version = null, string clientId = null, bool? disconnectedNodeAcknowledged = null) + { + // verify the required parameter 'id' is set + if (id == null) + throw new ApiException(400, "Missing required parameter 'id' when calling TenantsApi->RemoveUserGroup"); + + var localVarPath = "/tenants/user-groups/{id}"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "*/*" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter + if (version != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "version", version)); // query parameter + if (clientId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "clientId", clientId)); // query parameter + if (disconnectedNodeAcknowledged != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "disconnectedNodeAcknowledged", disconnectedNodeAcknowledged)); // query parameter + + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.DELETE, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (this.ExceptionFactory != null) + { + Exception exception = this.ExceptionFactory("RemoveUserGroup", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), + (UserGroupEntity) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(UserGroupEntity))); + } + + /// + /// Deletes a user group Note: This endpoint is subject to change as NiFi and it's REST API evolve. + /// + /// Thrown when fails to make API call + /// The user group id. + /// The revision is used to verify the client is working with the latest version of the flow. (optional) + /// If the client id is not specified, new one will be generated. This value (whether specified or generated) is included in the response. (optional) + /// Acknowledges that this node is disconnected to allow for mutable requests to proceed. (optional, default to false) + /// Task of UserGroupEntity + public async System.Threading.Tasks.Task RemoveUserGroupAsync (string id, string version = null, string clientId = null, bool? disconnectedNodeAcknowledged = null) + { + ApiResponse localVarResponse = await this.RemoveUserGroupAsyncWithHttpInfo(id, version, clientId, disconnectedNodeAcknowledged); + return localVarResponse.Data; + + } + + /// + /// Deletes a user group Note: This endpoint is subject to change as NiFi and it's REST API evolve. + /// + /// Thrown when fails to make API call + /// The user group id. + /// The revision is used to verify the client is working with the latest version of the flow. (optional) + /// If the client id is not specified, new one will be generated. This value (whether specified or generated) is included in the response. (optional) + /// Acknowledges that this node is disconnected to allow for mutable requests to proceed. (optional, default to false) + /// Task of ApiResponse (UserGroupEntity) + public async System.Threading.Tasks.Task> RemoveUserGroupAsyncWithHttpInfo (string id, string version = null, string clientId = null, bool? disconnectedNodeAcknowledged = null) + { + // verify the required parameter 'id' is set + if (id == null) + throw new ApiException(400, "Missing required parameter 'id' when calling TenantsApi->RemoveUserGroup"); + + var localVarPath = "/tenants/user-groups/{id}"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "*/*" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter + if (version != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "version", version)); // query parameter + if (clientId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "clientId", clientId)); // query parameter + if (disconnectedNodeAcknowledged != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "disconnectedNodeAcknowledged", disconnectedNodeAcknowledged)); // query parameter + + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.DELETE, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (this.ExceptionFactory != null) + { + Exception exception = this.ExceptionFactory("RemoveUserGroup", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), + (UserGroupEntity) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(UserGroupEntity))); + } + + /// + /// Searches for a tenant with the specified identity Note: This endpoint is subject to change as NiFi and it's REST API evolve. + /// + /// Thrown when fails to make API call + /// Identity to search for. + /// TenantsEntity + public TenantsEntity SearchTenants (string q) + { + ApiResponse localVarResponse = this.SearchTenantsWithHttpInfo(q); + return localVarResponse.Data; + } + + /// + /// Searches for a tenant with the specified identity Note: This endpoint is subject to change as NiFi and it's REST API evolve. + /// + /// Thrown when fails to make API call + /// Identity to search for. + /// ApiResponse of TenantsEntity + public ApiResponse< TenantsEntity > SearchTenantsWithHttpInfo (string q) + { + // verify the required parameter 'q' is set + if (q == null) + throw new ApiException(400, "Missing required parameter 'q' when calling TenantsApi->SearchTenants"); + + var localVarPath = "/tenants/search-results"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "*/*" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (q != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "q", q)); // query parameter + + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (this.ExceptionFactory != null) + { + Exception exception = this.ExceptionFactory("SearchTenants", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), + (TenantsEntity) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(TenantsEntity))); + } + + /// + /// Searches for a tenant with the specified identity Note: This endpoint is subject to change as NiFi and it's REST API evolve. + /// + /// Thrown when fails to make API call + /// Identity to search for. + /// Task of TenantsEntity + public async System.Threading.Tasks.Task SearchTenantsAsync (string q) + { + ApiResponse localVarResponse = await this.SearchTenantsAsyncWithHttpInfo(q); + return localVarResponse.Data; + + } + + /// + /// Searches for a tenant with the specified identity Note: This endpoint is subject to change as NiFi and it's REST API evolve. + /// + /// Thrown when fails to make API call + /// Identity to search for. + /// Task of ApiResponse (TenantsEntity) + public async System.Threading.Tasks.Task> SearchTenantsAsyncWithHttpInfo (string q) + { + // verify the required parameter 'q' is set + if (q == null) + throw new ApiException(400, "Missing required parameter 'q' when calling TenantsApi->SearchTenants"); + + var localVarPath = "/tenants/search-results"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "*/*" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (q != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "q", q)); // query parameter + + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (this.ExceptionFactory != null) + { + Exception exception = this.ExceptionFactory("SearchTenants", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), + (TenantsEntity) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(TenantsEntity))); + } + + /// + /// Updates a user Note: This endpoint is subject to change as NiFi and it's REST API evolve. + /// + /// Thrown when fails to make API call + /// The user id. + /// The user configuration details. + /// UserEntity + public UserEntity UpdateUser (string id, UserEntity body) + { + ApiResponse localVarResponse = this.UpdateUserWithHttpInfo(id, body); + return localVarResponse.Data; + } + + /// + /// Updates a user Note: This endpoint is subject to change as NiFi and it's REST API evolve. + /// + /// Thrown when fails to make API call + /// The user id. + /// The user configuration details. + /// ApiResponse of UserEntity + public ApiResponse< UserEntity > UpdateUserWithHttpInfo (string id, UserEntity body) + { + // verify the required parameter 'id' is set + if (id == null) + throw new ApiException(400, "Missing required parameter 'id' when calling TenantsApi->UpdateUser"); + // verify the required parameter 'body' is set + if (body == null) + throw new ApiException(400, "Missing required parameter 'body' when calling TenantsApi->UpdateUser"); + + var localVarPath = "/tenants/users/{id}"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "application/json" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter + if (body != null && body.GetType() != typeof(byte[])) + { + localVarPostBody = this.Configuration.ApiClient.Serialize(body); // http body (model) parameter + } + else + { + localVarPostBody = body; // byte array + } + + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.PUT, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (this.ExceptionFactory != null) + { + Exception exception = this.ExceptionFactory("UpdateUser", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), + (UserEntity) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(UserEntity))); + } + + /// + /// Updates a user Note: This endpoint is subject to change as NiFi and it's REST API evolve. + /// + /// Thrown when fails to make API call + /// The user id. + /// The user configuration details. + /// Task of UserEntity + public async System.Threading.Tasks.Task UpdateUserAsync (string id, UserEntity body) + { + ApiResponse localVarResponse = await this.UpdateUserAsyncWithHttpInfo(id, body); + return localVarResponse.Data; + + } + + /// + /// Updates a user Note: This endpoint is subject to change as NiFi and it's REST API evolve. + /// + /// Thrown when fails to make API call + /// The user id. + /// The user configuration details. + /// Task of ApiResponse (UserEntity) + public async System.Threading.Tasks.Task> UpdateUserAsyncWithHttpInfo (string id, UserEntity body) + { + // verify the required parameter 'id' is set + if (id == null) + throw new ApiException(400, "Missing required parameter 'id' when calling TenantsApi->UpdateUser"); + // verify the required parameter 'body' is set + if (body == null) + throw new ApiException(400, "Missing required parameter 'body' when calling TenantsApi->UpdateUser"); + + var localVarPath = "/tenants/users/{id}"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "application/json" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter + if (body != null && body.GetType() != typeof(byte[])) + { + localVarPostBody = this.Configuration.ApiClient.Serialize(body); // http body (model) parameter + } + else + { + localVarPostBody = body; // byte array + } + + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.PUT, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (this.ExceptionFactory != null) + { + Exception exception = this.ExceptionFactory("UpdateUser", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), + (UserEntity) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(UserEntity))); + } + + /// + /// Updates a user group Note: This endpoint is subject to change as NiFi and it's REST API evolve. + /// + /// Thrown when fails to make API call + /// The user group id. + /// The user group configuration details. + /// UserGroupEntity + public UserGroupEntity UpdateUserGroup (string id, UserGroupEntity body) + { + ApiResponse localVarResponse = this.UpdateUserGroupWithHttpInfo(id, body); + return localVarResponse.Data; + } + + /// + /// Updates a user group Note: This endpoint is subject to change as NiFi and it's REST API evolve. + /// + /// Thrown when fails to make API call + /// The user group id. + /// The user group configuration details. + /// ApiResponse of UserGroupEntity + public ApiResponse< UserGroupEntity > UpdateUserGroupWithHttpInfo (string id, UserGroupEntity body) + { + // verify the required parameter 'id' is set + if (id == null) + throw new ApiException(400, "Missing required parameter 'id' when calling TenantsApi->UpdateUserGroup"); + // verify the required parameter 'body' is set + if (body == null) + throw new ApiException(400, "Missing required parameter 'body' when calling TenantsApi->UpdateUserGroup"); + + var localVarPath = "/tenants/user-groups/{id}"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "application/json" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter + if (body != null && body.GetType() != typeof(byte[])) + { + localVarPostBody = this.Configuration.ApiClient.Serialize(body); // http body (model) parameter + } + else + { + localVarPostBody = body; // byte array + } + + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.PUT, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (this.ExceptionFactory != null) + { + Exception exception = this.ExceptionFactory("UpdateUserGroup", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), + (UserGroupEntity) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(UserGroupEntity))); + } + + /// + /// Updates a user group Note: This endpoint is subject to change as NiFi and it's REST API evolve. + /// + /// Thrown when fails to make API call + /// The user group id. + /// The user group configuration details. + /// Task of UserGroupEntity + public async System.Threading.Tasks.Task UpdateUserGroupAsync (string id, UserGroupEntity body) + { + ApiResponse localVarResponse = await this.UpdateUserGroupAsyncWithHttpInfo(id, body); + return localVarResponse.Data; + + } + + /// + /// Updates a user group Note: This endpoint is subject to change as NiFi and it's REST API evolve. + /// + /// Thrown when fails to make API call + /// The user group id. + /// The user group configuration details. + /// Task of ApiResponse (UserGroupEntity) + public async System.Threading.Tasks.Task> UpdateUserGroupAsyncWithHttpInfo (string id, UserGroupEntity body) + { + // verify the required parameter 'id' is set + if (id == null) + throw new ApiException(400, "Missing required parameter 'id' when calling TenantsApi->UpdateUserGroup"); + // verify the required parameter 'body' is set + if (body == null) + throw new ApiException(400, "Missing required parameter 'body' when calling TenantsApi->UpdateUserGroup"); + + var localVarPath = "/tenants/user-groups/{id}"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "application/json" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter + if (body != null && body.GetType() != typeof(byte[])) + { + localVarPostBody = this.Configuration.ApiClient.Serialize(body); // http body (model) parameter + } + else + { + localVarPostBody = body; // byte array + } + + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.PUT, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (this.ExceptionFactory != null) + { + Exception exception = this.ExceptionFactory("UpdateUserGroup", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), + (UserGroupEntity) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(UserGroupEntity))); + } + + } +} diff --git a/NiFi.Swagger/Api/VersionsApi.cs b/NiFi.Swagger/Api/VersionsApi.cs new file mode 100644 index 0000000..6221c7b --- /dev/null +++ b/NiFi.Swagger/Api/VersionsApi.cs @@ -0,0 +1,2655 @@ +/* + * NiFi Rest Api + * + * The Rest Api provides programmatic access to command and control a NiFi instance in real time. Start and stop processors, monitor queues, query provenance data, and more. Each endpoint below includes a description, definitions of the expected input and output, potential response codes, and the authorizations required to invoke each service. + * + * OpenAPI spec version: 1.9.1 + * Contact: dev@nifi.apache.org + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +namespace NiFi.Swagger.Api +{ + using System; + using System.Collections.Generic; + using System.Collections.ObjectModel; + using System.Linq; + + using NiFi.Swagger.Client; + using NiFi.Swagger.Model; + + using RestSharp; + + /// + /// Represents a collection of functions to interact with the API endpoints + /// + public interface IVersionsApi : IApiAccessor + { + #region Synchronous Operations + /// + /// Create a version control request + /// + /// + /// Creates a request so that a Process Group can be placed under Version Control or have its Version Control configuration changed. Creating this request will prevent any other threads from simultaneously saving local changes to Version Control. It will not, however, actually save the local flow to the Flow Registry. A POST to /versions/process-groups/{id} should be used to initiate saving of the local flow to the Flow Registry. Note: This endpoint is subject to change as NiFi and it's REST API evolve. + /// + /// Thrown when fails to make API call + /// The versioned flow details. + /// string + string CreateVersionControlRequest (CreateActiveRequestEntity body); + + /// + /// Create a version control request + /// + /// + /// Creates a request so that a Process Group can be placed under Version Control or have its Version Control configuration changed. Creating this request will prevent any other threads from simultaneously saving local changes to Version Control. It will not, however, actually save the local flow to the Flow Registry. A POST to /versions/process-groups/{id} should be used to initiate saving of the local flow to the Flow Registry. Note: This endpoint is subject to change as NiFi and it's REST API evolve. + /// + /// Thrown when fails to make API call + /// The versioned flow details. + /// ApiResponse of string + ApiResponse CreateVersionControlRequestWithHttpInfo (CreateActiveRequestEntity body); + /// + /// Deletes the Revert Request with the given ID + /// + /// + /// Deletes the Revert Request with the given ID. After a request is created via a POST to /versions/revert-requests/process-groups/{id}, it is expected that the client will properly clean up the request by DELETE'ing it, once the Revert process has completed. If the request is deleted before the request completes, then the Revert request will finish the step that it is currently performing and then will cancel any subsequent steps. Note: This endpoint is subject to change as NiFi and it's REST API evolve. + /// + /// Thrown when fails to make API call + /// The ID of the Revert Request + /// Acknowledges that this node is disconnected to allow for mutable requests to proceed. (optional, default to false) + /// VersionedFlowUpdateRequestEntity + VersionedFlowUpdateRequestEntity DeleteRevertRequest (string id, bool? disconnectedNodeAcknowledged = null); + + /// + /// Deletes the Revert Request with the given ID + /// + /// + /// Deletes the Revert Request with the given ID. After a request is created via a POST to /versions/revert-requests/process-groups/{id}, it is expected that the client will properly clean up the request by DELETE'ing it, once the Revert process has completed. If the request is deleted before the request completes, then the Revert request will finish the step that it is currently performing and then will cancel any subsequent steps. Note: This endpoint is subject to change as NiFi and it's REST API evolve. + /// + /// Thrown when fails to make API call + /// The ID of the Revert Request + /// Acknowledges that this node is disconnected to allow for mutable requests to proceed. (optional, default to false) + /// ApiResponse of VersionedFlowUpdateRequestEntity + ApiResponse DeleteRevertRequestWithHttpInfo (string id, bool? disconnectedNodeAcknowledged = null); + /// + /// Deletes the Update Request with the given ID + /// + /// + /// Deletes the Update Request with the given ID. After a request is created via a POST to /versions/update-requests/process-groups/{id}, it is expected that the client will properly clean up the request by DELETE'ing it, once the Update process has completed. If the request is deleted before the request completes, then the Update request will finish the step that it is currently performing and then will cancel any subsequent steps. Note: This endpoint is subject to change as NiFi and it's REST API evolve. + /// + /// Thrown when fails to make API call + /// The ID of the Update Request + /// Acknowledges that this node is disconnected to allow for mutable requests to proceed. (optional, default to false) + /// VersionedFlowUpdateRequestEntity + VersionedFlowUpdateRequestEntity DeleteUpdateRequest (string id, bool? disconnectedNodeAcknowledged = null); + + /// + /// Deletes the Update Request with the given ID + /// + /// + /// Deletes the Update Request with the given ID. After a request is created via a POST to /versions/update-requests/process-groups/{id}, it is expected that the client will properly clean up the request by DELETE'ing it, once the Update process has completed. If the request is deleted before the request completes, then the Update request will finish the step that it is currently performing and then will cancel any subsequent steps. Note: This endpoint is subject to change as NiFi and it's REST API evolve. + /// + /// Thrown when fails to make API call + /// The ID of the Update Request + /// Acknowledges that this node is disconnected to allow for mutable requests to proceed. (optional, default to false) + /// ApiResponse of VersionedFlowUpdateRequestEntity + ApiResponse DeleteUpdateRequestWithHttpInfo (string id, bool? disconnectedNodeAcknowledged = null); + /// + /// Deletes the version control request with the given ID + /// + /// + /// Deletes the Version Control Request with the given ID. This will allow other threads to save flows to the Flow Registry. See also the documentation for POSTing to /versions/active-requests for information regarding why this is done. Note: This endpoint is subject to change as NiFi and it's REST API evolve. + /// + /// Thrown when fails to make API call + /// The request ID. + /// Acknowledges that this node is disconnected to allow for mutable requests to proceed. (optional, default to false) + /// + void DeleteVersionControlRequest (string id, bool? disconnectedNodeAcknowledged = null); + + /// + /// Deletes the version control request with the given ID + /// + /// + /// Deletes the Version Control Request with the given ID. This will allow other threads to save flows to the Flow Registry. See also the documentation for POSTing to /versions/active-requests for information regarding why this is done. Note: This endpoint is subject to change as NiFi and it's REST API evolve. + /// + /// Thrown when fails to make API call + /// The request ID. + /// Acknowledges that this node is disconnected to allow for mutable requests to proceed. (optional, default to false) + /// ApiResponse of Object(void) + ApiResponse DeleteVersionControlRequestWithHttpInfo (string id, bool? disconnectedNodeAcknowledged = null); + /// + /// Returns the Revert Request with the given ID + /// + /// + /// Returns the Revert Request with the given ID. Once a Revert Request has been created by performing a POST to /versions/revert-requests/process-groups/{id}, that request can subsequently be retrieved via this endpoint, and the request that is fetched will contain the updated state, such as percent complete, the current state of the request, and any failures. Note: This endpoint is subject to change as NiFi and it's REST API evolve. + /// + /// Thrown when fails to make API call + /// The ID of the Revert Request + /// VersionedFlowUpdateRequestEntity + VersionedFlowUpdateRequestEntity GetRevertRequest (string id); + + /// + /// Returns the Revert Request with the given ID + /// + /// + /// Returns the Revert Request with the given ID. Once a Revert Request has been created by performing a POST to /versions/revert-requests/process-groups/{id}, that request can subsequently be retrieved via this endpoint, and the request that is fetched will contain the updated state, such as percent complete, the current state of the request, and any failures. Note: This endpoint is subject to change as NiFi and it's REST API evolve. + /// + /// Thrown when fails to make API call + /// The ID of the Revert Request + /// ApiResponse of VersionedFlowUpdateRequestEntity + ApiResponse GetRevertRequestWithHttpInfo (string id); + /// + /// Returns the Update Request with the given ID + /// + /// + /// Returns the Update Request with the given ID. Once an Update Request has been created by performing a POST to /versions/update-requests/process-groups/{id}, that request can subsequently be retrieved via this endpoint, and the request that is fetched will contain the updated state, such as percent complete, the current state of the request, and any failures. Note: This endpoint is subject to change as NiFi and it's REST API evolve. + /// + /// Thrown when fails to make API call + /// The ID of the Update Request + /// VersionedFlowUpdateRequestEntity + VersionedFlowUpdateRequestEntity GetUpdateRequest (string id); + + /// + /// Returns the Update Request with the given ID + /// + /// + /// Returns the Update Request with the given ID. Once an Update Request has been created by performing a POST to /versions/update-requests/process-groups/{id}, that request can subsequently be retrieved via this endpoint, and the request that is fetched will contain the updated state, such as percent complete, the current state of the request, and any failures. Note: This endpoint is subject to change as NiFi and it's REST API evolve. + /// + /// Thrown when fails to make API call + /// The ID of the Update Request + /// ApiResponse of VersionedFlowUpdateRequestEntity + ApiResponse GetUpdateRequestWithHttpInfo (string id); + /// + /// Gets the Version Control information for a process group + /// + /// + /// Note: This endpoint is subject to change as NiFi and it's REST API evolve. + /// + /// Thrown when fails to make API call + /// The process group id. + /// VersionControlInformationEntity + VersionControlInformationEntity GetVersionInformation (string id); + + /// + /// Gets the Version Control information for a process group + /// + /// + /// Note: This endpoint is subject to change as NiFi and it's REST API evolve. + /// + /// Thrown when fails to make API call + /// The process group id. + /// ApiResponse of VersionControlInformationEntity + ApiResponse GetVersionInformationWithHttpInfo (string id); + /// + /// Initiate the Revert Request of a Process Group with the given ID + /// + /// + /// For a Process Group that is already under Version Control, this will initiate the action of reverting any local changes that have been made to the Process Group since it was last synchronized with the Flow Registry. This will result in the flow matching the Versioned Flow that exists in the Flow Registry. This can be a lengthy process, as it will stop any Processors and disable any Controller Services necessary to perform the action and then restart them. As a result, the endpoint will immediately return a VersionedFlowUpdateRequestEntity, and the process of updating the flow will occur asynchronously in the background. The client may then periodically poll the status of the request by issuing a GET request to /versions/revert-requests/{requestId}. Once the request is completed, the client is expected to issue a DELETE request to /versions/revert-requests/{requestId}. Note: This endpoint is subject to change as NiFi and it's REST API evolve. + /// + /// Thrown when fails to make API call + /// The process group id. + /// The controller service configuration details. + /// VersionedFlowUpdateRequestEntity + VersionedFlowUpdateRequestEntity InitiateRevertFlowVersion (string id, VersionControlInformationEntity body); + + /// + /// Initiate the Revert Request of a Process Group with the given ID + /// + /// + /// For a Process Group that is already under Version Control, this will initiate the action of reverting any local changes that have been made to the Process Group since it was last synchronized with the Flow Registry. This will result in the flow matching the Versioned Flow that exists in the Flow Registry. This can be a lengthy process, as it will stop any Processors and disable any Controller Services necessary to perform the action and then restart them. As a result, the endpoint will immediately return a VersionedFlowUpdateRequestEntity, and the process of updating the flow will occur asynchronously in the background. The client may then periodically poll the status of the request by issuing a GET request to /versions/revert-requests/{requestId}. Once the request is completed, the client is expected to issue a DELETE request to /versions/revert-requests/{requestId}. Note: This endpoint is subject to change as NiFi and it's REST API evolve. + /// + /// Thrown when fails to make API call + /// The process group id. + /// The controller service configuration details. + /// ApiResponse of VersionedFlowUpdateRequestEntity + ApiResponse InitiateRevertFlowVersionWithHttpInfo (string id, VersionControlInformationEntity body); + /// + /// Initiate the Update Request of a Process Group with the given ID + /// + /// + /// For a Process Group that is already under Version Control, this will initiate the action of changing from a specific version of the flow in the Flow Registry to a different version of the flow. This can be a lengthy process, as it will stop any Processors and disable any Controller Services necessary to perform the action and then restart them. As a result, the endpoint will immediately return a VersionedFlowUpdateRequestEntity, and the process of updating the flow will occur asynchronously in the background. The client may then periodically poll the status of the request by issuing a GET request to /versions/update-requests/{requestId}. Once the request is completed, the client is expected to issue a DELETE request to /versions/update-requests/{requestId}. Note: This endpoint is subject to change as NiFi and it's REST API evolve. + /// + /// Thrown when fails to make API call + /// The process group id. + /// The controller service configuration details. + /// VersionedFlowUpdateRequestEntity + VersionedFlowUpdateRequestEntity InitiateVersionControlUpdate (string id, VersionControlInformationEntity body); + + /// + /// Initiate the Update Request of a Process Group with the given ID + /// + /// + /// For a Process Group that is already under Version Control, this will initiate the action of changing from a specific version of the flow in the Flow Registry to a different version of the flow. This can be a lengthy process, as it will stop any Processors and disable any Controller Services necessary to perform the action and then restart them. As a result, the endpoint will immediately return a VersionedFlowUpdateRequestEntity, and the process of updating the flow will occur asynchronously in the background. The client may then periodically poll the status of the request by issuing a GET request to /versions/update-requests/{requestId}. Once the request is completed, the client is expected to issue a DELETE request to /versions/update-requests/{requestId}. Note: This endpoint is subject to change as NiFi and it's REST API evolve. + /// + /// Thrown when fails to make API call + /// The process group id. + /// The controller service configuration details. + /// ApiResponse of VersionedFlowUpdateRequestEntity + ApiResponse InitiateVersionControlUpdateWithHttpInfo (string id, VersionControlInformationEntity body); + /// + /// Save the Process Group with the given ID + /// + /// + /// Begins version controlling the Process Group with the given ID or commits changes to the Versioned Flow, depending on if the provided VersionControlInformation includes a flowId. Note: This endpoint is subject to change as NiFi and it's REST API evolve. + /// + /// Thrown when fails to make API call + /// The process group id. + /// The versioned flow details. + /// VersionControlInformationEntity + VersionControlInformationEntity SaveToFlowRegistry (string id, StartVersionControlRequestEntity body); + + /// + /// Save the Process Group with the given ID + /// + /// + /// Begins version controlling the Process Group with the given ID or commits changes to the Versioned Flow, depending on if the provided VersionControlInformation includes a flowId. Note: This endpoint is subject to change as NiFi and it's REST API evolve. + /// + /// Thrown when fails to make API call + /// The process group id. + /// The versioned flow details. + /// ApiResponse of VersionControlInformationEntity + ApiResponse SaveToFlowRegistryWithHttpInfo (string id, StartVersionControlRequestEntity body); + /// + /// Stops version controlling the Process Group with the given ID + /// + /// + /// Stops version controlling the Process Group with the given ID. The Process Group will no longer track to any Versioned Flow. Note: This endpoint is subject to change as NiFi and it's REST API evolve. + /// + /// Thrown when fails to make API call + /// The process group id. + /// The version is used to verify the client is working with the latest version of the flow. (optional) + /// If the client id is not specified, a new one will be generated. This value (whether specified or generated) is included in the response. (optional) + /// Acknowledges that this node is disconnected to allow for mutable requests to proceed. (optional, default to false) + /// VersionControlInformationEntity + VersionControlInformationEntity StopVersionControl (string id, string version = null, string clientId = null, bool? disconnectedNodeAcknowledged = null); + + /// + /// Stops version controlling the Process Group with the given ID + /// + /// + /// Stops version controlling the Process Group with the given ID. The Process Group will no longer track to any Versioned Flow. Note: This endpoint is subject to change as NiFi and it's REST API evolve. + /// + /// Thrown when fails to make API call + /// The process group id. + /// The version is used to verify the client is working with the latest version of the flow. (optional) + /// If the client id is not specified, a new one will be generated. This value (whether specified or generated) is included in the response. (optional) + /// Acknowledges that this node is disconnected to allow for mutable requests to proceed. (optional, default to false) + /// ApiResponse of VersionControlInformationEntity + ApiResponse StopVersionControlWithHttpInfo (string id, string version = null, string clientId = null, bool? disconnectedNodeAcknowledged = null); + /// + /// Update the version of a Process Group with the given ID + /// + /// + /// For a Process Group that is already under Version Control, this will update the version of the flow to a different version. This endpoint expects that the given snapshot will not modify any Processor that is currently running or any Controller Service that is enabled. Note: This endpoint is subject to change as NiFi and it's REST API evolve. + /// + /// Thrown when fails to make API call + /// The process group id. + /// The controller service configuration details. + /// VersionControlInformationEntity + VersionControlInformationEntity UpdateFlowVersion (string id, VersionedFlowSnapshotEntity body); + + /// + /// Update the version of a Process Group with the given ID + /// + /// + /// For a Process Group that is already under Version Control, this will update the version of the flow to a different version. This endpoint expects that the given snapshot will not modify any Processor that is currently running or any Controller Service that is enabled. Note: This endpoint is subject to change as NiFi and it's REST API evolve. + /// + /// Thrown when fails to make API call + /// The process group id. + /// The controller service configuration details. + /// ApiResponse of VersionControlInformationEntity + ApiResponse UpdateFlowVersionWithHttpInfo (string id, VersionedFlowSnapshotEntity body); + /// + /// Updates the request with the given ID + /// + /// + /// Note: This endpoint is subject to change as NiFi and it's REST API evolve. + /// + /// Thrown when fails to make API call + /// The request ID. + /// The version control component mapping. + /// VersionControlInformationEntity + VersionControlInformationEntity UpdateVersionControlRequest (string id, VersionControlComponentMappingEntity body); + + /// + /// Updates the request with the given ID + /// + /// + /// Note: This endpoint is subject to change as NiFi and it's REST API evolve. + /// + /// Thrown when fails to make API call + /// The request ID. + /// The version control component mapping. + /// ApiResponse of VersionControlInformationEntity + ApiResponse UpdateVersionControlRequestWithHttpInfo (string id, VersionControlComponentMappingEntity body); + #endregion Synchronous Operations + #region Asynchronous Operations + /// + /// Create a version control request + /// + /// + /// Creates a request so that a Process Group can be placed under Version Control or have its Version Control configuration changed. Creating this request will prevent any other threads from simultaneously saving local changes to Version Control. It will not, however, actually save the local flow to the Flow Registry. A POST to /versions/process-groups/{id} should be used to initiate saving of the local flow to the Flow Registry. Note: This endpoint is subject to change as NiFi and it's REST API evolve. + /// + /// Thrown when fails to make API call + /// The versioned flow details. + /// Task of string + System.Threading.Tasks.Task CreateVersionControlRequestAsync (CreateActiveRequestEntity body); + + /// + /// Create a version control request + /// + /// + /// Creates a request so that a Process Group can be placed under Version Control or have its Version Control configuration changed. Creating this request will prevent any other threads from simultaneously saving local changes to Version Control. It will not, however, actually save the local flow to the Flow Registry. A POST to /versions/process-groups/{id} should be used to initiate saving of the local flow to the Flow Registry. Note: This endpoint is subject to change as NiFi and it's REST API evolve. + /// + /// Thrown when fails to make API call + /// The versioned flow details. + /// Task of ApiResponse (string) + System.Threading.Tasks.Task> CreateVersionControlRequestAsyncWithHttpInfo (CreateActiveRequestEntity body); + /// + /// Deletes the Revert Request with the given ID + /// + /// + /// Deletes the Revert Request with the given ID. After a request is created via a POST to /versions/revert-requests/process-groups/{id}, it is expected that the client will properly clean up the request by DELETE'ing it, once the Revert process has completed. If the request is deleted before the request completes, then the Revert request will finish the step that it is currently performing and then will cancel any subsequent steps. Note: This endpoint is subject to change as NiFi and it's REST API evolve. + /// + /// Thrown when fails to make API call + /// The ID of the Revert Request + /// Acknowledges that this node is disconnected to allow for mutable requests to proceed. (optional, default to false) + /// Task of VersionedFlowUpdateRequestEntity + System.Threading.Tasks.Task DeleteRevertRequestAsync (string id, bool? disconnectedNodeAcknowledged = null); + + /// + /// Deletes the Revert Request with the given ID + /// + /// + /// Deletes the Revert Request with the given ID. After a request is created via a POST to /versions/revert-requests/process-groups/{id}, it is expected that the client will properly clean up the request by DELETE'ing it, once the Revert process has completed. If the request is deleted before the request completes, then the Revert request will finish the step that it is currently performing and then will cancel any subsequent steps. Note: This endpoint is subject to change as NiFi and it's REST API evolve. + /// + /// Thrown when fails to make API call + /// The ID of the Revert Request + /// Acknowledges that this node is disconnected to allow for mutable requests to proceed. (optional, default to false) + /// Task of ApiResponse (VersionedFlowUpdateRequestEntity) + System.Threading.Tasks.Task> DeleteRevertRequestAsyncWithHttpInfo (string id, bool? disconnectedNodeAcknowledged = null); + /// + /// Deletes the Update Request with the given ID + /// + /// + /// Deletes the Update Request with the given ID. After a request is created via a POST to /versions/update-requests/process-groups/{id}, it is expected that the client will properly clean up the request by DELETE'ing it, once the Update process has completed. If the request is deleted before the request completes, then the Update request will finish the step that it is currently performing and then will cancel any subsequent steps. Note: This endpoint is subject to change as NiFi and it's REST API evolve. + /// + /// Thrown when fails to make API call + /// The ID of the Update Request + /// Acknowledges that this node is disconnected to allow for mutable requests to proceed. (optional, default to false) + /// Task of VersionedFlowUpdateRequestEntity + System.Threading.Tasks.Task DeleteUpdateRequestAsync (string id, bool? disconnectedNodeAcknowledged = null); + + /// + /// Deletes the Update Request with the given ID + /// + /// + /// Deletes the Update Request with the given ID. After a request is created via a POST to /versions/update-requests/process-groups/{id}, it is expected that the client will properly clean up the request by DELETE'ing it, once the Update process has completed. If the request is deleted before the request completes, then the Update request will finish the step that it is currently performing and then will cancel any subsequent steps. Note: This endpoint is subject to change as NiFi and it's REST API evolve. + /// + /// Thrown when fails to make API call + /// The ID of the Update Request + /// Acknowledges that this node is disconnected to allow for mutable requests to proceed. (optional, default to false) + /// Task of ApiResponse (VersionedFlowUpdateRequestEntity) + System.Threading.Tasks.Task> DeleteUpdateRequestAsyncWithHttpInfo (string id, bool? disconnectedNodeAcknowledged = null); + /// + /// Deletes the version control request with the given ID + /// + /// + /// Deletes the Version Control Request with the given ID. This will allow other threads to save flows to the Flow Registry. See also the documentation for POSTing to /versions/active-requests for information regarding why this is done. Note: This endpoint is subject to change as NiFi and it's REST API evolve. + /// + /// Thrown when fails to make API call + /// The request ID. + /// Acknowledges that this node is disconnected to allow for mutable requests to proceed. (optional, default to false) + /// Task of void + System.Threading.Tasks.Task DeleteVersionControlRequestAsync (string id, bool? disconnectedNodeAcknowledged = null); + + /// + /// Deletes the version control request with the given ID + /// + /// + /// Deletes the Version Control Request with the given ID. This will allow other threads to save flows to the Flow Registry. See also the documentation for POSTing to /versions/active-requests for information regarding why this is done. Note: This endpoint is subject to change as NiFi and it's REST API evolve. + /// + /// Thrown when fails to make API call + /// The request ID. + /// Acknowledges that this node is disconnected to allow for mutable requests to proceed. (optional, default to false) + /// Task of ApiResponse + System.Threading.Tasks.Task> DeleteVersionControlRequestAsyncWithHttpInfo (string id, bool? disconnectedNodeAcknowledged = null); + /// + /// Returns the Revert Request with the given ID + /// + /// + /// Returns the Revert Request with the given ID. Once a Revert Request has been created by performing a POST to /versions/revert-requests/process-groups/{id}, that request can subsequently be retrieved via this endpoint, and the request that is fetched will contain the updated state, such as percent complete, the current state of the request, and any failures. Note: This endpoint is subject to change as NiFi and it's REST API evolve. + /// + /// Thrown when fails to make API call + /// The ID of the Revert Request + /// Task of VersionedFlowUpdateRequestEntity + System.Threading.Tasks.Task GetRevertRequestAsync (string id); + + /// + /// Returns the Revert Request with the given ID + /// + /// + /// Returns the Revert Request with the given ID. Once a Revert Request has been created by performing a POST to /versions/revert-requests/process-groups/{id}, that request can subsequently be retrieved via this endpoint, and the request that is fetched will contain the updated state, such as percent complete, the current state of the request, and any failures. Note: This endpoint is subject to change as NiFi and it's REST API evolve. + /// + /// Thrown when fails to make API call + /// The ID of the Revert Request + /// Task of ApiResponse (VersionedFlowUpdateRequestEntity) + System.Threading.Tasks.Task> GetRevertRequestAsyncWithHttpInfo (string id); + /// + /// Returns the Update Request with the given ID + /// + /// + /// Returns the Update Request with the given ID. Once an Update Request has been created by performing a POST to /versions/update-requests/process-groups/{id}, that request can subsequently be retrieved via this endpoint, and the request that is fetched will contain the updated state, such as percent complete, the current state of the request, and any failures. Note: This endpoint is subject to change as NiFi and it's REST API evolve. + /// + /// Thrown when fails to make API call + /// The ID of the Update Request + /// Task of VersionedFlowUpdateRequestEntity + System.Threading.Tasks.Task GetUpdateRequestAsync (string id); + + /// + /// Returns the Update Request with the given ID + /// + /// + /// Returns the Update Request with the given ID. Once an Update Request has been created by performing a POST to /versions/update-requests/process-groups/{id}, that request can subsequently be retrieved via this endpoint, and the request that is fetched will contain the updated state, such as percent complete, the current state of the request, and any failures. Note: This endpoint is subject to change as NiFi and it's REST API evolve. + /// + /// Thrown when fails to make API call + /// The ID of the Update Request + /// Task of ApiResponse (VersionedFlowUpdateRequestEntity) + System.Threading.Tasks.Task> GetUpdateRequestAsyncWithHttpInfo (string id); + /// + /// Gets the Version Control information for a process group + /// + /// + /// Note: This endpoint is subject to change as NiFi and it's REST API evolve. + /// + /// Thrown when fails to make API call + /// The process group id. + /// Task of VersionControlInformationEntity + System.Threading.Tasks.Task GetVersionInformationAsync (string id); + + /// + /// Gets the Version Control information for a process group + /// + /// + /// Note: This endpoint is subject to change as NiFi and it's REST API evolve. + /// + /// Thrown when fails to make API call + /// The process group id. + /// Task of ApiResponse (VersionControlInformationEntity) + System.Threading.Tasks.Task> GetVersionInformationAsyncWithHttpInfo (string id); + /// + /// Initiate the Revert Request of a Process Group with the given ID + /// + /// + /// For a Process Group that is already under Version Control, this will initiate the action of reverting any local changes that have been made to the Process Group since it was last synchronized with the Flow Registry. This will result in the flow matching the Versioned Flow that exists in the Flow Registry. This can be a lengthy process, as it will stop any Processors and disable any Controller Services necessary to perform the action and then restart them. As a result, the endpoint will immediately return a VersionedFlowUpdateRequestEntity, and the process of updating the flow will occur asynchronously in the background. The client may then periodically poll the status of the request by issuing a GET request to /versions/revert-requests/{requestId}. Once the request is completed, the client is expected to issue a DELETE request to /versions/revert-requests/{requestId}. Note: This endpoint is subject to change as NiFi and it's REST API evolve. + /// + /// Thrown when fails to make API call + /// The process group id. + /// The controller service configuration details. + /// Task of VersionedFlowUpdateRequestEntity + System.Threading.Tasks.Task InitiateRevertFlowVersionAsync (string id, VersionControlInformationEntity body); + + /// + /// Initiate the Revert Request of a Process Group with the given ID + /// + /// + /// For a Process Group that is already under Version Control, this will initiate the action of reverting any local changes that have been made to the Process Group since it was last synchronized with the Flow Registry. This will result in the flow matching the Versioned Flow that exists in the Flow Registry. This can be a lengthy process, as it will stop any Processors and disable any Controller Services necessary to perform the action and then restart them. As a result, the endpoint will immediately return a VersionedFlowUpdateRequestEntity, and the process of updating the flow will occur asynchronously in the background. The client may then periodically poll the status of the request by issuing a GET request to /versions/revert-requests/{requestId}. Once the request is completed, the client is expected to issue a DELETE request to /versions/revert-requests/{requestId}. Note: This endpoint is subject to change as NiFi and it's REST API evolve. + /// + /// Thrown when fails to make API call + /// The process group id. + /// The controller service configuration details. + /// Task of ApiResponse (VersionedFlowUpdateRequestEntity) + System.Threading.Tasks.Task> InitiateRevertFlowVersionAsyncWithHttpInfo (string id, VersionControlInformationEntity body); + /// + /// Initiate the Update Request of a Process Group with the given ID + /// + /// + /// For a Process Group that is already under Version Control, this will initiate the action of changing from a specific version of the flow in the Flow Registry to a different version of the flow. This can be a lengthy process, as it will stop any Processors and disable any Controller Services necessary to perform the action and then restart them. As a result, the endpoint will immediately return a VersionedFlowUpdateRequestEntity, and the process of updating the flow will occur asynchronously in the background. The client may then periodically poll the status of the request by issuing a GET request to /versions/update-requests/{requestId}. Once the request is completed, the client is expected to issue a DELETE request to /versions/update-requests/{requestId}. Note: This endpoint is subject to change as NiFi and it's REST API evolve. + /// + /// Thrown when fails to make API call + /// The process group id. + /// The controller service configuration details. + /// Task of VersionedFlowUpdateRequestEntity + System.Threading.Tasks.Task InitiateVersionControlUpdateAsync (string id, VersionControlInformationEntity body); + + /// + /// Initiate the Update Request of a Process Group with the given ID + /// + /// + /// For a Process Group that is already under Version Control, this will initiate the action of changing from a specific version of the flow in the Flow Registry to a different version of the flow. This can be a lengthy process, as it will stop any Processors and disable any Controller Services necessary to perform the action and then restart them. As a result, the endpoint will immediately return a VersionedFlowUpdateRequestEntity, and the process of updating the flow will occur asynchronously in the background. The client may then periodically poll the status of the request by issuing a GET request to /versions/update-requests/{requestId}. Once the request is completed, the client is expected to issue a DELETE request to /versions/update-requests/{requestId}. Note: This endpoint is subject to change as NiFi and it's REST API evolve. + /// + /// Thrown when fails to make API call + /// The process group id. + /// The controller service configuration details. + /// Task of ApiResponse (VersionedFlowUpdateRequestEntity) + System.Threading.Tasks.Task> InitiateVersionControlUpdateAsyncWithHttpInfo (string id, VersionControlInformationEntity body); + /// + /// Save the Process Group with the given ID + /// + /// + /// Begins version controlling the Process Group with the given ID or commits changes to the Versioned Flow, depending on if the provided VersionControlInformation includes a flowId. Note: This endpoint is subject to change as NiFi and it's REST API evolve. + /// + /// Thrown when fails to make API call + /// The process group id. + /// The versioned flow details. + /// Task of VersionControlInformationEntity + System.Threading.Tasks.Task SaveToFlowRegistryAsync (string id, StartVersionControlRequestEntity body); + + /// + /// Save the Process Group with the given ID + /// + /// + /// Begins version controlling the Process Group with the given ID or commits changes to the Versioned Flow, depending on if the provided VersionControlInformation includes a flowId. Note: This endpoint is subject to change as NiFi and it's REST API evolve. + /// + /// Thrown when fails to make API call + /// The process group id. + /// The versioned flow details. + /// Task of ApiResponse (VersionControlInformationEntity) + System.Threading.Tasks.Task> SaveToFlowRegistryAsyncWithHttpInfo (string id, StartVersionControlRequestEntity body); + /// + /// Stops version controlling the Process Group with the given ID + /// + /// + /// Stops version controlling the Process Group with the given ID. The Process Group will no longer track to any Versioned Flow. Note: This endpoint is subject to change as NiFi and it's REST API evolve. + /// + /// Thrown when fails to make API call + /// The process group id. + /// The version is used to verify the client is working with the latest version of the flow. (optional) + /// If the client id is not specified, a new one will be generated. This value (whether specified or generated) is included in the response. (optional) + /// Acknowledges that this node is disconnected to allow for mutable requests to proceed. (optional, default to false) + /// Task of VersionControlInformationEntity + System.Threading.Tasks.Task StopVersionControlAsync (string id, string version = null, string clientId = null, bool? disconnectedNodeAcknowledged = null); + + /// + /// Stops version controlling the Process Group with the given ID + /// + /// + /// Stops version controlling the Process Group with the given ID. The Process Group will no longer track to any Versioned Flow. Note: This endpoint is subject to change as NiFi and it's REST API evolve. + /// + /// Thrown when fails to make API call + /// The process group id. + /// The version is used to verify the client is working with the latest version of the flow. (optional) + /// If the client id is not specified, a new one will be generated. This value (whether specified or generated) is included in the response. (optional) + /// Acknowledges that this node is disconnected to allow for mutable requests to proceed. (optional, default to false) + /// Task of ApiResponse (VersionControlInformationEntity) + System.Threading.Tasks.Task> StopVersionControlAsyncWithHttpInfo (string id, string version = null, string clientId = null, bool? disconnectedNodeAcknowledged = null); + /// + /// Update the version of a Process Group with the given ID + /// + /// + /// For a Process Group that is already under Version Control, this will update the version of the flow to a different version. This endpoint expects that the given snapshot will not modify any Processor that is currently running or any Controller Service that is enabled. Note: This endpoint is subject to change as NiFi and it's REST API evolve. + /// + /// Thrown when fails to make API call + /// The process group id. + /// The controller service configuration details. + /// Task of VersionControlInformationEntity + System.Threading.Tasks.Task UpdateFlowVersionAsync (string id, VersionedFlowSnapshotEntity body); + + /// + /// Update the version of a Process Group with the given ID + /// + /// + /// For a Process Group that is already under Version Control, this will update the version of the flow to a different version. This endpoint expects that the given snapshot will not modify any Processor that is currently running or any Controller Service that is enabled. Note: This endpoint is subject to change as NiFi and it's REST API evolve. + /// + /// Thrown when fails to make API call + /// The process group id. + /// The controller service configuration details. + /// Task of ApiResponse (VersionControlInformationEntity) + System.Threading.Tasks.Task> UpdateFlowVersionAsyncWithHttpInfo (string id, VersionedFlowSnapshotEntity body); + /// + /// Updates the request with the given ID + /// + /// + /// Note: This endpoint is subject to change as NiFi and it's REST API evolve. + /// + /// Thrown when fails to make API call + /// The request ID. + /// The version control component mapping. + /// Task of VersionControlInformationEntity + System.Threading.Tasks.Task UpdateVersionControlRequestAsync (string id, VersionControlComponentMappingEntity body); + + /// + /// Updates the request with the given ID + /// + /// + /// Note: This endpoint is subject to change as NiFi and it's REST API evolve. + /// + /// Thrown when fails to make API call + /// The request ID. + /// The version control component mapping. + /// Task of ApiResponse (VersionControlInformationEntity) + System.Threading.Tasks.Task> UpdateVersionControlRequestAsyncWithHttpInfo (string id, VersionControlComponentMappingEntity body); + #endregion Asynchronous Operations + } + + /// + /// Represents a collection of functions to interact with the API endpoints + /// + public partial class VersionsApi : IVersionsApi + { + private ExceptionFactory _exceptionFactory = (name, response) => null; + + /// + /// Initializes a new instance of the class. + /// + /// + public VersionsApi(String basePath) + { + this.Configuration = new Configuration { BasePath = basePath }; + + this.ExceptionFactory = Configuration.DefaultExceptionFactory; + } + + /// + /// Initializes a new instance of the class + /// using Configuration object + /// + /// An instance of Configuration + /// + public VersionsApi(Configuration configuration = null) + { + if (configuration == null) // use the default one in Configuration + this.Configuration = Configuration.Default; + else + this.Configuration = configuration; + + this.ExceptionFactory = Configuration.DefaultExceptionFactory; + } + + /// + /// Gets the base path of the API client. + /// + /// The base path + public String GetBasePath() + { + return this.Configuration.ApiClient.RestClient.BaseUrl.ToString(); + } + + /// + /// Sets the base path of the API client. + /// + /// The base path + [Obsolete("SetBasePath is deprecated, please do 'Configuration.ApiClient = new ApiClient(\"http://new-path\")' instead.")] + public void SetBasePath(String basePath) + { + // do nothing + } + + /// + /// Gets or sets the configuration object + /// + /// An instance of the Configuration + public Configuration Configuration {get; set;} + + /// + /// Provides a factory method hook for the creation of exceptions. + /// + public ExceptionFactory ExceptionFactory + { + get + { + if (this._exceptionFactory != null && this._exceptionFactory.GetInvocationList().Length > 1) + { + throw new InvalidOperationException("Multicast delegate for ExceptionFactory is unsupported."); + } + return this._exceptionFactory; + } + set { this._exceptionFactory = value; } + } + + /// + /// Gets the default header. + /// + /// Dictionary of HTTP header + [Obsolete("DefaultHeader is deprecated, please use Configuration.DefaultHeader instead.")] + public IDictionary DefaultHeader() + { + return new ReadOnlyDictionary(this.Configuration.DefaultHeader); + } + + /// + /// Add default header. + /// + /// Header field name. + /// Header field value. + /// + [Obsolete("AddDefaultHeader is deprecated, please use Configuration.AddDefaultHeader instead.")] + public void AddDefaultHeader(string key, string value) + { + this.Configuration.AddDefaultHeader(key, value); + } + + /// + /// Create a version control request Creates a request so that a Process Group can be placed under Version Control or have its Version Control configuration changed. Creating this request will prevent any other threads from simultaneously saving local changes to Version Control. It will not, however, actually save the local flow to the Flow Registry. A POST to /versions/process-groups/{id} should be used to initiate saving of the local flow to the Flow Registry. Note: This endpoint is subject to change as NiFi and it's REST API evolve. + /// + /// Thrown when fails to make API call + /// The versioned flow details. + /// string + public string CreateVersionControlRequest (CreateActiveRequestEntity body) + { + ApiResponse localVarResponse = this.CreateVersionControlRequestWithHttpInfo(body); + return localVarResponse.Data; + } + + /// + /// Create a version control request Creates a request so that a Process Group can be placed under Version Control or have its Version Control configuration changed. Creating this request will prevent any other threads from simultaneously saving local changes to Version Control. It will not, however, actually save the local flow to the Flow Registry. A POST to /versions/process-groups/{id} should be used to initiate saving of the local flow to the Flow Registry. Note: This endpoint is subject to change as NiFi and it's REST API evolve. + /// + /// Thrown when fails to make API call + /// The versioned flow details. + /// ApiResponse of string + public ApiResponse< string > CreateVersionControlRequestWithHttpInfo (CreateActiveRequestEntity body) + { + // verify the required parameter 'body' is set + if (body == null) + throw new ApiException(400, "Missing required parameter 'body' when calling VersionsApi->CreateVersionControlRequest"); + + var localVarPath = "/versions/active-requests"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "application/json" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "text/plain" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (body != null && body.GetType() != typeof(byte[])) + { + localVarPostBody = this.Configuration.ApiClient.Serialize(body); // http body (model) parameter + } + else + { + localVarPostBody = body; // byte array + } + + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (this.ExceptionFactory != null) + { + Exception exception = this.ExceptionFactory("CreateVersionControlRequest", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), + (string) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(string))); + } + + /// + /// Create a version control request Creates a request so that a Process Group can be placed under Version Control or have its Version Control configuration changed. Creating this request will prevent any other threads from simultaneously saving local changes to Version Control. It will not, however, actually save the local flow to the Flow Registry. A POST to /versions/process-groups/{id} should be used to initiate saving of the local flow to the Flow Registry. Note: This endpoint is subject to change as NiFi and it's REST API evolve. + /// + /// Thrown when fails to make API call + /// The versioned flow details. + /// Task of string + public async System.Threading.Tasks.Task CreateVersionControlRequestAsync (CreateActiveRequestEntity body) + { + ApiResponse localVarResponse = await this.CreateVersionControlRequestAsyncWithHttpInfo(body); + return localVarResponse.Data; + + } + + /// + /// Create a version control request Creates a request so that a Process Group can be placed under Version Control or have its Version Control configuration changed. Creating this request will prevent any other threads from simultaneously saving local changes to Version Control. It will not, however, actually save the local flow to the Flow Registry. A POST to /versions/process-groups/{id} should be used to initiate saving of the local flow to the Flow Registry. Note: This endpoint is subject to change as NiFi and it's REST API evolve. + /// + /// Thrown when fails to make API call + /// The versioned flow details. + /// Task of ApiResponse (string) + public async System.Threading.Tasks.Task> CreateVersionControlRequestAsyncWithHttpInfo (CreateActiveRequestEntity body) + { + // verify the required parameter 'body' is set + if (body == null) + throw new ApiException(400, "Missing required parameter 'body' when calling VersionsApi->CreateVersionControlRequest"); + + var localVarPath = "/versions/active-requests"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "application/json" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "text/plain" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (body != null && body.GetType() != typeof(byte[])) + { + localVarPostBody = this.Configuration.ApiClient.Serialize(body); // http body (model) parameter + } + else + { + localVarPostBody = body; // byte array + } + + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (this.ExceptionFactory != null) + { + Exception exception = this.ExceptionFactory("CreateVersionControlRequest", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), + (string) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(string))); + } + + /// + /// Deletes the Revert Request with the given ID Deletes the Revert Request with the given ID. After a request is created via a POST to /versions/revert-requests/process-groups/{id}, it is expected that the client will properly clean up the request by DELETE'ing it, once the Revert process has completed. If the request is deleted before the request completes, then the Revert request will finish the step that it is currently performing and then will cancel any subsequent steps. Note: This endpoint is subject to change as NiFi and it's REST API evolve. + /// + /// Thrown when fails to make API call + /// The ID of the Revert Request + /// Acknowledges that this node is disconnected to allow for mutable requests to proceed. (optional, default to false) + /// VersionedFlowUpdateRequestEntity + public VersionedFlowUpdateRequestEntity DeleteRevertRequest (string id, bool? disconnectedNodeAcknowledged = null) + { + ApiResponse localVarResponse = this.DeleteRevertRequestWithHttpInfo(id, disconnectedNodeAcknowledged); + return localVarResponse.Data; + } + + /// + /// Deletes the Revert Request with the given ID Deletes the Revert Request with the given ID. After a request is created via a POST to /versions/revert-requests/process-groups/{id}, it is expected that the client will properly clean up the request by DELETE'ing it, once the Revert process has completed. If the request is deleted before the request completes, then the Revert request will finish the step that it is currently performing and then will cancel any subsequent steps. Note: This endpoint is subject to change as NiFi and it's REST API evolve. + /// + /// Thrown when fails to make API call + /// The ID of the Revert Request + /// Acknowledges that this node is disconnected to allow for mutable requests to proceed. (optional, default to false) + /// ApiResponse of VersionedFlowUpdateRequestEntity + public ApiResponse< VersionedFlowUpdateRequestEntity > DeleteRevertRequestWithHttpInfo (string id, bool? disconnectedNodeAcknowledged = null) + { + // verify the required parameter 'id' is set + if (id == null) + throw new ApiException(400, "Missing required parameter 'id' when calling VersionsApi->DeleteRevertRequest"); + + var localVarPath = "/versions/revert-requests/{id}"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "*/*" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter + if (disconnectedNodeAcknowledged != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "disconnectedNodeAcknowledged", disconnectedNodeAcknowledged)); // query parameter + + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.DELETE, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (this.ExceptionFactory != null) + { + Exception exception = this.ExceptionFactory("DeleteRevertRequest", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), + (VersionedFlowUpdateRequestEntity) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(VersionedFlowUpdateRequestEntity))); + } + + /// + /// Deletes the Revert Request with the given ID Deletes the Revert Request with the given ID. After a request is created via a POST to /versions/revert-requests/process-groups/{id}, it is expected that the client will properly clean up the request by DELETE'ing it, once the Revert process has completed. If the request is deleted before the request completes, then the Revert request will finish the step that it is currently performing and then will cancel any subsequent steps. Note: This endpoint is subject to change as NiFi and it's REST API evolve. + /// + /// Thrown when fails to make API call + /// The ID of the Revert Request + /// Acknowledges that this node is disconnected to allow for mutable requests to proceed. (optional, default to false) + /// Task of VersionedFlowUpdateRequestEntity + public async System.Threading.Tasks.Task DeleteRevertRequestAsync (string id, bool? disconnectedNodeAcknowledged = null) + { + ApiResponse localVarResponse = await this.DeleteRevertRequestAsyncWithHttpInfo(id, disconnectedNodeAcknowledged); + return localVarResponse.Data; + + } + + /// + /// Deletes the Revert Request with the given ID Deletes the Revert Request with the given ID. After a request is created via a POST to /versions/revert-requests/process-groups/{id}, it is expected that the client will properly clean up the request by DELETE'ing it, once the Revert process has completed. If the request is deleted before the request completes, then the Revert request will finish the step that it is currently performing and then will cancel any subsequent steps. Note: This endpoint is subject to change as NiFi and it's REST API evolve. + /// + /// Thrown when fails to make API call + /// The ID of the Revert Request + /// Acknowledges that this node is disconnected to allow for mutable requests to proceed. (optional, default to false) + /// Task of ApiResponse (VersionedFlowUpdateRequestEntity) + public async System.Threading.Tasks.Task> DeleteRevertRequestAsyncWithHttpInfo (string id, bool? disconnectedNodeAcknowledged = null) + { + // verify the required parameter 'id' is set + if (id == null) + throw new ApiException(400, "Missing required parameter 'id' when calling VersionsApi->DeleteRevertRequest"); + + var localVarPath = "/versions/revert-requests/{id}"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "*/*" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter + if (disconnectedNodeAcknowledged != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "disconnectedNodeAcknowledged", disconnectedNodeAcknowledged)); // query parameter + + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.DELETE, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (this.ExceptionFactory != null) + { + Exception exception = this.ExceptionFactory("DeleteRevertRequest", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), + (VersionedFlowUpdateRequestEntity) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(VersionedFlowUpdateRequestEntity))); + } + + /// + /// Deletes the Update Request with the given ID Deletes the Update Request with the given ID. After a request is created via a POST to /versions/update-requests/process-groups/{id}, it is expected that the client will properly clean up the request by DELETE'ing it, once the Update process has completed. If the request is deleted before the request completes, then the Update request will finish the step that it is currently performing and then will cancel any subsequent steps. Note: This endpoint is subject to change as NiFi and it's REST API evolve. + /// + /// Thrown when fails to make API call + /// The ID of the Update Request + /// Acknowledges that this node is disconnected to allow for mutable requests to proceed. (optional, default to false) + /// VersionedFlowUpdateRequestEntity + public VersionedFlowUpdateRequestEntity DeleteUpdateRequest (string id, bool? disconnectedNodeAcknowledged = null) + { + ApiResponse localVarResponse = this.DeleteUpdateRequestWithHttpInfo(id, disconnectedNodeAcknowledged); + return localVarResponse.Data; + } + + /// + /// Deletes the Update Request with the given ID Deletes the Update Request with the given ID. After a request is created via a POST to /versions/update-requests/process-groups/{id}, it is expected that the client will properly clean up the request by DELETE'ing it, once the Update process has completed. If the request is deleted before the request completes, then the Update request will finish the step that it is currently performing and then will cancel any subsequent steps. Note: This endpoint is subject to change as NiFi and it's REST API evolve. + /// + /// Thrown when fails to make API call + /// The ID of the Update Request + /// Acknowledges that this node is disconnected to allow for mutable requests to proceed. (optional, default to false) + /// ApiResponse of VersionedFlowUpdateRequestEntity + public ApiResponse< VersionedFlowUpdateRequestEntity > DeleteUpdateRequestWithHttpInfo (string id, bool? disconnectedNodeAcknowledged = null) + { + // verify the required parameter 'id' is set + if (id == null) + throw new ApiException(400, "Missing required parameter 'id' when calling VersionsApi->DeleteUpdateRequest"); + + var localVarPath = "/versions/update-requests/{id}"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "*/*" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter + if (disconnectedNodeAcknowledged != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "disconnectedNodeAcknowledged", disconnectedNodeAcknowledged)); // query parameter + + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.DELETE, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (this.ExceptionFactory != null) + { + Exception exception = this.ExceptionFactory("DeleteUpdateRequest", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), + (VersionedFlowUpdateRequestEntity) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(VersionedFlowUpdateRequestEntity))); + } + + /// + /// Deletes the Update Request with the given ID Deletes the Update Request with the given ID. After a request is created via a POST to /versions/update-requests/process-groups/{id}, it is expected that the client will properly clean up the request by DELETE'ing it, once the Update process has completed. If the request is deleted before the request completes, then the Update request will finish the step that it is currently performing and then will cancel any subsequent steps. Note: This endpoint is subject to change as NiFi and it's REST API evolve. + /// + /// Thrown when fails to make API call + /// The ID of the Update Request + /// Acknowledges that this node is disconnected to allow for mutable requests to proceed. (optional, default to false) + /// Task of VersionedFlowUpdateRequestEntity + public async System.Threading.Tasks.Task DeleteUpdateRequestAsync (string id, bool? disconnectedNodeAcknowledged = null) + { + ApiResponse localVarResponse = await this.DeleteUpdateRequestAsyncWithHttpInfo(id, disconnectedNodeAcknowledged); + return localVarResponse.Data; + + } + + /// + /// Deletes the Update Request with the given ID Deletes the Update Request with the given ID. After a request is created via a POST to /versions/update-requests/process-groups/{id}, it is expected that the client will properly clean up the request by DELETE'ing it, once the Update process has completed. If the request is deleted before the request completes, then the Update request will finish the step that it is currently performing and then will cancel any subsequent steps. Note: This endpoint is subject to change as NiFi and it's REST API evolve. + /// + /// Thrown when fails to make API call + /// The ID of the Update Request + /// Acknowledges that this node is disconnected to allow for mutable requests to proceed. (optional, default to false) + /// Task of ApiResponse (VersionedFlowUpdateRequestEntity) + public async System.Threading.Tasks.Task> DeleteUpdateRequestAsyncWithHttpInfo (string id, bool? disconnectedNodeAcknowledged = null) + { + // verify the required parameter 'id' is set + if (id == null) + throw new ApiException(400, "Missing required parameter 'id' when calling VersionsApi->DeleteUpdateRequest"); + + var localVarPath = "/versions/update-requests/{id}"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "*/*" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter + if (disconnectedNodeAcknowledged != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "disconnectedNodeAcknowledged", disconnectedNodeAcknowledged)); // query parameter + + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.DELETE, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (this.ExceptionFactory != null) + { + Exception exception = this.ExceptionFactory("DeleteUpdateRequest", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), + (VersionedFlowUpdateRequestEntity) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(VersionedFlowUpdateRequestEntity))); + } + + /// + /// Deletes the version control request with the given ID Deletes the Version Control Request with the given ID. This will allow other threads to save flows to the Flow Registry. See also the documentation for POSTing to /versions/active-requests for information regarding why this is done. Note: This endpoint is subject to change as NiFi and it's REST API evolve. + /// + /// Thrown when fails to make API call + /// The request ID. + /// Acknowledges that this node is disconnected to allow for mutable requests to proceed. (optional, default to false) + /// + public void DeleteVersionControlRequest (string id, bool? disconnectedNodeAcknowledged = null) + { + this.DeleteVersionControlRequestWithHttpInfo(id, disconnectedNodeAcknowledged); + } + + /// + /// Deletes the version control request with the given ID Deletes the Version Control Request with the given ID. This will allow other threads to save flows to the Flow Registry. See also the documentation for POSTing to /versions/active-requests for information regarding why this is done. Note: This endpoint is subject to change as NiFi and it's REST API evolve. + /// + /// Thrown when fails to make API call + /// The request ID. + /// Acknowledges that this node is disconnected to allow for mutable requests to proceed. (optional, default to false) + /// ApiResponse of Object(void) + public ApiResponse DeleteVersionControlRequestWithHttpInfo (string id, bool? disconnectedNodeAcknowledged = null) + { + // verify the required parameter 'id' is set + if (id == null) + throw new ApiException(400, "Missing required parameter 'id' when calling VersionsApi->DeleteVersionControlRequest"); + + var localVarPath = "/versions/active-requests/{id}"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "*/*" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter + if (disconnectedNodeAcknowledged != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "disconnectedNodeAcknowledged", disconnectedNodeAcknowledged)); // query parameter + + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.DELETE, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (this.ExceptionFactory != null) + { + Exception exception = this.ExceptionFactory("DeleteVersionControlRequest", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), + null); + } + + /// + /// Deletes the version control request with the given ID Deletes the Version Control Request with the given ID. This will allow other threads to save flows to the Flow Registry. See also the documentation for POSTing to /versions/active-requests for information regarding why this is done. Note: This endpoint is subject to change as NiFi and it's REST API evolve. + /// + /// Thrown when fails to make API call + /// The request ID. + /// Acknowledges that this node is disconnected to allow for mutable requests to proceed. (optional, default to false) + /// Task of void + public async System.Threading.Tasks.Task DeleteVersionControlRequestAsync (string id, bool? disconnectedNodeAcknowledged = null) + { + await this.DeleteVersionControlRequestAsyncWithHttpInfo(id, disconnectedNodeAcknowledged); + + } + + /// + /// Deletes the version control request with the given ID Deletes the Version Control Request with the given ID. This will allow other threads to save flows to the Flow Registry. See also the documentation for POSTing to /versions/active-requests for information regarding why this is done. Note: This endpoint is subject to change as NiFi and it's REST API evolve. + /// + /// Thrown when fails to make API call + /// The request ID. + /// Acknowledges that this node is disconnected to allow for mutable requests to proceed. (optional, default to false) + /// Task of ApiResponse + public async System.Threading.Tasks.Task> DeleteVersionControlRequestAsyncWithHttpInfo (string id, bool? disconnectedNodeAcknowledged = null) + { + // verify the required parameter 'id' is set + if (id == null) + throw new ApiException(400, "Missing required parameter 'id' when calling VersionsApi->DeleteVersionControlRequest"); + + var localVarPath = "/versions/active-requests/{id}"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "*/*" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter + if (disconnectedNodeAcknowledged != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "disconnectedNodeAcknowledged", disconnectedNodeAcknowledged)); // query parameter + + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.DELETE, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (this.ExceptionFactory != null) + { + Exception exception = this.ExceptionFactory("DeleteVersionControlRequest", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), + null); + } + + /// + /// Returns the Revert Request with the given ID Returns the Revert Request with the given ID. Once a Revert Request has been created by performing a POST to /versions/revert-requests/process-groups/{id}, that request can subsequently be retrieved via this endpoint, and the request that is fetched will contain the updated state, such as percent complete, the current state of the request, and any failures. Note: This endpoint is subject to change as NiFi and it's REST API evolve. + /// + /// Thrown when fails to make API call + /// The ID of the Revert Request + /// VersionedFlowUpdateRequestEntity + public VersionedFlowUpdateRequestEntity GetRevertRequest (string id) + { + ApiResponse localVarResponse = this.GetRevertRequestWithHttpInfo(id); + return localVarResponse.Data; + } + + /// + /// Returns the Revert Request with the given ID Returns the Revert Request with the given ID. Once a Revert Request has been created by performing a POST to /versions/revert-requests/process-groups/{id}, that request can subsequently be retrieved via this endpoint, and the request that is fetched will contain the updated state, such as percent complete, the current state of the request, and any failures. Note: This endpoint is subject to change as NiFi and it's REST API evolve. + /// + /// Thrown when fails to make API call + /// The ID of the Revert Request + /// ApiResponse of VersionedFlowUpdateRequestEntity + public ApiResponse< VersionedFlowUpdateRequestEntity > GetRevertRequestWithHttpInfo (string id) + { + // verify the required parameter 'id' is set + if (id == null) + throw new ApiException(400, "Missing required parameter 'id' when calling VersionsApi->GetRevertRequest"); + + var localVarPath = "/versions/revert-requests/{id}"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "*/*" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter + + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (this.ExceptionFactory != null) + { + Exception exception = this.ExceptionFactory("GetRevertRequest", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), + (VersionedFlowUpdateRequestEntity) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(VersionedFlowUpdateRequestEntity))); + } + + /// + /// Returns the Revert Request with the given ID Returns the Revert Request with the given ID. Once a Revert Request has been created by performing a POST to /versions/revert-requests/process-groups/{id}, that request can subsequently be retrieved via this endpoint, and the request that is fetched will contain the updated state, such as percent complete, the current state of the request, and any failures. Note: This endpoint is subject to change as NiFi and it's REST API evolve. + /// + /// Thrown when fails to make API call + /// The ID of the Revert Request + /// Task of VersionedFlowUpdateRequestEntity + public async System.Threading.Tasks.Task GetRevertRequestAsync (string id) + { + ApiResponse localVarResponse = await this.GetRevertRequestAsyncWithHttpInfo(id); + return localVarResponse.Data; + + } + + /// + /// Returns the Revert Request with the given ID Returns the Revert Request with the given ID. Once a Revert Request has been created by performing a POST to /versions/revert-requests/process-groups/{id}, that request can subsequently be retrieved via this endpoint, and the request that is fetched will contain the updated state, such as percent complete, the current state of the request, and any failures. Note: This endpoint is subject to change as NiFi and it's REST API evolve. + /// + /// Thrown when fails to make API call + /// The ID of the Revert Request + /// Task of ApiResponse (VersionedFlowUpdateRequestEntity) + public async System.Threading.Tasks.Task> GetRevertRequestAsyncWithHttpInfo (string id) + { + // verify the required parameter 'id' is set + if (id == null) + throw new ApiException(400, "Missing required parameter 'id' when calling VersionsApi->GetRevertRequest"); + + var localVarPath = "/versions/revert-requests/{id}"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "*/*" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter + + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (this.ExceptionFactory != null) + { + Exception exception = this.ExceptionFactory("GetRevertRequest", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), + (VersionedFlowUpdateRequestEntity) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(VersionedFlowUpdateRequestEntity))); + } + + /// + /// Returns the Update Request with the given ID Returns the Update Request with the given ID. Once an Update Request has been created by performing a POST to /versions/update-requests/process-groups/{id}, that request can subsequently be retrieved via this endpoint, and the request that is fetched will contain the updated state, such as percent complete, the current state of the request, and any failures. Note: This endpoint is subject to change as NiFi and it's REST API evolve. + /// + /// Thrown when fails to make API call + /// The ID of the Update Request + /// VersionedFlowUpdateRequestEntity + public VersionedFlowUpdateRequestEntity GetUpdateRequest (string id) + { + ApiResponse localVarResponse = this.GetUpdateRequestWithHttpInfo(id); + return localVarResponse.Data; + } + + /// + /// Returns the Update Request with the given ID Returns the Update Request with the given ID. Once an Update Request has been created by performing a POST to /versions/update-requests/process-groups/{id}, that request can subsequently be retrieved via this endpoint, and the request that is fetched will contain the updated state, such as percent complete, the current state of the request, and any failures. Note: This endpoint is subject to change as NiFi and it's REST API evolve. + /// + /// Thrown when fails to make API call + /// The ID of the Update Request + /// ApiResponse of VersionedFlowUpdateRequestEntity + public ApiResponse< VersionedFlowUpdateRequestEntity > GetUpdateRequestWithHttpInfo (string id) + { + // verify the required parameter 'id' is set + if (id == null) + throw new ApiException(400, "Missing required parameter 'id' when calling VersionsApi->GetUpdateRequest"); + + var localVarPath = "/versions/update-requests/{id}"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "*/*" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter + + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (this.ExceptionFactory != null) + { + Exception exception = this.ExceptionFactory("GetUpdateRequest", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), + (VersionedFlowUpdateRequestEntity) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(VersionedFlowUpdateRequestEntity))); + } + + /// + /// Returns the Update Request with the given ID Returns the Update Request with the given ID. Once an Update Request has been created by performing a POST to /versions/update-requests/process-groups/{id}, that request can subsequently be retrieved via this endpoint, and the request that is fetched will contain the updated state, such as percent complete, the current state of the request, and any failures. Note: This endpoint is subject to change as NiFi and it's REST API evolve. + /// + /// Thrown when fails to make API call + /// The ID of the Update Request + /// Task of VersionedFlowUpdateRequestEntity + public async System.Threading.Tasks.Task GetUpdateRequestAsync (string id) + { + ApiResponse localVarResponse = await this.GetUpdateRequestAsyncWithHttpInfo(id); + return localVarResponse.Data; + + } + + /// + /// Returns the Update Request with the given ID Returns the Update Request with the given ID. Once an Update Request has been created by performing a POST to /versions/update-requests/process-groups/{id}, that request can subsequently be retrieved via this endpoint, and the request that is fetched will contain the updated state, such as percent complete, the current state of the request, and any failures. Note: This endpoint is subject to change as NiFi and it's REST API evolve. + /// + /// Thrown when fails to make API call + /// The ID of the Update Request + /// Task of ApiResponse (VersionedFlowUpdateRequestEntity) + public async System.Threading.Tasks.Task> GetUpdateRequestAsyncWithHttpInfo (string id) + { + // verify the required parameter 'id' is set + if (id == null) + throw new ApiException(400, "Missing required parameter 'id' when calling VersionsApi->GetUpdateRequest"); + + var localVarPath = "/versions/update-requests/{id}"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "*/*" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter + + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (this.ExceptionFactory != null) + { + Exception exception = this.ExceptionFactory("GetUpdateRequest", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), + (VersionedFlowUpdateRequestEntity) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(VersionedFlowUpdateRequestEntity))); + } + + /// + /// Gets the Version Control information for a process group Note: This endpoint is subject to change as NiFi and it's REST API evolve. + /// + /// Thrown when fails to make API call + /// The process group id. + /// VersionControlInformationEntity + public VersionControlInformationEntity GetVersionInformation (string id) + { + ApiResponse localVarResponse = this.GetVersionInformationWithHttpInfo(id); + return localVarResponse.Data; + } + + /// + /// Gets the Version Control information for a process group Note: This endpoint is subject to change as NiFi and it's REST API evolve. + /// + /// Thrown when fails to make API call + /// The process group id. + /// ApiResponse of VersionControlInformationEntity + public ApiResponse< VersionControlInformationEntity > GetVersionInformationWithHttpInfo (string id) + { + // verify the required parameter 'id' is set + if (id == null) + throw new ApiException(400, "Missing required parameter 'id' when calling VersionsApi->GetVersionInformation"); + + var localVarPath = "/versions/process-groups/{id}"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "*/*" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter + + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (this.ExceptionFactory != null) + { + Exception exception = this.ExceptionFactory("GetVersionInformation", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), + (VersionControlInformationEntity) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(VersionControlInformationEntity))); + } + + /// + /// Gets the Version Control information for a process group Note: This endpoint is subject to change as NiFi and it's REST API evolve. + /// + /// Thrown when fails to make API call + /// The process group id. + /// Task of VersionControlInformationEntity + public async System.Threading.Tasks.Task GetVersionInformationAsync (string id) + { + ApiResponse localVarResponse = await this.GetVersionInformationAsyncWithHttpInfo(id); + return localVarResponse.Data; + + } + + /// + /// Gets the Version Control information for a process group Note: This endpoint is subject to change as NiFi and it's REST API evolve. + /// + /// Thrown when fails to make API call + /// The process group id. + /// Task of ApiResponse (VersionControlInformationEntity) + public async System.Threading.Tasks.Task> GetVersionInformationAsyncWithHttpInfo (string id) + { + // verify the required parameter 'id' is set + if (id == null) + throw new ApiException(400, "Missing required parameter 'id' when calling VersionsApi->GetVersionInformation"); + + var localVarPath = "/versions/process-groups/{id}"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "*/*" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter + + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (this.ExceptionFactory != null) + { + Exception exception = this.ExceptionFactory("GetVersionInformation", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), + (VersionControlInformationEntity) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(VersionControlInformationEntity))); + } + + /// + /// Initiate the Revert Request of a Process Group with the given ID For a Process Group that is already under Version Control, this will initiate the action of reverting any local changes that have been made to the Process Group since it was last synchronized with the Flow Registry. This will result in the flow matching the Versioned Flow that exists in the Flow Registry. This can be a lengthy process, as it will stop any Processors and disable any Controller Services necessary to perform the action and then restart them. As a result, the endpoint will immediately return a VersionedFlowUpdateRequestEntity, and the process of updating the flow will occur asynchronously in the background. The client may then periodically poll the status of the request by issuing a GET request to /versions/revert-requests/{requestId}. Once the request is completed, the client is expected to issue a DELETE request to /versions/revert-requests/{requestId}. Note: This endpoint is subject to change as NiFi and it's REST API evolve. + /// + /// Thrown when fails to make API call + /// The process group id. + /// The controller service configuration details. + /// VersionedFlowUpdateRequestEntity + public VersionedFlowUpdateRequestEntity InitiateRevertFlowVersion (string id, VersionControlInformationEntity body) + { + ApiResponse localVarResponse = this.InitiateRevertFlowVersionWithHttpInfo(id, body); + return localVarResponse.Data; + } + + /// + /// Initiate the Revert Request of a Process Group with the given ID For a Process Group that is already under Version Control, this will initiate the action of reverting any local changes that have been made to the Process Group since it was last synchronized with the Flow Registry. This will result in the flow matching the Versioned Flow that exists in the Flow Registry. This can be a lengthy process, as it will stop any Processors and disable any Controller Services necessary to perform the action and then restart them. As a result, the endpoint will immediately return a VersionedFlowUpdateRequestEntity, and the process of updating the flow will occur asynchronously in the background. The client may then periodically poll the status of the request by issuing a GET request to /versions/revert-requests/{requestId}. Once the request is completed, the client is expected to issue a DELETE request to /versions/revert-requests/{requestId}. Note: This endpoint is subject to change as NiFi and it's REST API evolve. + /// + /// Thrown when fails to make API call + /// The process group id. + /// The controller service configuration details. + /// ApiResponse of VersionedFlowUpdateRequestEntity + public ApiResponse< VersionedFlowUpdateRequestEntity > InitiateRevertFlowVersionWithHttpInfo (string id, VersionControlInformationEntity body) + { + // verify the required parameter 'id' is set + if (id == null) + throw new ApiException(400, "Missing required parameter 'id' when calling VersionsApi->InitiateRevertFlowVersion"); + // verify the required parameter 'body' is set + if (body == null) + throw new ApiException(400, "Missing required parameter 'body' when calling VersionsApi->InitiateRevertFlowVersion"); + + var localVarPath = "/versions/revert-requests/process-groups/{id}"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "application/json" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter + if (body != null && body.GetType() != typeof(byte[])) + { + localVarPostBody = this.Configuration.ApiClient.Serialize(body); // http body (model) parameter + } + else + { + localVarPostBody = body; // byte array + } + + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (this.ExceptionFactory != null) + { + Exception exception = this.ExceptionFactory("InitiateRevertFlowVersion", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), + (VersionedFlowUpdateRequestEntity) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(VersionedFlowUpdateRequestEntity))); + } + + /// + /// Initiate the Revert Request of a Process Group with the given ID For a Process Group that is already under Version Control, this will initiate the action of reverting any local changes that have been made to the Process Group since it was last synchronized with the Flow Registry. This will result in the flow matching the Versioned Flow that exists in the Flow Registry. This can be a lengthy process, as it will stop any Processors and disable any Controller Services necessary to perform the action and then restart them. As a result, the endpoint will immediately return a VersionedFlowUpdateRequestEntity, and the process of updating the flow will occur asynchronously in the background. The client may then periodically poll the status of the request by issuing a GET request to /versions/revert-requests/{requestId}. Once the request is completed, the client is expected to issue a DELETE request to /versions/revert-requests/{requestId}. Note: This endpoint is subject to change as NiFi and it's REST API evolve. + /// + /// Thrown when fails to make API call + /// The process group id. + /// The controller service configuration details. + /// Task of VersionedFlowUpdateRequestEntity + public async System.Threading.Tasks.Task InitiateRevertFlowVersionAsync (string id, VersionControlInformationEntity body) + { + ApiResponse localVarResponse = await this.InitiateRevertFlowVersionAsyncWithHttpInfo(id, body); + return localVarResponse.Data; + + } + + /// + /// Initiate the Revert Request of a Process Group with the given ID For a Process Group that is already under Version Control, this will initiate the action of reverting any local changes that have been made to the Process Group since it was last synchronized with the Flow Registry. This will result in the flow matching the Versioned Flow that exists in the Flow Registry. This can be a lengthy process, as it will stop any Processors and disable any Controller Services necessary to perform the action and then restart them. As a result, the endpoint will immediately return a VersionedFlowUpdateRequestEntity, and the process of updating the flow will occur asynchronously in the background. The client may then periodically poll the status of the request by issuing a GET request to /versions/revert-requests/{requestId}. Once the request is completed, the client is expected to issue a DELETE request to /versions/revert-requests/{requestId}. Note: This endpoint is subject to change as NiFi and it's REST API evolve. + /// + /// Thrown when fails to make API call + /// The process group id. + /// The controller service configuration details. + /// Task of ApiResponse (VersionedFlowUpdateRequestEntity) + public async System.Threading.Tasks.Task> InitiateRevertFlowVersionAsyncWithHttpInfo (string id, VersionControlInformationEntity body) + { + // verify the required parameter 'id' is set + if (id == null) + throw new ApiException(400, "Missing required parameter 'id' when calling VersionsApi->InitiateRevertFlowVersion"); + // verify the required parameter 'body' is set + if (body == null) + throw new ApiException(400, "Missing required parameter 'body' when calling VersionsApi->InitiateRevertFlowVersion"); + + var localVarPath = "/versions/revert-requests/process-groups/{id}"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "application/json" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter + if (body != null && body.GetType() != typeof(byte[])) + { + localVarPostBody = this.Configuration.ApiClient.Serialize(body); // http body (model) parameter + } + else + { + localVarPostBody = body; // byte array + } + + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (this.ExceptionFactory != null) + { + Exception exception = this.ExceptionFactory("InitiateRevertFlowVersion", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), + (VersionedFlowUpdateRequestEntity) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(VersionedFlowUpdateRequestEntity))); + } + + /// + /// Initiate the Update Request of a Process Group with the given ID For a Process Group that is already under Version Control, this will initiate the action of changing from a specific version of the flow in the Flow Registry to a different version of the flow. This can be a lengthy process, as it will stop any Processors and disable any Controller Services necessary to perform the action and then restart them. As a result, the endpoint will immediately return a VersionedFlowUpdateRequestEntity, and the process of updating the flow will occur asynchronously in the background. The client may then periodically poll the status of the request by issuing a GET request to /versions/update-requests/{requestId}. Once the request is completed, the client is expected to issue a DELETE request to /versions/update-requests/{requestId}. Note: This endpoint is subject to change as NiFi and it's REST API evolve. + /// + /// Thrown when fails to make API call + /// The process group id. + /// The controller service configuration details. + /// VersionedFlowUpdateRequestEntity + public VersionedFlowUpdateRequestEntity InitiateVersionControlUpdate (string id, VersionControlInformationEntity body) + { + ApiResponse localVarResponse = this.InitiateVersionControlUpdateWithHttpInfo(id, body); + return localVarResponse.Data; + } + + /// + /// Initiate the Update Request of a Process Group with the given ID For a Process Group that is already under Version Control, this will initiate the action of changing from a specific version of the flow in the Flow Registry to a different version of the flow. This can be a lengthy process, as it will stop any Processors and disable any Controller Services necessary to perform the action and then restart them. As a result, the endpoint will immediately return a VersionedFlowUpdateRequestEntity, and the process of updating the flow will occur asynchronously in the background. The client may then periodically poll the status of the request by issuing a GET request to /versions/update-requests/{requestId}. Once the request is completed, the client is expected to issue a DELETE request to /versions/update-requests/{requestId}. Note: This endpoint is subject to change as NiFi and it's REST API evolve. + /// + /// Thrown when fails to make API call + /// The process group id. + /// The controller service configuration details. + /// ApiResponse of VersionedFlowUpdateRequestEntity + public ApiResponse< VersionedFlowUpdateRequestEntity > InitiateVersionControlUpdateWithHttpInfo (string id, VersionControlInformationEntity body) + { + // verify the required parameter 'id' is set + if (id == null) + throw new ApiException(400, "Missing required parameter 'id' when calling VersionsApi->InitiateVersionControlUpdate"); + // verify the required parameter 'body' is set + if (body == null) + throw new ApiException(400, "Missing required parameter 'body' when calling VersionsApi->InitiateVersionControlUpdate"); + + var localVarPath = "/versions/update-requests/process-groups/{id}"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "application/json" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter + if (body != null && body.GetType() != typeof(byte[])) + { + localVarPostBody = this.Configuration.ApiClient.Serialize(body); // http body (model) parameter + } + else + { + localVarPostBody = body; // byte array + } + + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (this.ExceptionFactory != null) + { + Exception exception = this.ExceptionFactory("InitiateVersionControlUpdate", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), + (VersionedFlowUpdateRequestEntity) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(VersionedFlowUpdateRequestEntity))); + } + + /// + /// Initiate the Update Request of a Process Group with the given ID For a Process Group that is already under Version Control, this will initiate the action of changing from a specific version of the flow in the Flow Registry to a different version of the flow. This can be a lengthy process, as it will stop any Processors and disable any Controller Services necessary to perform the action and then restart them. As a result, the endpoint will immediately return a VersionedFlowUpdateRequestEntity, and the process of updating the flow will occur asynchronously in the background. The client may then periodically poll the status of the request by issuing a GET request to /versions/update-requests/{requestId}. Once the request is completed, the client is expected to issue a DELETE request to /versions/update-requests/{requestId}. Note: This endpoint is subject to change as NiFi and it's REST API evolve. + /// + /// Thrown when fails to make API call + /// The process group id. + /// The controller service configuration details. + /// Task of VersionedFlowUpdateRequestEntity + public async System.Threading.Tasks.Task InitiateVersionControlUpdateAsync (string id, VersionControlInformationEntity body) + { + ApiResponse localVarResponse = await this.InitiateVersionControlUpdateAsyncWithHttpInfo(id, body); + return localVarResponse.Data; + + } + + /// + /// Initiate the Update Request of a Process Group with the given ID For a Process Group that is already under Version Control, this will initiate the action of changing from a specific version of the flow in the Flow Registry to a different version of the flow. This can be a lengthy process, as it will stop any Processors and disable any Controller Services necessary to perform the action and then restart them. As a result, the endpoint will immediately return a VersionedFlowUpdateRequestEntity, and the process of updating the flow will occur asynchronously in the background. The client may then periodically poll the status of the request by issuing a GET request to /versions/update-requests/{requestId}. Once the request is completed, the client is expected to issue a DELETE request to /versions/update-requests/{requestId}. Note: This endpoint is subject to change as NiFi and it's REST API evolve. + /// + /// Thrown when fails to make API call + /// The process group id. + /// The controller service configuration details. + /// Task of ApiResponse (VersionedFlowUpdateRequestEntity) + public async System.Threading.Tasks.Task> InitiateVersionControlUpdateAsyncWithHttpInfo (string id, VersionControlInformationEntity body) + { + // verify the required parameter 'id' is set + if (id == null) + throw new ApiException(400, "Missing required parameter 'id' when calling VersionsApi->InitiateVersionControlUpdate"); + // verify the required parameter 'body' is set + if (body == null) + throw new ApiException(400, "Missing required parameter 'body' when calling VersionsApi->InitiateVersionControlUpdate"); + + var localVarPath = "/versions/update-requests/process-groups/{id}"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "application/json" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter + if (body != null && body.GetType() != typeof(byte[])) + { + localVarPostBody = this.Configuration.ApiClient.Serialize(body); // http body (model) parameter + } + else + { + localVarPostBody = body; // byte array + } + + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (this.ExceptionFactory != null) + { + Exception exception = this.ExceptionFactory("InitiateVersionControlUpdate", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), + (VersionedFlowUpdateRequestEntity) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(VersionedFlowUpdateRequestEntity))); + } + + /// + /// Save the Process Group with the given ID Begins version controlling the Process Group with the given ID or commits changes to the Versioned Flow, depending on if the provided VersionControlInformation includes a flowId. Note: This endpoint is subject to change as NiFi and it's REST API evolve. + /// + /// Thrown when fails to make API call + /// The process group id. + /// The versioned flow details. + /// VersionControlInformationEntity + public VersionControlInformationEntity SaveToFlowRegistry (string id, StartVersionControlRequestEntity body) + { + ApiResponse localVarResponse = this.SaveToFlowRegistryWithHttpInfo(id, body); + return localVarResponse.Data; + } + + /// + /// Save the Process Group with the given ID Begins version controlling the Process Group with the given ID or commits changes to the Versioned Flow, depending on if the provided VersionControlInformation includes a flowId. Note: This endpoint is subject to change as NiFi and it's REST API evolve. + /// + /// Thrown when fails to make API call + /// The process group id. + /// The versioned flow details. + /// ApiResponse of VersionControlInformationEntity + public ApiResponse< VersionControlInformationEntity > SaveToFlowRegistryWithHttpInfo (string id, StartVersionControlRequestEntity body) + { + // verify the required parameter 'id' is set + if (id == null) + throw new ApiException(400, "Missing required parameter 'id' when calling VersionsApi->SaveToFlowRegistry"); + // verify the required parameter 'body' is set + if (body == null) + throw new ApiException(400, "Missing required parameter 'body' when calling VersionsApi->SaveToFlowRegistry"); + + var localVarPath = "/versions/process-groups/{id}"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "application/json" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter + if (body != null && body.GetType() != typeof(byte[])) + { + localVarPostBody = this.Configuration.ApiClient.Serialize(body); // http body (model) parameter + } + else + { + localVarPostBody = body; // byte array + } + + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (this.ExceptionFactory != null) + { + Exception exception = this.ExceptionFactory("SaveToFlowRegistry", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), + (VersionControlInformationEntity) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(VersionControlInformationEntity))); + } + + /// + /// Save the Process Group with the given ID Begins version controlling the Process Group with the given ID or commits changes to the Versioned Flow, depending on if the provided VersionControlInformation includes a flowId. Note: This endpoint is subject to change as NiFi and it's REST API evolve. + /// + /// Thrown when fails to make API call + /// The process group id. + /// The versioned flow details. + /// Task of VersionControlInformationEntity + public async System.Threading.Tasks.Task SaveToFlowRegistryAsync (string id, StartVersionControlRequestEntity body) + { + ApiResponse localVarResponse = await this.SaveToFlowRegistryAsyncWithHttpInfo(id, body); + return localVarResponse.Data; + + } + + /// + /// Save the Process Group with the given ID Begins version controlling the Process Group with the given ID or commits changes to the Versioned Flow, depending on if the provided VersionControlInformation includes a flowId. Note: This endpoint is subject to change as NiFi and it's REST API evolve. + /// + /// Thrown when fails to make API call + /// The process group id. + /// The versioned flow details. + /// Task of ApiResponse (VersionControlInformationEntity) + public async System.Threading.Tasks.Task> SaveToFlowRegistryAsyncWithHttpInfo (string id, StartVersionControlRequestEntity body) + { + // verify the required parameter 'id' is set + if (id == null) + throw new ApiException(400, "Missing required parameter 'id' when calling VersionsApi->SaveToFlowRegistry"); + // verify the required parameter 'body' is set + if (body == null) + throw new ApiException(400, "Missing required parameter 'body' when calling VersionsApi->SaveToFlowRegistry"); + + var localVarPath = "/versions/process-groups/{id}"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "application/json" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter + if (body != null && body.GetType() != typeof(byte[])) + { + localVarPostBody = this.Configuration.ApiClient.Serialize(body); // http body (model) parameter + } + else + { + localVarPostBody = body; // byte array + } + + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (this.ExceptionFactory != null) + { + Exception exception = this.ExceptionFactory("SaveToFlowRegistry", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), + (VersionControlInformationEntity) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(VersionControlInformationEntity))); + } + + /// + /// Stops version controlling the Process Group with the given ID Stops version controlling the Process Group with the given ID. The Process Group will no longer track to any Versioned Flow. Note: This endpoint is subject to change as NiFi and it's REST API evolve. + /// + /// Thrown when fails to make API call + /// The process group id. + /// The version is used to verify the client is working with the latest version of the flow. (optional) + /// If the client id is not specified, a new one will be generated. This value (whether specified or generated) is included in the response. (optional) + /// Acknowledges that this node is disconnected to allow for mutable requests to proceed. (optional, default to false) + /// VersionControlInformationEntity + public VersionControlInformationEntity StopVersionControl (string id, string version = null, string clientId = null, bool? disconnectedNodeAcknowledged = null) + { + ApiResponse localVarResponse = this.StopVersionControlWithHttpInfo(id, version, clientId, disconnectedNodeAcknowledged); + return localVarResponse.Data; + } + + /// + /// Stops version controlling the Process Group with the given ID Stops version controlling the Process Group with the given ID. The Process Group will no longer track to any Versioned Flow. Note: This endpoint is subject to change as NiFi and it's REST API evolve. + /// + /// Thrown when fails to make API call + /// The process group id. + /// The version is used to verify the client is working with the latest version of the flow. (optional) + /// If the client id is not specified, a new one will be generated. This value (whether specified or generated) is included in the response. (optional) + /// Acknowledges that this node is disconnected to allow for mutable requests to proceed. (optional, default to false) + /// ApiResponse of VersionControlInformationEntity + public ApiResponse< VersionControlInformationEntity > StopVersionControlWithHttpInfo (string id, string version = null, string clientId = null, bool? disconnectedNodeAcknowledged = null) + { + // verify the required parameter 'id' is set + if (id == null) + throw new ApiException(400, "Missing required parameter 'id' when calling VersionsApi->StopVersionControl"); + + var localVarPath = "/versions/process-groups/{id}"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "*/*" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter + if (version != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "version", version)); // query parameter + if (clientId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "clientId", clientId)); // query parameter + if (disconnectedNodeAcknowledged != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "disconnectedNodeAcknowledged", disconnectedNodeAcknowledged)); // query parameter + + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.DELETE, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (this.ExceptionFactory != null) + { + Exception exception = this.ExceptionFactory("StopVersionControl", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), + (VersionControlInformationEntity) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(VersionControlInformationEntity))); + } + + /// + /// Stops version controlling the Process Group with the given ID Stops version controlling the Process Group with the given ID. The Process Group will no longer track to any Versioned Flow. Note: This endpoint is subject to change as NiFi and it's REST API evolve. + /// + /// Thrown when fails to make API call + /// The process group id. + /// The version is used to verify the client is working with the latest version of the flow. (optional) + /// If the client id is not specified, a new one will be generated. This value (whether specified or generated) is included in the response. (optional) + /// Acknowledges that this node is disconnected to allow for mutable requests to proceed. (optional, default to false) + /// Task of VersionControlInformationEntity + public async System.Threading.Tasks.Task StopVersionControlAsync (string id, string version = null, string clientId = null, bool? disconnectedNodeAcknowledged = null) + { + ApiResponse localVarResponse = await this.StopVersionControlAsyncWithHttpInfo(id, version, clientId, disconnectedNodeAcknowledged); + return localVarResponse.Data; + + } + + /// + /// Stops version controlling the Process Group with the given ID Stops version controlling the Process Group with the given ID. The Process Group will no longer track to any Versioned Flow. Note: This endpoint is subject to change as NiFi and it's REST API evolve. + /// + /// Thrown when fails to make API call + /// The process group id. + /// The version is used to verify the client is working with the latest version of the flow. (optional) + /// If the client id is not specified, a new one will be generated. This value (whether specified or generated) is included in the response. (optional) + /// Acknowledges that this node is disconnected to allow for mutable requests to proceed. (optional, default to false) + /// Task of ApiResponse (VersionControlInformationEntity) + public async System.Threading.Tasks.Task> StopVersionControlAsyncWithHttpInfo (string id, string version = null, string clientId = null, bool? disconnectedNodeAcknowledged = null) + { + // verify the required parameter 'id' is set + if (id == null) + throw new ApiException(400, "Missing required parameter 'id' when calling VersionsApi->StopVersionControl"); + + var localVarPath = "/versions/process-groups/{id}"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "*/*" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter + if (version != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "version", version)); // query parameter + if (clientId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "clientId", clientId)); // query parameter + if (disconnectedNodeAcknowledged != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "disconnectedNodeAcknowledged", disconnectedNodeAcknowledged)); // query parameter + + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.DELETE, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (this.ExceptionFactory != null) + { + Exception exception = this.ExceptionFactory("StopVersionControl", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), + (VersionControlInformationEntity) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(VersionControlInformationEntity))); + } + + /// + /// Update the version of a Process Group with the given ID For a Process Group that is already under Version Control, this will update the version of the flow to a different version. This endpoint expects that the given snapshot will not modify any Processor that is currently running or any Controller Service that is enabled. Note: This endpoint is subject to change as NiFi and it's REST API evolve. + /// + /// Thrown when fails to make API call + /// The process group id. + /// The controller service configuration details. + /// VersionControlInformationEntity + public VersionControlInformationEntity UpdateFlowVersion (string id, VersionedFlowSnapshotEntity body) + { + ApiResponse localVarResponse = this.UpdateFlowVersionWithHttpInfo(id, body); + return localVarResponse.Data; + } + + /// + /// Update the version of a Process Group with the given ID For a Process Group that is already under Version Control, this will update the version of the flow to a different version. This endpoint expects that the given snapshot will not modify any Processor that is currently running or any Controller Service that is enabled. Note: This endpoint is subject to change as NiFi and it's REST API evolve. + /// + /// Thrown when fails to make API call + /// The process group id. + /// The controller service configuration details. + /// ApiResponse of VersionControlInformationEntity + public ApiResponse< VersionControlInformationEntity > UpdateFlowVersionWithHttpInfo (string id, VersionedFlowSnapshotEntity body) + { + // verify the required parameter 'id' is set + if (id == null) + throw new ApiException(400, "Missing required parameter 'id' when calling VersionsApi->UpdateFlowVersion"); + // verify the required parameter 'body' is set + if (body == null) + throw new ApiException(400, "Missing required parameter 'body' when calling VersionsApi->UpdateFlowVersion"); + + var localVarPath = "/versions/process-groups/{id}"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "application/json" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter + if (body != null && body.GetType() != typeof(byte[])) + { + localVarPostBody = this.Configuration.ApiClient.Serialize(body); // http body (model) parameter + } + else + { + localVarPostBody = body; // byte array + } + + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.PUT, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (this.ExceptionFactory != null) + { + Exception exception = this.ExceptionFactory("UpdateFlowVersion", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), + (VersionControlInformationEntity) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(VersionControlInformationEntity))); + } + + /// + /// Update the version of a Process Group with the given ID For a Process Group that is already under Version Control, this will update the version of the flow to a different version. This endpoint expects that the given snapshot will not modify any Processor that is currently running or any Controller Service that is enabled. Note: This endpoint is subject to change as NiFi and it's REST API evolve. + /// + /// Thrown when fails to make API call + /// The process group id. + /// The controller service configuration details. + /// Task of VersionControlInformationEntity + public async System.Threading.Tasks.Task UpdateFlowVersionAsync (string id, VersionedFlowSnapshotEntity body) + { + ApiResponse localVarResponse = await this.UpdateFlowVersionAsyncWithHttpInfo(id, body); + return localVarResponse.Data; + + } + + /// + /// Update the version of a Process Group with the given ID For a Process Group that is already under Version Control, this will update the version of the flow to a different version. This endpoint expects that the given snapshot will not modify any Processor that is currently running or any Controller Service that is enabled. Note: This endpoint is subject to change as NiFi and it's REST API evolve. + /// + /// Thrown when fails to make API call + /// The process group id. + /// The controller service configuration details. + /// Task of ApiResponse (VersionControlInformationEntity) + public async System.Threading.Tasks.Task> UpdateFlowVersionAsyncWithHttpInfo (string id, VersionedFlowSnapshotEntity body) + { + // verify the required parameter 'id' is set + if (id == null) + throw new ApiException(400, "Missing required parameter 'id' when calling VersionsApi->UpdateFlowVersion"); + // verify the required parameter 'body' is set + if (body == null) + throw new ApiException(400, "Missing required parameter 'body' when calling VersionsApi->UpdateFlowVersion"); + + var localVarPath = "/versions/process-groups/{id}"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "application/json" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter + if (body != null && body.GetType() != typeof(byte[])) + { + localVarPostBody = this.Configuration.ApiClient.Serialize(body); // http body (model) parameter + } + else + { + localVarPostBody = body; // byte array + } + + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.PUT, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (this.ExceptionFactory != null) + { + Exception exception = this.ExceptionFactory("UpdateFlowVersion", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), + (VersionControlInformationEntity) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(VersionControlInformationEntity))); + } + + /// + /// Updates the request with the given ID Note: This endpoint is subject to change as NiFi and it's REST API evolve. + /// + /// Thrown when fails to make API call + /// The request ID. + /// The version control component mapping. + /// VersionControlInformationEntity + public VersionControlInformationEntity UpdateVersionControlRequest (string id, VersionControlComponentMappingEntity body) + { + ApiResponse localVarResponse = this.UpdateVersionControlRequestWithHttpInfo(id, body); + return localVarResponse.Data; + } + + /// + /// Updates the request with the given ID Note: This endpoint is subject to change as NiFi and it's REST API evolve. + /// + /// Thrown when fails to make API call + /// The request ID. + /// The version control component mapping. + /// ApiResponse of VersionControlInformationEntity + public ApiResponse< VersionControlInformationEntity > UpdateVersionControlRequestWithHttpInfo (string id, VersionControlComponentMappingEntity body) + { + // verify the required parameter 'id' is set + if (id == null) + throw new ApiException(400, "Missing required parameter 'id' when calling VersionsApi->UpdateVersionControlRequest"); + // verify the required parameter 'body' is set + if (body == null) + throw new ApiException(400, "Missing required parameter 'body' when calling VersionsApi->UpdateVersionControlRequest"); + + var localVarPath = "/versions/active-requests/{id}"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "application/json" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter + if (body != null && body.GetType() != typeof(byte[])) + { + localVarPostBody = this.Configuration.ApiClient.Serialize(body); // http body (model) parameter + } + else + { + localVarPostBody = body; // byte array + } + + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.PUT, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (this.ExceptionFactory != null) + { + Exception exception = this.ExceptionFactory("UpdateVersionControlRequest", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), + (VersionControlInformationEntity) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(VersionControlInformationEntity))); + } + + /// + /// Updates the request with the given ID Note: This endpoint is subject to change as NiFi and it's REST API evolve. + /// + /// Thrown when fails to make API call + /// The request ID. + /// The version control component mapping. + /// Task of VersionControlInformationEntity + public async System.Threading.Tasks.Task UpdateVersionControlRequestAsync (string id, VersionControlComponentMappingEntity body) + { + ApiResponse localVarResponse = await this.UpdateVersionControlRequestAsyncWithHttpInfo(id, body); + return localVarResponse.Data; + + } + + /// + /// Updates the request with the given ID Note: This endpoint is subject to change as NiFi and it's REST API evolve. + /// + /// Thrown when fails to make API call + /// The request ID. + /// The version control component mapping. + /// Task of ApiResponse (VersionControlInformationEntity) + public async System.Threading.Tasks.Task> UpdateVersionControlRequestAsyncWithHttpInfo (string id, VersionControlComponentMappingEntity body) + { + // verify the required parameter 'id' is set + if (id == null) + throw new ApiException(400, "Missing required parameter 'id' when calling VersionsApi->UpdateVersionControlRequest"); + // verify the required parameter 'body' is set + if (body == null) + throw new ApiException(400, "Missing required parameter 'body' when calling VersionsApi->UpdateVersionControlRequest"); + + var localVarPath = "/versions/active-requests/{id}"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "application/json" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new String[] { + "application/json" + }; + String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + + if (id != null) localVarPathParams.Add("id", this.Configuration.ApiClient.ParameterToString(id)); // path parameter + if (body != null && body.GetType() != typeof(byte[])) + { + localVarPostBody = this.Configuration.ApiClient.Serialize(body); // http body (model) parameter + } + else + { + localVarPostBody = body; // byte array + } + + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.PUT, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (this.ExceptionFactory != null) + { + Exception exception = this.ExceptionFactory("UpdateVersionControlRequest", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), + (VersionControlInformationEntity) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(VersionControlInformationEntity))); + } + + } +} diff --git a/NiFi.Swagger/Client/ApiClient.cs b/NiFi.Swagger/Client/ApiClient.cs new file mode 100644 index 0000000..ce84eae --- /dev/null +++ b/NiFi.Swagger/Client/ApiClient.cs @@ -0,0 +1,532 @@ +/* + * NiFi Rest Api + * + * The Rest Api provides programmatic access to command and control a NiFi instance in real time. Start and stop processors, monitor queues, query provenance data, and more. Each endpoint below includes a description, definitions of the expected input and output, potential response codes, and the authorizations required to invoke each service. + * + * OpenAPI spec version: 1.9.1 + * Contact: dev@nifi.apache.org + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +namespace NiFi.Swagger.Client +{ + using System; + using System.Collections; + using System.Collections.Generic; + using System.IO; + using System.Linq; + using System.Text; + using System.Text.RegularExpressions; + + using Newtonsoft.Json; + + using RestSharp; + + /// + /// API client is mainly responsible for making the HTTP call to the API backend. + /// + public partial class ApiClient + { + private JsonSerializerSettings serializerSettings = new JsonSerializerSettings + { + ConstructorHandling = ConstructorHandling.AllowNonPublicDefaultConstructor, + Converters = new List() { new DateTimeFixingConverter() } + }; + + /// + /// Allows for extending request processing for generated code. + /// + /// The RestSharp request object + partial void InterceptRequest(IRestRequest request); + + /// + /// Allows for extending response processing for generated code. + /// + /// The RestSharp request object + /// The RestSharp response object + partial void InterceptResponse(IRestRequest request, IRestResponse response); + + /// + /// Initializes a new instance of the class + /// with default configuration. + /// + public ApiClient() + { + this.Configuration = Client.Configuration.Default; + this.RestClient = new RestClient("http://localhost/nifi-api"); + } + + /// + /// Initializes a new instance of the class + /// with default base path (http://localhost/nifi-api). + /// + /// An instance of Configuration. + public ApiClient(Configuration config) + { + this.Configuration = config ?? Client.Configuration.Default; + + this.RestClient = new RestClient(this.Configuration.BasePath); + } + + /// + /// Initializes a new instance of the class + /// with default configuration. + /// + /// The base path. + public ApiClient(String basePath = "http://localhost/nifi-api") + { + if (String.IsNullOrEmpty(basePath)) + { + throw new ArgumentException("basePath cannot be empty"); + } + + this.RestClient = new RestClient(basePath); + this.Configuration = Client.Configuration.Default; + } + + /// + /// Gets or sets the default API client for making HTTP calls. + /// + /// The default API client. + [Obsolete("ApiClient.Default is deprecated, please use 'Configuration.Default.ApiClient' instead.")] + public static ApiClient Default; + + /// + /// Gets or sets an instance of the IReadableConfiguration. + /// + /// An instance of the IReadableConfiguration. + /// + /// helps us to avoid modifying possibly global + /// configuration values from within a given client. It does not guarantee thread-safety + /// of the instance in any way. + /// + public IReadableConfiguration Configuration { get; set; } + + /// + /// Gets or sets the RestClient. + /// + /// An instance of the RestClient + public RestClient RestClient { get; set; } + + // Creates and sets up a RestRequest prior to a call. + private RestRequest PrepareRequest( + String path, RestSharp.Method method, List> queryParams, Object postBody, + Dictionary headerParams, Dictionary formParams, + Dictionary fileParams, Dictionary pathParams, + String contentType) + { + var request = new RestRequest(path, method); + + // add path parameter, if any + foreach (var param in pathParams) + request.AddParameter(param.Key, param.Value, ParameterType.UrlSegment); + + // add header parameter, if any + foreach (var param in headerParams) + request.AddHeader(param.Key, param.Value); + + // add query parameter, if any + foreach (var param in queryParams) + request.AddQueryParameter(param.Key, param.Value); + + // add form parameter, if any + foreach (var param in formParams) + request.AddParameter(param.Key, param.Value); + + // add file parameter, if any + foreach (var param in fileParams) + { + request.AddFile(param.Value.Name, param.Value.Writer, param.Value.FileName, param.Value.ContentLength, param.Value.ContentType); + } + + if (postBody != null) // http body (model or byte[]) parameter + { + request.AddParameter(contentType, postBody, ParameterType.RequestBody); + } + + return request; + } + + /// + /// Makes the HTTP request (Sync). + /// + /// URL path. + /// HTTP method. + /// Query parameters. + /// HTTP body (POST request). + /// Header parameters. + /// Form parameters. + /// File parameters. + /// Path parameters. + /// Content Type of the request + /// Object + public Object CallApi( + String path, RestSharp.Method method, List> queryParams, Object postBody, + Dictionary headerParams, Dictionary formParams, + Dictionary fileParams, Dictionary pathParams, + String contentType) + { + var request = this.PrepareRequest( + path, method, queryParams, postBody, headerParams, formParams, fileParams, + pathParams, contentType); + + // set timeout + + this.RestClient.Timeout = this.Configuration.Timeout; + // set user agent + this.RestClient.UserAgent = this.Configuration.UserAgent; + + this.InterceptRequest(request); + var response = this.RestClient.Execute(request); + this.InterceptResponse(request, response); + + return (Object)response; + } + /// + /// Makes the asynchronous HTTP request. + /// + /// URL path. + /// HTTP method. + /// Query parameters. + /// HTTP body (POST request). + /// Header parameters. + /// Form parameters. + /// File parameters. + /// Path parameters. + /// Content type. + /// The Task instance. + public async System.Threading.Tasks.Task CallApiAsync( + String path, RestSharp.Method method, List> queryParams, Object postBody, + Dictionary headerParams, Dictionary formParams, + Dictionary fileParams, Dictionary pathParams, + String contentType) + { + var request = this.PrepareRequest( + path, method, queryParams, postBody, headerParams, formParams, fileParams, + pathParams, contentType); + this.InterceptRequest(request); + var response = await this.RestClient.ExecuteTaskAsync(request); + this.InterceptResponse(request, response); + return (Object)response; + } + + /// + /// Escape string (url-encoded). + /// + /// String to be escaped. + /// Escaped string. + public string EscapeString(string str) + { + return UrlEncode(str); + } + + /// + /// Create FileParameter based on Stream. + /// + /// Parameter name. + /// Input stream. + /// FileParameter. + public FileParameter ParameterToFile(string name, Stream stream) + { + if (stream is FileStream) + return FileParameter.Create(name, ReadAsBytes(stream), Path.GetFileName(((FileStream)stream).Name)); + else + return FileParameter.Create(name, ReadAsBytes(stream), "no_file_name_provided"); + } + + /// + /// If parameter is DateTime, output in a formatted string (default ISO 8601), customizable with Configuration.DateTime. + /// If parameter is a list, join the list with ",". + /// Otherwise just return the string. + /// + /// The parameter (header, path, query, form). + /// Formatted string. + public string ParameterToString(object obj) + { + if (obj is DateTime) + // Return a formatted date string - Can be customized with Configuration.DateTimeFormat + // Defaults to an ISO 8601, using the known as a Round-trip date/time pattern ("o") + // https://msdn.microsoft.com/en-us/library/az4se3k1(v=vs.110).aspx#Anchor_8 + // For example: 2009-06-15T13:45:30.0000000 + return ((DateTime)obj).ToString(this.Configuration.DateTimeFormat); + else if (obj is DateTimeOffset) + // Return a formatted date string - Can be customized with Configuration.DateTimeFormat + // Defaults to an ISO 8601, using the known as a Round-trip date/time pattern ("o") + // https://msdn.microsoft.com/en-us/library/az4se3k1(v=vs.110).aspx#Anchor_8 + // For example: 2009-06-15T13:45:30.0000000 + return ((DateTimeOffset)obj).ToString(this.Configuration.DateTimeFormat); + else if (obj is IList) + { + var flattenedString = new StringBuilder(); + foreach (var param in (IList)obj) + { + if (flattenedString.Length > 0) + flattenedString.Append(","); + flattenedString.Append(param); + } + return flattenedString.ToString(); + } + else + return Convert.ToString(obj); + } + + /// + /// Deserialize the JSON string into a proper object. + /// + /// The HTTP response. + /// Object type. + /// Object representation of the JSON string. + public object Deserialize(IRestResponse response, Type type) + { + IList headers = response.Headers; + if (type == typeof(byte[])) // return byte array + { + return response.RawBytes; + } + + // TODO: ? if (type.IsAssignableFrom(typeof(Stream))) + if (type == typeof(Stream)) + { + if (headers != null) + { + var filePath = String.IsNullOrEmpty(this.Configuration.TempFolderPath) + ? Path.GetTempPath() + : this.Configuration.TempFolderPath; + var regex = new Regex(@"Content-Disposition=.*filename=['""]?([^'""\s]+)['""]?$"); + foreach (var header in headers) + { + var match = regex.Match(header.ToString()); + if (match.Success) + { + string fileName = filePath + SanitizeFilename(match.Groups[1].Value.Replace("\"", "").Replace("'", "")); + File.WriteAllBytes(fileName, response.RawBytes); + return new FileStream(fileName, FileMode.Open); + } + } + } + var stream = new MemoryStream(response.RawBytes); + return stream; + } + + if (type.Name.StartsWith("System.Nullable`1[[System.DateTime")) // return a datetime object + { + return DateTime.Parse(response.Content, null, System.Globalization.DateTimeStyles.RoundtripKind); + } + + if (type == typeof(String) || type.Name.StartsWith("System.Nullable")) // return primitive type + { + return ConvertType(response.Content, type); + } + + // at this point, it must be a model (json) + try + { + return JsonConvert.DeserializeObject(response.Content, type, this.serializerSettings); + } + catch (Exception e) + { + throw new ApiException(500, e.Message); + } + } + + /// + /// Serialize an input (model) into JSON string + /// + /// Object. + /// JSON string. + public String Serialize(object obj) + { + try + { + return obj != null ? JsonConvert.SerializeObject(obj) : null; + } + catch (Exception e) + { + throw new ApiException(500, e.Message); + } + } + + /// + ///Check if the given MIME is a JSON MIME. + ///JSON MIME examples: + /// application/json + /// application/json; charset=UTF8 + /// APPLICATION/JSON + /// application/vnd.company+json + /// + /// MIME + /// Returns True if MIME type is json. + public bool IsJsonMime(String mime) + { + var jsonRegex = new Regex("(?i)^(application/json|[^;/ \t]+/[^;/ \t]+[+]json)[ \t]*(;.*)?$"); + return mime != null && (jsonRegex.IsMatch(mime) || mime.Equals("application/json-patch+json")); + } + + /// + /// Select the Content-Type header's value from the given content-type array: + /// if JSON type exists in the given array, use it; + /// otherwise use the first one defined in 'consumes' + /// + /// The Content-Type array to select from. + /// The Content-Type header to use. + public String SelectHeaderContentType(String[] contentTypes) + { + if (contentTypes.Length == 0) + return "application/json"; + + foreach (var contentType in contentTypes) + { + if (this.IsJsonMime(contentType.ToLower())) + return contentType; + } + + return contentTypes[0]; // use the first content type specified in 'consumes' + } + + /// + /// Select the Accept header's value from the given accepts array: + /// if JSON exists in the given array, use it; + /// otherwise use all of them (joining into a string) + /// + /// The accepts array to select from. + /// The Accept header to use. + public String SelectHeaderAccept(String[] accepts) + { + if (accepts.Length == 0) + return null; + + if (accepts.Contains("application/json", StringComparer.OrdinalIgnoreCase)) + return "application/json"; + + return String.Join(",", accepts); + } + + /// + /// Encode string in base64 format. + /// + /// String to be encoded. + /// Encoded string. + public static string Base64Encode(string text) + { + return System.Convert.ToBase64String(System.Text.Encoding.UTF8.GetBytes(text)); + } + + /// + /// Dynamically cast the object into target type. + /// + /// Object to be casted + /// Target type + /// Casted object + public static dynamic ConvertType(dynamic fromObject, Type toObject) + { + return Convert.ChangeType(fromObject, toObject); + } + + /// + /// Convert stream to byte array + /// + /// Input stream to be converted + /// Byte array + public static byte[] ReadAsBytes(Stream inputStream) + { + byte[] buf = new byte[16 * 1024]; + using (MemoryStream ms = new MemoryStream()) + { + int count; + while ((count = inputStream.Read(buf, 0, buf.Length)) > 0) + { + ms.Write(buf, 0, count); + } + return ms.ToArray(); + } + } + + /// + /// URL encode a string + /// Credit/Ref: https://github.com/restsharp/RestSharp/blob/master/RestSharp/Extensions/StringExtensions.cs#L50 + /// + /// String to be URL encoded + /// Byte array + public static string UrlEncode(string input) + { + const int maxLength = 32766; + + if (input == null) + { + throw new ArgumentNullException("input"); + } + + if (input.Length <= maxLength) + { + return Uri.EscapeDataString(input); + } + + StringBuilder sb = new StringBuilder(input.Length * 2); + int index = 0; + + while (index < input.Length) + { + int length = Math.Min(input.Length - index, maxLength); + string subString = input.Substring(index, length); + + sb.Append(Uri.EscapeDataString(subString)); + index += subString.Length; + } + + return sb.ToString(); + } + + /// + /// Sanitize filename by removing the path + /// + /// Filename + /// Filename + public static string SanitizeFilename(string filename) + { + Match match = Regex.Match(filename, @".*[/\\](.*)$"); + + if (match.Success) + { + return match.Groups[1].Value; + } + else + { + return filename; + } + } + + /// + /// Convert params to key/value pairs. + /// Use collectionFormat to properly format lists and collections. + /// + /// Key name. + /// Value object. + /// A list of KeyValuePairs + public IEnumerable> ParameterToKeyValuePairs(string collectionFormat, string name, object value) + { + var parameters = new List>(); + + if (IsCollection(value) && collectionFormat == "multi") + { + var valueCollection = value as IEnumerable; + parameters.AddRange(from object item in valueCollection select new KeyValuePair(name, this.ParameterToString(item))); + } + else + { + parameters.Add(new KeyValuePair(name, this.ParameterToString(value))); + } + + return parameters; + } + + /// + /// Check if generic object is a collection. + /// + /// + /// True if object is a collection type + private static bool IsCollection(object value) + { + return value is IList || value is ICollection; + } + } +} diff --git a/NiFi.Swagger/Client/ApiException.cs b/NiFi.Swagger/Client/ApiException.cs new file mode 100644 index 0000000..8defd8d --- /dev/null +++ b/NiFi.Swagger/Client/ApiException.cs @@ -0,0 +1,60 @@ +/* + * NiFi Rest Api + * + * The Rest Api provides programmatic access to command and control a NiFi instance in real time. Start and stop processors, monitor queues, query provenance data, and more. Each endpoint below includes a description, definitions of the expected input and output, potential response codes, and the authorizations required to invoke each service. + * + * OpenAPI spec version: 1.9.1 + * Contact: dev@nifi.apache.org + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +namespace NiFi.Swagger.Client +{ + using System; + + /// + /// API Exception + /// + public class ApiException : Exception + { + /// + /// Gets or sets the error code (HTTP status code) + /// + /// The error code (HTTP status code). + public int ErrorCode { get; set; } + + /// + /// Gets or sets the error content (body json object) + /// + /// The error content (Http response body). + public dynamic ErrorContent { get; private set; } + + /// + /// Initializes a new instance of the class. + /// + public ApiException() {} + + /// + /// Initializes a new instance of the class. + /// + /// HTTP status code. + /// Error message. + public ApiException(int errorCode, string message) : base(message) + { + this.ErrorCode = errorCode; + } + + /// + /// Initializes a new instance of the class. + /// + /// HTTP status code. + /// Error message. + /// Error content. + public ApiException(int errorCode, string message, dynamic errorContent = null) : base(message) + { + this.ErrorCode = errorCode; + this.ErrorContent = errorContent; + } + } + +} diff --git a/NiFi.Swagger/Client/ApiResponse.cs b/NiFi.Swagger/Client/ApiResponse.cs new file mode 100644 index 0000000..8fadd6e --- /dev/null +++ b/NiFi.Swagger/Client/ApiResponse.cs @@ -0,0 +1,53 @@ +/* + * NiFi Rest Api + * + * The Rest Api provides programmatic access to command and control a NiFi instance in real time. Start and stop processors, monitor queues, query provenance data, and more. Each endpoint below includes a description, definitions of the expected input and output, potential response codes, and the authorizations required to invoke each service. + * + * OpenAPI spec version: 1.9.1 + * Contact: dev@nifi.apache.org + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +namespace NiFi.Swagger.Client +{ + using System.Collections.Generic; + + /// + /// API Response + /// + public class ApiResponse + { + /// + /// Gets or sets the status code (HTTP status code) + /// + /// The status code. + public int StatusCode { get; private set; } + + /// + /// Gets or sets the HTTP headers + /// + /// HTTP headers + public IDictionary Headers { get; private set; } + + /// + /// Gets or sets the data (parsed HTTP body) + /// + /// The data. + public T Data { get; private set; } + + /// + /// Initializes a new instance of the class. + /// + /// HTTP status code. + /// HTTP headers. + /// Data (parsed HTTP body) + public ApiResponse(int statusCode, IDictionary headers, T data) + { + this.StatusCode= statusCode; + this.Headers = headers; + this.Data = data; + } + + } + +} diff --git a/NiFi.Swagger/Client/Configuration.cs b/NiFi.Swagger/Client/Configuration.cs new file mode 100644 index 0000000..33ba2c5 --- /dev/null +++ b/NiFi.Swagger/Client/Configuration.cs @@ -0,0 +1,450 @@ +/* + * NiFi Rest Api + * + * The Rest Api provides programmatic access to command and control a NiFi instance in real time. Start and stop processors, monitor queues, query provenance data, and more. Each endpoint below includes a description, definitions of the expected input and output, potential response codes, and the authorizations required to invoke each service. + * + * OpenAPI spec version: 1.9.1 + * Contact: dev@nifi.apache.org + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +namespace NiFi.Swagger.Client +{ + using System; + using System.Collections.Concurrent; + using System.Collections.Generic; + using System.IO; + + /// + /// Represents a set of configuration settings + /// + public class Configuration : IReadableConfiguration + { + #region Constants + + /// + /// Version of the package. + /// + /// Version of the package. + public const string Version = "1.0.0"; + + /// + /// Identifier for ISO 8601 DateTime Format + /// + /// See https://msdn.microsoft.com/en-us/library/az4se3k1(v=vs.110).aspx#Anchor_8 for more information. + // ReSharper disable once InconsistentNaming + public const string ISO8601_DATETIME_FORMAT = "o"; + + #endregion Constants + + #region Static Members + + private static readonly object GlobalConfigSync = new { }; + private static Configuration _globalConfiguration; + + /// + /// Default creation of exceptions for a given method name and response object + /// + public static readonly ExceptionFactory DefaultExceptionFactory = (methodName, response) => + { + var status = (int)response.StatusCode; + if (status >= 400) + { + return new ApiException(status, + string.Format("Error calling {0}: {1}", methodName, response.Content), + response.Content); + } + if (status == 0) + { + return new ApiException(status, + string.Format("Error calling {0}: {1}", methodName, response.ErrorMessage), response.ErrorMessage); + } + return null; + }; + + /// + /// Gets or sets the default Configuration. + /// + /// Configuration. + public static Configuration Default + { + get { return _globalConfiguration; } + set + { + lock (GlobalConfigSync) + { + _globalConfiguration = value; + } + } + } + + #endregion Static Members + + #region Private Members + + /// + /// Gets or sets the API key based on the authentication name. + /// + /// The API key. + private IDictionary _apiKey = null; + + /// + /// Gets or sets the prefix (e.g. Token) of the API key based on the authentication name. + /// + /// The prefix of the API key. + private IDictionary _apiKeyPrefix = null; + + private string _dateTimeFormat = ISO8601_DATETIME_FORMAT; + private string _tempFolderPath = Path.GetTempPath(); + + #endregion Private Members + + #region Constructors + + static Configuration() + { + _globalConfiguration = new GlobalConfiguration(); + } + + /// + /// Initializes a new instance of the class + /// + public Configuration() + { + this.UserAgent = "Swagger-Codegen/1.0.0/csharp"; + this.BasePath = "http://localhost/nifi-api"; + this.DefaultHeader = new ConcurrentDictionary(); + this.ApiKey = new ConcurrentDictionary(); + this.ApiKeyPrefix = new ConcurrentDictionary(); + + // Setting Timeout has side effects (forces ApiClient creation). + this.Timeout = 100000; + } + + /// + /// Initializes a new instance of the class + /// + public Configuration( + IDictionary defaultHeader, + IDictionary apiKey, + IDictionary apiKeyPrefix, + string basePath = "http://localhost/nifi-api") : this() + { + if (string.IsNullOrWhiteSpace(basePath)) + throw new ArgumentException("The provided basePath is invalid.", "basePath"); + if (defaultHeader == null) + throw new ArgumentNullException("defaultHeader"); + if (apiKey == null) + throw new ArgumentNullException("apiKey"); + if (apiKeyPrefix == null) + throw new ArgumentNullException("apiKeyPrefix"); + + this.BasePath = basePath; + + foreach (var keyValuePair in defaultHeader) + { + this.DefaultHeader.Add(keyValuePair); + } + + foreach (var keyValuePair in apiKey) + { + this.ApiKey.Add(keyValuePair); + } + + foreach (var keyValuePair in apiKeyPrefix) + { + this.ApiKeyPrefix.Add(keyValuePair); + } + } + + /// + /// Initializes a new instance of the class with different settings + /// + /// Api client + /// Dictionary of default HTTP header + /// Username + /// Password + /// accessToken + /// Dictionary of API key + /// Dictionary of API key prefix + /// Temp folder path + /// DateTime format string + /// HTTP connection timeout (in milliseconds) + /// HTTP user agent + [Obsolete("Use explicit object construction and setting of properties.", true)] + public Configuration( + // ReSharper disable UnusedParameter.Local + ApiClient apiClient = null, + IDictionary defaultHeader = null, + string username = null, + string password = null, + string accessToken = null, + IDictionary apiKey = null, + IDictionary apiKeyPrefix = null, + string tempFolderPath = null, + string dateTimeFormat = null, + int timeout = 100000, + string userAgent = "Swagger-Codegen/1.0.0/csharp" + // ReSharper restore UnusedParameter.Local + ) + { + + } + + /// + /// Initializes a new instance of the Configuration class. + /// + /// Api client. + [Obsolete("This constructor caused unexpected sharing of static data. It is no longer supported.", true)] + // ReSharper disable once UnusedParameter.Local + public Configuration(ApiClient apiClient) + { + + } + + #endregion Constructors + + + #region Properties + + private ApiClient _apiClient = null; + /// + /// Gets an instance of an ApiClient for this configuration + /// + public virtual ApiClient ApiClient + { + get + { + if (this._apiClient == null) this._apiClient = this.CreateApiClient(); + return this._apiClient; + } + } + + private String _basePath = null; + /// + /// Gets or sets the base path for API access. + /// + public virtual string BasePath { + get { return this._basePath; } + set { + this._basePath = value; + // pass-through to ApiClient if it's set. + if(this._apiClient != null) { + this._apiClient.RestClient.BaseUrl = new Uri(this._basePath); + } + } + } + + /// + /// Gets or sets the default header. + /// + public virtual IDictionary DefaultHeader { get; set; } + + /// + /// Gets or sets the HTTP timeout (milliseconds) of ApiClient. Default to 100000 milliseconds. + /// + public virtual int Timeout + { + + get { return this.ApiClient.RestClient.Timeout; } + set { this.ApiClient.RestClient.Timeout = value; } + } + + /// + /// Gets or sets the HTTP user agent. + /// + /// Http user agent. + public virtual string UserAgent { get; set; } + + /// + /// Gets or sets the username (HTTP basic authentication). + /// + /// The username. + public virtual string Username { get; set; } + + /// + /// Gets or sets the password (HTTP basic authentication). + /// + /// The password. + public virtual string Password { get; set; } + + /// + /// Gets the API key with prefix. + /// + /// API key identifier (authentication scheme). + /// API key with prefix. + public string GetApiKeyWithPrefix(string apiKeyIdentifier) + { + var apiKeyValue = ""; + this.ApiKey.TryGetValue (apiKeyIdentifier, out apiKeyValue); + var apiKeyPrefix = ""; + if (this.ApiKeyPrefix.TryGetValue (apiKeyIdentifier, out apiKeyPrefix)) + return apiKeyPrefix + " " + apiKeyValue; + else + return apiKeyValue; + } + + /// + /// Gets or sets the access token for OAuth2 authentication. + /// + /// The access token. + public virtual string AccessToken { get; set; } + + /// + /// Gets or sets the temporary folder path to store the files downloaded from the server. + /// + /// Folder path. + public virtual string TempFolderPath + { + get { return this._tempFolderPath; } + + set + { + if (string.IsNullOrEmpty(value)) + { + // Possible breaking change since swagger-codegen 2.2.1, enforce a valid temporary path on set. + this._tempFolderPath = Path.GetTempPath(); + return; + } + + // create the directory if it does not exist + if (!Directory.Exists(value)) + { + Directory.CreateDirectory(value); + } + + // check if the path contains directory separator at the end + if (value[value.Length - 1] == Path.DirectorySeparatorChar) + { + this._tempFolderPath = value; + } + else + { + this._tempFolderPath = value + Path.DirectorySeparatorChar; + } + } + } + + /// + /// Gets or sets the the date time format used when serializing in the ApiClient + /// By default, it's set to ISO 8601 - "o", for others see: + /// https://msdn.microsoft.com/en-us/library/az4se3k1(v=vs.110).aspx + /// and https://msdn.microsoft.com/en-us/library/8kb3ddd4(v=vs.110).aspx + /// No validation is done to ensure that the string you're providing is valid + /// + /// The DateTimeFormat string + public virtual string DateTimeFormat + { + get { return this._dateTimeFormat; } + set + { + if (string.IsNullOrEmpty(value)) + { + // Never allow a blank or null string, go back to the default + this._dateTimeFormat = ISO8601_DATETIME_FORMAT; + return; + } + + // Caution, no validation when you choose date time format other than ISO 8601 + // Take a look at the above links + this._dateTimeFormat = value; + } + } + + /// + /// Gets or sets the prefix (e.g. Token) of the API key based on the authentication name. + /// + /// The prefix of the API key. + public virtual IDictionary ApiKeyPrefix + { + get { return this._apiKeyPrefix; } + set + { + if (value == null) + { + throw new InvalidOperationException("ApiKeyPrefix collection may not be null."); + } + this._apiKeyPrefix = value; + } + } + + /// + /// Gets or sets the API key based on the authentication name. + /// + /// The API key. + public virtual IDictionary ApiKey + { + get { return this._apiKey; } + set + { + if (value == null) + { + throw new InvalidOperationException("ApiKey collection may not be null."); + } + this._apiKey = value; + } + } + + #endregion Properties + + #region Methods + + /// + /// Add default header. + /// + /// Header field name. + /// Header field value. + /// + public void AddDefaultHeader(string key, string value) + { + this.DefaultHeader[key] = value; + } + + /// + /// Creates a new based on this instance. + /// + /// + public ApiClient CreateApiClient() + { + return new ApiClient(this.BasePath) { Configuration = this }; + } + + + /// + /// Returns a string with essential information for debugging. + /// + public static String ToDebugReport() + { + String report = "C# SDK (IO.Swagger) Debug Report:\n"; + report += " OS: " + System.Environment.OSVersion + "\n"; + report += " .NET Framework Version: " + System.Environment.Version + "\n"; + report += " Version of the API: 1.9.1\n"; + report += " SDK Package Version: 1.0.0\n"; + + return report; + } + + /// + /// Add Api Key Header. + /// + /// Api Key name. + /// Api Key value. + /// + public void AddApiKey(string key, string value) + { + this.ApiKey[key] = value; + } + + /// + /// Sets the API key prefix. + /// + /// Api Key name. + /// Api Key value. + public void AddApiKeyPrefix(string key, string value) + { + this.ApiKeyPrefix[key] = value; + } + + #endregion Methods + } +} diff --git a/NiFi.Swagger/Client/ExceptionFactory.cs b/NiFi.Swagger/Client/ExceptionFactory.cs new file mode 100644 index 0000000..a07b60a --- /dev/null +++ b/NiFi.Swagger/Client/ExceptionFactory.cs @@ -0,0 +1,24 @@ +/* + * NiFi Rest Api + * + * The Rest Api provides programmatic access to command and control a NiFi instance in real time. Start and stop processors, monitor queues, query provenance data, and more. Each endpoint below includes a description, definitions of the expected input and output, potential response codes, and the authorizations required to invoke each service. + * + * OpenAPI spec version: 1.9.1 + * Contact: dev@nifi.apache.org + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +namespace NiFi.Swagger.Client +{ + using System; + + using RestSharp; + + /// + /// A delegate to ExceptionFactory method + /// + /// Method name + /// Response + /// Exceptions + public delegate Exception ExceptionFactory(string methodName, IRestResponse response); +} diff --git a/NiFi.Swagger/Client/GlobalConfiguration.cs b/NiFi.Swagger/Client/GlobalConfiguration.cs new file mode 100644 index 0000000..349cd65 --- /dev/null +++ b/NiFi.Swagger/Client/GlobalConfiguration.cs @@ -0,0 +1,25 @@ +/* + * NiFi Rest Api + * + * The Rest Api provides programmatic access to command and control a NiFi instance in real time. Start and stop processors, monitor queues, query provenance data, and more. Each endpoint below includes a description, definitions of the expected input and output, potential response codes, and the authorizations required to invoke each service. + * + * OpenAPI spec version: 1.9.1 + * Contact: dev@nifi.apache.org + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +namespace NiFi.Swagger.Client +{ + /// + /// provides a compile-time extension point for globally configuring + /// API Clients. + /// + /// + /// A customized implementation via partial class may reside in another file and may + /// be excluded from automatic generation via a .swagger-codegen-ignore file. + /// + public partial class GlobalConfiguration : Configuration + { + + } +} \ No newline at end of file diff --git a/NiFi.Swagger/Client/IApiAccessor.cs b/NiFi.Swagger/Client/IApiAccessor.cs new file mode 100644 index 0000000..b04ee48 --- /dev/null +++ b/NiFi.Swagger/Client/IApiAccessor.cs @@ -0,0 +1,37 @@ +/* + * NiFi Rest Api + * + * The Rest Api provides programmatic access to command and control a NiFi instance in real time. Start and stop processors, monitor queues, query provenance data, and more. Each endpoint below includes a description, definitions of the expected input and output, potential response codes, and the authorizations required to invoke each service. + * + * OpenAPI spec version: 1.9.1 + * Contact: dev@nifi.apache.org + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +namespace NiFi.Swagger.Client +{ + using System; + + /// + /// Represents configuration aspects required to interact with the API endpoints. + /// + public interface IApiAccessor + { + /// + /// Gets or sets the configuration object + /// + /// An instance of the Configuration + Configuration Configuration {get; set;} + + /// + /// Gets the base path of the API client. + /// + /// The base path + String GetBasePath(); + + /// + /// Provides a factory method hook for the creation of exceptions. + /// + ExceptionFactory ExceptionFactory { get; set; } + } +} diff --git a/NiFi.Swagger/Client/IReadableConfiguration.cs b/NiFi.Swagger/Client/IReadableConfiguration.cs new file mode 100644 index 0000000..e594ac1 --- /dev/null +++ b/NiFi.Swagger/Client/IReadableConfiguration.cs @@ -0,0 +1,93 @@ +/* + * NiFi Rest Api + * + * The Rest Api provides programmatic access to command and control a NiFi instance in real time. Start and stop processors, monitor queues, query provenance data, and more. Each endpoint below includes a description, definitions of the expected input and output, potential response codes, and the authorizations required to invoke each service. + * + * OpenAPI spec version: 1.9.1 + * Contact: dev@nifi.apache.org + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +namespace NiFi.Swagger.Client +{ + using System.Collections.Generic; + + /// + /// Represents a readable-only configuration contract. + /// + public interface IReadableConfiguration + { + /// + /// Gets the access token. + /// + /// Access token. + string AccessToken { get; } + + /// + /// Gets the API key. + /// + /// API key. + IDictionary ApiKey { get; } + + /// + /// Gets the API key prefix. + /// + /// API key prefix. + IDictionary ApiKeyPrefix { get; } + + /// + /// Gets the base path. + /// + /// Base path. + string BasePath { get; } + + /// + /// Gets the date time format. + /// + /// Date time foramt. + string DateTimeFormat { get; } + + /// + /// Gets the default header. + /// + /// Default header. + IDictionary DefaultHeader { get; } + + /// + /// Gets the temp folder path. + /// + /// Temp folder path. + string TempFolderPath { get; } + + /// + /// Gets the HTTP connection timeout (in milliseconds) + /// + /// HTTP connection timeout. + int Timeout { get; } + + /// + /// Gets the user agent. + /// + /// User agent. + string UserAgent { get; } + + /// + /// Gets the username. + /// + /// Username. + string Username { get; } + + /// + /// Gets the password. + /// + /// Password. + string Password { get; } + + /// + /// Gets the API key with prefix. + /// + /// API key identifier (authentication scheme). + /// API key with prefix. + string GetApiKeyWithPrefix(string apiKeyIdentifier); + } +} diff --git a/NiFi.Swagger/Client/SwaggerDateConverter.cs b/NiFi.Swagger/Client/SwaggerDateConverter.cs new file mode 100644 index 0000000..ec814d1 --- /dev/null +++ b/NiFi.Swagger/Client/SwaggerDateConverter.cs @@ -0,0 +1,30 @@ +/* + * NiFi Rest Api + * + * The Rest Api provides programmatic access to command and control a NiFi instance in real time. Start and stop processors, monitor queues, query provenance data, and more. Each endpoint below includes a description, definitions of the expected input and output, potential response codes, and the authorizations required to invoke each service. + * + * OpenAPI spec version: 1.9.1 + * Contact: dev@nifi.apache.org + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +namespace NiFi.Swagger.Client +{ + using Newtonsoft.Json.Converters; + + /// + /// Formatter for 'date' swagger formats ss defined by full-date - RFC3339 + /// see https://github.com/OAI/OpenAPI-Specification/blob/master/versions/2.0.md#data-types + /// + public class SwaggerDateConverter : IsoDateTimeConverter + { + /// + /// Initializes a new instance of the class. + /// + public SwaggerDateConverter() + { + // full-date = date-fullyear "-" date-month "-" date-mday + this.DateTimeFormat = "yyyy-MM-dd"; + } + } +} diff --git a/NiFi.Swagger/DateTimeFixingConverter.cs b/NiFi.Swagger/DateTimeFixingConverter.cs new file mode 100644 index 0000000..eb77c96 --- /dev/null +++ b/NiFi.Swagger/DateTimeFixingConverter.cs @@ -0,0 +1,105 @@ +// -------------------------------------------------------------------------------------------------------------------- +// +// +// +// +// The bad date fixing converter. +// +// -------------------------------------------------------------------------------------------------------------------- + +namespace NiFi.Swagger +{ + using System; + using System.Globalization; + + using Newtonsoft.Json; + + /// + /// The bad date fixing converter. + /// + public class DateTimeFixingConverter : JsonConverter + { + /// + /// The can convert. + /// + /// + /// The object type. + /// + /// + /// The . + /// + public override bool CanConvert(Type objectType) + { + return objectType == typeof(DateTime) || objectType == typeof(DateTime?); + } + + /// + /// The write json. + /// + /// + /// The writer. + /// + /// + /// The value. + /// + /// + /// The serializer. + /// + /// + /// The not Implemented Exception + /// + public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer) + { + throw new NotImplementedException(); + } + + /// + /// The read json. + /// + /// + /// The reader. + /// + /// + /// The object type. + /// + /// + /// The existing value. + /// + /// + /// The serializer. + /// + /// + /// The . + /// + public override object ReadJson(JsonReader reader, Type objectType, object existingValue, JsonSerializer serializer) + { + var rawDate = (string)reader.Value; + if (DateTime.TryParse(rawDate, out var date)) + { + return date; + } + + var localEnUs = new CultureInfo("en-US"); + var formatStrings = new[] + { + "MM/dd/yyyy hh:mm:ss tt", "yyyy-MM-dd hh:mm:ss", "MM/dd/yyyy HH:mm:ss EDT", + "M/d/yyyy h:mm tt PST", "M/d/yyyy h:mm tt PST", "M/d/yyyy h:mm tt PDT", + "M/d/yyyy h:mm tt MST", "M/d/yyyy h:mm tt MDT", "M/d/yyyy h:mm tt CST", + "M/d/yyyy h:mm tt CDT", "M/d/yyyy h:mm tt EST", "M/d/yyyy h:mm tt EDT" + }; + + if (DateTime.TryParseExact(rawDate, formatStrings, localEnUs, DateTimeStyles.None, out date)) + { + return date; + } + + // It's not a date after all, so just return the default value + if (objectType == typeof(DateTime?)) + { + return null; + } + + return DateTime.MinValue; + } + } +} diff --git a/NiFi.Swagger/Model/AboutDTO.cs b/NiFi.Swagger/Model/AboutDTO.cs new file mode 100644 index 0000000..0175d1f --- /dev/null +++ b/NiFi.Swagger/Model/AboutDTO.cs @@ -0,0 +1,253 @@ +/* + * NiFi Rest Api + * + * The Rest Api provides programmatic access to command and control a NiFi instance in real time. Start and stop processors, monitor queues, query provenance data, and more. Each endpoint below includes a description, definitions of the expected input and output, potential response codes, and the authorizations required to invoke each service. + * + * OpenAPI spec version: 1.9.1 + * Contact: dev@nifi.apache.org + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +namespace NiFi.Swagger.Model +{ + using System; + using System.Collections.Generic; + using System.ComponentModel.DataAnnotations; + using System.Runtime.Serialization; + using System.Text; + + using Newtonsoft.Json; + + /// + /// AboutDTO + /// + [DataContract] + public partial class AboutDTO : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// The title to be used on the page and in the about dialog.. + /// The version of this NiFi.. + /// The URI for the NiFi.. + /// The URL for the content viewer if configured.. + /// Build tag. + /// Build revision or commit hash. + /// Build branch. + /// Build timestamp. + public AboutDTO(string title = default(string), string version = default(string), string uri = default(string), string contentViewerUrl = default(string), string buildTag = default(string), string buildRevision = default(string), string buildBranch = default(string), string buildTimestamp = default(string)) + { + this.Title = title; + this.Version = version; + this.Uri = uri; + this.ContentViewerUrl = contentViewerUrl; + this.BuildTag = buildTag; + this.BuildRevision = buildRevision; + this.BuildBranch = buildBranch; + this.BuildTimestamp = buildTimestamp; + } + + /// + /// The title to be used on the page and in the about dialog. + /// + /// The title to be used on the page and in the about dialog. + [DataMember(Name="title", EmitDefaultValue=false)] + public string Title { get; set; } + + /// + /// The version of this NiFi. + /// + /// The version of this NiFi. + [DataMember(Name="version", EmitDefaultValue=false)] + public string Version { get; set; } + + /// + /// The URI for the NiFi. + /// + /// The URI for the NiFi. + [DataMember(Name="uri", EmitDefaultValue=false)] + public string Uri { get; set; } + + /// + /// The URL for the content viewer if configured. + /// + /// The URL for the content viewer if configured. + [DataMember(Name="contentViewerUrl", EmitDefaultValue=false)] + public string ContentViewerUrl { get; set; } + + /// + /// The timezone of the NiFi instance. + /// + /// The timezone of the NiFi instance. + [DataMember(Name="timezone", EmitDefaultValue=false)] + public string Timezone { get; private set; } + + /// + /// Build tag + /// + /// Build tag + [DataMember(Name="buildTag", EmitDefaultValue=false)] + public string BuildTag { get; set; } + + /// + /// Build revision or commit hash + /// + /// Build revision or commit hash + [DataMember(Name="buildRevision", EmitDefaultValue=false)] + public string BuildRevision { get; set; } + + /// + /// Build branch + /// + /// Build branch + [DataMember(Name="buildBranch", EmitDefaultValue=false)] + public string BuildBranch { get; set; } + + /// + /// Build timestamp + /// + /// Build timestamp + [DataMember(Name="buildTimestamp", EmitDefaultValue=false)] + public string BuildTimestamp { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class AboutDTO {\n"); + sb.Append(" Title: ").Append(this.Title).Append("\n"); + sb.Append(" Version: ").Append(this.Version).Append("\n"); + sb.Append(" Uri: ").Append(this.Uri).Append("\n"); + sb.Append(" ContentViewerUrl: ").Append(this.ContentViewerUrl).Append("\n"); + sb.Append(" Timezone: ").Append(this.Timezone).Append("\n"); + sb.Append(" BuildTag: ").Append(this.BuildTag).Append("\n"); + sb.Append(" BuildRevision: ").Append(this.BuildRevision).Append("\n"); + sb.Append(" BuildBranch: ").Append(this.BuildBranch).Append("\n"); + sb.Append(" BuildTimestamp: ").Append(this.BuildTimestamp).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as AboutDTO); + } + + /// + /// Returns true if AboutDTO instances are equal + /// + /// Instance of AboutDTO to be compared + /// Boolean + public bool Equals(AboutDTO input) + { + if (input == null) + return false; + + return + ( + this.Title == input.Title || + (this.Title != null && + this.Title.Equals(input.Title)) + ) && + ( + this.Version == input.Version || + (this.Version != null && + this.Version.Equals(input.Version)) + ) && + ( + this.Uri == input.Uri || + (this.Uri != null && + this.Uri.Equals(input.Uri)) + ) && + ( + this.ContentViewerUrl == input.ContentViewerUrl || + (this.ContentViewerUrl != null && + this.ContentViewerUrl.Equals(input.ContentViewerUrl)) + ) && + ( + this.Timezone == input.Timezone || + (this.Timezone != null && + this.Timezone.Equals(input.Timezone)) + ) && + ( + this.BuildTag == input.BuildTag || + (this.BuildTag != null && + this.BuildTag.Equals(input.BuildTag)) + ) && + ( + this.BuildRevision == input.BuildRevision || + (this.BuildRevision != null && + this.BuildRevision.Equals(input.BuildRevision)) + ) && + ( + this.BuildBranch == input.BuildBranch || + (this.BuildBranch != null && + this.BuildBranch.Equals(input.BuildBranch)) + ) && + ( + this.BuildTimestamp == input.BuildTimestamp || + (this.BuildTimestamp != null && + this.BuildTimestamp.Equals(input.BuildTimestamp)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Title != null) + hashCode = hashCode * 59 + this.Title.GetHashCode(); + if (this.Version != null) + hashCode = hashCode * 59 + this.Version.GetHashCode(); + if (this.Uri != null) + hashCode = hashCode * 59 + this.Uri.GetHashCode(); + if (this.ContentViewerUrl != null) + hashCode = hashCode * 59 + this.ContentViewerUrl.GetHashCode(); + if (this.Timezone != null) + hashCode = hashCode * 59 + this.Timezone.GetHashCode(); + if (this.BuildTag != null) + hashCode = hashCode * 59 + this.BuildTag.GetHashCode(); + if (this.BuildRevision != null) + hashCode = hashCode * 59 + this.BuildRevision.GetHashCode(); + if (this.BuildBranch != null) + hashCode = hashCode * 59 + this.BuildBranch.GetHashCode(); + if (this.BuildTimestamp != null) + hashCode = hashCode * 59 + this.BuildTimestamp.GetHashCode(); + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/NiFi.Swagger/Model/AboutEntity.cs b/NiFi.Swagger/Model/AboutEntity.cs new file mode 100644 index 0000000..391297e --- /dev/null +++ b/NiFi.Swagger/Model/AboutEntity.cs @@ -0,0 +1,118 @@ +/* + * NiFi Rest Api + * + * The Rest Api provides programmatic access to command and control a NiFi instance in real time. Start and stop processors, monitor queues, query provenance data, and more. Each endpoint below includes a description, definitions of the expected input and output, potential response codes, and the authorizations required to invoke each service. + * + * OpenAPI spec version: 1.9.1 + * Contact: dev@nifi.apache.org + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +namespace NiFi.Swagger.Model +{ + using System; + using System.Collections.Generic; + using System.ComponentModel.DataAnnotations; + using System.Runtime.Serialization; + using System.Text; + + using Newtonsoft.Json; + + /// + /// AboutEntity + /// + [DataContract] + public partial class AboutEntity : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// about. + public AboutEntity(AboutDTO about = default(AboutDTO)) + { + this.About = about; + } + + /// + /// Gets or Sets About + /// + [DataMember(Name="about", EmitDefaultValue=false)] + public AboutDTO About { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class AboutEntity {\n"); + sb.Append(" About: ").Append(this.About).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as AboutEntity); + } + + /// + /// Returns true if AboutEntity instances are equal + /// + /// Instance of AboutEntity to be compared + /// Boolean + public bool Equals(AboutEntity input) + { + if (input == null) + return false; + + return + ( + this.About == input.About || + (this.About != null && + this.About.Equals(input.About)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.About != null) + hashCode = hashCode * 59 + this.About.GetHashCode(); + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/NiFi.Swagger/Model/AccessConfigurationDTO.cs b/NiFi.Swagger/Model/AccessConfigurationDTO.cs new file mode 100644 index 0000000..6c58932 --- /dev/null +++ b/NiFi.Swagger/Model/AccessConfigurationDTO.cs @@ -0,0 +1,118 @@ +/* + * NiFi Rest Api + * + * The Rest Api provides programmatic access to command and control a NiFi instance in real time. Start and stop processors, monitor queues, query provenance data, and more. Each endpoint below includes a description, definitions of the expected input and output, potential response codes, and the authorizations required to invoke each service. + * + * OpenAPI spec version: 1.9.1 + * Contact: dev@nifi.apache.org + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +namespace NiFi.Swagger.Model +{ + using System; + using System.Collections.Generic; + using System.ComponentModel.DataAnnotations; + using System.Runtime.Serialization; + using System.Text; + + using Newtonsoft.Json; + + /// + /// AccessConfigurationDTO + /// + [DataContract] + public partial class AccessConfigurationDTO : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructor] + public AccessConfigurationDTO() + { + } + + /// + /// Indicates whether or not this NiFi supports user login. + /// + /// Indicates whether or not this NiFi supports user login. + [DataMember(Name="supportsLogin", EmitDefaultValue=false)] + public bool? SupportsLogin { get; private set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class AccessConfigurationDTO {\n"); + sb.Append(" SupportsLogin: ").Append(this.SupportsLogin).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as AccessConfigurationDTO); + } + + /// + /// Returns true if AccessConfigurationDTO instances are equal + /// + /// Instance of AccessConfigurationDTO to be compared + /// Boolean + public bool Equals(AccessConfigurationDTO input) + { + if (input == null) + return false; + + return + ( + this.SupportsLogin == input.SupportsLogin || + (this.SupportsLogin != null && + this.SupportsLogin.Equals(input.SupportsLogin)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.SupportsLogin != null) + hashCode = hashCode * 59 + this.SupportsLogin.GetHashCode(); + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/NiFi.Swagger/Model/AccessConfigurationEntity.cs b/NiFi.Swagger/Model/AccessConfigurationEntity.cs new file mode 100644 index 0000000..9d64f11 --- /dev/null +++ b/NiFi.Swagger/Model/AccessConfigurationEntity.cs @@ -0,0 +1,118 @@ +/* + * NiFi Rest Api + * + * The Rest Api provides programmatic access to command and control a NiFi instance in real time. Start and stop processors, monitor queues, query provenance data, and more. Each endpoint below includes a description, definitions of the expected input and output, potential response codes, and the authorizations required to invoke each service. + * + * OpenAPI spec version: 1.9.1 + * Contact: dev@nifi.apache.org + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +namespace NiFi.Swagger.Model +{ + using System; + using System.Collections.Generic; + using System.ComponentModel.DataAnnotations; + using System.Runtime.Serialization; + using System.Text; + + using Newtonsoft.Json; + + /// + /// AccessConfigurationEntity + /// + [DataContract] + public partial class AccessConfigurationEntity : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// config. + public AccessConfigurationEntity(AccessConfigurationDTO config = default(AccessConfigurationDTO)) + { + this.Config = config; + } + + /// + /// Gets or Sets Config + /// + [DataMember(Name="config", EmitDefaultValue=false)] + public AccessConfigurationDTO Config { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class AccessConfigurationEntity {\n"); + sb.Append(" Config: ").Append(this.Config).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as AccessConfigurationEntity); + } + + /// + /// Returns true if AccessConfigurationEntity instances are equal + /// + /// Instance of AccessConfigurationEntity to be compared + /// Boolean + public bool Equals(AccessConfigurationEntity input) + { + if (input == null) + return false; + + return + ( + this.Config == input.Config || + (this.Config != null && + this.Config.Equals(input.Config)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Config != null) + hashCode = hashCode * 59 + this.Config.GetHashCode(); + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/NiFi.Swagger/Model/AccessPolicyDTO.cs b/NiFi.Swagger/Model/AccessPolicyDTO.cs new file mode 100644 index 0000000..cf68838 --- /dev/null +++ b/NiFi.Swagger/Model/AccessPolicyDTO.cs @@ -0,0 +1,295 @@ +/* + * NiFi Rest Api + * + * The Rest Api provides programmatic access to command and control a NiFi instance in real time. Start and stop processors, monitor queues, query provenance data, and more. Each endpoint below includes a description, definitions of the expected input and output, potential response codes, and the authorizations required to invoke each service. + * + * OpenAPI spec version: 1.9.1 + * Contact: dev@nifi.apache.org + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +namespace NiFi.Swagger.Model +{ + using System; + using System.Collections.Generic; + using System.ComponentModel.DataAnnotations; + using System.Linq; + using System.Runtime.Serialization; + using System.Text; + + using Newtonsoft.Json; + using Newtonsoft.Json.Converters; + + /// + /// AccessPolicyDTO + /// + [DataContract] + public partial class AccessPolicyDTO : IEquatable, IValidatableObject + { + /// + /// The action associated with this access policy. + /// + /// The action associated with this access policy. + [JsonConverter(typeof(StringEnumConverter))] + public enum ActionEnum + { + + /// + /// Enum Read for value: read + /// + [EnumMember(Value = "read")] + Read = 1, + + /// + /// Enum Write for value: write + /// + [EnumMember(Value = "write")] + Write = 2 + } + + /// + /// The action associated with this access policy. + /// + /// The action associated with this access policy. + [DataMember(Name="action", EmitDefaultValue=false)] + public ActionEnum? Action { get; set; } + /// + /// Initializes a new instance of the class. + /// + /// The id of the component.. + /// The ID of the corresponding component that is under version control. + /// The id of parent process group of this component if applicable.. + /// The position of this component in the UI if applicable.. + /// The resource for this access policy.. + /// The action associated with this access policy.. + /// Component this policy references if applicable.. + /// Whether this policy is configurable.. + /// The set of user IDs associated with this access policy.. + /// The set of user group IDs associated with this access policy.. + public AccessPolicyDTO(string id = default(string), string versionedComponentId = default(string), string parentGroupId = default(string), PositionDTO position = default(PositionDTO), string resource = default(string), ActionEnum? action = default(ActionEnum?), ComponentReferenceEntity componentReference = default(ComponentReferenceEntity), bool? configurable = default(bool?), List users = default(List), List userGroups = default(List)) + { + this.Id = id; + this.VersionedComponentId = versionedComponentId; + this.ParentGroupId = parentGroupId; + this.Position = position; + this.Resource = resource; + this.Action = action; + this.ComponentReference = componentReference; + this.Configurable = configurable; + this.Users = users; + this.UserGroups = userGroups; + } + + /// + /// The id of the component. + /// + /// The id of the component. + [DataMember(Name="id", EmitDefaultValue=false)] + public string Id { get; set; } + + /// + /// The ID of the corresponding component that is under version control + /// + /// The ID of the corresponding component that is under version control + [DataMember(Name="versionedComponentId", EmitDefaultValue=false)] + public string VersionedComponentId { get; set; } + + /// + /// The id of parent process group of this component if applicable. + /// + /// The id of parent process group of this component if applicable. + [DataMember(Name="parentGroupId", EmitDefaultValue=false)] + public string ParentGroupId { get; set; } + + /// + /// The position of this component in the UI if applicable. + /// + /// The position of this component in the UI if applicable. + [DataMember(Name="position", EmitDefaultValue=false)] + public PositionDTO Position { get; set; } + + /// + /// The resource for this access policy. + /// + /// The resource for this access policy. + [DataMember(Name="resource", EmitDefaultValue=false)] + public string Resource { get; set; } + + + /// + /// Component this policy references if applicable. + /// + /// Component this policy references if applicable. + [DataMember(Name="componentReference", EmitDefaultValue=false)] + public ComponentReferenceEntity ComponentReference { get; set; } + + /// + /// Whether this policy is configurable. + /// + /// Whether this policy is configurable. + [DataMember(Name="configurable", EmitDefaultValue=false)] + public bool? Configurable { get; set; } + + /// + /// The set of user IDs associated with this access policy. + /// + /// The set of user IDs associated with this access policy. + [DataMember(Name="users", EmitDefaultValue=false)] + public List Users { get; set; } + + /// + /// The set of user group IDs associated with this access policy. + /// + /// The set of user group IDs associated with this access policy. + [DataMember(Name="userGroups", EmitDefaultValue=false)] + public List UserGroups { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class AccessPolicyDTO {\n"); + sb.Append(" Id: ").Append(this.Id).Append("\n"); + sb.Append(" VersionedComponentId: ").Append(this.VersionedComponentId).Append("\n"); + sb.Append(" ParentGroupId: ").Append(this.ParentGroupId).Append("\n"); + sb.Append(" Position: ").Append(this.Position).Append("\n"); + sb.Append(" Resource: ").Append(this.Resource).Append("\n"); + sb.Append(" Action: ").Append(this.Action).Append("\n"); + sb.Append(" ComponentReference: ").Append(this.ComponentReference).Append("\n"); + sb.Append(" Configurable: ").Append(this.Configurable).Append("\n"); + sb.Append(" Users: ").Append(this.Users).Append("\n"); + sb.Append(" UserGroups: ").Append(this.UserGroups).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as AccessPolicyDTO); + } + + /// + /// Returns true if AccessPolicyDTO instances are equal + /// + /// Instance of AccessPolicyDTO to be compared + /// Boolean + public bool Equals(AccessPolicyDTO input) + { + if (input == null) + return false; + + return + ( + this.Id == input.Id || + (this.Id != null && + this.Id.Equals(input.Id)) + ) && + ( + this.VersionedComponentId == input.VersionedComponentId || + (this.VersionedComponentId != null && + this.VersionedComponentId.Equals(input.VersionedComponentId)) + ) && + ( + this.ParentGroupId == input.ParentGroupId || + (this.ParentGroupId != null && + this.ParentGroupId.Equals(input.ParentGroupId)) + ) && + ( + this.Position == input.Position || + (this.Position != null && + this.Position.Equals(input.Position)) + ) && + ( + this.Resource == input.Resource || + (this.Resource != null && + this.Resource.Equals(input.Resource)) + ) && + ( + this.Action == input.Action || + (this.Action != null && + this.Action.Equals(input.Action)) + ) && + ( + this.ComponentReference == input.ComponentReference || + (this.ComponentReference != null && + this.ComponentReference.Equals(input.ComponentReference)) + ) && + ( + this.Configurable == input.Configurable || + (this.Configurable != null && + this.Configurable.Equals(input.Configurable)) + ) && + ( + this.Users == input.Users || + this.Users != null && + this.Users.SequenceEqual(input.Users) + ) && + ( + this.UserGroups == input.UserGroups || + this.UserGroups != null && + this.UserGroups.SequenceEqual(input.UserGroups) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Id != null) + hashCode = hashCode * 59 + this.Id.GetHashCode(); + if (this.VersionedComponentId != null) + hashCode = hashCode * 59 + this.VersionedComponentId.GetHashCode(); + if (this.ParentGroupId != null) + hashCode = hashCode * 59 + this.ParentGroupId.GetHashCode(); + if (this.Position != null) + hashCode = hashCode * 59 + this.Position.GetHashCode(); + if (this.Resource != null) + hashCode = hashCode * 59 + this.Resource.GetHashCode(); + if (this.Action != null) + hashCode = hashCode * 59 + this.Action.GetHashCode(); + if (this.ComponentReference != null) + hashCode = hashCode * 59 + this.ComponentReference.GetHashCode(); + if (this.Configurable != null) + hashCode = hashCode * 59 + this.Configurable.GetHashCode(); + if (this.Users != null) + hashCode = hashCode * 59 + this.Users.GetHashCode(); + if (this.UserGroups != null) + hashCode = hashCode * 59 + this.UserGroups.GetHashCode(); + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/NiFi.Swagger/Model/AccessPolicyEntity.cs b/NiFi.Swagger/Model/AccessPolicyEntity.cs new file mode 100644 index 0000000..48b59cb --- /dev/null +++ b/NiFi.Swagger/Model/AccessPolicyEntity.cs @@ -0,0 +1,255 @@ +/* + * NiFi Rest Api + * + * The Rest Api provides programmatic access to command and control a NiFi instance in real time. Start and stop processors, monitor queues, query provenance data, and more. Each endpoint below includes a description, definitions of the expected input and output, potential response codes, and the authorizations required to invoke each service. + * + * OpenAPI spec version: 1.9.1 + * Contact: dev@nifi.apache.org + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +namespace NiFi.Swagger.Model +{ + using System; + using System.Collections.Generic; + using System.ComponentModel.DataAnnotations; + using System.Linq; + using System.Runtime.Serialization; + using System.Text; + + using Newtonsoft.Json; + + /// + /// AccessPolicyEntity + /// + [DataContract] + public partial class AccessPolicyEntity : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// The revision for this request/response. The revision is required for any mutable flow requests and is included in all responses.. + /// The id of the component.. + /// The URI for futures requests to the component.. + /// The position of this component in the UI if applicable.. + /// The permissions for this component.. + /// The bulletins for this component.. + /// Acknowledges that this node is disconnected to allow for mutable requests to proceed.. + /// When this content was generated.. + /// component. + public AccessPolicyEntity(RevisionDTO revision = default(RevisionDTO), string id = default(string), string uri = default(string), PositionDTO position = default(PositionDTO), PermissionsDTO permissions = default(PermissionsDTO), List bulletins = default(List), bool? disconnectedNodeAcknowledged = default(bool?), string generated = default(string), AccessPolicyDTO component = default(AccessPolicyDTO)) + { + this.Revision = revision; + this.Id = id; + this.Uri = uri; + this.Position = position; + this.Permissions = permissions; + this.Bulletins = bulletins; + this.DisconnectedNodeAcknowledged = disconnectedNodeAcknowledged; + this.Generated = generated; + this.Component = component; + } + + /// + /// The revision for this request/response. The revision is required for any mutable flow requests and is included in all responses. + /// + /// The revision for this request/response. The revision is required for any mutable flow requests and is included in all responses. + [DataMember(Name="revision", EmitDefaultValue=false)] + public RevisionDTO Revision { get; set; } + + /// + /// The id of the component. + /// + /// The id of the component. + [DataMember(Name="id", EmitDefaultValue=false)] + public string Id { get; set; } + + /// + /// The URI for futures requests to the component. + /// + /// The URI for futures requests to the component. + [DataMember(Name="uri", EmitDefaultValue=false)] + public string Uri { get; set; } + + /// + /// The position of this component in the UI if applicable. + /// + /// The position of this component in the UI if applicable. + [DataMember(Name="position", EmitDefaultValue=false)] + public PositionDTO Position { get; set; } + + /// + /// The permissions for this component. + /// + /// The permissions for this component. + [DataMember(Name="permissions", EmitDefaultValue=false)] + public PermissionsDTO Permissions { get; set; } + + /// + /// The bulletins for this component. + /// + /// The bulletins for this component. + [DataMember(Name="bulletins", EmitDefaultValue=false)] + public List Bulletins { get; set; } + + /// + /// Acknowledges that this node is disconnected to allow for mutable requests to proceed. + /// + /// Acknowledges that this node is disconnected to allow for mutable requests to proceed. + [DataMember(Name="disconnectedNodeAcknowledged", EmitDefaultValue=false)] + public bool? DisconnectedNodeAcknowledged { get; set; } + + /// + /// When this content was generated. + /// + /// When this content was generated. + [DataMember(Name="generated", EmitDefaultValue=false)] + public string Generated { get; set; } + + /// + /// Gets or Sets Component + /// + [DataMember(Name="component", EmitDefaultValue=false)] + public AccessPolicyDTO Component { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class AccessPolicyEntity {\n"); + sb.Append(" Revision: ").Append(this.Revision).Append("\n"); + sb.Append(" Id: ").Append(this.Id).Append("\n"); + sb.Append(" Uri: ").Append(this.Uri).Append("\n"); + sb.Append(" Position: ").Append(this.Position).Append("\n"); + sb.Append(" Permissions: ").Append(this.Permissions).Append("\n"); + sb.Append(" Bulletins: ").Append(this.Bulletins).Append("\n"); + sb.Append(" DisconnectedNodeAcknowledged: ").Append(this.DisconnectedNodeAcknowledged).Append("\n"); + sb.Append(" Generated: ").Append(this.Generated).Append("\n"); + sb.Append(" Component: ").Append(this.Component).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as AccessPolicyEntity); + } + + /// + /// Returns true if AccessPolicyEntity instances are equal + /// + /// Instance of AccessPolicyEntity to be compared + /// Boolean + public bool Equals(AccessPolicyEntity input) + { + if (input == null) + return false; + + return + ( + this.Revision == input.Revision || + (this.Revision != null && + this.Revision.Equals(input.Revision)) + ) && + ( + this.Id == input.Id || + (this.Id != null && + this.Id.Equals(input.Id)) + ) && + ( + this.Uri == input.Uri || + (this.Uri != null && + this.Uri.Equals(input.Uri)) + ) && + ( + this.Position == input.Position || + (this.Position != null && + this.Position.Equals(input.Position)) + ) && + ( + this.Permissions == input.Permissions || + (this.Permissions != null && + this.Permissions.Equals(input.Permissions)) + ) && + ( + this.Bulletins == input.Bulletins || + this.Bulletins != null && + this.Bulletins.SequenceEqual(input.Bulletins) + ) && + ( + this.DisconnectedNodeAcknowledged == input.DisconnectedNodeAcknowledged || + (this.DisconnectedNodeAcknowledged != null && + this.DisconnectedNodeAcknowledged.Equals(input.DisconnectedNodeAcknowledged)) + ) && + ( + this.Generated == input.Generated || + (this.Generated != null && + this.Generated.Equals(input.Generated)) + ) && + ( + this.Component == input.Component || + (this.Component != null && + this.Component.Equals(input.Component)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Revision != null) + hashCode = hashCode * 59 + this.Revision.GetHashCode(); + if (this.Id != null) + hashCode = hashCode * 59 + this.Id.GetHashCode(); + if (this.Uri != null) + hashCode = hashCode * 59 + this.Uri.GetHashCode(); + if (this.Position != null) + hashCode = hashCode * 59 + this.Position.GetHashCode(); + if (this.Permissions != null) + hashCode = hashCode * 59 + this.Permissions.GetHashCode(); + if (this.Bulletins != null) + hashCode = hashCode * 59 + this.Bulletins.GetHashCode(); + if (this.DisconnectedNodeAcknowledged != null) + hashCode = hashCode * 59 + this.DisconnectedNodeAcknowledged.GetHashCode(); + if (this.Generated != null) + hashCode = hashCode * 59 + this.Generated.GetHashCode(); + if (this.Component != null) + hashCode = hashCode * 59 + this.Component.GetHashCode(); + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/NiFi.Swagger/Model/AccessPolicySummaryDTO.cs b/NiFi.Swagger/Model/AccessPolicySummaryDTO.cs new file mode 100644 index 0000000..8bddcf0 --- /dev/null +++ b/NiFi.Swagger/Model/AccessPolicySummaryDTO.cs @@ -0,0 +1,260 @@ +/* + * NiFi Rest Api + * + * The Rest Api provides programmatic access to command and control a NiFi instance in real time. Start and stop processors, monitor queues, query provenance data, and more. Each endpoint below includes a description, definitions of the expected input and output, potential response codes, and the authorizations required to invoke each service. + * + * OpenAPI spec version: 1.9.1 + * Contact: dev@nifi.apache.org + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +namespace NiFi.Swagger.Model +{ + using System; + using System.Collections.Generic; + using System.ComponentModel.DataAnnotations; + using System.Runtime.Serialization; + using System.Text; + + using Newtonsoft.Json; + using Newtonsoft.Json.Converters; + + /// + /// AccessPolicySummaryDTO + /// + [DataContract] + public partial class AccessPolicySummaryDTO : IEquatable, IValidatableObject + { + /// + /// The action associated with this access policy. + /// + /// The action associated with this access policy. + [JsonConverter(typeof(StringEnumConverter))] + public enum ActionEnum + { + + /// + /// Enum Read for value: read + /// + [EnumMember(Value = "read")] + Read = 1, + + /// + /// Enum Write for value: write + /// + [EnumMember(Value = "write")] + Write = 2 + } + + /// + /// The action associated with this access policy. + /// + /// The action associated with this access policy. + [DataMember(Name="action", EmitDefaultValue=false)] + public ActionEnum? Action { get; set; } + /// + /// Initializes a new instance of the class. + /// + /// The id of the component.. + /// The ID of the corresponding component that is under version control. + /// The id of parent process group of this component if applicable.. + /// The position of this component in the UI if applicable.. + /// The resource for this access policy.. + /// The action associated with this access policy.. + /// Component this policy references if applicable.. + /// Whether this policy is configurable.. + public AccessPolicySummaryDTO(string id = default(string), string versionedComponentId = default(string), string parentGroupId = default(string), PositionDTO position = default(PositionDTO), string resource = default(string), ActionEnum? action = default(ActionEnum?), ComponentReferenceEntity componentReference = default(ComponentReferenceEntity), bool? configurable = default(bool?)) + { + this.Id = id; + this.VersionedComponentId = versionedComponentId; + this.ParentGroupId = parentGroupId; + this.Position = position; + this.Resource = resource; + this.Action = action; + this.ComponentReference = componentReference; + this.Configurable = configurable; + } + + /// + /// The id of the component. + /// + /// The id of the component. + [DataMember(Name="id", EmitDefaultValue=false)] + public string Id { get; set; } + + /// + /// The ID of the corresponding component that is under version control + /// + /// The ID of the corresponding component that is under version control + [DataMember(Name="versionedComponentId", EmitDefaultValue=false)] + public string VersionedComponentId { get; set; } + + /// + /// The id of parent process group of this component if applicable. + /// + /// The id of parent process group of this component if applicable. + [DataMember(Name="parentGroupId", EmitDefaultValue=false)] + public string ParentGroupId { get; set; } + + /// + /// The position of this component in the UI if applicable. + /// + /// The position of this component in the UI if applicable. + [DataMember(Name="position", EmitDefaultValue=false)] + public PositionDTO Position { get; set; } + + /// + /// The resource for this access policy. + /// + /// The resource for this access policy. + [DataMember(Name="resource", EmitDefaultValue=false)] + public string Resource { get; set; } + + + /// + /// Component this policy references if applicable. + /// + /// Component this policy references if applicable. + [DataMember(Name="componentReference", EmitDefaultValue=false)] + public ComponentReferenceEntity ComponentReference { get; set; } + + /// + /// Whether this policy is configurable. + /// + /// Whether this policy is configurable. + [DataMember(Name="configurable", EmitDefaultValue=false)] + public bool? Configurable { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class AccessPolicySummaryDTO {\n"); + sb.Append(" Id: ").Append(this.Id).Append("\n"); + sb.Append(" VersionedComponentId: ").Append(this.VersionedComponentId).Append("\n"); + sb.Append(" ParentGroupId: ").Append(this.ParentGroupId).Append("\n"); + sb.Append(" Position: ").Append(this.Position).Append("\n"); + sb.Append(" Resource: ").Append(this.Resource).Append("\n"); + sb.Append(" Action: ").Append(this.Action).Append("\n"); + sb.Append(" ComponentReference: ").Append(this.ComponentReference).Append("\n"); + sb.Append(" Configurable: ").Append(this.Configurable).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as AccessPolicySummaryDTO); + } + + /// + /// Returns true if AccessPolicySummaryDTO instances are equal + /// + /// Instance of AccessPolicySummaryDTO to be compared + /// Boolean + public bool Equals(AccessPolicySummaryDTO input) + { + if (input == null) + return false; + + return + ( + this.Id == input.Id || + (this.Id != null && + this.Id.Equals(input.Id)) + ) && + ( + this.VersionedComponentId == input.VersionedComponentId || + (this.VersionedComponentId != null && + this.VersionedComponentId.Equals(input.VersionedComponentId)) + ) && + ( + this.ParentGroupId == input.ParentGroupId || + (this.ParentGroupId != null && + this.ParentGroupId.Equals(input.ParentGroupId)) + ) && + ( + this.Position == input.Position || + (this.Position != null && + this.Position.Equals(input.Position)) + ) && + ( + this.Resource == input.Resource || + (this.Resource != null && + this.Resource.Equals(input.Resource)) + ) && + ( + this.Action == input.Action || + (this.Action != null && + this.Action.Equals(input.Action)) + ) && + ( + this.ComponentReference == input.ComponentReference || + (this.ComponentReference != null && + this.ComponentReference.Equals(input.ComponentReference)) + ) && + ( + this.Configurable == input.Configurable || + (this.Configurable != null && + this.Configurable.Equals(input.Configurable)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Id != null) + hashCode = hashCode * 59 + this.Id.GetHashCode(); + if (this.VersionedComponentId != null) + hashCode = hashCode * 59 + this.VersionedComponentId.GetHashCode(); + if (this.ParentGroupId != null) + hashCode = hashCode * 59 + this.ParentGroupId.GetHashCode(); + if (this.Position != null) + hashCode = hashCode * 59 + this.Position.GetHashCode(); + if (this.Resource != null) + hashCode = hashCode * 59 + this.Resource.GetHashCode(); + if (this.Action != null) + hashCode = hashCode * 59 + this.Action.GetHashCode(); + if (this.ComponentReference != null) + hashCode = hashCode * 59 + this.ComponentReference.GetHashCode(); + if (this.Configurable != null) + hashCode = hashCode * 59 + this.Configurable.GetHashCode(); + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/NiFi.Swagger/Model/AccessPolicySummaryEntity.cs b/NiFi.Swagger/Model/AccessPolicySummaryEntity.cs new file mode 100644 index 0000000..675b8ff --- /dev/null +++ b/NiFi.Swagger/Model/AccessPolicySummaryEntity.cs @@ -0,0 +1,238 @@ +/* + * NiFi Rest Api + * + * The Rest Api provides programmatic access to command and control a NiFi instance in real time. Start and stop processors, monitor queues, query provenance data, and more. Each endpoint below includes a description, definitions of the expected input and output, potential response codes, and the authorizations required to invoke each service. + * + * OpenAPI spec version: 1.9.1 + * Contact: dev@nifi.apache.org + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +namespace NiFi.Swagger.Model +{ + using System; + using System.Collections.Generic; + using System.ComponentModel.DataAnnotations; + using System.Linq; + using System.Runtime.Serialization; + using System.Text; + + using Newtonsoft.Json; + + /// + /// AccessPolicySummaryEntity + /// + [DataContract] + public partial class AccessPolicySummaryEntity : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// The revision for this request/response. The revision is required for any mutable flow requests and is included in all responses.. + /// The id of the component.. + /// The URI for futures requests to the component.. + /// The position of this component in the UI if applicable.. + /// The permissions for this component.. + /// The bulletins for this component.. + /// Acknowledges that this node is disconnected to allow for mutable requests to proceed.. + /// component. + public AccessPolicySummaryEntity(RevisionDTO revision = default(RevisionDTO), string id = default(string), string uri = default(string), PositionDTO position = default(PositionDTO), PermissionsDTO permissions = default(PermissionsDTO), List bulletins = default(List), bool? disconnectedNodeAcknowledged = default(bool?), AccessPolicySummaryDTO component = default(AccessPolicySummaryDTO)) + { + this.Revision = revision; + this.Id = id; + this.Uri = uri; + this.Position = position; + this.Permissions = permissions; + this.Bulletins = bulletins; + this.DisconnectedNodeAcknowledged = disconnectedNodeAcknowledged; + this.Component = component; + } + + /// + /// The revision for this request/response. The revision is required for any mutable flow requests and is included in all responses. + /// + /// The revision for this request/response. The revision is required for any mutable flow requests and is included in all responses. + [DataMember(Name="revision", EmitDefaultValue=false)] + public RevisionDTO Revision { get; set; } + + /// + /// The id of the component. + /// + /// The id of the component. + [DataMember(Name="id", EmitDefaultValue=false)] + public string Id { get; set; } + + /// + /// The URI for futures requests to the component. + /// + /// The URI for futures requests to the component. + [DataMember(Name="uri", EmitDefaultValue=false)] + public string Uri { get; set; } + + /// + /// The position of this component in the UI if applicable. + /// + /// The position of this component in the UI if applicable. + [DataMember(Name="position", EmitDefaultValue=false)] + public PositionDTO Position { get; set; } + + /// + /// The permissions for this component. + /// + /// The permissions for this component. + [DataMember(Name="permissions", EmitDefaultValue=false)] + public PermissionsDTO Permissions { get; set; } + + /// + /// The bulletins for this component. + /// + /// The bulletins for this component. + [DataMember(Name="bulletins", EmitDefaultValue=false)] + public List Bulletins { get; set; } + + /// + /// Acknowledges that this node is disconnected to allow for mutable requests to proceed. + /// + /// Acknowledges that this node is disconnected to allow for mutable requests to proceed. + [DataMember(Name="disconnectedNodeAcknowledged", EmitDefaultValue=false)] + public bool? DisconnectedNodeAcknowledged { get; set; } + + /// + /// Gets or Sets Component + /// + [DataMember(Name="component", EmitDefaultValue=false)] + public AccessPolicySummaryDTO Component { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class AccessPolicySummaryEntity {\n"); + sb.Append(" Revision: ").Append(this.Revision).Append("\n"); + sb.Append(" Id: ").Append(this.Id).Append("\n"); + sb.Append(" Uri: ").Append(this.Uri).Append("\n"); + sb.Append(" Position: ").Append(this.Position).Append("\n"); + sb.Append(" Permissions: ").Append(this.Permissions).Append("\n"); + sb.Append(" Bulletins: ").Append(this.Bulletins).Append("\n"); + sb.Append(" DisconnectedNodeAcknowledged: ").Append(this.DisconnectedNodeAcknowledged).Append("\n"); + sb.Append(" Component: ").Append(this.Component).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as AccessPolicySummaryEntity); + } + + /// + /// Returns true if AccessPolicySummaryEntity instances are equal + /// + /// Instance of AccessPolicySummaryEntity to be compared + /// Boolean + public bool Equals(AccessPolicySummaryEntity input) + { + if (input == null) + return false; + + return + ( + this.Revision == input.Revision || + (this.Revision != null && + this.Revision.Equals(input.Revision)) + ) && + ( + this.Id == input.Id || + (this.Id != null && + this.Id.Equals(input.Id)) + ) && + ( + this.Uri == input.Uri || + (this.Uri != null && + this.Uri.Equals(input.Uri)) + ) && + ( + this.Position == input.Position || + (this.Position != null && + this.Position.Equals(input.Position)) + ) && + ( + this.Permissions == input.Permissions || + (this.Permissions != null && + this.Permissions.Equals(input.Permissions)) + ) && + ( + this.Bulletins == input.Bulletins || + this.Bulletins != null && + this.Bulletins.SequenceEqual(input.Bulletins) + ) && + ( + this.DisconnectedNodeAcknowledged == input.DisconnectedNodeAcknowledged || + (this.DisconnectedNodeAcknowledged != null && + this.DisconnectedNodeAcknowledged.Equals(input.DisconnectedNodeAcknowledged)) + ) && + ( + this.Component == input.Component || + (this.Component != null && + this.Component.Equals(input.Component)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Revision != null) + hashCode = hashCode * 59 + this.Revision.GetHashCode(); + if (this.Id != null) + hashCode = hashCode * 59 + this.Id.GetHashCode(); + if (this.Uri != null) + hashCode = hashCode * 59 + this.Uri.GetHashCode(); + if (this.Position != null) + hashCode = hashCode * 59 + this.Position.GetHashCode(); + if (this.Permissions != null) + hashCode = hashCode * 59 + this.Permissions.GetHashCode(); + if (this.Bulletins != null) + hashCode = hashCode * 59 + this.Bulletins.GetHashCode(); + if (this.DisconnectedNodeAcknowledged != null) + hashCode = hashCode * 59 + this.DisconnectedNodeAcknowledged.GetHashCode(); + if (this.Component != null) + hashCode = hashCode * 59 + this.Component.GetHashCode(); + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/NiFi.Swagger/Model/AccessStatusDTO.cs b/NiFi.Swagger/Model/AccessStatusDTO.cs new file mode 100644 index 0000000..84d92f8 --- /dev/null +++ b/NiFi.Swagger/Model/AccessStatusDTO.cs @@ -0,0 +1,148 @@ +/* + * NiFi Rest Api + * + * The Rest Api provides programmatic access to command and control a NiFi instance in real time. Start and stop processors, monitor queues, query provenance data, and more. Each endpoint below includes a description, definitions of the expected input and output, potential response codes, and the authorizations required to invoke each service. + * + * OpenAPI spec version: 1.9.1 + * Contact: dev@nifi.apache.org + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +namespace NiFi.Swagger.Model +{ + using System; + using System.Collections.Generic; + using System.ComponentModel.DataAnnotations; + using System.Runtime.Serialization; + using System.Text; + + using Newtonsoft.Json; + + /// + /// AccessStatusDTO + /// + [DataContract] + public partial class AccessStatusDTO : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructor] + public AccessStatusDTO() + { + } + + /// + /// The user identity. + /// + /// The user identity. + [DataMember(Name="identity", EmitDefaultValue=false)] + public string Identity { get; private set; } + + /// + /// The user access status. + /// + /// The user access status. + [DataMember(Name="status", EmitDefaultValue=false)] + public string Status { get; private set; } + + /// + /// Additional details about the user access status. + /// + /// Additional details about the user access status. + [DataMember(Name="message", EmitDefaultValue=false)] + public string Message { get; private set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class AccessStatusDTO {\n"); + sb.Append(" Identity: ").Append(this.Identity).Append("\n"); + sb.Append(" Status: ").Append(this.Status).Append("\n"); + sb.Append(" Message: ").Append(this.Message).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as AccessStatusDTO); + } + + /// + /// Returns true if AccessStatusDTO instances are equal + /// + /// Instance of AccessStatusDTO to be compared + /// Boolean + public bool Equals(AccessStatusDTO input) + { + if (input == null) + return false; + + return + ( + this.Identity == input.Identity || + (this.Identity != null && + this.Identity.Equals(input.Identity)) + ) && + ( + this.Status == input.Status || + (this.Status != null && + this.Status.Equals(input.Status)) + ) && + ( + this.Message == input.Message || + (this.Message != null && + this.Message.Equals(input.Message)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Identity != null) + hashCode = hashCode * 59 + this.Identity.GetHashCode(); + if (this.Status != null) + hashCode = hashCode * 59 + this.Status.GetHashCode(); + if (this.Message != null) + hashCode = hashCode * 59 + this.Message.GetHashCode(); + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/NiFi.Swagger/Model/AccessStatusEntity.cs b/NiFi.Swagger/Model/AccessStatusEntity.cs new file mode 100644 index 0000000..e1d094c --- /dev/null +++ b/NiFi.Swagger/Model/AccessStatusEntity.cs @@ -0,0 +1,118 @@ +/* + * NiFi Rest Api + * + * The Rest Api provides programmatic access to command and control a NiFi instance in real time. Start and stop processors, monitor queues, query provenance data, and more. Each endpoint below includes a description, definitions of the expected input and output, potential response codes, and the authorizations required to invoke each service. + * + * OpenAPI spec version: 1.9.1 + * Contact: dev@nifi.apache.org + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +namespace NiFi.Swagger.Model +{ + using System; + using System.Collections.Generic; + using System.ComponentModel.DataAnnotations; + using System.Runtime.Serialization; + using System.Text; + + using Newtonsoft.Json; + + /// + /// AccessStatusEntity + /// + [DataContract] + public partial class AccessStatusEntity : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// accessStatus. + public AccessStatusEntity(AccessStatusDTO accessStatus = default(AccessStatusDTO)) + { + this.AccessStatus = accessStatus; + } + + /// + /// Gets or Sets AccessStatus + /// + [DataMember(Name="accessStatus", EmitDefaultValue=false)] + public AccessStatusDTO AccessStatus { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class AccessStatusEntity {\n"); + sb.Append(" AccessStatus: ").Append(this.AccessStatus).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as AccessStatusEntity); + } + + /// + /// Returns true if AccessStatusEntity instances are equal + /// + /// Instance of AccessStatusEntity to be compared + /// Boolean + public bool Equals(AccessStatusEntity input) + { + if (input == null) + return false; + + return + ( + this.AccessStatus == input.AccessStatus || + (this.AccessStatus != null && + this.AccessStatus.Equals(input.AccessStatus)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.AccessStatus != null) + hashCode = hashCode * 59 + this.AccessStatus.GetHashCode(); + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/NiFi.Swagger/Model/ActionDTO.cs b/NiFi.Swagger/Model/ActionDTO.cs new file mode 100644 index 0000000..38c8aa9 --- /dev/null +++ b/NiFi.Swagger/Model/ActionDTO.cs @@ -0,0 +1,255 @@ +/* + * NiFi Rest Api + * + * The Rest Api provides programmatic access to command and control a NiFi instance in real time. Start and stop processors, monitor queues, query provenance data, and more. Each endpoint below includes a description, definitions of the expected input and output, potential response codes, and the authorizations required to invoke each service. + * + * OpenAPI spec version: 1.9.1 + * Contact: dev@nifi.apache.org + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +namespace NiFi.Swagger.Model +{ + using System; + using System.Collections.Generic; + using System.ComponentModel.DataAnnotations; + using System.Runtime.Serialization; + using System.Text; + + using Newtonsoft.Json; + + /// + /// ActionDTO + /// + [DataContract] + public partial class ActionDTO : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// The action id.. + /// The identity of the user that performed the action.. + /// The timestamp of the action.. + /// The id of the source component.. + /// The name of the source component.. + /// The type of the source component.. + /// The details of the source component.. + /// The operation that was performed.. + /// The details of the action.. + public ActionDTO(int? id = default(int?), string userIdentity = default(string), string timestamp = default(string), string sourceId = default(string), string sourceName = default(string), string sourceType = default(string), ComponentDetailsDTO componentDetails = default(ComponentDetailsDTO), string operation = default(string), ActionDetailsDTO actionDetails = default(ActionDetailsDTO)) + { + this.Id = id; + this.UserIdentity = userIdentity; + this.Timestamp = timestamp; + this.SourceId = sourceId; + this.SourceName = sourceName; + this.SourceType = sourceType; + this.ComponentDetails = componentDetails; + this.Operation = operation; + this.ActionDetails = actionDetails; + } + + /// + /// The action id. + /// + /// The action id. + [DataMember(Name="id", EmitDefaultValue=false)] + public int? Id { get; set; } + + /// + /// The identity of the user that performed the action. + /// + /// The identity of the user that performed the action. + [DataMember(Name="userIdentity", EmitDefaultValue=false)] + public string UserIdentity { get; set; } + + /// + /// The timestamp of the action. + /// + /// The timestamp of the action. + [DataMember(Name="timestamp", EmitDefaultValue=false)] + public string Timestamp { get; set; } + + /// + /// The id of the source component. + /// + /// The id of the source component. + [DataMember(Name="sourceId", EmitDefaultValue=false)] + public string SourceId { get; set; } + + /// + /// The name of the source component. + /// + /// The name of the source component. + [DataMember(Name="sourceName", EmitDefaultValue=false)] + public string SourceName { get; set; } + + /// + /// The type of the source component. + /// + /// The type of the source component. + [DataMember(Name="sourceType", EmitDefaultValue=false)] + public string SourceType { get; set; } + + /// + /// The details of the source component. + /// + /// The details of the source component. + [DataMember(Name="componentDetails", EmitDefaultValue=false)] + public ComponentDetailsDTO ComponentDetails { get; set; } + + /// + /// The operation that was performed. + /// + /// The operation that was performed. + [DataMember(Name="operation", EmitDefaultValue=false)] + public string Operation { get; set; } + + /// + /// The details of the action. + /// + /// The details of the action. + [DataMember(Name="actionDetails", EmitDefaultValue=false)] + public ActionDetailsDTO ActionDetails { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class ActionDTO {\n"); + sb.Append(" Id: ").Append(this.Id).Append("\n"); + sb.Append(" UserIdentity: ").Append(this.UserIdentity).Append("\n"); + sb.Append(" Timestamp: ").Append(this.Timestamp).Append("\n"); + sb.Append(" SourceId: ").Append(this.SourceId).Append("\n"); + sb.Append(" SourceName: ").Append(this.SourceName).Append("\n"); + sb.Append(" SourceType: ").Append(this.SourceType).Append("\n"); + sb.Append(" ComponentDetails: ").Append(this.ComponentDetails).Append("\n"); + sb.Append(" Operation: ").Append(this.Operation).Append("\n"); + sb.Append(" ActionDetails: ").Append(this.ActionDetails).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as ActionDTO); + } + + /// + /// Returns true if ActionDTO instances are equal + /// + /// Instance of ActionDTO to be compared + /// Boolean + public bool Equals(ActionDTO input) + { + if (input == null) + return false; + + return + ( + this.Id == input.Id || + (this.Id != null && + this.Id.Equals(input.Id)) + ) && + ( + this.UserIdentity == input.UserIdentity || + (this.UserIdentity != null && + this.UserIdentity.Equals(input.UserIdentity)) + ) && + ( + this.Timestamp == input.Timestamp || + (this.Timestamp != null && + this.Timestamp.Equals(input.Timestamp)) + ) && + ( + this.SourceId == input.SourceId || + (this.SourceId != null && + this.SourceId.Equals(input.SourceId)) + ) && + ( + this.SourceName == input.SourceName || + (this.SourceName != null && + this.SourceName.Equals(input.SourceName)) + ) && + ( + this.SourceType == input.SourceType || + (this.SourceType != null && + this.SourceType.Equals(input.SourceType)) + ) && + ( + this.ComponentDetails == input.ComponentDetails || + (this.ComponentDetails != null && + this.ComponentDetails.Equals(input.ComponentDetails)) + ) && + ( + this.Operation == input.Operation || + (this.Operation != null && + this.Operation.Equals(input.Operation)) + ) && + ( + this.ActionDetails == input.ActionDetails || + (this.ActionDetails != null && + this.ActionDetails.Equals(input.ActionDetails)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Id != null) + hashCode = hashCode * 59 + this.Id.GetHashCode(); + if (this.UserIdentity != null) + hashCode = hashCode * 59 + this.UserIdentity.GetHashCode(); + if (this.Timestamp != null) + hashCode = hashCode * 59 + this.Timestamp.GetHashCode(); + if (this.SourceId != null) + hashCode = hashCode * 59 + this.SourceId.GetHashCode(); + if (this.SourceName != null) + hashCode = hashCode * 59 + this.SourceName.GetHashCode(); + if (this.SourceType != null) + hashCode = hashCode * 59 + this.SourceType.GetHashCode(); + if (this.ComponentDetails != null) + hashCode = hashCode * 59 + this.ComponentDetails.GetHashCode(); + if (this.Operation != null) + hashCode = hashCode * 59 + this.Operation.GetHashCode(); + if (this.ActionDetails != null) + hashCode = hashCode * 59 + this.ActionDetails.GetHashCode(); + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/NiFi.Swagger/Model/ActionDetailsDTO.cs b/NiFi.Swagger/Model/ActionDetailsDTO.cs new file mode 100644 index 0000000..88d8b54 --- /dev/null +++ b/NiFi.Swagger/Model/ActionDetailsDTO.cs @@ -0,0 +1,103 @@ +/* + * NiFi Rest Api + * + * The Rest Api provides programmatic access to command and control a NiFi instance in real time. Start and stop processors, monitor queues, query provenance data, and more. Each endpoint below includes a description, definitions of the expected input and output, potential response codes, and the authorizations required to invoke each service. + * + * OpenAPI spec version: 1.9.1 + * Contact: dev@nifi.apache.org + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +namespace NiFi.Swagger.Model +{ + using System; + using System.Collections.Generic; + using System.ComponentModel.DataAnnotations; + using System.Runtime.Serialization; + using System.Text; + + using Newtonsoft.Json; + + /// + /// ActionDetailsDTO + /// + [DataContract] + public partial class ActionDetailsDTO : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructor] + public ActionDetailsDTO() + { + } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class ActionDetailsDTO {\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as ActionDetailsDTO); + } + + /// + /// Returns true if ActionDetailsDTO instances are equal + /// + /// Instance of ActionDetailsDTO to be compared + /// Boolean + public bool Equals(ActionDetailsDTO input) + { + if (input == null) + return false; + + return false; + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/NiFi.Swagger/Model/ActionEntity.cs b/NiFi.Swagger/Model/ActionEntity.cs new file mode 100644 index 0000000..3cf7bc9 --- /dev/null +++ b/NiFi.Swagger/Model/ActionEntity.cs @@ -0,0 +1,182 @@ +/* + * NiFi Rest Api + * + * The Rest Api provides programmatic access to command and control a NiFi instance in real time. Start and stop processors, monitor queues, query provenance data, and more. Each endpoint below includes a description, definitions of the expected input and output, potential response codes, and the authorizations required to invoke each service. + * + * OpenAPI spec version: 1.9.1 + * Contact: dev@nifi.apache.org + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +namespace NiFi.Swagger.Model +{ + using System; + using System.Collections.Generic; + using System.ComponentModel.DataAnnotations; + using System.Runtime.Serialization; + using System.Text; + + using Newtonsoft.Json; + + /// + /// ActionEntity + /// + [DataContract] + public partial class ActionEntity : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// id. + /// The timestamp of the action.. + /// sourceId. + /// action. + public ActionEntity(int? id = default(int?), string timestamp = default(string), string sourceId = default(string), ActionDTO action = default(ActionDTO)) + { + this.Id = id; + this.Timestamp = timestamp; + this.SourceId = sourceId; + this.Action = action; + } + + /// + /// Gets or Sets Id + /// + [DataMember(Name="id", EmitDefaultValue=false)] + public int? Id { get; set; } + + /// + /// The timestamp of the action. + /// + /// The timestamp of the action. + [DataMember(Name="timestamp", EmitDefaultValue=false)] + public string Timestamp { get; set; } + + /// + /// Gets or Sets SourceId + /// + [DataMember(Name="sourceId", EmitDefaultValue=false)] + public string SourceId { get; set; } + + /// + /// Indicates whether the user can read a given resource. + /// + /// Indicates whether the user can read a given resource. + [DataMember(Name="canRead", EmitDefaultValue=false)] + public bool? CanRead { get; private set; } + + /// + /// Gets or Sets Action + /// + [DataMember(Name="action", EmitDefaultValue=false)] + public ActionDTO Action { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class ActionEntity {\n"); + sb.Append(" Id: ").Append(this.Id).Append("\n"); + sb.Append(" Timestamp: ").Append(this.Timestamp).Append("\n"); + sb.Append(" SourceId: ").Append(this.SourceId).Append("\n"); + sb.Append(" CanRead: ").Append(this.CanRead).Append("\n"); + sb.Append(" Action: ").Append(this.Action).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as ActionEntity); + } + + /// + /// Returns true if ActionEntity instances are equal + /// + /// Instance of ActionEntity to be compared + /// Boolean + public bool Equals(ActionEntity input) + { + if (input == null) + return false; + + return + ( + this.Id == input.Id || + (this.Id != null && + this.Id.Equals(input.Id)) + ) && + ( + this.Timestamp == input.Timestamp || + (this.Timestamp != null && + this.Timestamp.Equals(input.Timestamp)) + ) && + ( + this.SourceId == input.SourceId || + (this.SourceId != null && + this.SourceId.Equals(input.SourceId)) + ) && + ( + this.CanRead == input.CanRead || + (this.CanRead != null && + this.CanRead.Equals(input.CanRead)) + ) && + ( + this.Action == input.Action || + (this.Action != null && + this.Action.Equals(input.Action)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Id != null) + hashCode = hashCode * 59 + this.Id.GetHashCode(); + if (this.Timestamp != null) + hashCode = hashCode * 59 + this.Timestamp.GetHashCode(); + if (this.SourceId != null) + hashCode = hashCode * 59 + this.SourceId.GetHashCode(); + if (this.CanRead != null) + hashCode = hashCode * 59 + this.CanRead.GetHashCode(); + if (this.Action != null) + hashCode = hashCode * 59 + this.Action.GetHashCode(); + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/NiFi.Swagger/Model/ActivateControllerServicesEntity.cs b/NiFi.Swagger/Model/ActivateControllerServicesEntity.cs new file mode 100644 index 0000000..82810ec --- /dev/null +++ b/NiFi.Swagger/Model/ActivateControllerServicesEntity.cs @@ -0,0 +1,193 @@ +/* + * NiFi Rest Api + * + * The Rest Api provides programmatic access to command and control a NiFi instance in real time. Start and stop processors, monitor queues, query provenance data, and more. Each endpoint below includes a description, definitions of the expected input and output, potential response codes, and the authorizations required to invoke each service. + * + * OpenAPI spec version: 1.9.1 + * Contact: dev@nifi.apache.org + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +namespace NiFi.Swagger.Model +{ + using System; + using System.Collections.Generic; + using System.ComponentModel.DataAnnotations; + using System.Linq; + using System.Runtime.Serialization; + using System.Text; + + using Newtonsoft.Json; + using Newtonsoft.Json.Converters; + + /// + /// ActivateControllerServicesEntity + /// + [DataContract] + public partial class ActivateControllerServicesEntity : IEquatable, IValidatableObject + { + /// + /// The desired state of the descendant components + /// + /// The desired state of the descendant components + [JsonConverter(typeof(StringEnumConverter))] + public enum StateEnum + { + + /// + /// Enum ENABLED for value: ENABLED + /// + [EnumMember(Value = "ENABLED")] + ENABLED = 1, + + /// + /// Enum DISABLED for value: DISABLED + /// + [EnumMember(Value = "DISABLED")] + DISABLED = 2 + } + + /// + /// The desired state of the descendant components + /// + /// The desired state of the descendant components + [DataMember(Name="state", EmitDefaultValue=false)] + public StateEnum? State { get; set; } + /// + /// Initializes a new instance of the class. + /// + /// The id of the ProcessGroup. + /// The desired state of the descendant components. + /// Optional services to schedule. If not specified, all authorized descendant controller services will be used.. + /// Acknowledges that this node is disconnected to allow for mutable requests to proceed.. + public ActivateControllerServicesEntity(string id = default(string), StateEnum? state = default(StateEnum?), Dictionary components = default(Dictionary), bool? disconnectedNodeAcknowledged = default(bool?)) + { + this.Id = id; + this.State = state; + this.Components = components; + this.DisconnectedNodeAcknowledged = disconnectedNodeAcknowledged; + } + + /// + /// The id of the ProcessGroup + /// + /// The id of the ProcessGroup + [DataMember(Name="id", EmitDefaultValue=false)] + public string Id { get; set; } + + + /// + /// Optional services to schedule. If not specified, all authorized descendant controller services will be used. + /// + /// Optional services to schedule. If not specified, all authorized descendant controller services will be used. + [DataMember(Name="components", EmitDefaultValue=false)] + public Dictionary Components { get; set; } + + /// + /// Acknowledges that this node is disconnected to allow for mutable requests to proceed. + /// + /// Acknowledges that this node is disconnected to allow for mutable requests to proceed. + [DataMember(Name="disconnectedNodeAcknowledged", EmitDefaultValue=false)] + public bool? DisconnectedNodeAcknowledged { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class ActivateControllerServicesEntity {\n"); + sb.Append(" Id: ").Append(this.Id).Append("\n"); + sb.Append(" State: ").Append(this.State).Append("\n"); + sb.Append(" Components: ").Append(this.Components).Append("\n"); + sb.Append(" DisconnectedNodeAcknowledged: ").Append(this.DisconnectedNodeAcknowledged).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as ActivateControllerServicesEntity); + } + + /// + /// Returns true if ActivateControllerServicesEntity instances are equal + /// + /// Instance of ActivateControllerServicesEntity to be compared + /// Boolean + public bool Equals(ActivateControllerServicesEntity input) + { + if (input == null) + return false; + + return + ( + this.Id == input.Id || + (this.Id != null && + this.Id.Equals(input.Id)) + ) && + ( + this.State == input.State || + (this.State != null && + this.State.Equals(input.State)) + ) && + ( + this.Components == input.Components || + this.Components != null && + this.Components.SequenceEqual(input.Components) + ) && + ( + this.DisconnectedNodeAcknowledged == input.DisconnectedNodeAcknowledged || + (this.DisconnectedNodeAcknowledged != null && + this.DisconnectedNodeAcknowledged.Equals(input.DisconnectedNodeAcknowledged)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Id != null) + hashCode = hashCode * 59 + this.Id.GetHashCode(); + if (this.State != null) + hashCode = hashCode * 59 + this.State.GetHashCode(); + if (this.Components != null) + hashCode = hashCode * 59 + this.Components.GetHashCode(); + if (this.DisconnectedNodeAcknowledged != null) + hashCode = hashCode * 59 + this.DisconnectedNodeAcknowledged.GetHashCode(); + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/NiFi.Swagger/Model/AffectedComponentDTO.cs b/NiFi.Swagger/Model/AffectedComponentDTO.cs new file mode 100644 index 0000000..41d00d7 --- /dev/null +++ b/NiFi.Swagger/Model/AffectedComponentDTO.cs @@ -0,0 +1,268 @@ +/* + * NiFi Rest Api + * + * The Rest Api provides programmatic access to command and control a NiFi instance in real time. Start and stop processors, monitor queues, query provenance data, and more. Each endpoint below includes a description, definitions of the expected input and output, potential response codes, and the authorizations required to invoke each service. + * + * OpenAPI spec version: 1.9.1 + * Contact: dev@nifi.apache.org + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +namespace NiFi.Swagger.Model +{ + using System; + using System.Collections.Generic; + using System.ComponentModel.DataAnnotations; + using System.Linq; + using System.Runtime.Serialization; + using System.Text; + + using Newtonsoft.Json; + using Newtonsoft.Json.Converters; + + /// + /// AffectedComponentDTO + /// + [DataContract] + public partial class AffectedComponentDTO : IEquatable, IValidatableObject + { + /// + /// The type of this component + /// + /// The type of this component + [JsonConverter(typeof(StringEnumConverter))] + public enum ReferenceTypeEnum + { + + /// + /// Enum PROCESSOR for value: PROCESSOR + /// + [EnumMember(Value = "PROCESSOR")] + PROCESSOR = 1, + + /// + /// Enum CONTROLLERSERVICE for value: CONTROLLER_SERVICE + /// + [EnumMember(Value = "CONTROLLER_SERVICE")] + CONTROLLERSERVICE = 2, + + /// + /// Enum INPUTPORT for value: INPUT_PORT + /// + [EnumMember(Value = "INPUT_PORT")] + INPUTPORT = 3, + + /// + /// Enum OUTPUTPORT for value: OUTPUT_PORT + /// + [EnumMember(Value = "OUTPUT_PORT")] + OUTPUTPORT = 4, + + /// + /// Enum REMOTEINPUTPORT for value: REMOTE_INPUT_PORT + /// + [EnumMember(Value = "REMOTE_INPUT_PORT")] + REMOTEINPUTPORT = 5, + + /// + /// Enum REMOTEOUTPUTPORT for value: REMOTE_OUTPUT_PORT + /// + [EnumMember(Value = "REMOTE_OUTPUT_PORT")] + REMOTEOUTPUTPORT = 6 + } + + /// + /// The type of this component + /// + /// The type of this component + [DataMember(Name="referenceType", EmitDefaultValue=false)] + public ReferenceTypeEnum? ReferenceType { get; set; } + /// + /// Initializes a new instance of the class. + /// + /// The UUID of the Process Group that this component is in. + /// The UUID of this component. + /// The type of this component. + /// The name of this component.. + /// The scheduled state of a processor or reporting task referencing a controller service. If this component is another controller service, this field represents the controller service state.. + /// The number of active threads for the referencing component.. + /// The validation errors for the component.. + public AffectedComponentDTO(string processGroupId = default(string), string id = default(string), ReferenceTypeEnum? referenceType = default(ReferenceTypeEnum?), string name = default(string), string state = default(string), int? activeThreadCount = default(int?), List validationErrors = default(List)) + { + this.ProcessGroupId = processGroupId; + this.Id = id; + this.ReferenceType = referenceType; + this.Name = name; + this.State = state; + this.ActiveThreadCount = activeThreadCount; + this.ValidationErrors = validationErrors; + } + + /// + /// The UUID of the Process Group that this component is in + /// + /// The UUID of the Process Group that this component is in + [DataMember(Name="processGroupId", EmitDefaultValue=false)] + public string ProcessGroupId { get; set; } + + /// + /// The UUID of this component + /// + /// The UUID of this component + [DataMember(Name="id", EmitDefaultValue=false)] + public string Id { get; set; } + + + /// + /// The name of this component. + /// + /// The name of this component. + [DataMember(Name="name", EmitDefaultValue=false)] + public string Name { get; set; } + + /// + /// The scheduled state of a processor or reporting task referencing a controller service. If this component is another controller service, this field represents the controller service state. + /// + /// The scheduled state of a processor or reporting task referencing a controller service. If this component is another controller service, this field represents the controller service state. + [DataMember(Name="state", EmitDefaultValue=false)] + public string State { get; set; } + + /// + /// The number of active threads for the referencing component. + /// + /// The number of active threads for the referencing component. + [DataMember(Name="activeThreadCount", EmitDefaultValue=false)] + public int? ActiveThreadCount { get; set; } + + /// + /// The validation errors for the component. + /// + /// The validation errors for the component. + [DataMember(Name="validationErrors", EmitDefaultValue=false)] + public List ValidationErrors { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class AffectedComponentDTO {\n"); + sb.Append(" ProcessGroupId: ").Append(this.ProcessGroupId).Append("\n"); + sb.Append(" Id: ").Append(this.Id).Append("\n"); + sb.Append(" ReferenceType: ").Append(this.ReferenceType).Append("\n"); + sb.Append(" Name: ").Append(this.Name).Append("\n"); + sb.Append(" State: ").Append(this.State).Append("\n"); + sb.Append(" ActiveThreadCount: ").Append(this.ActiveThreadCount).Append("\n"); + sb.Append(" ValidationErrors: ").Append(this.ValidationErrors).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as AffectedComponentDTO); + } + + /// + /// Returns true if AffectedComponentDTO instances are equal + /// + /// Instance of AffectedComponentDTO to be compared + /// Boolean + public bool Equals(AffectedComponentDTO input) + { + if (input == null) + return false; + + return + ( + this.ProcessGroupId == input.ProcessGroupId || + (this.ProcessGroupId != null && + this.ProcessGroupId.Equals(input.ProcessGroupId)) + ) && + ( + this.Id == input.Id || + (this.Id != null && + this.Id.Equals(input.Id)) + ) && + ( + this.ReferenceType == input.ReferenceType || + (this.ReferenceType != null && + this.ReferenceType.Equals(input.ReferenceType)) + ) && + ( + this.Name == input.Name || + (this.Name != null && + this.Name.Equals(input.Name)) + ) && + ( + this.State == input.State || + (this.State != null && + this.State.Equals(input.State)) + ) && + ( + this.ActiveThreadCount == input.ActiveThreadCount || + (this.ActiveThreadCount != null && + this.ActiveThreadCount.Equals(input.ActiveThreadCount)) + ) && + ( + this.ValidationErrors == input.ValidationErrors || + this.ValidationErrors != null && + this.ValidationErrors.SequenceEqual(input.ValidationErrors) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.ProcessGroupId != null) + hashCode = hashCode * 59 + this.ProcessGroupId.GetHashCode(); + if (this.Id != null) + hashCode = hashCode * 59 + this.Id.GetHashCode(); + if (this.ReferenceType != null) + hashCode = hashCode * 59 + this.ReferenceType.GetHashCode(); + if (this.Name != null) + hashCode = hashCode * 59 + this.Name.GetHashCode(); + if (this.State != null) + hashCode = hashCode * 59 + this.State.GetHashCode(); + if (this.ActiveThreadCount != null) + hashCode = hashCode * 59 + this.ActiveThreadCount.GetHashCode(); + if (this.ValidationErrors != null) + hashCode = hashCode * 59 + this.ValidationErrors.GetHashCode(); + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/NiFi.Swagger/Model/AffectedComponentEntity.cs b/NiFi.Swagger/Model/AffectedComponentEntity.cs new file mode 100644 index 0000000..1d5d71d --- /dev/null +++ b/NiFi.Swagger/Model/AffectedComponentEntity.cs @@ -0,0 +1,238 @@ +/* + * NiFi Rest Api + * + * The Rest Api provides programmatic access to command and control a NiFi instance in real time. Start and stop processors, monitor queues, query provenance data, and more. Each endpoint below includes a description, definitions of the expected input and output, potential response codes, and the authorizations required to invoke each service. + * + * OpenAPI spec version: 1.9.1 + * Contact: dev@nifi.apache.org + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +namespace NiFi.Swagger.Model +{ + using System; + using System.Collections.Generic; + using System.ComponentModel.DataAnnotations; + using System.Linq; + using System.Runtime.Serialization; + using System.Text; + + using Newtonsoft.Json; + + /// + /// AffectedComponentEntity + /// + [DataContract] + public partial class AffectedComponentEntity : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// The revision for this request/response. The revision is required for any mutable flow requests and is included in all responses.. + /// The id of the component.. + /// The URI for futures requests to the component.. + /// The position of this component in the UI if applicable.. + /// The permissions for this component.. + /// The bulletins for this component.. + /// Acknowledges that this node is disconnected to allow for mutable requests to proceed.. + /// component. + public AffectedComponentEntity(RevisionDTO revision = default(RevisionDTO), string id = default(string), string uri = default(string), PositionDTO position = default(PositionDTO), PermissionsDTO permissions = default(PermissionsDTO), List bulletins = default(List), bool? disconnectedNodeAcknowledged = default(bool?), AffectedComponentDTO component = default(AffectedComponentDTO)) + { + this.Revision = revision; + this.Id = id; + this.Uri = uri; + this.Position = position; + this.Permissions = permissions; + this.Bulletins = bulletins; + this.DisconnectedNodeAcknowledged = disconnectedNodeAcknowledged; + this.Component = component; + } + + /// + /// The revision for this request/response. The revision is required for any mutable flow requests and is included in all responses. + /// + /// The revision for this request/response. The revision is required for any mutable flow requests and is included in all responses. + [DataMember(Name="revision", EmitDefaultValue=false)] + public RevisionDTO Revision { get; set; } + + /// + /// The id of the component. + /// + /// The id of the component. + [DataMember(Name="id", EmitDefaultValue=false)] + public string Id { get; set; } + + /// + /// The URI for futures requests to the component. + /// + /// The URI for futures requests to the component. + [DataMember(Name="uri", EmitDefaultValue=false)] + public string Uri { get; set; } + + /// + /// The position of this component in the UI if applicable. + /// + /// The position of this component in the UI if applicable. + [DataMember(Name="position", EmitDefaultValue=false)] + public PositionDTO Position { get; set; } + + /// + /// The permissions for this component. + /// + /// The permissions for this component. + [DataMember(Name="permissions", EmitDefaultValue=false)] + public PermissionsDTO Permissions { get; set; } + + /// + /// The bulletins for this component. + /// + /// The bulletins for this component. + [DataMember(Name="bulletins", EmitDefaultValue=false)] + public List Bulletins { get; set; } + + /// + /// Acknowledges that this node is disconnected to allow for mutable requests to proceed. + /// + /// Acknowledges that this node is disconnected to allow for mutable requests to proceed. + [DataMember(Name="disconnectedNodeAcknowledged", EmitDefaultValue=false)] + public bool? DisconnectedNodeAcknowledged { get; set; } + + /// + /// Gets or Sets Component + /// + [DataMember(Name="component", EmitDefaultValue=false)] + public AffectedComponentDTO Component { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class AffectedComponentEntity {\n"); + sb.Append(" Revision: ").Append(this.Revision).Append("\n"); + sb.Append(" Id: ").Append(this.Id).Append("\n"); + sb.Append(" Uri: ").Append(this.Uri).Append("\n"); + sb.Append(" Position: ").Append(this.Position).Append("\n"); + sb.Append(" Permissions: ").Append(this.Permissions).Append("\n"); + sb.Append(" Bulletins: ").Append(this.Bulletins).Append("\n"); + sb.Append(" DisconnectedNodeAcknowledged: ").Append(this.DisconnectedNodeAcknowledged).Append("\n"); + sb.Append(" Component: ").Append(this.Component).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as AffectedComponentEntity); + } + + /// + /// Returns true if AffectedComponentEntity instances are equal + /// + /// Instance of AffectedComponentEntity to be compared + /// Boolean + public bool Equals(AffectedComponentEntity input) + { + if (input == null) + return false; + + return + ( + this.Revision == input.Revision || + (this.Revision != null && + this.Revision.Equals(input.Revision)) + ) && + ( + this.Id == input.Id || + (this.Id != null && + this.Id.Equals(input.Id)) + ) && + ( + this.Uri == input.Uri || + (this.Uri != null && + this.Uri.Equals(input.Uri)) + ) && + ( + this.Position == input.Position || + (this.Position != null && + this.Position.Equals(input.Position)) + ) && + ( + this.Permissions == input.Permissions || + (this.Permissions != null && + this.Permissions.Equals(input.Permissions)) + ) && + ( + this.Bulletins == input.Bulletins || + this.Bulletins != null && + this.Bulletins.SequenceEqual(input.Bulletins) + ) && + ( + this.DisconnectedNodeAcknowledged == input.DisconnectedNodeAcknowledged || + (this.DisconnectedNodeAcknowledged != null && + this.DisconnectedNodeAcknowledged.Equals(input.DisconnectedNodeAcknowledged)) + ) && + ( + this.Component == input.Component || + (this.Component != null && + this.Component.Equals(input.Component)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Revision != null) + hashCode = hashCode * 59 + this.Revision.GetHashCode(); + if (this.Id != null) + hashCode = hashCode * 59 + this.Id.GetHashCode(); + if (this.Uri != null) + hashCode = hashCode * 59 + this.Uri.GetHashCode(); + if (this.Position != null) + hashCode = hashCode * 59 + this.Position.GetHashCode(); + if (this.Permissions != null) + hashCode = hashCode * 59 + this.Permissions.GetHashCode(); + if (this.Bulletins != null) + hashCode = hashCode * 59 + this.Bulletins.GetHashCode(); + if (this.DisconnectedNodeAcknowledged != null) + hashCode = hashCode * 59 + this.DisconnectedNodeAcknowledged.GetHashCode(); + if (this.Component != null) + hashCode = hashCode * 59 + this.Component.GetHashCode(); + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/NiFi.Swagger/Model/AllowableValueDTO.cs b/NiFi.Swagger/Model/AllowableValueDTO.cs new file mode 100644 index 0000000..570493f --- /dev/null +++ b/NiFi.Swagger/Model/AllowableValueDTO.cs @@ -0,0 +1,153 @@ +/* + * NiFi Rest Api + * + * The Rest Api provides programmatic access to command and control a NiFi instance in real time. Start and stop processors, monitor queues, query provenance data, and more. Each endpoint below includes a description, definitions of the expected input and output, potential response codes, and the authorizations required to invoke each service. + * + * OpenAPI spec version: 1.9.1 + * Contact: dev@nifi.apache.org + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +namespace NiFi.Swagger.Model +{ + using System; + using System.Collections.Generic; + using System.ComponentModel.DataAnnotations; + using System.Runtime.Serialization; + using System.Text; + + using Newtonsoft.Json; + + /// + /// AllowableValueDTO + /// + [DataContract] + public partial class AllowableValueDTO : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// A human readable value that is allowed for the property descriptor.. + /// A value that is allowed for the property descriptor.. + /// A description for this allowable value.. + public AllowableValueDTO(string displayName = default(string), string value = default(string), string description = default(string)) + { + this.DisplayName = displayName; + this.Value = value; + this.Description = description; + } + + /// + /// A human readable value that is allowed for the property descriptor. + /// + /// A human readable value that is allowed for the property descriptor. + [DataMember(Name="displayName", EmitDefaultValue=false)] + public string DisplayName { get; set; } + + /// + /// A value that is allowed for the property descriptor. + /// + /// A value that is allowed for the property descriptor. + [DataMember(Name="value", EmitDefaultValue=false)] + public string Value { get; set; } + + /// + /// A description for this allowable value. + /// + /// A description for this allowable value. + [DataMember(Name="description", EmitDefaultValue=false)] + public string Description { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class AllowableValueDTO {\n"); + sb.Append(" DisplayName: ").Append(this.DisplayName).Append("\n"); + sb.Append(" Value: ").Append(this.Value).Append("\n"); + sb.Append(" Description: ").Append(this.Description).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as AllowableValueDTO); + } + + /// + /// Returns true if AllowableValueDTO instances are equal + /// + /// Instance of AllowableValueDTO to be compared + /// Boolean + public bool Equals(AllowableValueDTO input) + { + if (input == null) + return false; + + return + ( + this.DisplayName == input.DisplayName || + (this.DisplayName != null && + this.DisplayName.Equals(input.DisplayName)) + ) && + ( + this.Value == input.Value || + (this.Value != null && + this.Value.Equals(input.Value)) + ) && + ( + this.Description == input.Description || + (this.Description != null && + this.Description.Equals(input.Description)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.DisplayName != null) + hashCode = hashCode * 59 + this.DisplayName.GetHashCode(); + if (this.Value != null) + hashCode = hashCode * 59 + this.Value.GetHashCode(); + if (this.Description != null) + hashCode = hashCode * 59 + this.Description.GetHashCode(); + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/NiFi.Swagger/Model/AllowableValueEntity.cs b/NiFi.Swagger/Model/AllowableValueEntity.cs new file mode 100644 index 0000000..3847de2 --- /dev/null +++ b/NiFi.Swagger/Model/AllowableValueEntity.cs @@ -0,0 +1,133 @@ +/* + * NiFi Rest Api + * + * The Rest Api provides programmatic access to command and control a NiFi instance in real time. Start and stop processors, monitor queues, query provenance data, and more. Each endpoint below includes a description, definitions of the expected input and output, potential response codes, and the authorizations required to invoke each service. + * + * OpenAPI spec version: 1.9.1 + * Contact: dev@nifi.apache.org + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +namespace NiFi.Swagger.Model +{ + using System; + using System.Collections.Generic; + using System.ComponentModel.DataAnnotations; + using System.Runtime.Serialization; + using System.Text; + + using Newtonsoft.Json; + + /// + /// AllowableValueEntity + /// + [DataContract] + public partial class AllowableValueEntity : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// allowableValue. + public AllowableValueEntity(AllowableValueDTO allowableValue = default(AllowableValueDTO)) + { + this.AllowableValue = allowableValue; + } + + /// + /// Gets or Sets AllowableValue + /// + [DataMember(Name="allowableValue", EmitDefaultValue=false)] + public AllowableValueDTO AllowableValue { get; set; } + + /// + /// Indicates whether the user can read a given resource. + /// + /// Indicates whether the user can read a given resource. + [DataMember(Name="canRead", EmitDefaultValue=false)] + public bool? CanRead { get; private set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class AllowableValueEntity {\n"); + sb.Append(" AllowableValue: ").Append(this.AllowableValue).Append("\n"); + sb.Append(" CanRead: ").Append(this.CanRead).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as AllowableValueEntity); + } + + /// + /// Returns true if AllowableValueEntity instances are equal + /// + /// Instance of AllowableValueEntity to be compared + /// Boolean + public bool Equals(AllowableValueEntity input) + { + if (input == null) + return false; + + return + ( + this.AllowableValue == input.AllowableValue || + (this.AllowableValue != null && + this.AllowableValue.Equals(input.AllowableValue)) + ) && + ( + this.CanRead == input.CanRead || + (this.CanRead != null && + this.CanRead.Equals(input.CanRead)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.AllowableValue != null) + hashCode = hashCode * 59 + this.AllowableValue.GetHashCode(); + if (this.CanRead != null) + hashCode = hashCode * 59 + this.CanRead.GetHashCode(); + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/NiFi.Swagger/Model/AttributeDTO.cs b/NiFi.Swagger/Model/AttributeDTO.cs new file mode 100644 index 0000000..ee29973 --- /dev/null +++ b/NiFi.Swagger/Model/AttributeDTO.cs @@ -0,0 +1,153 @@ +/* + * NiFi Rest Api + * + * The Rest Api provides programmatic access to command and control a NiFi instance in real time. Start and stop processors, monitor queues, query provenance data, and more. Each endpoint below includes a description, definitions of the expected input and output, potential response codes, and the authorizations required to invoke each service. + * + * OpenAPI spec version: 1.9.1 + * Contact: dev@nifi.apache.org + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +namespace NiFi.Swagger.Model +{ + using System; + using System.Collections.Generic; + using System.ComponentModel.DataAnnotations; + using System.Runtime.Serialization; + using System.Text; + + using Newtonsoft.Json; + + /// + /// AttributeDTO + /// + [DataContract] + public partial class AttributeDTO : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// The attribute name.. + /// The attribute value.. + /// The value of the attribute before the event took place.. + public AttributeDTO(string name = default(string), string value = default(string), string previousValue = default(string)) + { + this.Name = name; + this.Value = value; + this.PreviousValue = previousValue; + } + + /// + /// The attribute name. + /// + /// The attribute name. + [DataMember(Name="name", EmitDefaultValue=false)] + public string Name { get; set; } + + /// + /// The attribute value. + /// + /// The attribute value. + [DataMember(Name="value", EmitDefaultValue=false)] + public string Value { get; set; } + + /// + /// The value of the attribute before the event took place. + /// + /// The value of the attribute before the event took place. + [DataMember(Name="previousValue", EmitDefaultValue=false)] + public string PreviousValue { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class AttributeDTO {\n"); + sb.Append(" Name: ").Append(this.Name).Append("\n"); + sb.Append(" Value: ").Append(this.Value).Append("\n"); + sb.Append(" PreviousValue: ").Append(this.PreviousValue).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as AttributeDTO); + } + + /// + /// Returns true if AttributeDTO instances are equal + /// + /// Instance of AttributeDTO to be compared + /// Boolean + public bool Equals(AttributeDTO input) + { + if (input == null) + return false; + + return + ( + this.Name == input.Name || + (this.Name != null && + this.Name.Equals(input.Name)) + ) && + ( + this.Value == input.Value || + (this.Value != null && + this.Value.Equals(input.Value)) + ) && + ( + this.PreviousValue == input.PreviousValue || + (this.PreviousValue != null && + this.PreviousValue.Equals(input.PreviousValue)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Name != null) + hashCode = hashCode * 59 + this.Name.GetHashCode(); + if (this.Value != null) + hashCode = hashCode * 59 + this.Value.GetHashCode(); + if (this.PreviousValue != null) + hashCode = hashCode * 59 + this.PreviousValue.GetHashCode(); + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/NiFi.Swagger/Model/BannerDTO.cs b/NiFi.Swagger/Model/BannerDTO.cs new file mode 100644 index 0000000..167aa47 --- /dev/null +++ b/NiFi.Swagger/Model/BannerDTO.cs @@ -0,0 +1,136 @@ +/* + * NiFi Rest Api + * + * The Rest Api provides programmatic access to command and control a NiFi instance in real time. Start and stop processors, monitor queues, query provenance data, and more. Each endpoint below includes a description, definitions of the expected input and output, potential response codes, and the authorizations required to invoke each service. + * + * OpenAPI spec version: 1.9.1 + * Contact: dev@nifi.apache.org + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +namespace NiFi.Swagger.Model +{ + using System; + using System.Collections.Generic; + using System.ComponentModel.DataAnnotations; + using System.Runtime.Serialization; + using System.Text; + + using Newtonsoft.Json; + + /// + /// BannerDTO + /// + [DataContract] + public partial class BannerDTO : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// The header text.. + /// The footer text.. + public BannerDTO(string headerText = default(string), string footerText = default(string)) + { + this.HeaderText = headerText; + this.FooterText = footerText; + } + + /// + /// The header text. + /// + /// The header text. + [DataMember(Name="headerText", EmitDefaultValue=false)] + public string HeaderText { get; set; } + + /// + /// The footer text. + /// + /// The footer text. + [DataMember(Name="footerText", EmitDefaultValue=false)] + public string FooterText { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class BannerDTO {\n"); + sb.Append(" HeaderText: ").Append(this.HeaderText).Append("\n"); + sb.Append(" FooterText: ").Append(this.FooterText).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as BannerDTO); + } + + /// + /// Returns true if BannerDTO instances are equal + /// + /// Instance of BannerDTO to be compared + /// Boolean + public bool Equals(BannerDTO input) + { + if (input == null) + return false; + + return + ( + this.HeaderText == input.HeaderText || + (this.HeaderText != null && + this.HeaderText.Equals(input.HeaderText)) + ) && + ( + this.FooterText == input.FooterText || + (this.FooterText != null && + this.FooterText.Equals(input.FooterText)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.HeaderText != null) + hashCode = hashCode * 59 + this.HeaderText.GetHashCode(); + if (this.FooterText != null) + hashCode = hashCode * 59 + this.FooterText.GetHashCode(); + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/NiFi.Swagger/Model/BannerEntity.cs b/NiFi.Swagger/Model/BannerEntity.cs new file mode 100644 index 0000000..a7d6b2d --- /dev/null +++ b/NiFi.Swagger/Model/BannerEntity.cs @@ -0,0 +1,118 @@ +/* + * NiFi Rest Api + * + * The Rest Api provides programmatic access to command and control a NiFi instance in real time. Start and stop processors, monitor queues, query provenance data, and more. Each endpoint below includes a description, definitions of the expected input and output, potential response codes, and the authorizations required to invoke each service. + * + * OpenAPI spec version: 1.9.1 + * Contact: dev@nifi.apache.org + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +namespace NiFi.Swagger.Model +{ + using System; + using System.Collections.Generic; + using System.ComponentModel.DataAnnotations; + using System.Runtime.Serialization; + using System.Text; + + using Newtonsoft.Json; + + /// + /// BannerEntity + /// + [DataContract] + public partial class BannerEntity : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// banners. + public BannerEntity(BannerDTO banners = default(BannerDTO)) + { + this.Banners = banners; + } + + /// + /// Gets or Sets Banners + /// + [DataMember(Name="banners", EmitDefaultValue=false)] + public BannerDTO Banners { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class BannerEntity {\n"); + sb.Append(" Banners: ").Append(this.Banners).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as BannerEntity); + } + + /// + /// Returns true if BannerEntity instances are equal + /// + /// Instance of BannerEntity to be compared + /// Boolean + public bool Equals(BannerEntity input) + { + if (input == null) + return false; + + return + ( + this.Banners == input.Banners || + (this.Banners != null && + this.Banners.Equals(input.Banners)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Banners != null) + hashCode = hashCode * 59 + this.Banners.GetHashCode(); + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/NiFi.Swagger/Model/BatchSettingsDTO.cs b/NiFi.Swagger/Model/BatchSettingsDTO.cs new file mode 100644 index 0000000..27618e3 --- /dev/null +++ b/NiFi.Swagger/Model/BatchSettingsDTO.cs @@ -0,0 +1,153 @@ +/* + * NiFi Rest Api + * + * The Rest Api provides programmatic access to command and control a NiFi instance in real time. Start and stop processors, monitor queues, query provenance data, and more. Each endpoint below includes a description, definitions of the expected input and output, potential response codes, and the authorizations required to invoke each service. + * + * OpenAPI spec version: 1.9.1 + * Contact: dev@nifi.apache.org + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +namespace NiFi.Swagger.Model +{ + using System; + using System.Collections.Generic; + using System.ComponentModel.DataAnnotations; + using System.Runtime.Serialization; + using System.Text; + + using Newtonsoft.Json; + + /// + /// BatchSettingsDTO + /// + [DataContract] + public partial class BatchSettingsDTO : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// Preferred number of flow files to include in a transaction.. + /// Preferred number of bytes to include in a transaction.. + /// Preferred amount of time that a transaction should span.. + public BatchSettingsDTO(int? count = default(int?), string size = default(string), string duration = default(string)) + { + this.Count = count; + this.Size = size; + this.Duration = duration; + } + + /// + /// Preferred number of flow files to include in a transaction. + /// + /// Preferred number of flow files to include in a transaction. + [DataMember(Name="count", EmitDefaultValue=false)] + public int? Count { get; set; } + + /// + /// Preferred number of bytes to include in a transaction. + /// + /// Preferred number of bytes to include in a transaction. + [DataMember(Name="size", EmitDefaultValue=false)] + public string Size { get; set; } + + /// + /// Preferred amount of time that a transaction should span. + /// + /// Preferred amount of time that a transaction should span. + [DataMember(Name="duration", EmitDefaultValue=false)] + public string Duration { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class BatchSettingsDTO {\n"); + sb.Append(" Count: ").Append(this.Count).Append("\n"); + sb.Append(" Size: ").Append(this.Size).Append("\n"); + sb.Append(" Duration: ").Append(this.Duration).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as BatchSettingsDTO); + } + + /// + /// Returns true if BatchSettingsDTO instances are equal + /// + /// Instance of BatchSettingsDTO to be compared + /// Boolean + public bool Equals(BatchSettingsDTO input) + { + if (input == null) + return false; + + return + ( + this.Count == input.Count || + (this.Count != null && + this.Count.Equals(input.Count)) + ) && + ( + this.Size == input.Size || + (this.Size != null && + this.Size.Equals(input.Size)) + ) && + ( + this.Duration == input.Duration || + (this.Duration != null && + this.Duration.Equals(input.Duration)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Count != null) + hashCode = hashCode * 59 + this.Count.GetHashCode(); + if (this.Size != null) + hashCode = hashCode * 59 + this.Size.GetHashCode(); + if (this.Duration != null) + hashCode = hashCode * 59 + this.Duration.GetHashCode(); + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/NiFi.Swagger/Model/BatchSize.cs b/NiFi.Swagger/Model/BatchSize.cs new file mode 100644 index 0000000..818231c --- /dev/null +++ b/NiFi.Swagger/Model/BatchSize.cs @@ -0,0 +1,153 @@ +/* + * NiFi Rest Api + * + * The Rest Api provides programmatic access to command and control a NiFi instance in real time. Start and stop processors, monitor queues, query provenance data, and more. Each endpoint below includes a description, definitions of the expected input and output, potential response codes, and the authorizations required to invoke each service. + * + * OpenAPI spec version: 1.9.1 + * Contact: dev@nifi.apache.org + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +namespace NiFi.Swagger.Model +{ + using System; + using System.Collections.Generic; + using System.ComponentModel.DataAnnotations; + using System.Runtime.Serialization; + using System.Text; + + using Newtonsoft.Json; + + /// + /// BatchSize + /// + [DataContract] + public partial class BatchSize : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// Preferred number of flow files to include in a transaction.. + /// Preferred number of bytes to include in a transaction.. + /// Preferred amount of time that a transaction should span.. + public BatchSize(int? count = default(int?), string size = default(string), string duration = default(string)) + { + this.Count = count; + this.Size = size; + this.Duration = duration; + } + + /// + /// Preferred number of flow files to include in a transaction. + /// + /// Preferred number of flow files to include in a transaction. + [DataMember(Name="count", EmitDefaultValue=false)] + public int? Count { get; set; } + + /// + /// Preferred number of bytes to include in a transaction. + /// + /// Preferred number of bytes to include in a transaction. + [DataMember(Name="size", EmitDefaultValue=false)] + public string Size { get; set; } + + /// + /// Preferred amount of time that a transaction should span. + /// + /// Preferred amount of time that a transaction should span. + [DataMember(Name="duration", EmitDefaultValue=false)] + public string Duration { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class BatchSize {\n"); + sb.Append(" Count: ").Append(this.Count).Append("\n"); + sb.Append(" Size: ").Append(this.Size).Append("\n"); + sb.Append(" Duration: ").Append(this.Duration).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as BatchSize); + } + + /// + /// Returns true if BatchSize instances are equal + /// + /// Instance of BatchSize to be compared + /// Boolean + public bool Equals(BatchSize input) + { + if (input == null) + return false; + + return + ( + this.Count == input.Count || + (this.Count != null && + this.Count.Equals(input.Count)) + ) && + ( + this.Size == input.Size || + (this.Size != null && + this.Size.Equals(input.Size)) + ) && + ( + this.Duration == input.Duration || + (this.Duration != null && + this.Duration.Equals(input.Duration)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Count != null) + hashCode = hashCode * 59 + this.Count.GetHashCode(); + if (this.Size != null) + hashCode = hashCode * 59 + this.Size.GetHashCode(); + if (this.Duration != null) + hashCode = hashCode * 59 + this.Duration.GetHashCode(); + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/NiFi.Swagger/Model/Bucket.cs b/NiFi.Swagger/Model/Bucket.cs new file mode 100644 index 0000000..74914bf --- /dev/null +++ b/NiFi.Swagger/Model/Bucket.cs @@ -0,0 +1,216 @@ +/* + * NiFi Rest Api + * + * The Rest Api provides programmatic access to command and control a NiFi instance in real time. Start and stop processors, monitor queues, query provenance data, and more. Each endpoint below includes a description, definitions of the expected input and output, potential response codes, and the authorizations required to invoke each service. + * + * OpenAPI spec version: 1.9.1 + * Contact: dev@nifi.apache.org + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +namespace NiFi.Swagger.Model +{ + using System; + using System.Collections.Generic; + using System.ComponentModel.DataAnnotations; + using System.IO; + using System.Runtime.Serialization; + using System.Text; + + using Newtonsoft.Json; + + /// + /// Bucket + /// + [DataContract] + public partial class Bucket : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructor] + protected Bucket() { } + /// + /// Initializes a new instance of the class. + /// + /// The name of the bucket. (required). + /// A description of the bucket.. + public Bucket(string name = default(string), string description = default(string)) + { + // to ensure "name" is required (not null) + if (name == null) + { + throw new InvalidDataException("name is a required property for Bucket and cannot be null"); + } + else + { + this.Name = name; + } + this.Description = description; + } + + /// + /// An WebLink to this entity. + /// + /// An WebLink to this entity. + [DataMember(Name="link", EmitDefaultValue=false)] + public Link Link { get; private set; } + + /// + /// An ID to uniquely identify this object. + /// + /// An ID to uniquely identify this object. + [DataMember(Name="identifier", EmitDefaultValue=false)] + public string Identifier { get; private set; } + + /// + /// The name of the bucket. + /// + /// The name of the bucket. + [DataMember(Name="name", EmitDefaultValue=false)] + public string Name { get; set; } + + /// + /// The timestamp of when the bucket was first created. This is set by the server at creation time. + /// + /// The timestamp of when the bucket was first created. This is set by the server at creation time. + [DataMember(Name="createdTimestamp", EmitDefaultValue=false)] + public long? CreatedTimestamp { get; private set; } + + /// + /// A description of the bucket. + /// + /// A description of the bucket. + [DataMember(Name="description", EmitDefaultValue=false)] + public string Description { get; set; } + + /// + /// The access that the current user has to this bucket. + /// + /// The access that the current user has to this bucket. + [DataMember(Name="permissions", EmitDefaultValue=false)] + public Permissions Permissions { get; private set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class Bucket {\n"); + sb.Append(" Link: ").Append(this.Link).Append("\n"); + sb.Append(" Identifier: ").Append(this.Identifier).Append("\n"); + sb.Append(" Name: ").Append(this.Name).Append("\n"); + sb.Append(" CreatedTimestamp: ").Append(this.CreatedTimestamp).Append("\n"); + sb.Append(" Description: ").Append(this.Description).Append("\n"); + sb.Append(" Permissions: ").Append(this.Permissions).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as Bucket); + } + + /// + /// Returns true if Bucket instances are equal + /// + /// Instance of Bucket to be compared + /// Boolean + public bool Equals(Bucket input) + { + if (input == null) + return false; + + return + ( + this.Link == input.Link || + (this.Link != null && + this.Link.Equals(input.Link)) + ) && + ( + this.Identifier == input.Identifier || + (this.Identifier != null && + this.Identifier.Equals(input.Identifier)) + ) && + ( + this.Name == input.Name || + (this.Name != null && + this.Name.Equals(input.Name)) + ) && + ( + this.CreatedTimestamp == input.CreatedTimestamp || + (this.CreatedTimestamp != null && + this.CreatedTimestamp.Equals(input.CreatedTimestamp)) + ) && + ( + this.Description == input.Description || + (this.Description != null && + this.Description.Equals(input.Description)) + ) && + ( + this.Permissions == input.Permissions || + (this.Permissions != null && + this.Permissions.Equals(input.Permissions)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Link != null) + hashCode = hashCode * 59 + this.Link.GetHashCode(); + if (this.Identifier != null) + hashCode = hashCode * 59 + this.Identifier.GetHashCode(); + if (this.Name != null) + hashCode = hashCode * 59 + this.Name.GetHashCode(); + if (this.CreatedTimestamp != null) + hashCode = hashCode * 59 + this.CreatedTimestamp.GetHashCode(); + if (this.Description != null) + hashCode = hashCode * 59 + this.Description.GetHashCode(); + if (this.Permissions != null) + hashCode = hashCode * 59 + this.Permissions.GetHashCode(); + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + // CreatedTimestamp (long?) minimum + if(this.CreatedTimestamp < (long?)1) + { + yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for CreatedTimestamp, must be a value greater than or equal to 1.", new [] { "CreatedTimestamp" }); + } + + yield break; + } + } + +} diff --git a/NiFi.Swagger/Model/BucketDTO.cs b/NiFi.Swagger/Model/BucketDTO.cs new file mode 100644 index 0000000..ba87653 --- /dev/null +++ b/NiFi.Swagger/Model/BucketDTO.cs @@ -0,0 +1,170 @@ +/* + * NiFi Rest Api + * + * The Rest Api provides programmatic access to command and control a NiFi instance in real time. Start and stop processors, monitor queues, query provenance data, and more. Each endpoint below includes a description, definitions of the expected input and output, potential response codes, and the authorizations required to invoke each service. + * + * OpenAPI spec version: 1.9.1 + * Contact: dev@nifi.apache.org + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +namespace NiFi.Swagger.Model +{ + using System; + using System.Collections.Generic; + using System.ComponentModel.DataAnnotations; + using System.Runtime.Serialization; + using System.Text; + + using Newtonsoft.Json; + + /// + /// BucketDTO + /// + [DataContract] + public partial class BucketDTO : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// The bucket identifier. + /// The bucket name. + /// The bucket description. + /// The created timestamp of this bucket. + public BucketDTO(string id = default(string), string name = default(string), string description = default(string), long? created = default(long?)) + { + this.Id = id; + this.Name = name; + this.Description = description; + this.Created = created; + } + + /// + /// The bucket identifier + /// + /// The bucket identifier + [DataMember(Name="id", EmitDefaultValue=false)] + public string Id { get; set; } + + /// + /// The bucket name + /// + /// The bucket name + [DataMember(Name="name", EmitDefaultValue=false)] + public string Name { get; set; } + + /// + /// The bucket description + /// + /// The bucket description + [DataMember(Name="description", EmitDefaultValue=false)] + public string Description { get; set; } + + /// + /// The created timestamp of this bucket + /// + /// The created timestamp of this bucket + [DataMember(Name="created", EmitDefaultValue=false)] + public long? Created { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class BucketDTO {\n"); + sb.Append(" Id: ").Append(this.Id).Append("\n"); + sb.Append(" Name: ").Append(this.Name).Append("\n"); + sb.Append(" Description: ").Append(this.Description).Append("\n"); + sb.Append(" Created: ").Append(this.Created).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as BucketDTO); + } + + /// + /// Returns true if BucketDTO instances are equal + /// + /// Instance of BucketDTO to be compared + /// Boolean + public bool Equals(BucketDTO input) + { + if (input == null) + return false; + + return + ( + this.Id == input.Id || + (this.Id != null && + this.Id.Equals(input.Id)) + ) && + ( + this.Name == input.Name || + (this.Name != null && + this.Name.Equals(input.Name)) + ) && + ( + this.Description == input.Description || + (this.Description != null && + this.Description.Equals(input.Description)) + ) && + ( + this.Created == input.Created || + (this.Created != null && + this.Created.Equals(input.Created)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Id != null) + hashCode = hashCode * 59 + this.Id.GetHashCode(); + if (this.Name != null) + hashCode = hashCode * 59 + this.Name.GetHashCode(); + if (this.Description != null) + hashCode = hashCode * 59 + this.Description.GetHashCode(); + if (this.Created != null) + hashCode = hashCode * 59 + this.Created.GetHashCode(); + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/NiFi.Swagger/Model/BucketEntity.cs b/NiFi.Swagger/Model/BucketEntity.cs new file mode 100644 index 0000000..5ec97cc --- /dev/null +++ b/NiFi.Swagger/Model/BucketEntity.cs @@ -0,0 +1,150 @@ +/* + * NiFi Rest Api + * + * The Rest Api provides programmatic access to command and control a NiFi instance in real time. Start and stop processors, monitor queues, query provenance data, and more. Each endpoint below includes a description, definitions of the expected input and output, potential response codes, and the authorizations required to invoke each service. + * + * OpenAPI spec version: 1.9.1 + * Contact: dev@nifi.apache.org + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +namespace NiFi.Swagger.Model +{ + using System; + using System.Collections.Generic; + using System.ComponentModel.DataAnnotations; + using System.Runtime.Serialization; + using System.Text; + + using Newtonsoft.Json; + + /// + /// BucketEntity + /// + [DataContract] + public partial class BucketEntity : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// id. + /// bucket. + /// permissions. + public BucketEntity(string id = default(string), BucketDTO bucket = default(BucketDTO), PermissionsDTO permissions = default(PermissionsDTO)) + { + this.Id = id; + this.Bucket = bucket; + this.Permissions = permissions; + } + + /// + /// Gets or Sets Id + /// + [DataMember(Name="id", EmitDefaultValue=false)] + public string Id { get; set; } + + /// + /// Gets or Sets Bucket + /// + [DataMember(Name="bucket", EmitDefaultValue=false)] + public BucketDTO Bucket { get; set; } + + /// + /// Gets or Sets Permissions + /// + [DataMember(Name="permissions", EmitDefaultValue=false)] + public PermissionsDTO Permissions { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class BucketEntity {\n"); + sb.Append(" Id: ").Append(this.Id).Append("\n"); + sb.Append(" Bucket: ").Append(this.Bucket).Append("\n"); + sb.Append(" Permissions: ").Append(this.Permissions).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as BucketEntity); + } + + /// + /// Returns true if BucketEntity instances are equal + /// + /// Instance of BucketEntity to be compared + /// Boolean + public bool Equals(BucketEntity input) + { + if (input == null) + return false; + + return + ( + this.Id == input.Id || + (this.Id != null && + this.Id.Equals(input.Id)) + ) && + ( + this.Bucket == input.Bucket || + (this.Bucket != null && + this.Bucket.Equals(input.Bucket)) + ) && + ( + this.Permissions == input.Permissions || + (this.Permissions != null && + this.Permissions.Equals(input.Permissions)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Id != null) + hashCode = hashCode * 59 + this.Id.GetHashCode(); + if (this.Bucket != null) + hashCode = hashCode * 59 + this.Bucket.GetHashCode(); + if (this.Permissions != null) + hashCode = hashCode * 59 + this.Permissions.GetHashCode(); + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/NiFi.Swagger/Model/BucketsEntity.cs b/NiFi.Swagger/Model/BucketsEntity.cs new file mode 100644 index 0000000..0a0a140 --- /dev/null +++ b/NiFi.Swagger/Model/BucketsEntity.cs @@ -0,0 +1,119 @@ +/* + * NiFi Rest Api + * + * The Rest Api provides programmatic access to command and control a NiFi instance in real time. Start and stop processors, monitor queues, query provenance data, and more. Each endpoint below includes a description, definitions of the expected input and output, potential response codes, and the authorizations required to invoke each service. + * + * OpenAPI spec version: 1.9.1 + * Contact: dev@nifi.apache.org + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +namespace NiFi.Swagger.Model +{ + using System; + using System.Collections.Generic; + using System.ComponentModel.DataAnnotations; + using System.Linq; + using System.Runtime.Serialization; + using System.Text; + + using Newtonsoft.Json; + + /// + /// BucketsEntity + /// + [DataContract] + public partial class BucketsEntity : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// buckets. + public BucketsEntity(List buckets = default(List)) + { + this.Buckets = buckets; + } + + /// + /// Gets or Sets Buckets + /// + [DataMember(Name="buckets", EmitDefaultValue=false)] + public List Buckets { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class BucketsEntity {\n"); + sb.Append(" Buckets: ").Append(this.Buckets).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as BucketsEntity); + } + + /// + /// Returns true if BucketsEntity instances are equal + /// + /// Instance of BucketsEntity to be compared + /// Boolean + public bool Equals(BucketsEntity input) + { + if (input == null) + return false; + + return + ( + this.Buckets == input.Buckets || + this.Buckets != null && + this.Buckets.SequenceEqual(input.Buckets) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Buckets != null) + hashCode = hashCode * 59 + this.Buckets.GetHashCode(); + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/NiFi.Swagger/Model/BulletinBoardDTO.cs b/NiFi.Swagger/Model/BulletinBoardDTO.cs new file mode 100644 index 0000000..2dcbe6e --- /dev/null +++ b/NiFi.Swagger/Model/BulletinBoardDTO.cs @@ -0,0 +1,137 @@ +/* + * NiFi Rest Api + * + * The Rest Api provides programmatic access to command and control a NiFi instance in real time. Start and stop processors, monitor queues, query provenance data, and more. Each endpoint below includes a description, definitions of the expected input and output, potential response codes, and the authorizations required to invoke each service. + * + * OpenAPI spec version: 1.9.1 + * Contact: dev@nifi.apache.org + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +namespace NiFi.Swagger.Model +{ + using System; + using System.Collections.Generic; + using System.ComponentModel.DataAnnotations; + using System.Linq; + using System.Runtime.Serialization; + using System.Text; + + using Newtonsoft.Json; + + /// + /// BulletinBoardDTO + /// + [DataContract] + public partial class BulletinBoardDTO : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// The bulletins in the bulletin board, that matches the supplied request.. + /// The timestamp when this report was generated.. + public BulletinBoardDTO(List bulletins = default(List), string generated = default(string)) + { + this.Bulletins = bulletins; + this.Generated = generated; + } + + /// + /// The bulletins in the bulletin board, that matches the supplied request. + /// + /// The bulletins in the bulletin board, that matches the supplied request. + [DataMember(Name="bulletins", EmitDefaultValue=false)] + public List Bulletins { get; set; } + + /// + /// The timestamp when this report was generated. + /// + /// The timestamp when this report was generated. + [DataMember(Name="generated", EmitDefaultValue=false)] + public string Generated { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class BulletinBoardDTO {\n"); + sb.Append(" Bulletins: ").Append(this.Bulletins).Append("\n"); + sb.Append(" Generated: ").Append(this.Generated).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as BulletinBoardDTO); + } + + /// + /// Returns true if BulletinBoardDTO instances are equal + /// + /// Instance of BulletinBoardDTO to be compared + /// Boolean + public bool Equals(BulletinBoardDTO input) + { + if (input == null) + return false; + + return + ( + this.Bulletins == input.Bulletins || + this.Bulletins != null && + this.Bulletins.SequenceEqual(input.Bulletins) + ) && + ( + this.Generated == input.Generated || + (this.Generated != null && + this.Generated.Equals(input.Generated)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Bulletins != null) + hashCode = hashCode * 59 + this.Bulletins.GetHashCode(); + if (this.Generated != null) + hashCode = hashCode * 59 + this.Generated.GetHashCode(); + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/NiFi.Swagger/Model/BulletinBoardEntity.cs b/NiFi.Swagger/Model/BulletinBoardEntity.cs new file mode 100644 index 0000000..defc374 --- /dev/null +++ b/NiFi.Swagger/Model/BulletinBoardEntity.cs @@ -0,0 +1,118 @@ +/* + * NiFi Rest Api + * + * The Rest Api provides programmatic access to command and control a NiFi instance in real time. Start and stop processors, monitor queues, query provenance data, and more. Each endpoint below includes a description, definitions of the expected input and output, potential response codes, and the authorizations required to invoke each service. + * + * OpenAPI spec version: 1.9.1 + * Contact: dev@nifi.apache.org + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +namespace NiFi.Swagger.Model +{ + using System; + using System.Collections.Generic; + using System.ComponentModel.DataAnnotations; + using System.Runtime.Serialization; + using System.Text; + + using Newtonsoft.Json; + + /// + /// BulletinBoardEntity + /// + [DataContract] + public partial class BulletinBoardEntity : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// bulletinBoard. + public BulletinBoardEntity(BulletinBoardDTO bulletinBoard = default(BulletinBoardDTO)) + { + this.BulletinBoard = bulletinBoard; + } + + /// + /// Gets or Sets BulletinBoard + /// + [DataMember(Name="bulletinBoard", EmitDefaultValue=false)] + public BulletinBoardDTO BulletinBoard { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class BulletinBoardEntity {\n"); + sb.Append(" BulletinBoard: ").Append(this.BulletinBoard).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as BulletinBoardEntity); + } + + /// + /// Returns true if BulletinBoardEntity instances are equal + /// + /// Instance of BulletinBoardEntity to be compared + /// Boolean + public bool Equals(BulletinBoardEntity input) + { + if (input == null) + return false; + + return + ( + this.BulletinBoard == input.BulletinBoard || + (this.BulletinBoard != null && + this.BulletinBoard.Equals(input.BulletinBoard)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.BulletinBoard != null) + hashCode = hashCode * 59 + this.BulletinBoard.GetHashCode(); + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/NiFi.Swagger/Model/BulletinDTO.cs b/NiFi.Swagger/Model/BulletinDTO.cs new file mode 100644 index 0000000..5bb216b --- /dev/null +++ b/NiFi.Swagger/Model/BulletinDTO.cs @@ -0,0 +1,255 @@ +/* + * NiFi Rest Api + * + * The Rest Api provides programmatic access to command and control a NiFi instance in real time. Start and stop processors, monitor queues, query provenance data, and more. Each endpoint below includes a description, definitions of the expected input and output, potential response codes, and the authorizations required to invoke each service. + * + * OpenAPI spec version: 1.9.1 + * Contact: dev@nifi.apache.org + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +namespace NiFi.Swagger.Model +{ + using System; + using System.Collections.Generic; + using System.ComponentModel.DataAnnotations; + using System.Runtime.Serialization; + using System.Text; + + using Newtonsoft.Json; + + /// + /// BulletinDTO + /// + [DataContract] + public partial class BulletinDTO : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// The id of the bulletin.. + /// If clustered, the address of the node from which the bulletin originated.. + /// The category of this bulletin.. + /// The group id of the source component.. + /// The id of the source component.. + /// The name of the source component.. + /// The level of the bulletin.. + /// The bulletin message.. + /// When this bulletin was generated.. + public BulletinDTO(long? id = default(long?), string nodeAddress = default(string), string category = default(string), string groupId = default(string), string sourceId = default(string), string sourceName = default(string), string level = default(string), string message = default(string), string timestamp = default(string)) + { + this.Id = id; + this.NodeAddress = nodeAddress; + this.Category = category; + this.GroupId = groupId; + this.SourceId = sourceId; + this.SourceName = sourceName; + this.Level = level; + this.Message = message; + this.Timestamp = timestamp; + } + + /// + /// The id of the bulletin. + /// + /// The id of the bulletin. + [DataMember(Name="id", EmitDefaultValue=false)] + public long? Id { get; set; } + + /// + /// If clustered, the address of the node from which the bulletin originated. + /// + /// If clustered, the address of the node from which the bulletin originated. + [DataMember(Name="nodeAddress", EmitDefaultValue=false)] + public string NodeAddress { get; set; } + + /// + /// The category of this bulletin. + /// + /// The category of this bulletin. + [DataMember(Name="category", EmitDefaultValue=false)] + public string Category { get; set; } + + /// + /// The group id of the source component. + /// + /// The group id of the source component. + [DataMember(Name="groupId", EmitDefaultValue=false)] + public string GroupId { get; set; } + + /// + /// The id of the source component. + /// + /// The id of the source component. + [DataMember(Name="sourceId", EmitDefaultValue=false)] + public string SourceId { get; set; } + + /// + /// The name of the source component. + /// + /// The name of the source component. + [DataMember(Name="sourceName", EmitDefaultValue=false)] + public string SourceName { get; set; } + + /// + /// The level of the bulletin. + /// + /// The level of the bulletin. + [DataMember(Name="level", EmitDefaultValue=false)] + public string Level { get; set; } + + /// + /// The bulletin message. + /// + /// The bulletin message. + [DataMember(Name="message", EmitDefaultValue=false)] + public string Message { get; set; } + + /// + /// When this bulletin was generated. + /// + /// When this bulletin was generated. + [DataMember(Name="timestamp", EmitDefaultValue=false)] + public string Timestamp { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class BulletinDTO {\n"); + sb.Append(" Id: ").Append(this.Id).Append("\n"); + sb.Append(" NodeAddress: ").Append(this.NodeAddress).Append("\n"); + sb.Append(" Category: ").Append(this.Category).Append("\n"); + sb.Append(" GroupId: ").Append(this.GroupId).Append("\n"); + sb.Append(" SourceId: ").Append(this.SourceId).Append("\n"); + sb.Append(" SourceName: ").Append(this.SourceName).Append("\n"); + sb.Append(" Level: ").Append(this.Level).Append("\n"); + sb.Append(" Message: ").Append(this.Message).Append("\n"); + sb.Append(" Timestamp: ").Append(this.Timestamp).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as BulletinDTO); + } + + /// + /// Returns true if BulletinDTO instances are equal + /// + /// Instance of BulletinDTO to be compared + /// Boolean + public bool Equals(BulletinDTO input) + { + if (input == null) + return false; + + return + ( + this.Id == input.Id || + (this.Id != null && + this.Id.Equals(input.Id)) + ) && + ( + this.NodeAddress == input.NodeAddress || + (this.NodeAddress != null && + this.NodeAddress.Equals(input.NodeAddress)) + ) && + ( + this.Category == input.Category || + (this.Category != null && + this.Category.Equals(input.Category)) + ) && + ( + this.GroupId == input.GroupId || + (this.GroupId != null && + this.GroupId.Equals(input.GroupId)) + ) && + ( + this.SourceId == input.SourceId || + (this.SourceId != null && + this.SourceId.Equals(input.SourceId)) + ) && + ( + this.SourceName == input.SourceName || + (this.SourceName != null && + this.SourceName.Equals(input.SourceName)) + ) && + ( + this.Level == input.Level || + (this.Level != null && + this.Level.Equals(input.Level)) + ) && + ( + this.Message == input.Message || + (this.Message != null && + this.Message.Equals(input.Message)) + ) && + ( + this.Timestamp == input.Timestamp || + (this.Timestamp != null && + this.Timestamp.Equals(input.Timestamp)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Id != null) + hashCode = hashCode * 59 + this.Id.GetHashCode(); + if (this.NodeAddress != null) + hashCode = hashCode * 59 + this.NodeAddress.GetHashCode(); + if (this.Category != null) + hashCode = hashCode * 59 + this.Category.GetHashCode(); + if (this.GroupId != null) + hashCode = hashCode * 59 + this.GroupId.GetHashCode(); + if (this.SourceId != null) + hashCode = hashCode * 59 + this.SourceId.GetHashCode(); + if (this.SourceName != null) + hashCode = hashCode * 59 + this.SourceName.GetHashCode(); + if (this.Level != null) + hashCode = hashCode * 59 + this.Level.GetHashCode(); + if (this.Message != null) + hashCode = hashCode * 59 + this.Message.GetHashCode(); + if (this.Timestamp != null) + hashCode = hashCode * 59 + this.Timestamp.GetHashCode(); + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/NiFi.Swagger/Model/BulletinEntity.cs b/NiFi.Swagger/Model/BulletinEntity.cs new file mode 100644 index 0000000..97a6abf --- /dev/null +++ b/NiFi.Swagger/Model/BulletinEntity.cs @@ -0,0 +1,214 @@ +/* + * NiFi Rest Api + * + * The Rest Api provides programmatic access to command and control a NiFi instance in real time. Start and stop processors, monitor queues, query provenance data, and more. Each endpoint below includes a description, definitions of the expected input and output, potential response codes, and the authorizations required to invoke each service. + * + * OpenAPI spec version: 1.9.1 + * Contact: dev@nifi.apache.org + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +namespace NiFi.Swagger.Model +{ + using System; + using System.Collections.Generic; + using System.ComponentModel.DataAnnotations; + using System.Runtime.Serialization; + using System.Text; + + using Newtonsoft.Json; + + /// + /// BulletinEntity + /// + [DataContract] + public partial class BulletinEntity : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// id. + /// groupId. + /// sourceId. + /// When this bulletin was generated.. + /// nodeAddress. + /// bulletin. + public BulletinEntity(long? id = default(long?), string groupId = default(string), string sourceId = default(string), string timestamp = default(string), string nodeAddress = default(string), BulletinDTO bulletin = default(BulletinDTO)) + { + this.Id = id; + this.GroupId = groupId; + this.SourceId = sourceId; + this.Timestamp = timestamp; + this.NodeAddress = nodeAddress; + this.Bulletin = bulletin; + } + + /// + /// Gets or Sets Id + /// + [DataMember(Name="id", EmitDefaultValue=false)] + public long? Id { get; set; } + + /// + /// Gets or Sets GroupId + /// + [DataMember(Name="groupId", EmitDefaultValue=false)] + public string GroupId { get; set; } + + /// + /// Gets or Sets SourceId + /// + [DataMember(Name="sourceId", EmitDefaultValue=false)] + public string SourceId { get; set; } + + /// + /// When this bulletin was generated. + /// + /// When this bulletin was generated. + [DataMember(Name="timestamp", EmitDefaultValue=false)] + public string Timestamp { get; set; } + + /// + /// Gets or Sets NodeAddress + /// + [DataMember(Name="nodeAddress", EmitDefaultValue=false)] + public string NodeAddress { get; set; } + + /// + /// Indicates whether the user can read a given resource. + /// + /// Indicates whether the user can read a given resource. + [DataMember(Name="canRead", EmitDefaultValue=false)] + public bool? CanRead { get; private set; } + + /// + /// Gets or Sets Bulletin + /// + [DataMember(Name="bulletin", EmitDefaultValue=false)] + public BulletinDTO Bulletin { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class BulletinEntity {\n"); + sb.Append(" Id: ").Append(this.Id).Append("\n"); + sb.Append(" GroupId: ").Append(this.GroupId).Append("\n"); + sb.Append(" SourceId: ").Append(this.SourceId).Append("\n"); + sb.Append(" Timestamp: ").Append(this.Timestamp).Append("\n"); + sb.Append(" NodeAddress: ").Append(this.NodeAddress).Append("\n"); + sb.Append(" CanRead: ").Append(this.CanRead).Append("\n"); + sb.Append(" Bulletin: ").Append(this.Bulletin).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as BulletinEntity); + } + + /// + /// Returns true if BulletinEntity instances are equal + /// + /// Instance of BulletinEntity to be compared + /// Boolean + public bool Equals(BulletinEntity input) + { + if (input == null) + return false; + + return + ( + this.Id == input.Id || + (this.Id != null && + this.Id.Equals(input.Id)) + ) && + ( + this.GroupId == input.GroupId || + (this.GroupId != null && + this.GroupId.Equals(input.GroupId)) + ) && + ( + this.SourceId == input.SourceId || + (this.SourceId != null && + this.SourceId.Equals(input.SourceId)) + ) && + ( + this.Timestamp == input.Timestamp || + (this.Timestamp != null && + this.Timestamp.Equals(input.Timestamp)) + ) && + ( + this.NodeAddress == input.NodeAddress || + (this.NodeAddress != null && + this.NodeAddress.Equals(input.NodeAddress)) + ) && + ( + this.CanRead == input.CanRead || + (this.CanRead != null && + this.CanRead.Equals(input.CanRead)) + ) && + ( + this.Bulletin == input.Bulletin || + (this.Bulletin != null && + this.Bulletin.Equals(input.Bulletin)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Id != null) + hashCode = hashCode * 59 + this.Id.GetHashCode(); + if (this.GroupId != null) + hashCode = hashCode * 59 + this.GroupId.GetHashCode(); + if (this.SourceId != null) + hashCode = hashCode * 59 + this.SourceId.GetHashCode(); + if (this.Timestamp != null) + hashCode = hashCode * 59 + this.Timestamp.GetHashCode(); + if (this.NodeAddress != null) + hashCode = hashCode * 59 + this.NodeAddress.GetHashCode(); + if (this.CanRead != null) + hashCode = hashCode * 59 + this.CanRead.GetHashCode(); + if (this.Bulletin != null) + hashCode = hashCode * 59 + this.Bulletin.GetHashCode(); + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/NiFi.Swagger/Model/Bundle.cs b/NiFi.Swagger/Model/Bundle.cs new file mode 100644 index 0000000..64e7e1b --- /dev/null +++ b/NiFi.Swagger/Model/Bundle.cs @@ -0,0 +1,153 @@ +/* + * NiFi Rest Api + * + * The Rest Api provides programmatic access to command and control a NiFi instance in real time. Start and stop processors, monitor queues, query provenance data, and more. Each endpoint below includes a description, definitions of the expected input and output, potential response codes, and the authorizations required to invoke each service. + * + * OpenAPI spec version: 1.9.1 + * Contact: dev@nifi.apache.org + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +namespace NiFi.Swagger.Model +{ + using System; + using System.Collections.Generic; + using System.ComponentModel.DataAnnotations; + using System.Runtime.Serialization; + using System.Text; + + using Newtonsoft.Json; + + /// + /// Bundle + /// + [DataContract] + public partial class Bundle : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// The group of the bundle. + /// The artifact of the bundle. + /// The version of the bundle. + public Bundle(string group = default(string), string artifact = default(string), string version = default(string)) + { + this.Group = group; + this.Artifact = artifact; + this.Version = version; + } + + /// + /// The group of the bundle + /// + /// The group of the bundle + [DataMember(Name="group", EmitDefaultValue=false)] + public string Group { get; set; } + + /// + /// The artifact of the bundle + /// + /// The artifact of the bundle + [DataMember(Name="artifact", EmitDefaultValue=false)] + public string Artifact { get; set; } + + /// + /// The version of the bundle + /// + /// The version of the bundle + [DataMember(Name="version", EmitDefaultValue=false)] + public string Version { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class Bundle {\n"); + sb.Append(" Group: ").Append(this.Group).Append("\n"); + sb.Append(" Artifact: ").Append(this.Artifact).Append("\n"); + sb.Append(" Version: ").Append(this.Version).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as Bundle); + } + + /// + /// Returns true if Bundle instances are equal + /// + /// Instance of Bundle to be compared + /// Boolean + public bool Equals(Bundle input) + { + if (input == null) + return false; + + return + ( + this.Group == input.Group || + (this.Group != null && + this.Group.Equals(input.Group)) + ) && + ( + this.Artifact == input.Artifact || + (this.Artifact != null && + this.Artifact.Equals(input.Artifact)) + ) && + ( + this.Version == input.Version || + (this.Version != null && + this.Version.Equals(input.Version)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Group != null) + hashCode = hashCode * 59 + this.Group.GetHashCode(); + if (this.Artifact != null) + hashCode = hashCode * 59 + this.Artifact.GetHashCode(); + if (this.Version != null) + hashCode = hashCode * 59 + this.Version.GetHashCode(); + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/NiFi.Swagger/Model/BundleDTO.cs b/NiFi.Swagger/Model/BundleDTO.cs new file mode 100644 index 0000000..b04f714 --- /dev/null +++ b/NiFi.Swagger/Model/BundleDTO.cs @@ -0,0 +1,153 @@ +/* + * NiFi Rest Api + * + * The Rest Api provides programmatic access to command and control a NiFi instance in real time. Start and stop processors, monitor queues, query provenance data, and more. Each endpoint below includes a description, definitions of the expected input and output, potential response codes, and the authorizations required to invoke each service. + * + * OpenAPI spec version: 1.9.1 + * Contact: dev@nifi.apache.org + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +namespace NiFi.Swagger.Model +{ + using System; + using System.Collections.Generic; + using System.ComponentModel.DataAnnotations; + using System.Runtime.Serialization; + using System.Text; + + using Newtonsoft.Json; + + /// + /// BundleDTO + /// + [DataContract] + public partial class BundleDTO : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// The group of the bundle.. + /// The artifact of the bundle.. + /// The version of the bundle.. + public BundleDTO(string group = default(string), string artifact = default(string), string version = default(string)) + { + this.Group = group; + this.Artifact = artifact; + this.Version = version; + } + + /// + /// The group of the bundle. + /// + /// The group of the bundle. + [DataMember(Name="group", EmitDefaultValue=false)] + public string Group { get; set; } + + /// + /// The artifact of the bundle. + /// + /// The artifact of the bundle. + [DataMember(Name="artifact", EmitDefaultValue=false)] + public string Artifact { get; set; } + + /// + /// The version of the bundle. + /// + /// The version of the bundle. + [DataMember(Name="version", EmitDefaultValue=false)] + public string Version { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class BundleDTO {\n"); + sb.Append(" Group: ").Append(this.Group).Append("\n"); + sb.Append(" Artifact: ").Append(this.Artifact).Append("\n"); + sb.Append(" Version: ").Append(this.Version).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as BundleDTO); + } + + /// + /// Returns true if BundleDTO instances are equal + /// + /// Instance of BundleDTO to be compared + /// Boolean + public bool Equals(BundleDTO input) + { + if (input == null) + return false; + + return + ( + this.Group == input.Group || + (this.Group != null && + this.Group.Equals(input.Group)) + ) && + ( + this.Artifact == input.Artifact || + (this.Artifact != null && + this.Artifact.Equals(input.Artifact)) + ) && + ( + this.Version == input.Version || + (this.Version != null && + this.Version.Equals(input.Version)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Group != null) + hashCode = hashCode * 59 + this.Group.GetHashCode(); + if (this.Artifact != null) + hashCode = hashCode * 59 + this.Artifact.GetHashCode(); + if (this.Version != null) + hashCode = hashCode * 59 + this.Version.GetHashCode(); + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/NiFi.Swagger/Model/ClusteSummaryEntity.cs b/NiFi.Swagger/Model/ClusteSummaryEntity.cs new file mode 100644 index 0000000..d2f1708 --- /dev/null +++ b/NiFi.Swagger/Model/ClusteSummaryEntity.cs @@ -0,0 +1,118 @@ +/* + * NiFi Rest Api + * + * The Rest Api provides programmatic access to command and control a NiFi instance in real time. Start and stop processors, monitor queues, query provenance data, and more. Each endpoint below includes a description, definitions of the expected input and output, potential response codes, and the authorizations required to invoke each service. + * + * OpenAPI spec version: 1.9.1 + * Contact: dev@nifi.apache.org + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +namespace NiFi.Swagger.Model +{ + using System; + using System.Collections.Generic; + using System.ComponentModel.DataAnnotations; + using System.Runtime.Serialization; + using System.Text; + + using Newtonsoft.Json; + + /// + /// ClusteSummaryEntity + /// + [DataContract] + public partial class ClusteSummaryEntity : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// clusterSummary. + public ClusteSummaryEntity(ClusterSummaryDTO clusterSummary = default(ClusterSummaryDTO)) + { + this.ClusterSummary = clusterSummary; + } + + /// + /// Gets or Sets ClusterSummary + /// + [DataMember(Name="clusterSummary", EmitDefaultValue=false)] + public ClusterSummaryDTO ClusterSummary { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class ClusteSummaryEntity {\n"); + sb.Append(" ClusterSummary: ").Append(this.ClusterSummary).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as ClusteSummaryEntity); + } + + /// + /// Returns true if ClusteSummaryEntity instances are equal + /// + /// Instance of ClusteSummaryEntity to be compared + /// Boolean + public bool Equals(ClusteSummaryEntity input) + { + if (input == null) + return false; + + return + ( + this.ClusterSummary == input.ClusterSummary || + (this.ClusterSummary != null && + this.ClusterSummary.Equals(input.ClusterSummary)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.ClusterSummary != null) + hashCode = hashCode * 59 + this.ClusterSummary.GetHashCode(); + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/NiFi.Swagger/Model/ClusterDTO.cs b/NiFi.Swagger/Model/ClusterDTO.cs new file mode 100644 index 0000000..28f5a47 --- /dev/null +++ b/NiFi.Swagger/Model/ClusterDTO.cs @@ -0,0 +1,137 @@ +/* + * NiFi Rest Api + * + * The Rest Api provides programmatic access to command and control a NiFi instance in real time. Start and stop processors, monitor queues, query provenance data, and more. Each endpoint below includes a description, definitions of the expected input and output, potential response codes, and the authorizations required to invoke each service. + * + * OpenAPI spec version: 1.9.1 + * Contact: dev@nifi.apache.org + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +namespace NiFi.Swagger.Model +{ + using System; + using System.Collections.Generic; + using System.ComponentModel.DataAnnotations; + using System.Linq; + using System.Runtime.Serialization; + using System.Text; + + using Newtonsoft.Json; + + /// + /// ClusterDTO + /// + [DataContract] + public partial class ClusterDTO : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// The collection of nodes that are part of the cluster.. + /// The timestamp the report was generated.. + public ClusterDTO(List nodes = default(List), string generated = default(string)) + { + this.Nodes = nodes; + this.Generated = generated; + } + + /// + /// The collection of nodes that are part of the cluster. + /// + /// The collection of nodes that are part of the cluster. + [DataMember(Name="nodes", EmitDefaultValue=false)] + public List Nodes { get; set; } + + /// + /// The timestamp the report was generated. + /// + /// The timestamp the report was generated. + [DataMember(Name="generated", EmitDefaultValue=false)] + public string Generated { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class ClusterDTO {\n"); + sb.Append(" Nodes: ").Append(this.Nodes).Append("\n"); + sb.Append(" Generated: ").Append(this.Generated).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as ClusterDTO); + } + + /// + /// Returns true if ClusterDTO instances are equal + /// + /// Instance of ClusterDTO to be compared + /// Boolean + public bool Equals(ClusterDTO input) + { + if (input == null) + return false; + + return + ( + this.Nodes == input.Nodes || + this.Nodes != null && + this.Nodes.SequenceEqual(input.Nodes) + ) && + ( + this.Generated == input.Generated || + (this.Generated != null && + this.Generated.Equals(input.Generated)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Nodes != null) + hashCode = hashCode * 59 + this.Nodes.GetHashCode(); + if (this.Generated != null) + hashCode = hashCode * 59 + this.Generated.GetHashCode(); + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/NiFi.Swagger/Model/ClusterEntity.cs b/NiFi.Swagger/Model/ClusterEntity.cs new file mode 100644 index 0000000..ba24fba --- /dev/null +++ b/NiFi.Swagger/Model/ClusterEntity.cs @@ -0,0 +1,118 @@ +/* + * NiFi Rest Api + * + * The Rest Api provides programmatic access to command and control a NiFi instance in real time. Start and stop processors, monitor queues, query provenance data, and more. Each endpoint below includes a description, definitions of the expected input and output, potential response codes, and the authorizations required to invoke each service. + * + * OpenAPI spec version: 1.9.1 + * Contact: dev@nifi.apache.org + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +namespace NiFi.Swagger.Model +{ + using System; + using System.Collections.Generic; + using System.ComponentModel.DataAnnotations; + using System.Runtime.Serialization; + using System.Text; + + using Newtonsoft.Json; + + /// + /// ClusterEntity + /// + [DataContract] + public partial class ClusterEntity : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// cluster. + public ClusterEntity(ClusterDTO cluster = default(ClusterDTO)) + { + this.Cluster = cluster; + } + + /// + /// Gets or Sets Cluster + /// + [DataMember(Name="cluster", EmitDefaultValue=false)] + public ClusterDTO Cluster { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class ClusterEntity {\n"); + sb.Append(" Cluster: ").Append(this.Cluster).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as ClusterEntity); + } + + /// + /// Returns true if ClusterEntity instances are equal + /// + /// Instance of ClusterEntity to be compared + /// Boolean + public bool Equals(ClusterEntity input) + { + if (input == null) + return false; + + return + ( + this.Cluster == input.Cluster || + (this.Cluster != null && + this.Cluster.Equals(input.Cluster)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Cluster != null) + hashCode = hashCode * 59 + this.Cluster.GetHashCode(); + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/NiFi.Swagger/Model/ClusterSearchResultsEntity.cs b/NiFi.Swagger/Model/ClusterSearchResultsEntity.cs new file mode 100644 index 0000000..0bb6002 --- /dev/null +++ b/NiFi.Swagger/Model/ClusterSearchResultsEntity.cs @@ -0,0 +1,119 @@ +/* + * NiFi Rest Api + * + * The Rest Api provides programmatic access to command and control a NiFi instance in real time. Start and stop processors, monitor queues, query provenance data, and more. Each endpoint below includes a description, definitions of the expected input and output, potential response codes, and the authorizations required to invoke each service. + * + * OpenAPI spec version: 1.9.1 + * Contact: dev@nifi.apache.org + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +namespace NiFi.Swagger.Model +{ + using System; + using System.Collections.Generic; + using System.ComponentModel.DataAnnotations; + using System.Linq; + using System.Runtime.Serialization; + using System.Text; + + using Newtonsoft.Json; + + /// + /// ClusterSearchResultsEntity + /// + [DataContract] + public partial class ClusterSearchResultsEntity : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// nodeResults. + public ClusterSearchResultsEntity(List nodeResults = default(List)) + { + this.NodeResults = nodeResults; + } + + /// + /// Gets or Sets NodeResults + /// + [DataMember(Name="nodeResults", EmitDefaultValue=false)] + public List NodeResults { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class ClusterSearchResultsEntity {\n"); + sb.Append(" NodeResults: ").Append(this.NodeResults).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as ClusterSearchResultsEntity); + } + + /// + /// Returns true if ClusterSearchResultsEntity instances are equal + /// + /// Instance of ClusterSearchResultsEntity to be compared + /// Boolean + public bool Equals(ClusterSearchResultsEntity input) + { + if (input == null) + return false; + + return + ( + this.NodeResults == input.NodeResults || + this.NodeResults != null && + this.NodeResults.SequenceEqual(input.NodeResults) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.NodeResults != null) + hashCode = hashCode * 59 + this.NodeResults.GetHashCode(); + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/NiFi.Swagger/Model/ClusterSummaryDTO.cs b/NiFi.Swagger/Model/ClusterSummaryDTO.cs new file mode 100644 index 0000000..2aef0b3 --- /dev/null +++ b/NiFi.Swagger/Model/ClusterSummaryDTO.cs @@ -0,0 +1,187 @@ +/* + * NiFi Rest Api + * + * The Rest Api provides programmatic access to command and control a NiFi instance in real time. Start and stop processors, monitor queues, query provenance data, and more. Each endpoint below includes a description, definitions of the expected input and output, potential response codes, and the authorizations required to invoke each service. + * + * OpenAPI spec version: 1.9.1 + * Contact: dev@nifi.apache.org + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +namespace NiFi.Swagger.Model +{ + using System; + using System.Collections.Generic; + using System.ComponentModel.DataAnnotations; + using System.Runtime.Serialization; + using System.Text; + + using Newtonsoft.Json; + + /// + /// ClusterSummaryDTO + /// + [DataContract] + public partial class ClusterSummaryDTO : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// When clustered, reports the number of nodes connected vs the number of nodes in the cluster.. + /// The number of nodes that are currently connected to the cluster. + /// The number of nodes in the cluster, regardless of whether or not they are connected. + /// Whether this NiFi instance is clustered.. + /// Whether this NiFi instance is connected to a cluster.. + public ClusterSummaryDTO(string connectedNodes = default(string), int? connectedNodeCount = default(int?), int? totalNodeCount = default(int?), bool? clustered = default(bool?), bool? connectedToCluster = default(bool?)) + { + this.ConnectedNodes = connectedNodes; + this.ConnectedNodeCount = connectedNodeCount; + this.TotalNodeCount = totalNodeCount; + this.Clustered = clustered; + this.ConnectedToCluster = connectedToCluster; + } + + /// + /// When clustered, reports the number of nodes connected vs the number of nodes in the cluster. + /// + /// When clustered, reports the number of nodes connected vs the number of nodes in the cluster. + [DataMember(Name="connectedNodes", EmitDefaultValue=false)] + public string ConnectedNodes { get; set; } + + /// + /// The number of nodes that are currently connected to the cluster + /// + /// The number of nodes that are currently connected to the cluster + [DataMember(Name="connectedNodeCount", EmitDefaultValue=false)] + public int? ConnectedNodeCount { get; set; } + + /// + /// The number of nodes in the cluster, regardless of whether or not they are connected + /// + /// The number of nodes in the cluster, regardless of whether or not they are connected + [DataMember(Name="totalNodeCount", EmitDefaultValue=false)] + public int? TotalNodeCount { get; set; } + + /// + /// Whether this NiFi instance is clustered. + /// + /// Whether this NiFi instance is clustered. + [DataMember(Name="clustered", EmitDefaultValue=false)] + public bool? Clustered { get; set; } + + /// + /// Whether this NiFi instance is connected to a cluster. + /// + /// Whether this NiFi instance is connected to a cluster. + [DataMember(Name="connectedToCluster", EmitDefaultValue=false)] + public bool? ConnectedToCluster { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class ClusterSummaryDTO {\n"); + sb.Append(" ConnectedNodes: ").Append(this.ConnectedNodes).Append("\n"); + sb.Append(" ConnectedNodeCount: ").Append(this.ConnectedNodeCount).Append("\n"); + sb.Append(" TotalNodeCount: ").Append(this.TotalNodeCount).Append("\n"); + sb.Append(" Clustered: ").Append(this.Clustered).Append("\n"); + sb.Append(" ConnectedToCluster: ").Append(this.ConnectedToCluster).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as ClusterSummaryDTO); + } + + /// + /// Returns true if ClusterSummaryDTO instances are equal + /// + /// Instance of ClusterSummaryDTO to be compared + /// Boolean + public bool Equals(ClusterSummaryDTO input) + { + if (input == null) + return false; + + return + ( + this.ConnectedNodes == input.ConnectedNodes || + (this.ConnectedNodes != null && + this.ConnectedNodes.Equals(input.ConnectedNodes)) + ) && + ( + this.ConnectedNodeCount == input.ConnectedNodeCount || + (this.ConnectedNodeCount != null && + this.ConnectedNodeCount.Equals(input.ConnectedNodeCount)) + ) && + ( + this.TotalNodeCount == input.TotalNodeCount || + (this.TotalNodeCount != null && + this.TotalNodeCount.Equals(input.TotalNodeCount)) + ) && + ( + this.Clustered == input.Clustered || + (this.Clustered != null && + this.Clustered.Equals(input.Clustered)) + ) && + ( + this.ConnectedToCluster == input.ConnectedToCluster || + (this.ConnectedToCluster != null && + this.ConnectedToCluster.Equals(input.ConnectedToCluster)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.ConnectedNodes != null) + hashCode = hashCode * 59 + this.ConnectedNodes.GetHashCode(); + if (this.ConnectedNodeCount != null) + hashCode = hashCode * 59 + this.ConnectedNodeCount.GetHashCode(); + if (this.TotalNodeCount != null) + hashCode = hashCode * 59 + this.TotalNodeCount.GetHashCode(); + if (this.Clustered != null) + hashCode = hashCode * 59 + this.Clustered.GetHashCode(); + if (this.ConnectedToCluster != null) + hashCode = hashCode * 59 + this.ConnectedToCluster.GetHashCode(); + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/NiFi.Swagger/Model/ComponentDetailsDTO.cs b/NiFi.Swagger/Model/ComponentDetailsDTO.cs new file mode 100644 index 0000000..256b9fc --- /dev/null +++ b/NiFi.Swagger/Model/ComponentDetailsDTO.cs @@ -0,0 +1,103 @@ +/* + * NiFi Rest Api + * + * The Rest Api provides programmatic access to command and control a NiFi instance in real time. Start and stop processors, monitor queues, query provenance data, and more. Each endpoint below includes a description, definitions of the expected input and output, potential response codes, and the authorizations required to invoke each service. + * + * OpenAPI spec version: 1.9.1 + * Contact: dev@nifi.apache.org + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +namespace NiFi.Swagger.Model +{ + using System; + using System.Collections.Generic; + using System.ComponentModel.DataAnnotations; + using System.Runtime.Serialization; + using System.Text; + + using Newtonsoft.Json; + + /// + /// ComponentDetailsDTO + /// + [DataContract] + public partial class ComponentDetailsDTO : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructor] + public ComponentDetailsDTO() + { + } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class ComponentDetailsDTO {\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as ComponentDetailsDTO); + } + + /// + /// Returns true if ComponentDetailsDTO instances are equal + /// + /// Instance of ComponentDetailsDTO to be compared + /// Boolean + public bool Equals(ComponentDetailsDTO input) + { + if (input == null) + return false; + + return false; + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/NiFi.Swagger/Model/ComponentDifferenceDTO.cs b/NiFi.Swagger/Model/ComponentDifferenceDTO.cs new file mode 100644 index 0000000..ec3cd2c --- /dev/null +++ b/NiFi.Swagger/Model/ComponentDifferenceDTO.cs @@ -0,0 +1,188 @@ +/* + * NiFi Rest Api + * + * The Rest Api provides programmatic access to command and control a NiFi instance in real time. Start and stop processors, monitor queues, query provenance data, and more. Each endpoint below includes a description, definitions of the expected input and output, potential response codes, and the authorizations required to invoke each service. + * + * OpenAPI spec version: 1.9.1 + * Contact: dev@nifi.apache.org + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +namespace NiFi.Swagger.Model +{ + using System; + using System.Collections.Generic; + using System.ComponentModel.DataAnnotations; + using System.Linq; + using System.Runtime.Serialization; + using System.Text; + + using Newtonsoft.Json; + + /// + /// ComponentDifferenceDTO + /// + [DataContract] + public partial class ComponentDifferenceDTO : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// The type of component. + /// The ID of the component. + /// The name of the component. + /// The ID of the Process Group that the component belongs to. + /// The differences in the component between the two flows. + public ComponentDifferenceDTO(string componentType = default(string), string componentId = default(string), string componentName = default(string), string processGroupId = default(string), List differences = default(List)) + { + this.ComponentType = componentType; + this.ComponentId = componentId; + this.ComponentName = componentName; + this.ProcessGroupId = processGroupId; + this.Differences = differences; + } + + /// + /// The type of component + /// + /// The type of component + [DataMember(Name="componentType", EmitDefaultValue=false)] + public string ComponentType { get; set; } + + /// + /// The ID of the component + /// + /// The ID of the component + [DataMember(Name="componentId", EmitDefaultValue=false)] + public string ComponentId { get; set; } + + /// + /// The name of the component + /// + /// The name of the component + [DataMember(Name="componentName", EmitDefaultValue=false)] + public string ComponentName { get; set; } + + /// + /// The ID of the Process Group that the component belongs to + /// + /// The ID of the Process Group that the component belongs to + [DataMember(Name="processGroupId", EmitDefaultValue=false)] + public string ProcessGroupId { get; set; } + + /// + /// The differences in the component between the two flows + /// + /// The differences in the component between the two flows + [DataMember(Name="differences", EmitDefaultValue=false)] + public List Differences { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class ComponentDifferenceDTO {\n"); + sb.Append(" ComponentType: ").Append(this.ComponentType).Append("\n"); + sb.Append(" ComponentId: ").Append(this.ComponentId).Append("\n"); + sb.Append(" ComponentName: ").Append(this.ComponentName).Append("\n"); + sb.Append(" ProcessGroupId: ").Append(this.ProcessGroupId).Append("\n"); + sb.Append(" Differences: ").Append(this.Differences).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as ComponentDifferenceDTO); + } + + /// + /// Returns true if ComponentDifferenceDTO instances are equal + /// + /// Instance of ComponentDifferenceDTO to be compared + /// Boolean + public bool Equals(ComponentDifferenceDTO input) + { + if (input == null) + return false; + + return + ( + this.ComponentType == input.ComponentType || + (this.ComponentType != null && + this.ComponentType.Equals(input.ComponentType)) + ) && + ( + this.ComponentId == input.ComponentId || + (this.ComponentId != null && + this.ComponentId.Equals(input.ComponentId)) + ) && + ( + this.ComponentName == input.ComponentName || + (this.ComponentName != null && + this.ComponentName.Equals(input.ComponentName)) + ) && + ( + this.ProcessGroupId == input.ProcessGroupId || + (this.ProcessGroupId != null && + this.ProcessGroupId.Equals(input.ProcessGroupId)) + ) && + ( + this.Differences == input.Differences || + this.Differences != null && + this.Differences.SequenceEqual(input.Differences) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.ComponentType != null) + hashCode = hashCode * 59 + this.ComponentType.GetHashCode(); + if (this.ComponentId != null) + hashCode = hashCode * 59 + this.ComponentId.GetHashCode(); + if (this.ComponentName != null) + hashCode = hashCode * 59 + this.ComponentName.GetHashCode(); + if (this.ProcessGroupId != null) + hashCode = hashCode * 59 + this.ProcessGroupId.GetHashCode(); + if (this.Differences != null) + hashCode = hashCode * 59 + this.Differences.GetHashCode(); + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/NiFi.Swagger/Model/ComponentHistoryDTO.cs b/NiFi.Swagger/Model/ComponentHistoryDTO.cs new file mode 100644 index 0000000..97e17d3 --- /dev/null +++ b/NiFi.Swagger/Model/ComponentHistoryDTO.cs @@ -0,0 +1,137 @@ +/* + * NiFi Rest Api + * + * The Rest Api provides programmatic access to command and control a NiFi instance in real time. Start and stop processors, monitor queues, query provenance data, and more. Each endpoint below includes a description, definitions of the expected input and output, potential response codes, and the authorizations required to invoke each service. + * + * OpenAPI spec version: 1.9.1 + * Contact: dev@nifi.apache.org + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +namespace NiFi.Swagger.Model +{ + using System; + using System.Collections.Generic; + using System.ComponentModel.DataAnnotations; + using System.Linq; + using System.Runtime.Serialization; + using System.Text; + + using Newtonsoft.Json; + + /// + /// ComponentHistoryDTO + /// + [DataContract] + public partial class ComponentHistoryDTO : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// The component id.. + /// The history for the properties of the component.. + public ComponentHistoryDTO(string componentId = default(string), Dictionary propertyHistory = default(Dictionary)) + { + this.ComponentId = componentId; + this.PropertyHistory = propertyHistory; + } + + /// + /// The component id. + /// + /// The component id. + [DataMember(Name="componentId", EmitDefaultValue=false)] + public string ComponentId { get; set; } + + /// + /// The history for the properties of the component. + /// + /// The history for the properties of the component. + [DataMember(Name="propertyHistory", EmitDefaultValue=false)] + public Dictionary PropertyHistory { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class ComponentHistoryDTO {\n"); + sb.Append(" ComponentId: ").Append(this.ComponentId).Append("\n"); + sb.Append(" PropertyHistory: ").Append(this.PropertyHistory).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as ComponentHistoryDTO); + } + + /// + /// Returns true if ComponentHistoryDTO instances are equal + /// + /// Instance of ComponentHistoryDTO to be compared + /// Boolean + public bool Equals(ComponentHistoryDTO input) + { + if (input == null) + return false; + + return + ( + this.ComponentId == input.ComponentId || + (this.ComponentId != null && + this.ComponentId.Equals(input.ComponentId)) + ) && + ( + this.PropertyHistory == input.PropertyHistory || + this.PropertyHistory != null && + this.PropertyHistory.SequenceEqual(input.PropertyHistory) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.ComponentId != null) + hashCode = hashCode * 59 + this.ComponentId.GetHashCode(); + if (this.PropertyHistory != null) + hashCode = hashCode * 59 + this.PropertyHistory.GetHashCode(); + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/NiFi.Swagger/Model/ComponentHistoryEntity.cs b/NiFi.Swagger/Model/ComponentHistoryEntity.cs new file mode 100644 index 0000000..40e1425 --- /dev/null +++ b/NiFi.Swagger/Model/ComponentHistoryEntity.cs @@ -0,0 +1,118 @@ +/* + * NiFi Rest Api + * + * The Rest Api provides programmatic access to command and control a NiFi instance in real time. Start and stop processors, monitor queues, query provenance data, and more. Each endpoint below includes a description, definitions of the expected input and output, potential response codes, and the authorizations required to invoke each service. + * + * OpenAPI spec version: 1.9.1 + * Contact: dev@nifi.apache.org + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +namespace NiFi.Swagger.Model +{ + using System; + using System.Collections.Generic; + using System.ComponentModel.DataAnnotations; + using System.Runtime.Serialization; + using System.Text; + + using Newtonsoft.Json; + + /// + /// ComponentHistoryEntity + /// + [DataContract] + public partial class ComponentHistoryEntity : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// componentHistory. + public ComponentHistoryEntity(ComponentHistoryDTO componentHistory = default(ComponentHistoryDTO)) + { + this.ComponentHistory = componentHistory; + } + + /// + /// Gets or Sets ComponentHistory + /// + [DataMember(Name="componentHistory", EmitDefaultValue=false)] + public ComponentHistoryDTO ComponentHistory { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class ComponentHistoryEntity {\n"); + sb.Append(" ComponentHistory: ").Append(this.ComponentHistory).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as ComponentHistoryEntity); + } + + /// + /// Returns true if ComponentHistoryEntity instances are equal + /// + /// Instance of ComponentHistoryEntity to be compared + /// Boolean + public bool Equals(ComponentHistoryEntity input) + { + if (input == null) + return false; + + return + ( + this.ComponentHistory == input.ComponentHistory || + (this.ComponentHistory != null && + this.ComponentHistory.Equals(input.ComponentHistory)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.ComponentHistory != null) + hashCode = hashCode * 59 + this.ComponentHistory.GetHashCode(); + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/NiFi.Swagger/Model/ComponentReferenceDTO.cs b/NiFi.Swagger/Model/ComponentReferenceDTO.cs new file mode 100644 index 0000000..373eed1 --- /dev/null +++ b/NiFi.Swagger/Model/ComponentReferenceDTO.cs @@ -0,0 +1,187 @@ +/* + * NiFi Rest Api + * + * The Rest Api provides programmatic access to command and control a NiFi instance in real time. Start and stop processors, monitor queues, query provenance data, and more. Each endpoint below includes a description, definitions of the expected input and output, potential response codes, and the authorizations required to invoke each service. + * + * OpenAPI spec version: 1.9.1 + * Contact: dev@nifi.apache.org + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +namespace NiFi.Swagger.Model +{ + using System; + using System.Collections.Generic; + using System.ComponentModel.DataAnnotations; + using System.Runtime.Serialization; + using System.Text; + + using Newtonsoft.Json; + + /// + /// ComponentReferenceDTO + /// + [DataContract] + public partial class ComponentReferenceDTO : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// The id of the component.. + /// The ID of the corresponding component that is under version control. + /// The id of parent process group of this component if applicable.. + /// The position of this component in the UI if applicable.. + /// The name of the component.. + public ComponentReferenceDTO(string id = default(string), string versionedComponentId = default(string), string parentGroupId = default(string), PositionDTO position = default(PositionDTO), string name = default(string)) + { + this.Id = id; + this.VersionedComponentId = versionedComponentId; + this.ParentGroupId = parentGroupId; + this.Position = position; + this.Name = name; + } + + /// + /// The id of the component. + /// + /// The id of the component. + [DataMember(Name="id", EmitDefaultValue=false)] + public string Id { get; set; } + + /// + /// The ID of the corresponding component that is under version control + /// + /// The ID of the corresponding component that is under version control + [DataMember(Name="versionedComponentId", EmitDefaultValue=false)] + public string VersionedComponentId { get; set; } + + /// + /// The id of parent process group of this component if applicable. + /// + /// The id of parent process group of this component if applicable. + [DataMember(Name="parentGroupId", EmitDefaultValue=false)] + public string ParentGroupId { get; set; } + + /// + /// The position of this component in the UI if applicable. + /// + /// The position of this component in the UI if applicable. + [DataMember(Name="position", EmitDefaultValue=false)] + public PositionDTO Position { get; set; } + + /// + /// The name of the component. + /// + /// The name of the component. + [DataMember(Name="name", EmitDefaultValue=false)] + public string Name { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class ComponentReferenceDTO {\n"); + sb.Append(" Id: ").Append(this.Id).Append("\n"); + sb.Append(" VersionedComponentId: ").Append(this.VersionedComponentId).Append("\n"); + sb.Append(" ParentGroupId: ").Append(this.ParentGroupId).Append("\n"); + sb.Append(" Position: ").Append(this.Position).Append("\n"); + sb.Append(" Name: ").Append(this.Name).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as ComponentReferenceDTO); + } + + /// + /// Returns true if ComponentReferenceDTO instances are equal + /// + /// Instance of ComponentReferenceDTO to be compared + /// Boolean + public bool Equals(ComponentReferenceDTO input) + { + if (input == null) + return false; + + return + ( + this.Id == input.Id || + (this.Id != null && + this.Id.Equals(input.Id)) + ) && + ( + this.VersionedComponentId == input.VersionedComponentId || + (this.VersionedComponentId != null && + this.VersionedComponentId.Equals(input.VersionedComponentId)) + ) && + ( + this.ParentGroupId == input.ParentGroupId || + (this.ParentGroupId != null && + this.ParentGroupId.Equals(input.ParentGroupId)) + ) && + ( + this.Position == input.Position || + (this.Position != null && + this.Position.Equals(input.Position)) + ) && + ( + this.Name == input.Name || + (this.Name != null && + this.Name.Equals(input.Name)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Id != null) + hashCode = hashCode * 59 + this.Id.GetHashCode(); + if (this.VersionedComponentId != null) + hashCode = hashCode * 59 + this.VersionedComponentId.GetHashCode(); + if (this.ParentGroupId != null) + hashCode = hashCode * 59 + this.ParentGroupId.GetHashCode(); + if (this.Position != null) + hashCode = hashCode * 59 + this.Position.GetHashCode(); + if (this.Name != null) + hashCode = hashCode * 59 + this.Name.GetHashCode(); + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/NiFi.Swagger/Model/ComponentReferenceEntity.cs b/NiFi.Swagger/Model/ComponentReferenceEntity.cs new file mode 100644 index 0000000..982b64f --- /dev/null +++ b/NiFi.Swagger/Model/ComponentReferenceEntity.cs @@ -0,0 +1,255 @@ +/* + * NiFi Rest Api + * + * The Rest Api provides programmatic access to command and control a NiFi instance in real time. Start and stop processors, monitor queues, query provenance data, and more. Each endpoint below includes a description, definitions of the expected input and output, potential response codes, and the authorizations required to invoke each service. + * + * OpenAPI spec version: 1.9.1 + * Contact: dev@nifi.apache.org + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +namespace NiFi.Swagger.Model +{ + using System; + using System.Collections.Generic; + using System.ComponentModel.DataAnnotations; + using System.Linq; + using System.Runtime.Serialization; + using System.Text; + + using Newtonsoft.Json; + + /// + /// ComponentReferenceEntity + /// + [DataContract] + public partial class ComponentReferenceEntity : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// The revision for this request/response. The revision is required for any mutable flow requests and is included in all responses.. + /// The id of the component.. + /// The URI for futures requests to the component.. + /// The position of this component in the UI if applicable.. + /// The permissions for this component.. + /// The bulletins for this component.. + /// Acknowledges that this node is disconnected to allow for mutable requests to proceed.. + /// The id of parent process group of this component if applicable.. + /// component. + public ComponentReferenceEntity(RevisionDTO revision = default(RevisionDTO), string id = default(string), string uri = default(string), PositionDTO position = default(PositionDTO), PermissionsDTO permissions = default(PermissionsDTO), List bulletins = default(List), bool? disconnectedNodeAcknowledged = default(bool?), string parentGroupId = default(string), ComponentReferenceDTO component = default(ComponentReferenceDTO)) + { + this.Revision = revision; + this.Id = id; + this.Uri = uri; + this.Position = position; + this.Permissions = permissions; + this.Bulletins = bulletins; + this.DisconnectedNodeAcknowledged = disconnectedNodeAcknowledged; + this.ParentGroupId = parentGroupId; + this.Component = component; + } + + /// + /// The revision for this request/response. The revision is required for any mutable flow requests and is included in all responses. + /// + /// The revision for this request/response. The revision is required for any mutable flow requests and is included in all responses. + [DataMember(Name="revision", EmitDefaultValue=false)] + public RevisionDTO Revision { get; set; } + + /// + /// The id of the component. + /// + /// The id of the component. + [DataMember(Name="id", EmitDefaultValue=false)] + public string Id { get; set; } + + /// + /// The URI for futures requests to the component. + /// + /// The URI for futures requests to the component. + [DataMember(Name="uri", EmitDefaultValue=false)] + public string Uri { get; set; } + + /// + /// The position of this component in the UI if applicable. + /// + /// The position of this component in the UI if applicable. + [DataMember(Name="position", EmitDefaultValue=false)] + public PositionDTO Position { get; set; } + + /// + /// The permissions for this component. + /// + /// The permissions for this component. + [DataMember(Name="permissions", EmitDefaultValue=false)] + public PermissionsDTO Permissions { get; set; } + + /// + /// The bulletins for this component. + /// + /// The bulletins for this component. + [DataMember(Name="bulletins", EmitDefaultValue=false)] + public List Bulletins { get; set; } + + /// + /// Acknowledges that this node is disconnected to allow for mutable requests to proceed. + /// + /// Acknowledges that this node is disconnected to allow for mutable requests to proceed. + [DataMember(Name="disconnectedNodeAcknowledged", EmitDefaultValue=false)] + public bool? DisconnectedNodeAcknowledged { get; set; } + + /// + /// The id of parent process group of this component if applicable. + /// + /// The id of parent process group of this component if applicable. + [DataMember(Name="parentGroupId", EmitDefaultValue=false)] + public string ParentGroupId { get; set; } + + /// + /// Gets or Sets Component + /// + [DataMember(Name="component", EmitDefaultValue=false)] + public ComponentReferenceDTO Component { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class ComponentReferenceEntity {\n"); + sb.Append(" Revision: ").Append(this.Revision).Append("\n"); + sb.Append(" Id: ").Append(this.Id).Append("\n"); + sb.Append(" Uri: ").Append(this.Uri).Append("\n"); + sb.Append(" Position: ").Append(this.Position).Append("\n"); + sb.Append(" Permissions: ").Append(this.Permissions).Append("\n"); + sb.Append(" Bulletins: ").Append(this.Bulletins).Append("\n"); + sb.Append(" DisconnectedNodeAcknowledged: ").Append(this.DisconnectedNodeAcknowledged).Append("\n"); + sb.Append(" ParentGroupId: ").Append(this.ParentGroupId).Append("\n"); + sb.Append(" Component: ").Append(this.Component).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as ComponentReferenceEntity); + } + + /// + /// Returns true if ComponentReferenceEntity instances are equal + /// + /// Instance of ComponentReferenceEntity to be compared + /// Boolean + public bool Equals(ComponentReferenceEntity input) + { + if (input == null) + return false; + + return + ( + this.Revision == input.Revision || + (this.Revision != null && + this.Revision.Equals(input.Revision)) + ) && + ( + this.Id == input.Id || + (this.Id != null && + this.Id.Equals(input.Id)) + ) && + ( + this.Uri == input.Uri || + (this.Uri != null && + this.Uri.Equals(input.Uri)) + ) && + ( + this.Position == input.Position || + (this.Position != null && + this.Position.Equals(input.Position)) + ) && + ( + this.Permissions == input.Permissions || + (this.Permissions != null && + this.Permissions.Equals(input.Permissions)) + ) && + ( + this.Bulletins == input.Bulletins || + this.Bulletins != null && + this.Bulletins.SequenceEqual(input.Bulletins) + ) && + ( + this.DisconnectedNodeAcknowledged == input.DisconnectedNodeAcknowledged || + (this.DisconnectedNodeAcknowledged != null && + this.DisconnectedNodeAcknowledged.Equals(input.DisconnectedNodeAcknowledged)) + ) && + ( + this.ParentGroupId == input.ParentGroupId || + (this.ParentGroupId != null && + this.ParentGroupId.Equals(input.ParentGroupId)) + ) && + ( + this.Component == input.Component || + (this.Component != null && + this.Component.Equals(input.Component)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Revision != null) + hashCode = hashCode * 59 + this.Revision.GetHashCode(); + if (this.Id != null) + hashCode = hashCode * 59 + this.Id.GetHashCode(); + if (this.Uri != null) + hashCode = hashCode * 59 + this.Uri.GetHashCode(); + if (this.Position != null) + hashCode = hashCode * 59 + this.Position.GetHashCode(); + if (this.Permissions != null) + hashCode = hashCode * 59 + this.Permissions.GetHashCode(); + if (this.Bulletins != null) + hashCode = hashCode * 59 + this.Bulletins.GetHashCode(); + if (this.DisconnectedNodeAcknowledged != null) + hashCode = hashCode * 59 + this.DisconnectedNodeAcknowledged.GetHashCode(); + if (this.ParentGroupId != null) + hashCode = hashCode * 59 + this.ParentGroupId.GetHashCode(); + if (this.Component != null) + hashCode = hashCode * 59 + this.Component.GetHashCode(); + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/NiFi.Swagger/Model/ComponentRestrictionPermissionDTO.cs b/NiFi.Swagger/Model/ComponentRestrictionPermissionDTO.cs new file mode 100644 index 0000000..d369730 --- /dev/null +++ b/NiFi.Swagger/Model/ComponentRestrictionPermissionDTO.cs @@ -0,0 +1,136 @@ +/* + * NiFi Rest Api + * + * The Rest Api provides programmatic access to command and control a NiFi instance in real time. Start and stop processors, monitor queues, query provenance data, and more. Each endpoint below includes a description, definitions of the expected input and output, potential response codes, and the authorizations required to invoke each service. + * + * OpenAPI spec version: 1.9.1 + * Contact: dev@nifi.apache.org + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +namespace NiFi.Swagger.Model +{ + using System; + using System.Collections.Generic; + using System.ComponentModel.DataAnnotations; + using System.Runtime.Serialization; + using System.Text; + + using Newtonsoft.Json; + + /// + /// ComponentRestrictionPermissionDTO + /// + [DataContract] + public partial class ComponentRestrictionPermissionDTO : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// The required permission necessary for this restriction.. + /// The permissions for this component restriction. Note: the read permission are not used and will always be false.. + public ComponentRestrictionPermissionDTO(RequiredPermissionDTO requiredPermission = default(RequiredPermissionDTO), PermissionsDTO permissions = default(PermissionsDTO)) + { + this.RequiredPermission = requiredPermission; + this.Permissions = permissions; + } + + /// + /// The required permission necessary for this restriction. + /// + /// The required permission necessary for this restriction. + [DataMember(Name="requiredPermission", EmitDefaultValue=false)] + public RequiredPermissionDTO RequiredPermission { get; set; } + + /// + /// The permissions for this component restriction. Note: the read permission are not used and will always be false. + /// + /// The permissions for this component restriction. Note: the read permission are not used and will always be false. + [DataMember(Name="permissions", EmitDefaultValue=false)] + public PermissionsDTO Permissions { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class ComponentRestrictionPermissionDTO {\n"); + sb.Append(" RequiredPermission: ").Append(this.RequiredPermission).Append("\n"); + sb.Append(" Permissions: ").Append(this.Permissions).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as ComponentRestrictionPermissionDTO); + } + + /// + /// Returns true if ComponentRestrictionPermissionDTO instances are equal + /// + /// Instance of ComponentRestrictionPermissionDTO to be compared + /// Boolean + public bool Equals(ComponentRestrictionPermissionDTO input) + { + if (input == null) + return false; + + return + ( + this.RequiredPermission == input.RequiredPermission || + (this.RequiredPermission != null && + this.RequiredPermission.Equals(input.RequiredPermission)) + ) && + ( + this.Permissions == input.Permissions || + (this.Permissions != null && + this.Permissions.Equals(input.Permissions)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.RequiredPermission != null) + hashCode = hashCode * 59 + this.RequiredPermission.GetHashCode(); + if (this.Permissions != null) + hashCode = hashCode * 59 + this.Permissions.GetHashCode(); + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/NiFi.Swagger/Model/ComponentSearchResultDTO.cs b/NiFi.Swagger/Model/ComponentSearchResultDTO.cs new file mode 100644 index 0000000..ca3745f --- /dev/null +++ b/NiFi.Swagger/Model/ComponentSearchResultDTO.cs @@ -0,0 +1,205 @@ +/* + * NiFi Rest Api + * + * The Rest Api provides programmatic access to command and control a NiFi instance in real time. Start and stop processors, monitor queues, query provenance data, and more. Each endpoint below includes a description, definitions of the expected input and output, potential response codes, and the authorizations required to invoke each service. + * + * OpenAPI spec version: 1.9.1 + * Contact: dev@nifi.apache.org + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +namespace NiFi.Swagger.Model +{ + using System; + using System.Collections.Generic; + using System.ComponentModel.DataAnnotations; + using System.Linq; + using System.Runtime.Serialization; + using System.Text; + + using Newtonsoft.Json; + + /// + /// ComponentSearchResultDTO + /// + [DataContract] + public partial class ComponentSearchResultDTO : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// The id of the component that matched the search.. + /// The group id of the component that matched the search.. + /// The parent group of the component that matched the search.. + /// The nearest versioned ancestor group of the component that matched the search.. + /// The name of the component that matched the search.. + /// What matched the search from the component.. + public ComponentSearchResultDTO(string id = default(string), string groupId = default(string), SearchResultGroupDTO parentGroup = default(SearchResultGroupDTO), SearchResultGroupDTO versionedGroup = default(SearchResultGroupDTO), string name = default(string), List matches = default(List)) + { + this.Id = id; + this.GroupId = groupId; + this.ParentGroup = parentGroup; + this.VersionedGroup = versionedGroup; + this.Name = name; + this.Matches = matches; + } + + /// + /// The id of the component that matched the search. + /// + /// The id of the component that matched the search. + [DataMember(Name="id", EmitDefaultValue=false)] + public string Id { get; set; } + + /// + /// The group id of the component that matched the search. + /// + /// The group id of the component that matched the search. + [DataMember(Name="groupId", EmitDefaultValue=false)] + public string GroupId { get; set; } + + /// + /// The parent group of the component that matched the search. + /// + /// The parent group of the component that matched the search. + [DataMember(Name="parentGroup", EmitDefaultValue=false)] + public SearchResultGroupDTO ParentGroup { get; set; } + + /// + /// The nearest versioned ancestor group of the component that matched the search. + /// + /// The nearest versioned ancestor group of the component that matched the search. + [DataMember(Name="versionedGroup", EmitDefaultValue=false)] + public SearchResultGroupDTO VersionedGroup { get; set; } + + /// + /// The name of the component that matched the search. + /// + /// The name of the component that matched the search. + [DataMember(Name="name", EmitDefaultValue=false)] + public string Name { get; set; } + + /// + /// What matched the search from the component. + /// + /// What matched the search from the component. + [DataMember(Name="matches", EmitDefaultValue=false)] + public List Matches { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class ComponentSearchResultDTO {\n"); + sb.Append(" Id: ").Append(this.Id).Append("\n"); + sb.Append(" GroupId: ").Append(this.GroupId).Append("\n"); + sb.Append(" ParentGroup: ").Append(this.ParentGroup).Append("\n"); + sb.Append(" VersionedGroup: ").Append(this.VersionedGroup).Append("\n"); + sb.Append(" Name: ").Append(this.Name).Append("\n"); + sb.Append(" Matches: ").Append(this.Matches).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as ComponentSearchResultDTO); + } + + /// + /// Returns true if ComponentSearchResultDTO instances are equal + /// + /// Instance of ComponentSearchResultDTO to be compared + /// Boolean + public bool Equals(ComponentSearchResultDTO input) + { + if (input == null) + return false; + + return + ( + this.Id == input.Id || + (this.Id != null && + this.Id.Equals(input.Id)) + ) && + ( + this.GroupId == input.GroupId || + (this.GroupId != null && + this.GroupId.Equals(input.GroupId)) + ) && + ( + this.ParentGroup == input.ParentGroup || + (this.ParentGroup != null && + this.ParentGroup.Equals(input.ParentGroup)) + ) && + ( + this.VersionedGroup == input.VersionedGroup || + (this.VersionedGroup != null && + this.VersionedGroup.Equals(input.VersionedGroup)) + ) && + ( + this.Name == input.Name || + (this.Name != null && + this.Name.Equals(input.Name)) + ) && + ( + this.Matches == input.Matches || + this.Matches != null && + this.Matches.SequenceEqual(input.Matches) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Id != null) + hashCode = hashCode * 59 + this.Id.GetHashCode(); + if (this.GroupId != null) + hashCode = hashCode * 59 + this.GroupId.GetHashCode(); + if (this.ParentGroup != null) + hashCode = hashCode * 59 + this.ParentGroup.GetHashCode(); + if (this.VersionedGroup != null) + hashCode = hashCode * 59 + this.VersionedGroup.GetHashCode(); + if (this.Name != null) + hashCode = hashCode * 59 + this.Name.GetHashCode(); + if (this.Matches != null) + hashCode = hashCode * 59 + this.Matches.GetHashCode(); + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/NiFi.Swagger/Model/ComponentStateDTO.cs b/NiFi.Swagger/Model/ComponentStateDTO.cs new file mode 100644 index 0000000..03e58ac --- /dev/null +++ b/NiFi.Swagger/Model/ComponentStateDTO.cs @@ -0,0 +1,170 @@ +/* + * NiFi Rest Api + * + * The Rest Api provides programmatic access to command and control a NiFi instance in real time. Start and stop processors, monitor queues, query provenance data, and more. Each endpoint below includes a description, definitions of the expected input and output, potential response codes, and the authorizations required to invoke each service. + * + * OpenAPI spec version: 1.9.1 + * Contact: dev@nifi.apache.org + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +namespace NiFi.Swagger.Model +{ + using System; + using System.Collections.Generic; + using System.ComponentModel.DataAnnotations; + using System.Runtime.Serialization; + using System.Text; + + using Newtonsoft.Json; + + /// + /// ComponentStateDTO + /// + [DataContract] + public partial class ComponentStateDTO : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// The component identifier.. + /// Description of the state this component persists.. + /// The cluster state for this component, or null if this NiFi is a standalone instance.. + /// The local state for this component.. + public ComponentStateDTO(string componentId = default(string), string stateDescription = default(string), StateMapDTO clusterState = default(StateMapDTO), StateMapDTO localState = default(StateMapDTO)) + { + this.ComponentId = componentId; + this.StateDescription = stateDescription; + this.ClusterState = clusterState; + this.LocalState = localState; + } + + /// + /// The component identifier. + /// + /// The component identifier. + [DataMember(Name="componentId", EmitDefaultValue=false)] + public string ComponentId { get; set; } + + /// + /// Description of the state this component persists. + /// + /// Description of the state this component persists. + [DataMember(Name="stateDescription", EmitDefaultValue=false)] + public string StateDescription { get; set; } + + /// + /// The cluster state for this component, or null if this NiFi is a standalone instance. + /// + /// The cluster state for this component, or null if this NiFi is a standalone instance. + [DataMember(Name="clusterState", EmitDefaultValue=false)] + public StateMapDTO ClusterState { get; set; } + + /// + /// The local state for this component. + /// + /// The local state for this component. + [DataMember(Name="localState", EmitDefaultValue=false)] + public StateMapDTO LocalState { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class ComponentStateDTO {\n"); + sb.Append(" ComponentId: ").Append(this.ComponentId).Append("\n"); + sb.Append(" StateDescription: ").Append(this.StateDescription).Append("\n"); + sb.Append(" ClusterState: ").Append(this.ClusterState).Append("\n"); + sb.Append(" LocalState: ").Append(this.LocalState).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as ComponentStateDTO); + } + + /// + /// Returns true if ComponentStateDTO instances are equal + /// + /// Instance of ComponentStateDTO to be compared + /// Boolean + public bool Equals(ComponentStateDTO input) + { + if (input == null) + return false; + + return + ( + this.ComponentId == input.ComponentId || + (this.ComponentId != null && + this.ComponentId.Equals(input.ComponentId)) + ) && + ( + this.StateDescription == input.StateDescription || + (this.StateDescription != null && + this.StateDescription.Equals(input.StateDescription)) + ) && + ( + this.ClusterState == input.ClusterState || + (this.ClusterState != null && + this.ClusterState.Equals(input.ClusterState)) + ) && + ( + this.LocalState == input.LocalState || + (this.LocalState != null && + this.LocalState.Equals(input.LocalState)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.ComponentId != null) + hashCode = hashCode * 59 + this.ComponentId.GetHashCode(); + if (this.StateDescription != null) + hashCode = hashCode * 59 + this.StateDescription.GetHashCode(); + if (this.ClusterState != null) + hashCode = hashCode * 59 + this.ClusterState.GetHashCode(); + if (this.LocalState != null) + hashCode = hashCode * 59 + this.LocalState.GetHashCode(); + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/NiFi.Swagger/Model/ComponentStateEntity.cs b/NiFi.Swagger/Model/ComponentStateEntity.cs new file mode 100644 index 0000000..d23a9f2 --- /dev/null +++ b/NiFi.Swagger/Model/ComponentStateEntity.cs @@ -0,0 +1,119 @@ +/* + * NiFi Rest Api + * + * The Rest Api provides programmatic access to command and control a NiFi instance in real time. Start and stop processors, monitor queues, query provenance data, and more. Each endpoint below includes a description, definitions of the expected input and output, potential response codes, and the authorizations required to invoke each service. + * + * OpenAPI spec version: 1.9.1 + * Contact: dev@nifi.apache.org + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +namespace NiFi.Swagger.Model +{ + using System; + using System.Collections.Generic; + using System.ComponentModel.DataAnnotations; + using System.Runtime.Serialization; + using System.Text; + + using Newtonsoft.Json; + + /// + /// ComponentStateEntity + /// + [DataContract] + public partial class ComponentStateEntity : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// The component state.. + public ComponentStateEntity(ComponentStateDTO componentState = default(ComponentStateDTO)) + { + this.ComponentState = componentState; + } + + /// + /// The component state. + /// + /// The component state. + [DataMember(Name="componentState", EmitDefaultValue=false)] + public ComponentStateDTO ComponentState { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class ComponentStateEntity {\n"); + sb.Append(" ComponentState: ").Append(this.ComponentState).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as ComponentStateEntity); + } + + /// + /// Returns true if ComponentStateEntity instances are equal + /// + /// Instance of ComponentStateEntity to be compared + /// Boolean + public bool Equals(ComponentStateEntity input) + { + if (input == null) + return false; + + return + ( + this.ComponentState == input.ComponentState || + (this.ComponentState != null && + this.ComponentState.Equals(input.ComponentState)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.ComponentState != null) + hashCode = hashCode * 59 + this.ComponentState.GetHashCode(); + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/NiFi.Swagger/Model/ConnectableComponent.cs b/NiFi.Swagger/Model/ConnectableComponent.cs new file mode 100644 index 0000000..69586c3 --- /dev/null +++ b/NiFi.Swagger/Model/ConnectableComponent.cs @@ -0,0 +1,263 @@ +/* + * NiFi Rest Api + * + * The Rest Api provides programmatic access to command and control a NiFi instance in real time. Start and stop processors, monitor queues, query provenance data, and more. Each endpoint below includes a description, definitions of the expected input and output, potential response codes, and the authorizations required to invoke each service. + * + * OpenAPI spec version: 1.9.1 + * Contact: dev@nifi.apache.org + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +namespace NiFi.Swagger.Model +{ + using System; + using System.Collections.Generic; + using System.ComponentModel.DataAnnotations; + using System.IO; + using System.Runtime.Serialization; + using System.Text; + + using Newtonsoft.Json; + using Newtonsoft.Json.Converters; + + /// + /// ConnectableComponent + /// + [DataContract] + public partial class ConnectableComponent : IEquatable, IValidatableObject + { + /// + /// The type of component the connectable is. + /// + /// The type of component the connectable is. + [JsonConverter(typeof(StringEnumConverter))] + public enum TypeEnum + { + + /// + /// Enum PROCESSOR for value: PROCESSOR + /// + [EnumMember(Value = "PROCESSOR")] + PROCESSOR = 1, + + /// + /// Enum REMOTEINPUTPORT for value: REMOTE_INPUT_PORT + /// + [EnumMember(Value = "REMOTE_INPUT_PORT")] + REMOTEINPUTPORT = 2, + + /// + /// Enum REMOTEOUTPUTPORT for value: REMOTE_OUTPUT_PORT + /// + [EnumMember(Value = "REMOTE_OUTPUT_PORT")] + REMOTEOUTPUTPORT = 3, + + /// + /// Enum INPUTPORT for value: INPUT_PORT + /// + [EnumMember(Value = "INPUT_PORT")] + INPUTPORT = 4, + + /// + /// Enum OUTPUTPORT for value: OUTPUT_PORT + /// + [EnumMember(Value = "OUTPUT_PORT")] + OUTPUTPORT = 5, + + /// + /// Enum FUNNEL for value: FUNNEL + /// + [EnumMember(Value = "FUNNEL")] + FUNNEL = 6 + } + + /// + /// The type of component the connectable is. + /// + /// The type of component the connectable is. + [DataMember(Name="type", EmitDefaultValue=false)] + public TypeEnum Type { get; set; } + /// + /// Initializes a new instance of the class. + /// + [JsonConstructor] + protected ConnectableComponent() { } + /// + /// Initializes a new instance of the class. + /// + /// The id of the connectable component. (required). + /// The type of component the connectable is. (required). + /// The id of the group that the connectable component resides in (required). + /// The name of the connectable component. + /// The comments for the connectable component.. + public ConnectableComponent(string id = default(string), TypeEnum type = default(TypeEnum), string groupId = default(string), string name = default(string), string comments = default(string)) + { + // to ensure "id" is required (not null) + if (id == null) + { + throw new InvalidDataException("id is a required property for ConnectableComponent and cannot be null"); + } + else + { + this.Id = id; + } + // to ensure "type" is required (not null) + if (type == null) + { + throw new InvalidDataException("type is a required property for ConnectableComponent and cannot be null"); + } + else + { + this.Type = type; + } + // to ensure "groupId" is required (not null) + if (groupId == null) + { + throw new InvalidDataException("groupId is a required property for ConnectableComponent and cannot be null"); + } + else + { + this.GroupId = groupId; + } + this.Name = name; + this.Comments = comments; + } + + /// + /// The id of the connectable component. + /// + /// The id of the connectable component. + [DataMember(Name="id", EmitDefaultValue=false)] + public string Id { get; set; } + + + /// + /// The id of the group that the connectable component resides in + /// + /// The id of the group that the connectable component resides in + [DataMember(Name="groupId", EmitDefaultValue=false)] + public string GroupId { get; set; } + + /// + /// The name of the connectable component + /// + /// The name of the connectable component + [DataMember(Name="name", EmitDefaultValue=false)] + public string Name { get; set; } + + /// + /// The comments for the connectable component. + /// + /// The comments for the connectable component. + [DataMember(Name="comments", EmitDefaultValue=false)] + public string Comments { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class ConnectableComponent {\n"); + sb.Append(" Id: ").Append(this.Id).Append("\n"); + sb.Append(" Type: ").Append(this.Type).Append("\n"); + sb.Append(" GroupId: ").Append(this.GroupId).Append("\n"); + sb.Append(" Name: ").Append(this.Name).Append("\n"); + sb.Append(" Comments: ").Append(this.Comments).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as ConnectableComponent); + } + + /// + /// Returns true if ConnectableComponent instances are equal + /// + /// Instance of ConnectableComponent to be compared + /// Boolean + public bool Equals(ConnectableComponent input) + { + if (input == null) + return false; + + return + ( + this.Id == input.Id || + (this.Id != null && + this.Id.Equals(input.Id)) + ) && + ( + this.Type == input.Type || + (this.Type != null && + this.Type.Equals(input.Type)) + ) && + ( + this.GroupId == input.GroupId || + (this.GroupId != null && + this.GroupId.Equals(input.GroupId)) + ) && + ( + this.Name == input.Name || + (this.Name != null && + this.Name.Equals(input.Name)) + ) && + ( + this.Comments == input.Comments || + (this.Comments != null && + this.Comments.Equals(input.Comments)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Id != null) + hashCode = hashCode * 59 + this.Id.GetHashCode(); + if (this.Type != null) + hashCode = hashCode * 59 + this.Type.GetHashCode(); + if (this.GroupId != null) + hashCode = hashCode * 59 + this.GroupId.GetHashCode(); + if (this.Name != null) + hashCode = hashCode * 59 + this.Name.GetHashCode(); + if (this.Comments != null) + hashCode = hashCode * 59 + this.Comments.GetHashCode(); + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/NiFi.Swagger/Model/ConnectableDTO.cs b/NiFi.Swagger/Model/ConnectableDTO.cs new file mode 100644 index 0000000..3a6d933 --- /dev/null +++ b/NiFi.Swagger/Model/ConnectableDTO.cs @@ -0,0 +1,331 @@ +/* + * NiFi Rest Api + * + * The Rest Api provides programmatic access to command and control a NiFi instance in real time. Start and stop processors, monitor queues, query provenance data, and more. Each endpoint below includes a description, definitions of the expected input and output, potential response codes, and the authorizations required to invoke each service. + * + * OpenAPI spec version: 1.9.1 + * Contact: dev@nifi.apache.org + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +namespace NiFi.Swagger.Model +{ + using System; + using System.Collections.Generic; + using System.ComponentModel.DataAnnotations; + using System.IO; + using System.Runtime.Serialization; + using System.Text; + + using Newtonsoft.Json; + using Newtonsoft.Json.Converters; + + /// + /// ConnectableDTO + /// + [DataContract] + public partial class ConnectableDTO : IEquatable, IValidatableObject + { + /// + /// The type of component the connectable is. + /// + /// The type of component the connectable is. + [JsonConverter(typeof(StringEnumConverter))] + public enum TypeEnum + { + + /// + /// Enum PROCESSOR for value: PROCESSOR + /// + [EnumMember(Value = "PROCESSOR")] + PROCESSOR = 1, + + /// + /// Enum REMOTEINPUTPORT for value: REMOTE_INPUT_PORT + /// + [EnumMember(Value = "REMOTE_INPUT_PORT")] + REMOTEINPUTPORT = 2, + + /// + /// Enum REMOTEOUTPUTPORT for value: REMOTE_OUTPUT_PORT + /// + [EnumMember(Value = "REMOTE_OUTPUT_PORT")] + REMOTEOUTPUTPORT = 3, + + /// + /// Enum INPUTPORT for value: INPUT_PORT + /// + [EnumMember(Value = "INPUT_PORT")] + INPUTPORT = 4, + + /// + /// Enum OUTPUTPORT for value: OUTPUT_PORT + /// + [EnumMember(Value = "OUTPUT_PORT")] + OUTPUTPORT = 5, + + /// + /// Enum FUNNEL for value: FUNNEL + /// + [EnumMember(Value = "FUNNEL")] + FUNNEL = 6 + } + + /// + /// The type of component the connectable is. + /// + /// The type of component the connectable is. + [DataMember(Name="type", EmitDefaultValue=false)] + public TypeEnum Type { get; set; } + /// + /// Initializes a new instance of the class. + /// + [JsonConstructor] + protected ConnectableDTO() { } + /// + /// Initializes a new instance of the class. + /// + /// The id of the connectable component. (required). + /// The ID of the corresponding component that is under version control. + /// The type of component the connectable is. (required). + /// The id of the group that the connectable component resides in (required). + /// The name of the connectable component. + /// Reflects the current state of the connectable component.. + /// If the connectable component represents a remote port, indicates if the target is configured to transmit.. + /// If the connectable component represents a remote port, indicates if the target exists.. + /// The comments for the connectable component.. + public ConnectableDTO(string id = default(string), string versionedComponentId = default(string), TypeEnum type = default(TypeEnum), string groupId = default(string), string name = default(string), bool? running = default(bool?), bool? transmitting = default(bool?), bool? exists = default(bool?), string comments = default(string)) + { + // to ensure "id" is required (not null) + if (id == null) + { + throw new InvalidDataException("id is a required property for ConnectableDTO and cannot be null"); + } + else + { + this.Id = id; + } + // to ensure "type" is required (not null) + if (type == null) + { + throw new InvalidDataException("type is a required property for ConnectableDTO and cannot be null"); + } + else + { + this.Type = type; + } + // to ensure "groupId" is required (not null) + if (groupId == null) + { + throw new InvalidDataException("groupId is a required property for ConnectableDTO and cannot be null"); + } + else + { + this.GroupId = groupId; + } + this.VersionedComponentId = versionedComponentId; + this.Name = name; + this.Running = running; + this.Transmitting = transmitting; + this.Exists = exists; + this.Comments = comments; + } + + /// + /// The id of the connectable component. + /// + /// The id of the connectable component. + [DataMember(Name="id", EmitDefaultValue=false)] + public string Id { get; set; } + + /// + /// The ID of the corresponding component that is under version control + /// + /// The ID of the corresponding component that is under version control + [DataMember(Name="versionedComponentId", EmitDefaultValue=false)] + public string VersionedComponentId { get; set; } + + + /// + /// The id of the group that the connectable component resides in + /// + /// The id of the group that the connectable component resides in + [DataMember(Name="groupId", EmitDefaultValue=false)] + public string GroupId { get; set; } + + /// + /// The name of the connectable component + /// + /// The name of the connectable component + [DataMember(Name="name", EmitDefaultValue=false)] + public string Name { get; set; } + + /// + /// Reflects the current state of the connectable component. + /// + /// Reflects the current state of the connectable component. + [DataMember(Name="running", EmitDefaultValue=false)] + public bool? Running { get; set; } + + /// + /// If the connectable component represents a remote port, indicates if the target is configured to transmit. + /// + /// If the connectable component represents a remote port, indicates if the target is configured to transmit. + [DataMember(Name="transmitting", EmitDefaultValue=false)] + public bool? Transmitting { get; set; } + + /// + /// If the connectable component represents a remote port, indicates if the target exists. + /// + /// If the connectable component represents a remote port, indicates if the target exists. + [DataMember(Name="exists", EmitDefaultValue=false)] + public bool? Exists { get; set; } + + /// + /// The comments for the connectable component. + /// + /// The comments for the connectable component. + [DataMember(Name="comments", EmitDefaultValue=false)] + public string Comments { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class ConnectableDTO {\n"); + sb.Append(" Id: ").Append(this.Id).Append("\n"); + sb.Append(" VersionedComponentId: ").Append(this.VersionedComponentId).Append("\n"); + sb.Append(" Type: ").Append(this.Type).Append("\n"); + sb.Append(" GroupId: ").Append(this.GroupId).Append("\n"); + sb.Append(" Name: ").Append(this.Name).Append("\n"); + sb.Append(" Running: ").Append(this.Running).Append("\n"); + sb.Append(" Transmitting: ").Append(this.Transmitting).Append("\n"); + sb.Append(" Exists: ").Append(this.Exists).Append("\n"); + sb.Append(" Comments: ").Append(this.Comments).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as ConnectableDTO); + } + + /// + /// Returns true if ConnectableDTO instances are equal + /// + /// Instance of ConnectableDTO to be compared + /// Boolean + public bool Equals(ConnectableDTO input) + { + if (input == null) + return false; + + return + ( + this.Id == input.Id || + (this.Id != null && + this.Id.Equals(input.Id)) + ) && + ( + this.VersionedComponentId == input.VersionedComponentId || + (this.VersionedComponentId != null && + this.VersionedComponentId.Equals(input.VersionedComponentId)) + ) && + ( + this.Type == input.Type || + (this.Type != null && + this.Type.Equals(input.Type)) + ) && + ( + this.GroupId == input.GroupId || + (this.GroupId != null && + this.GroupId.Equals(input.GroupId)) + ) && + ( + this.Name == input.Name || + (this.Name != null && + this.Name.Equals(input.Name)) + ) && + ( + this.Running == input.Running || + (this.Running != null && + this.Running.Equals(input.Running)) + ) && + ( + this.Transmitting == input.Transmitting || + (this.Transmitting != null && + this.Transmitting.Equals(input.Transmitting)) + ) && + ( + this.Exists == input.Exists || + (this.Exists != null && + this.Exists.Equals(input.Exists)) + ) && + ( + this.Comments == input.Comments || + (this.Comments != null && + this.Comments.Equals(input.Comments)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Id != null) + hashCode = hashCode * 59 + this.Id.GetHashCode(); + if (this.VersionedComponentId != null) + hashCode = hashCode * 59 + this.VersionedComponentId.GetHashCode(); + if (this.Type != null) + hashCode = hashCode * 59 + this.Type.GetHashCode(); + if (this.GroupId != null) + hashCode = hashCode * 59 + this.GroupId.GetHashCode(); + if (this.Name != null) + hashCode = hashCode * 59 + this.Name.GetHashCode(); + if (this.Running != null) + hashCode = hashCode * 59 + this.Running.GetHashCode(); + if (this.Transmitting != null) + hashCode = hashCode * 59 + this.Transmitting.GetHashCode(); + if (this.Exists != null) + hashCode = hashCode * 59 + this.Exists.GetHashCode(); + if (this.Comments != null) + hashCode = hashCode * 59 + this.Comments.GetHashCode(); + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/NiFi.Swagger/Model/ConnectionDTO.cs b/NiFi.Swagger/Model/ConnectionDTO.cs new file mode 100644 index 0000000..1e29549 --- /dev/null +++ b/NiFi.Swagger/Model/ConnectionDTO.cs @@ -0,0 +1,527 @@ +/* + * NiFi Rest Api + * + * The Rest Api provides programmatic access to command and control a NiFi instance in real time. Start and stop processors, monitor queues, query provenance data, and more. Each endpoint below includes a description, definitions of the expected input and output, potential response codes, and the authorizations required to invoke each service. + * + * OpenAPI spec version: 1.9.1 + * Contact: dev@nifi.apache.org + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +namespace NiFi.Swagger.Model +{ + using System; + using System.Collections.Generic; + using System.ComponentModel.DataAnnotations; + using System.Linq; + using System.Runtime.Serialization; + using System.Text; + + using Newtonsoft.Json; + using Newtonsoft.Json.Converters; + + /// + /// ConnectionDTO + /// + [DataContract] + public partial class ConnectionDTO : IEquatable, IValidatableObject + { + /// + /// How to load balance the data in this Connection across the nodes in the cluster. + /// + /// How to load balance the data in this Connection across the nodes in the cluster. + [JsonConverter(typeof(StringEnumConverter))] + public enum LoadBalanceStrategyEnum + { + + /// + /// Enum DONOTLOADBALANCE for value: DO_NOT_LOAD_BALANCE + /// + [EnumMember(Value = "DO_NOT_LOAD_BALANCE")] + DONOTLOADBALANCE = 1, + + /// + /// Enum PARTITIONBYATTRIBUTE for value: PARTITION_BY_ATTRIBUTE + /// + [EnumMember(Value = "PARTITION_BY_ATTRIBUTE")] + PARTITIONBYATTRIBUTE = 2, + + /// + /// Enum ROUNDROBIN for value: ROUND_ROBIN + /// + [EnumMember(Value = "ROUND_ROBIN")] + ROUNDROBIN = 3, + + /// + /// Enum SINGLENODE for value: SINGLE_NODE + /// + [EnumMember(Value = "SINGLE_NODE")] + SINGLENODE = 4 + } + + /// + /// How to load balance the data in this Connection across the nodes in the cluster. + /// + /// How to load balance the data in this Connection across the nodes in the cluster. + [DataMember(Name="loadBalanceStrategy", EmitDefaultValue=false)] + public LoadBalanceStrategyEnum? LoadBalanceStrategy { get; set; } + /// + /// Whether or not data should be compressed when being transferred between nodes in the cluster. + /// + /// Whether or not data should be compressed when being transferred between nodes in the cluster. + [JsonConverter(typeof(StringEnumConverter))] + public enum LoadBalanceCompressionEnum + { + + /// + /// Enum DONOTCOMPRESS for value: DO_NOT_COMPRESS + /// + [EnumMember(Value = "DO_NOT_COMPRESS")] + DONOTCOMPRESS = 1, + + /// + /// Enum COMPRESSATTRIBUTESONLY for value: COMPRESS_ATTRIBUTES_ONLY + /// + [EnumMember(Value = "COMPRESS_ATTRIBUTES_ONLY")] + COMPRESSATTRIBUTESONLY = 2, + + /// + /// Enum COMPRESSATTRIBUTESANDCONTENT for value: COMPRESS_ATTRIBUTES_AND_CONTENT + /// + [EnumMember(Value = "COMPRESS_ATTRIBUTES_AND_CONTENT")] + COMPRESSATTRIBUTESANDCONTENT = 3 + } + + /// + /// Whether or not data should be compressed when being transferred between nodes in the cluster. + /// + /// Whether or not data should be compressed when being transferred between nodes in the cluster. + [DataMember(Name="loadBalanceCompression", EmitDefaultValue=false)] + public LoadBalanceCompressionEnum? LoadBalanceCompression { get; set; } + /// + /// The current status of the Connection's Load Balancing Activities. Status can indicate that Load Balancing is not configured for the connection, that Load Balancing is configured but inactive (not currently transferring data to another node), or that Load Balancing is configured and actively transferring data to another node. + /// + /// The current status of the Connection's Load Balancing Activities. Status can indicate that Load Balancing is not configured for the connection, that Load Balancing is configured but inactive (not currently transferring data to another node), or that Load Balancing is configured and actively transferring data to another node. + [JsonConverter(typeof(StringEnumConverter))] + public enum LoadBalanceStatusEnum + { + + /// + /// Enum NOTCONFIGURED for value: LOAD_BALANCE_NOT_CONFIGURED + /// + [EnumMember(Value = "LOAD_BALANCE_NOT_CONFIGURED")] + NOTCONFIGURED = 1, + + /// + /// Enum INACTIVE for value: LOAD_BALANCE_INACTIVE + /// + [EnumMember(Value = "LOAD_BALANCE_INACTIVE")] + INACTIVE = 2, + + /// + /// Enum ACTIVE for value: LOAD_BALANCE_ACTIVE + /// + [EnumMember(Value = "LOAD_BALANCE_ACTIVE")] + ACTIVE = 3 + } + + /// + /// The current status of the Connection's Load Balancing Activities. Status can indicate that Load Balancing is not configured for the connection, that Load Balancing is configured but inactive (not currently transferring data to another node), or that Load Balancing is configured and actively transferring data to another node. + /// + /// The current status of the Connection's Load Balancing Activities. Status can indicate that Load Balancing is not configured for the connection, that Load Balancing is configured but inactive (not currently transferring data to another node), or that Load Balancing is configured and actively transferring data to another node. + [DataMember(Name="loadBalanceStatus", EmitDefaultValue=false)] + public LoadBalanceStatusEnum? LoadBalanceStatus { get; set; } + /// + /// Initializes a new instance of the class. + /// + /// The id of the component.. + /// The ID of the corresponding component that is under version control. + /// The id of parent process group of this component if applicable.. + /// The position of this component in the UI if applicable.. + /// The source of the connection.. + /// The destination of the connection.. + /// The name of the connection.. + /// The index of the bend point where to place the connection label.. + /// The z index of the connection.. + /// The selected relationship that comprise the connection.. + /// The object count threshold for determining when back pressure is applied. Updating this value is a passive change in the sense that it won't impact whether existing files over the limit are affected but it does help feeder processors to stop pushing too much into this work queue.. + /// The object data size threshold for determining when back pressure is applied. Updating this value is a passive change in the sense that it won't impact whether existing files over the limit are affected but it does help feeder processors to stop pushing too much into this work queue.. + /// The amount of time a flow file may be in the flow before it will be automatically aged out of the flow. Once a flow file reaches this age it will be terminated from the flow the next time a processor attempts to start work on it.. + /// The comparators used to prioritize the queue.. + /// The bend points on the connection.. + /// How to load balance the data in this Connection across the nodes in the cluster.. + /// The FlowFile Attribute to use for determining which node a FlowFile will go to if the Load Balancing Strategy is set to PARTITION_BY_ATTRIBUTE. + /// Whether or not data should be compressed when being transferred between nodes in the cluster.. + public ConnectionDTO(string id = default(string), string versionedComponentId = default(string), string parentGroupId = default(string), PositionDTO position = default(PositionDTO), ConnectableDTO source = default(ConnectableDTO), ConnectableDTO destination = default(ConnectableDTO), string name = default(string), int? labelIndex = default(int?), long? getzIndex = default(long?), List selectedRelationships = default(List), long? backPressureObjectThreshold = default(long?), string backPressureDataSizeThreshold = default(string), string flowFileExpiration = default(string), List prioritizers = default(List), List bends = default(List), LoadBalanceStrategyEnum? loadBalanceStrategy = default(LoadBalanceStrategyEnum?), string loadBalancePartitionAttribute = default(string), LoadBalanceCompressionEnum? loadBalanceCompression = default(LoadBalanceCompressionEnum?)) + { + this.Id = id; + this.VersionedComponentId = versionedComponentId; + this.ParentGroupId = parentGroupId; + this.Position = position; + this.Source = source; + this.Destination = destination; + this.Name = name; + this.LabelIndex = labelIndex; + this.GetzIndex = getzIndex; + this.SelectedRelationships = selectedRelationships; + this.BackPressureObjectThreshold = backPressureObjectThreshold; + this.BackPressureDataSizeThreshold = backPressureDataSizeThreshold; + this.FlowFileExpiration = flowFileExpiration; + this.Prioritizers = prioritizers; + this.Bends = bends; + this.LoadBalanceStrategy = loadBalanceStrategy; + this.LoadBalancePartitionAttribute = loadBalancePartitionAttribute; + this.LoadBalanceCompression = loadBalanceCompression; + } + + /// + /// The id of the component. + /// + /// The id of the component. + [DataMember(Name="id", EmitDefaultValue=false)] + public string Id { get; set; } + + /// + /// The ID of the corresponding component that is under version control + /// + /// The ID of the corresponding component that is under version control + [DataMember(Name="versionedComponentId", EmitDefaultValue=false)] + public string VersionedComponentId { get; set; } + + /// + /// The id of parent process group of this component if applicable. + /// + /// The id of parent process group of this component if applicable. + [DataMember(Name="parentGroupId", EmitDefaultValue=false)] + public string ParentGroupId { get; set; } + + /// + /// The position of this component in the UI if applicable. + /// + /// The position of this component in the UI if applicable. + [DataMember(Name="position", EmitDefaultValue=false)] + public PositionDTO Position { get; set; } + + /// + /// The source of the connection. + /// + /// The source of the connection. + [DataMember(Name="source", EmitDefaultValue=false)] + public ConnectableDTO Source { get; set; } + + /// + /// The destination of the connection. + /// + /// The destination of the connection. + [DataMember(Name="destination", EmitDefaultValue=false)] + public ConnectableDTO Destination { get; set; } + + /// + /// The name of the connection. + /// + /// The name of the connection. + [DataMember(Name="name", EmitDefaultValue=false)] + public string Name { get; set; } + + /// + /// The index of the bend point where to place the connection label. + /// + /// The index of the bend point where to place the connection label. + [DataMember(Name="labelIndex", EmitDefaultValue=false)] + public int? LabelIndex { get; set; } + + /// + /// The z index of the connection. + /// + /// The z index of the connection. + [DataMember(Name="getzIndex", EmitDefaultValue=false)] + public long? GetzIndex { get; set; } + + /// + /// The selected relationship that comprise the connection. + /// + /// The selected relationship that comprise the connection. + [DataMember(Name="selectedRelationships", EmitDefaultValue=false)] + public List SelectedRelationships { get; set; } + + /// + /// The relationships that the source of the connection currently supports. + /// + /// The relationships that the source of the connection currently supports. + [DataMember(Name="availableRelationships", EmitDefaultValue=false)] + public List AvailableRelationships { get; private set; } + + /// + /// The object count threshold for determining when back pressure is applied. Updating this value is a passive change in the sense that it won't impact whether existing files over the limit are affected but it does help feeder processors to stop pushing too much into this work queue. + /// + /// The object count threshold for determining when back pressure is applied. Updating this value is a passive change in the sense that it won't impact whether existing files over the limit are affected but it does help feeder processors to stop pushing too much into this work queue. + [DataMember(Name="backPressureObjectThreshold", EmitDefaultValue=false)] + public long? BackPressureObjectThreshold { get; set; } + + /// + /// The object data size threshold for determining when back pressure is applied. Updating this value is a passive change in the sense that it won't impact whether existing files over the limit are affected but it does help feeder processors to stop pushing too much into this work queue. + /// + /// The object data size threshold for determining when back pressure is applied. Updating this value is a passive change in the sense that it won't impact whether existing files over the limit are affected but it does help feeder processors to stop pushing too much into this work queue. + [DataMember(Name="backPressureDataSizeThreshold", EmitDefaultValue=false)] + public string BackPressureDataSizeThreshold { get; set; } + + /// + /// The amount of time a flow file may be in the flow before it will be automatically aged out of the flow. Once a flow file reaches this age it will be terminated from the flow the next time a processor attempts to start work on it. + /// + /// The amount of time a flow file may be in the flow before it will be automatically aged out of the flow. Once a flow file reaches this age it will be terminated from the flow the next time a processor attempts to start work on it. + [DataMember(Name="flowFileExpiration", EmitDefaultValue=false)] + public string FlowFileExpiration { get; set; } + + /// + /// The comparators used to prioritize the queue. + /// + /// The comparators used to prioritize the queue. + [DataMember(Name="prioritizers", EmitDefaultValue=false)] + public List Prioritizers { get; set; } + + /// + /// The bend points on the connection. + /// + /// The bend points on the connection. + [DataMember(Name="bends", EmitDefaultValue=false)] + public List Bends { get; set; } + + + /// + /// The FlowFile Attribute to use for determining which node a FlowFile will go to if the Load Balancing Strategy is set to PARTITION_BY_ATTRIBUTE + /// + /// The FlowFile Attribute to use for determining which node a FlowFile will go to if the Load Balancing Strategy is set to PARTITION_BY_ATTRIBUTE + [DataMember(Name="loadBalancePartitionAttribute", EmitDefaultValue=false)] + public string LoadBalancePartitionAttribute { get; set; } + + + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class ConnectionDTO {\n"); + sb.Append(" Id: ").Append(this.Id).Append("\n"); + sb.Append(" VersionedComponentId: ").Append(this.VersionedComponentId).Append("\n"); + sb.Append(" ParentGroupId: ").Append(this.ParentGroupId).Append("\n"); + sb.Append(" Position: ").Append(this.Position).Append("\n"); + sb.Append(" Source: ").Append(this.Source).Append("\n"); + sb.Append(" Destination: ").Append(this.Destination).Append("\n"); + sb.Append(" Name: ").Append(this.Name).Append("\n"); + sb.Append(" LabelIndex: ").Append(this.LabelIndex).Append("\n"); + sb.Append(" GetzIndex: ").Append(this.GetzIndex).Append("\n"); + sb.Append(" SelectedRelationships: ").Append(this.SelectedRelationships).Append("\n"); + sb.Append(" AvailableRelationships: ").Append(this.AvailableRelationships).Append("\n"); + sb.Append(" BackPressureObjectThreshold: ").Append(this.BackPressureObjectThreshold).Append("\n"); + sb.Append(" BackPressureDataSizeThreshold: ").Append(this.BackPressureDataSizeThreshold).Append("\n"); + sb.Append(" FlowFileExpiration: ").Append(this.FlowFileExpiration).Append("\n"); + sb.Append(" Prioritizers: ").Append(this.Prioritizers).Append("\n"); + sb.Append(" Bends: ").Append(this.Bends).Append("\n"); + sb.Append(" LoadBalanceStrategy: ").Append(this.LoadBalanceStrategy).Append("\n"); + sb.Append(" LoadBalancePartitionAttribute: ").Append(this.LoadBalancePartitionAttribute).Append("\n"); + sb.Append(" LoadBalanceCompression: ").Append(this.LoadBalanceCompression).Append("\n"); + sb.Append(" LoadBalanceStatus: ").Append(this.LoadBalanceStatus).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as ConnectionDTO); + } + + /// + /// Returns true if ConnectionDTO instances are equal + /// + /// Instance of ConnectionDTO to be compared + /// Boolean + public bool Equals(ConnectionDTO input) + { + if (input == null) + return false; + + return + ( + this.Id == input.Id || + (this.Id != null && + this.Id.Equals(input.Id)) + ) && + ( + this.VersionedComponentId == input.VersionedComponentId || + (this.VersionedComponentId != null && + this.VersionedComponentId.Equals(input.VersionedComponentId)) + ) && + ( + this.ParentGroupId == input.ParentGroupId || + (this.ParentGroupId != null && + this.ParentGroupId.Equals(input.ParentGroupId)) + ) && + ( + this.Position == input.Position || + (this.Position != null && + this.Position.Equals(input.Position)) + ) && + ( + this.Source == input.Source || + (this.Source != null && + this.Source.Equals(input.Source)) + ) && + ( + this.Destination == input.Destination || + (this.Destination != null && + this.Destination.Equals(input.Destination)) + ) && + ( + this.Name == input.Name || + (this.Name != null && + this.Name.Equals(input.Name)) + ) && + ( + this.LabelIndex == input.LabelIndex || + (this.LabelIndex != null && + this.LabelIndex.Equals(input.LabelIndex)) + ) && + ( + this.GetzIndex == input.GetzIndex || + (this.GetzIndex != null && + this.GetzIndex.Equals(input.GetzIndex)) + ) && + ( + this.SelectedRelationships == input.SelectedRelationships || + this.SelectedRelationships != null && + this.SelectedRelationships.SequenceEqual(input.SelectedRelationships) + ) && + ( + this.AvailableRelationships == input.AvailableRelationships || + this.AvailableRelationships != null && + this.AvailableRelationships.SequenceEqual(input.AvailableRelationships) + ) && + ( + this.BackPressureObjectThreshold == input.BackPressureObjectThreshold || + (this.BackPressureObjectThreshold != null && + this.BackPressureObjectThreshold.Equals(input.BackPressureObjectThreshold)) + ) && + ( + this.BackPressureDataSizeThreshold == input.BackPressureDataSizeThreshold || + (this.BackPressureDataSizeThreshold != null && + this.BackPressureDataSizeThreshold.Equals(input.BackPressureDataSizeThreshold)) + ) && + ( + this.FlowFileExpiration == input.FlowFileExpiration || + (this.FlowFileExpiration != null && + this.FlowFileExpiration.Equals(input.FlowFileExpiration)) + ) && + ( + this.Prioritizers == input.Prioritizers || + this.Prioritizers != null && + this.Prioritizers.SequenceEqual(input.Prioritizers) + ) && + ( + this.Bends == input.Bends || + this.Bends != null && + this.Bends.SequenceEqual(input.Bends) + ) && + ( + this.LoadBalanceStrategy == input.LoadBalanceStrategy || + (this.LoadBalanceStrategy != null && + this.LoadBalanceStrategy.Equals(input.LoadBalanceStrategy)) + ) && + ( + this.LoadBalancePartitionAttribute == input.LoadBalancePartitionAttribute || + (this.LoadBalancePartitionAttribute != null && + this.LoadBalancePartitionAttribute.Equals(input.LoadBalancePartitionAttribute)) + ) && + ( + this.LoadBalanceCompression == input.LoadBalanceCompression || + (this.LoadBalanceCompression != null && + this.LoadBalanceCompression.Equals(input.LoadBalanceCompression)) + ) && + ( + this.LoadBalanceStatus == input.LoadBalanceStatus || + (this.LoadBalanceStatus != null && + this.LoadBalanceStatus.Equals(input.LoadBalanceStatus)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Id != null) + hashCode = hashCode * 59 + this.Id.GetHashCode(); + if (this.VersionedComponentId != null) + hashCode = hashCode * 59 + this.VersionedComponentId.GetHashCode(); + if (this.ParentGroupId != null) + hashCode = hashCode * 59 + this.ParentGroupId.GetHashCode(); + if (this.Position != null) + hashCode = hashCode * 59 + this.Position.GetHashCode(); + if (this.Source != null) + hashCode = hashCode * 59 + this.Source.GetHashCode(); + if (this.Destination != null) + hashCode = hashCode * 59 + this.Destination.GetHashCode(); + if (this.Name != null) + hashCode = hashCode * 59 + this.Name.GetHashCode(); + if (this.LabelIndex != null) + hashCode = hashCode * 59 + this.LabelIndex.GetHashCode(); + if (this.GetzIndex != null) + hashCode = hashCode * 59 + this.GetzIndex.GetHashCode(); + if (this.SelectedRelationships != null) + hashCode = hashCode * 59 + this.SelectedRelationships.GetHashCode(); + if (this.AvailableRelationships != null) + hashCode = hashCode * 59 + this.AvailableRelationships.GetHashCode(); + if (this.BackPressureObjectThreshold != null) + hashCode = hashCode * 59 + this.BackPressureObjectThreshold.GetHashCode(); + if (this.BackPressureDataSizeThreshold != null) + hashCode = hashCode * 59 + this.BackPressureDataSizeThreshold.GetHashCode(); + if (this.FlowFileExpiration != null) + hashCode = hashCode * 59 + this.FlowFileExpiration.GetHashCode(); + if (this.Prioritizers != null) + hashCode = hashCode * 59 + this.Prioritizers.GetHashCode(); + if (this.Bends != null) + hashCode = hashCode * 59 + this.Bends.GetHashCode(); + if (this.LoadBalanceStrategy != null) + hashCode = hashCode * 59 + this.LoadBalanceStrategy.GetHashCode(); + if (this.LoadBalancePartitionAttribute != null) + hashCode = hashCode * 59 + this.LoadBalancePartitionAttribute.GetHashCode(); + if (this.LoadBalanceCompression != null) + hashCode = hashCode * 59 + this.LoadBalanceCompression.GetHashCode(); + if (this.LoadBalanceStatus != null) + hashCode = hashCode * 59 + this.LoadBalanceStatus.GetHashCode(); + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/NiFi.Swagger/Model/ConnectionEntity.cs b/NiFi.Swagger/Model/ConnectionEntity.cs new file mode 100644 index 0000000..a6a25c2 --- /dev/null +++ b/NiFi.Swagger/Model/ConnectionEntity.cs @@ -0,0 +1,521 @@ +/* + * NiFi Rest Api + * + * The Rest Api provides programmatic access to command and control a NiFi instance in real time. Start and stop processors, monitor queues, query provenance data, and more. Each endpoint below includes a description, definitions of the expected input and output, potential response codes, and the authorizations required to invoke each service. + * + * OpenAPI spec version: 1.9.1 + * Contact: dev@nifi.apache.org + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +namespace NiFi.Swagger.Model +{ + using System; + using System.Collections.Generic; + using System.ComponentModel.DataAnnotations; + using System.IO; + using System.Linq; + using System.Runtime.Serialization; + using System.Text; + + using Newtonsoft.Json; + using Newtonsoft.Json.Converters; + + /// + /// ConnectionEntity + /// + [DataContract] + public partial class ConnectionEntity : IEquatable, IValidatableObject + { + /// + /// The type of component the source connectable is. + /// + /// The type of component the source connectable is. + [JsonConverter(typeof(StringEnumConverter))] + public enum SourceTypeEnum + { + + /// + /// Enum PROCESSOR for value: PROCESSOR + /// + [EnumMember(Value = "PROCESSOR")] + PROCESSOR = 1, + + /// + /// Enum REMOTEINPUTPORT for value: REMOTE_INPUT_PORT + /// + [EnumMember(Value = "REMOTE_INPUT_PORT")] + REMOTEINPUTPORT = 2, + + /// + /// Enum REMOTEOUTPUTPORT for value: REMOTE_OUTPUT_PORT + /// + [EnumMember(Value = "REMOTE_OUTPUT_PORT")] + REMOTEOUTPUTPORT = 3, + + /// + /// Enum INPUTPORT for value: INPUT_PORT + /// + [EnumMember(Value = "INPUT_PORT")] + INPUTPORT = 4, + + /// + /// Enum OUTPUTPORT for value: OUTPUT_PORT + /// + [EnumMember(Value = "OUTPUT_PORT")] + OUTPUTPORT = 5, + + /// + /// Enum FUNNEL for value: FUNNEL + /// + [EnumMember(Value = "FUNNEL")] + FUNNEL = 6 + } + + /// + /// The type of component the source connectable is. + /// + /// The type of component the source connectable is. + [DataMember(Name="sourceType", EmitDefaultValue=false)] + public SourceTypeEnum SourceType { get; set; } + /// + /// The type of component the destination connectable is. + /// + /// The type of component the destination connectable is. + [JsonConverter(typeof(StringEnumConverter))] + public enum DestinationTypeEnum + { + + /// + /// Enum PROCESSOR for value: PROCESSOR + /// + [EnumMember(Value = "PROCESSOR")] + PROCESSOR = 1, + + /// + /// Enum REMOTEINPUTPORT for value: REMOTE_INPUT_PORT + /// + [EnumMember(Value = "REMOTE_INPUT_PORT")] + REMOTEINPUTPORT = 2, + + /// + /// Enum REMOTEOUTPUTPORT for value: REMOTE_OUTPUT_PORT + /// + [EnumMember(Value = "REMOTE_OUTPUT_PORT")] + REMOTEOUTPUTPORT = 3, + + /// + /// Enum INPUTPORT for value: INPUT_PORT + /// + [EnumMember(Value = "INPUT_PORT")] + INPUTPORT = 4, + + /// + /// Enum OUTPUTPORT for value: OUTPUT_PORT + /// + [EnumMember(Value = "OUTPUT_PORT")] + OUTPUTPORT = 5, + + /// + /// Enum FUNNEL for value: FUNNEL + /// + [EnumMember(Value = "FUNNEL")] + FUNNEL = 6 + } + + /// + /// The type of component the destination connectable is. + /// + /// The type of component the destination connectable is. + [DataMember(Name="destinationType", EmitDefaultValue=false)] + public DestinationTypeEnum DestinationType { get; set; } + /// + /// Initializes a new instance of the class. + /// + [JsonConstructor] + protected ConnectionEntity() { } + /// + /// Initializes a new instance of the class. + /// + /// The revision for this request/response. The revision is required for any mutable flow requests and is included in all responses.. + /// The id of the component.. + /// The URI for futures requests to the component.. + /// The position of this component in the UI if applicable.. + /// The permissions for this component.. + /// The bulletins for this component.. + /// Acknowledges that this node is disconnected to allow for mutable requests to proceed.. + /// component. + /// The status of the connection.. + /// The bend points on the connection.. + /// The index of the bend point where to place the connection label.. + /// The z index of the connection.. + /// The identifier of the source of this connection.. + /// The identifier of the group of the source of this connection.. + /// The type of component the source connectable is. (required). + /// The identifier of the destination of this connection.. + /// The identifier of the group of the destination of this connection.. + /// The type of component the destination connectable is. (required). + public ConnectionEntity(RevisionDTO revision = default(RevisionDTO), string id = default(string), string uri = default(string), PositionDTO position = default(PositionDTO), PermissionsDTO permissions = default(PermissionsDTO), List bulletins = default(List), bool? disconnectedNodeAcknowledged = default(bool?), ConnectionDTO component = default(ConnectionDTO), ConnectionStatusDTO status = default(ConnectionStatusDTO), List bends = default(List), int? labelIndex = default(int?), long? getzIndex = default(long?), string sourceId = default(string), string sourceGroupId = default(string), SourceTypeEnum sourceType = default(SourceTypeEnum), string destinationId = default(string), string destinationGroupId = default(string), DestinationTypeEnum destinationType = default(DestinationTypeEnum)) + { + // to ensure "sourceType" is required (not null) + if (sourceType == null) + { + throw new InvalidDataException("sourceType is a required property for ConnectionEntity and cannot be null"); + } + else + { + this.SourceType = sourceType; + } + // to ensure "destinationType" is required (not null) + if (destinationType == null) + { + throw new InvalidDataException("destinationType is a required property for ConnectionEntity and cannot be null"); + } + else + { + this.DestinationType = destinationType; + } + this.Revision = revision; + this.Id = id; + this.Uri = uri; + this.Position = position; + this.Permissions = permissions; + this.Bulletins = bulletins; + this.DisconnectedNodeAcknowledged = disconnectedNodeAcknowledged; + this.Component = component; + this.Status = status; + this.Bends = bends; + this.LabelIndex = labelIndex; + this.GetzIndex = getzIndex; + this.SourceId = sourceId; + this.SourceGroupId = sourceGroupId; + this.DestinationId = destinationId; + this.DestinationGroupId = destinationGroupId; + } + + /// + /// The revision for this request/response. The revision is required for any mutable flow requests and is included in all responses. + /// + /// The revision for this request/response. The revision is required for any mutable flow requests and is included in all responses. + [DataMember(Name="revision", EmitDefaultValue=false)] + public RevisionDTO Revision { get; set; } + + /// + /// The id of the component. + /// + /// The id of the component. + [DataMember(Name="id", EmitDefaultValue=false)] + public string Id { get; set; } + + /// + /// The URI for futures requests to the component. + /// + /// The URI for futures requests to the component. + [DataMember(Name="uri", EmitDefaultValue=false)] + public string Uri { get; set; } + + /// + /// The position of this component in the UI if applicable. + /// + /// The position of this component in the UI if applicable. + [DataMember(Name="position", EmitDefaultValue=false)] + public PositionDTO Position { get; set; } + + /// + /// The permissions for this component. + /// + /// The permissions for this component. + [DataMember(Name="permissions", EmitDefaultValue=false)] + public PermissionsDTO Permissions { get; set; } + + /// + /// The bulletins for this component. + /// + /// The bulletins for this component. + [DataMember(Name="bulletins", EmitDefaultValue=false)] + public List Bulletins { get; set; } + + /// + /// Acknowledges that this node is disconnected to allow for mutable requests to proceed. + /// + /// Acknowledges that this node is disconnected to allow for mutable requests to proceed. + [DataMember(Name="disconnectedNodeAcknowledged", EmitDefaultValue=false)] + public bool? DisconnectedNodeAcknowledged { get; set; } + + /// + /// Gets or Sets Component + /// + [DataMember(Name="component", EmitDefaultValue=false)] + public ConnectionDTO Component { get; set; } + + /// + /// The status of the connection. + /// + /// The status of the connection. + [DataMember(Name="status", EmitDefaultValue=false)] + public ConnectionStatusDTO Status { get; set; } + + /// + /// The bend points on the connection. + /// + /// The bend points on the connection. + [DataMember(Name="bends", EmitDefaultValue=false)] + public List Bends { get; set; } + + /// + /// The index of the bend point where to place the connection label. + /// + /// The index of the bend point where to place the connection label. + [DataMember(Name="labelIndex", EmitDefaultValue=false)] + public int? LabelIndex { get; set; } + + /// + /// The z index of the connection. + /// + /// The z index of the connection. + [DataMember(Name="getzIndex", EmitDefaultValue=false)] + public long? GetzIndex { get; set; } + + /// + /// The identifier of the source of this connection. + /// + /// The identifier of the source of this connection. + [DataMember(Name="sourceId", EmitDefaultValue=false)] + public string SourceId { get; set; } + + /// + /// The identifier of the group of the source of this connection. + /// + /// The identifier of the group of the source of this connection. + [DataMember(Name="sourceGroupId", EmitDefaultValue=false)] + public string SourceGroupId { get; set; } + + + /// + /// The identifier of the destination of this connection. + /// + /// The identifier of the destination of this connection. + [DataMember(Name="destinationId", EmitDefaultValue=false)] + public string DestinationId { get; set; } + + /// + /// The identifier of the group of the destination of this connection. + /// + /// The identifier of the group of the destination of this connection. + [DataMember(Name="destinationGroupId", EmitDefaultValue=false)] + public string DestinationGroupId { get; set; } + + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class ConnectionEntity {\n"); + sb.Append(" Revision: ").Append(this.Revision).Append("\n"); + sb.Append(" Id: ").Append(this.Id).Append("\n"); + sb.Append(" Uri: ").Append(this.Uri).Append("\n"); + sb.Append(" Position: ").Append(this.Position).Append("\n"); + sb.Append(" Permissions: ").Append(this.Permissions).Append("\n"); + sb.Append(" Bulletins: ").Append(this.Bulletins).Append("\n"); + sb.Append(" DisconnectedNodeAcknowledged: ").Append(this.DisconnectedNodeAcknowledged).Append("\n"); + sb.Append(" Component: ").Append(this.Component).Append("\n"); + sb.Append(" Status: ").Append(this.Status).Append("\n"); + sb.Append(" Bends: ").Append(this.Bends).Append("\n"); + sb.Append(" LabelIndex: ").Append(this.LabelIndex).Append("\n"); + sb.Append(" GetzIndex: ").Append(this.GetzIndex).Append("\n"); + sb.Append(" SourceId: ").Append(this.SourceId).Append("\n"); + sb.Append(" SourceGroupId: ").Append(this.SourceGroupId).Append("\n"); + sb.Append(" SourceType: ").Append(this.SourceType).Append("\n"); + sb.Append(" DestinationId: ").Append(this.DestinationId).Append("\n"); + sb.Append(" DestinationGroupId: ").Append(this.DestinationGroupId).Append("\n"); + sb.Append(" DestinationType: ").Append(this.DestinationType).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as ConnectionEntity); + } + + /// + /// Returns true if ConnectionEntity instances are equal + /// + /// Instance of ConnectionEntity to be compared + /// Boolean + public bool Equals(ConnectionEntity input) + { + if (input == null) + return false; + + return + ( + this.Revision == input.Revision || + (this.Revision != null && + this.Revision.Equals(input.Revision)) + ) && + ( + this.Id == input.Id || + (this.Id != null && + this.Id.Equals(input.Id)) + ) && + ( + this.Uri == input.Uri || + (this.Uri != null && + this.Uri.Equals(input.Uri)) + ) && + ( + this.Position == input.Position || + (this.Position != null && + this.Position.Equals(input.Position)) + ) && + ( + this.Permissions == input.Permissions || + (this.Permissions != null && + this.Permissions.Equals(input.Permissions)) + ) && + ( + this.Bulletins == input.Bulletins || + this.Bulletins != null && + this.Bulletins.SequenceEqual(input.Bulletins) + ) && + ( + this.DisconnectedNodeAcknowledged == input.DisconnectedNodeAcknowledged || + (this.DisconnectedNodeAcknowledged != null && + this.DisconnectedNodeAcknowledged.Equals(input.DisconnectedNodeAcknowledged)) + ) && + ( + this.Component == input.Component || + (this.Component != null && + this.Component.Equals(input.Component)) + ) && + ( + this.Status == input.Status || + (this.Status != null && + this.Status.Equals(input.Status)) + ) && + ( + this.Bends == input.Bends || + this.Bends != null && + this.Bends.SequenceEqual(input.Bends) + ) && + ( + this.LabelIndex == input.LabelIndex || + (this.LabelIndex != null && + this.LabelIndex.Equals(input.LabelIndex)) + ) && + ( + this.GetzIndex == input.GetzIndex || + (this.GetzIndex != null && + this.GetzIndex.Equals(input.GetzIndex)) + ) && + ( + this.SourceId == input.SourceId || + (this.SourceId != null && + this.SourceId.Equals(input.SourceId)) + ) && + ( + this.SourceGroupId == input.SourceGroupId || + (this.SourceGroupId != null && + this.SourceGroupId.Equals(input.SourceGroupId)) + ) && + ( + this.SourceType == input.SourceType || + (this.SourceType != null && + this.SourceType.Equals(input.SourceType)) + ) && + ( + this.DestinationId == input.DestinationId || + (this.DestinationId != null && + this.DestinationId.Equals(input.DestinationId)) + ) && + ( + this.DestinationGroupId == input.DestinationGroupId || + (this.DestinationGroupId != null && + this.DestinationGroupId.Equals(input.DestinationGroupId)) + ) && + ( + this.DestinationType == input.DestinationType || + (this.DestinationType != null && + this.DestinationType.Equals(input.DestinationType)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Revision != null) + hashCode = hashCode * 59 + this.Revision.GetHashCode(); + if (this.Id != null) + hashCode = hashCode * 59 + this.Id.GetHashCode(); + if (this.Uri != null) + hashCode = hashCode * 59 + this.Uri.GetHashCode(); + if (this.Position != null) + hashCode = hashCode * 59 + this.Position.GetHashCode(); + if (this.Permissions != null) + hashCode = hashCode * 59 + this.Permissions.GetHashCode(); + if (this.Bulletins != null) + hashCode = hashCode * 59 + this.Bulletins.GetHashCode(); + if (this.DisconnectedNodeAcknowledged != null) + hashCode = hashCode * 59 + this.DisconnectedNodeAcknowledged.GetHashCode(); + if (this.Component != null) + hashCode = hashCode * 59 + this.Component.GetHashCode(); + if (this.Status != null) + hashCode = hashCode * 59 + this.Status.GetHashCode(); + if (this.Bends != null) + hashCode = hashCode * 59 + this.Bends.GetHashCode(); + if (this.LabelIndex != null) + hashCode = hashCode * 59 + this.LabelIndex.GetHashCode(); + if (this.GetzIndex != null) + hashCode = hashCode * 59 + this.GetzIndex.GetHashCode(); + if (this.SourceId != null) + hashCode = hashCode * 59 + this.SourceId.GetHashCode(); + if (this.SourceGroupId != null) + hashCode = hashCode * 59 + this.SourceGroupId.GetHashCode(); + if (this.SourceType != null) + hashCode = hashCode * 59 + this.SourceType.GetHashCode(); + if (this.DestinationId != null) + hashCode = hashCode * 59 + this.DestinationId.GetHashCode(); + if (this.DestinationGroupId != null) + hashCode = hashCode * 59 + this.DestinationGroupId.GetHashCode(); + if (this.DestinationType != null) + hashCode = hashCode * 59 + this.DestinationType.GetHashCode(); + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/NiFi.Swagger/Model/ConnectionStatusDTO.cs b/NiFi.Swagger/Model/ConnectionStatusDTO.cs new file mode 100644 index 0000000..48fd534 --- /dev/null +++ b/NiFi.Swagger/Model/ConnectionStatusDTO.cs @@ -0,0 +1,273 @@ +/* + * NiFi Rest Api + * + * The Rest Api provides programmatic access to command and control a NiFi instance in real time. Start and stop processors, monitor queues, query provenance data, and more. Each endpoint below includes a description, definitions of the expected input and output, potential response codes, and the authorizations required to invoke each service. + * + * OpenAPI spec version: 1.9.1 + * Contact: dev@nifi.apache.org + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +namespace NiFi.Swagger.Model +{ + using System; + using System.Collections.Generic; + using System.ComponentModel.DataAnnotations; + using System.Linq; + using System.Runtime.Serialization; + using System.Text; + + using Newtonsoft.Json; + + /// + /// ConnectionStatusDTO + /// + [DataContract] + public partial class ConnectionStatusDTO : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// The ID of the connection. + /// The ID of the Process Group that the connection belongs to. + /// The name of the connection. + /// The timestamp of when the stats were last refreshed. + /// The ID of the source component. + /// The name of the source component. + /// The ID of the destination component. + /// The name of the destination component. + /// The status snapshot that represents the aggregate stats of the cluster. + /// A list of status snapshots for each node. + public ConnectionStatusDTO(string id = default(string), string groupId = default(string), string name = default(string), string statsLastRefreshed = default(string), string sourceId = default(string), string sourceName = default(string), string destinationId = default(string), string destinationName = default(string), ConnectionStatusSnapshotDTO aggregateSnapshot = default(ConnectionStatusSnapshotDTO), List nodeSnapshots = default(List)) + { + this.Id = id; + this.GroupId = groupId; + this.Name = name; + this.StatsLastRefreshed = statsLastRefreshed; + this.SourceId = sourceId; + this.SourceName = sourceName; + this.DestinationId = destinationId; + this.DestinationName = destinationName; + this.AggregateSnapshot = aggregateSnapshot; + this.NodeSnapshots = nodeSnapshots; + } + + /// + /// The ID of the connection + /// + /// The ID of the connection + [DataMember(Name="id", EmitDefaultValue=false)] + public string Id { get; set; } + + /// + /// The ID of the Process Group that the connection belongs to + /// + /// The ID of the Process Group that the connection belongs to + [DataMember(Name="groupId", EmitDefaultValue=false)] + public string GroupId { get; set; } + + /// + /// The name of the connection + /// + /// The name of the connection + [DataMember(Name="name", EmitDefaultValue=false)] + public string Name { get; set; } + + /// + /// The timestamp of when the stats were last refreshed + /// + /// The timestamp of when the stats were last refreshed + [DataMember(Name="statsLastRefreshed", EmitDefaultValue=false)] + public string StatsLastRefreshed { get; set; } + + /// + /// The ID of the source component + /// + /// The ID of the source component + [DataMember(Name="sourceId", EmitDefaultValue=false)] + public string SourceId { get; set; } + + /// + /// The name of the source component + /// + /// The name of the source component + [DataMember(Name="sourceName", EmitDefaultValue=false)] + public string SourceName { get; set; } + + /// + /// The ID of the destination component + /// + /// The ID of the destination component + [DataMember(Name="destinationId", EmitDefaultValue=false)] + public string DestinationId { get; set; } + + /// + /// The name of the destination component + /// + /// The name of the destination component + [DataMember(Name="destinationName", EmitDefaultValue=false)] + public string DestinationName { get; set; } + + /// + /// The status snapshot that represents the aggregate stats of the cluster + /// + /// The status snapshot that represents the aggregate stats of the cluster + [DataMember(Name="aggregateSnapshot", EmitDefaultValue=false)] + public ConnectionStatusSnapshotDTO AggregateSnapshot { get; set; } + + /// + /// A list of status snapshots for each node + /// + /// A list of status snapshots for each node + [DataMember(Name="nodeSnapshots", EmitDefaultValue=false)] + public List NodeSnapshots { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class ConnectionStatusDTO {\n"); + sb.Append(" Id: ").Append(this.Id).Append("\n"); + sb.Append(" GroupId: ").Append(this.GroupId).Append("\n"); + sb.Append(" Name: ").Append(this.Name).Append("\n"); + sb.Append(" StatsLastRefreshed: ").Append(this.StatsLastRefreshed).Append("\n"); + sb.Append(" SourceId: ").Append(this.SourceId).Append("\n"); + sb.Append(" SourceName: ").Append(this.SourceName).Append("\n"); + sb.Append(" DestinationId: ").Append(this.DestinationId).Append("\n"); + sb.Append(" DestinationName: ").Append(this.DestinationName).Append("\n"); + sb.Append(" AggregateSnapshot: ").Append(this.AggregateSnapshot).Append("\n"); + sb.Append(" NodeSnapshots: ").Append(this.NodeSnapshots).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as ConnectionStatusDTO); + } + + /// + /// Returns true if ConnectionStatusDTO instances are equal + /// + /// Instance of ConnectionStatusDTO to be compared + /// Boolean + public bool Equals(ConnectionStatusDTO input) + { + if (input == null) + return false; + + return + ( + this.Id == input.Id || + (this.Id != null && + this.Id.Equals(input.Id)) + ) && + ( + this.GroupId == input.GroupId || + (this.GroupId != null && + this.GroupId.Equals(input.GroupId)) + ) && + ( + this.Name == input.Name || + (this.Name != null && + this.Name.Equals(input.Name)) + ) && + ( + this.StatsLastRefreshed == input.StatsLastRefreshed || + (this.StatsLastRefreshed != null && + this.StatsLastRefreshed.Equals(input.StatsLastRefreshed)) + ) && + ( + this.SourceId == input.SourceId || + (this.SourceId != null && + this.SourceId.Equals(input.SourceId)) + ) && + ( + this.SourceName == input.SourceName || + (this.SourceName != null && + this.SourceName.Equals(input.SourceName)) + ) && + ( + this.DestinationId == input.DestinationId || + (this.DestinationId != null && + this.DestinationId.Equals(input.DestinationId)) + ) && + ( + this.DestinationName == input.DestinationName || + (this.DestinationName != null && + this.DestinationName.Equals(input.DestinationName)) + ) && + ( + this.AggregateSnapshot == input.AggregateSnapshot || + (this.AggregateSnapshot != null && + this.AggregateSnapshot.Equals(input.AggregateSnapshot)) + ) && + ( + this.NodeSnapshots == input.NodeSnapshots || + this.NodeSnapshots != null && + this.NodeSnapshots.SequenceEqual(input.NodeSnapshots) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Id != null) + hashCode = hashCode * 59 + this.Id.GetHashCode(); + if (this.GroupId != null) + hashCode = hashCode * 59 + this.GroupId.GetHashCode(); + if (this.Name != null) + hashCode = hashCode * 59 + this.Name.GetHashCode(); + if (this.StatsLastRefreshed != null) + hashCode = hashCode * 59 + this.StatsLastRefreshed.GetHashCode(); + if (this.SourceId != null) + hashCode = hashCode * 59 + this.SourceId.GetHashCode(); + if (this.SourceName != null) + hashCode = hashCode * 59 + this.SourceName.GetHashCode(); + if (this.DestinationId != null) + hashCode = hashCode * 59 + this.DestinationId.GetHashCode(); + if (this.DestinationName != null) + hashCode = hashCode * 59 + this.DestinationName.GetHashCode(); + if (this.AggregateSnapshot != null) + hashCode = hashCode * 59 + this.AggregateSnapshot.GetHashCode(); + if (this.NodeSnapshots != null) + hashCode = hashCode * 59 + this.NodeSnapshots.GetHashCode(); + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/NiFi.Swagger/Model/ConnectionStatusEntity.cs b/NiFi.Swagger/Model/ConnectionStatusEntity.cs new file mode 100644 index 0000000..bad4c9d --- /dev/null +++ b/NiFi.Swagger/Model/ConnectionStatusEntity.cs @@ -0,0 +1,133 @@ +/* + * NiFi Rest Api + * + * The Rest Api provides programmatic access to command and control a NiFi instance in real time. Start and stop processors, monitor queues, query provenance data, and more. Each endpoint below includes a description, definitions of the expected input and output, potential response codes, and the authorizations required to invoke each service. + * + * OpenAPI spec version: 1.9.1 + * Contact: dev@nifi.apache.org + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +namespace NiFi.Swagger.Model +{ + using System; + using System.Collections.Generic; + using System.ComponentModel.DataAnnotations; + using System.Runtime.Serialization; + using System.Text; + + using Newtonsoft.Json; + + /// + /// ConnectionStatusEntity + /// + [DataContract] + public partial class ConnectionStatusEntity : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// connectionStatus. + public ConnectionStatusEntity(ConnectionStatusDTO connectionStatus = default(ConnectionStatusDTO)) + { + this.ConnectionStatus = connectionStatus; + } + + /// + /// Gets or Sets ConnectionStatus + /// + [DataMember(Name="connectionStatus", EmitDefaultValue=false)] + public ConnectionStatusDTO ConnectionStatus { get; set; } + + /// + /// Indicates whether the user can read a given resource. + /// + /// Indicates whether the user can read a given resource. + [DataMember(Name="canRead", EmitDefaultValue=false)] + public bool? CanRead { get; private set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class ConnectionStatusEntity {\n"); + sb.Append(" ConnectionStatus: ").Append(this.ConnectionStatus).Append("\n"); + sb.Append(" CanRead: ").Append(this.CanRead).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as ConnectionStatusEntity); + } + + /// + /// Returns true if ConnectionStatusEntity instances are equal + /// + /// Instance of ConnectionStatusEntity to be compared + /// Boolean + public bool Equals(ConnectionStatusEntity input) + { + if (input == null) + return false; + + return + ( + this.ConnectionStatus == input.ConnectionStatus || + (this.ConnectionStatus != null && + this.ConnectionStatus.Equals(input.ConnectionStatus)) + ) && + ( + this.CanRead == input.CanRead || + (this.CanRead != null && + this.CanRead.Equals(input.CanRead)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.ConnectionStatus != null) + hashCode = hashCode * 59 + this.ConnectionStatus.GetHashCode(); + if (this.CanRead != null) + hashCode = hashCode * 59 + this.CanRead.GetHashCode(); + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/NiFi.Swagger/Model/ConnectionStatusSnapshotDTO.cs b/NiFi.Swagger/Model/ConnectionStatusSnapshotDTO.cs new file mode 100644 index 0000000..b41e53c --- /dev/null +++ b/NiFi.Swagger/Model/ConnectionStatusSnapshotDTO.cs @@ -0,0 +1,442 @@ +/* + * NiFi Rest Api + * + * The Rest Api provides programmatic access to command and control a NiFi instance in real time. Start and stop processors, monitor queues, query provenance data, and more. Each endpoint below includes a description, definitions of the expected input and output, potential response codes, and the authorizations required to invoke each service. + * + * OpenAPI spec version: 1.9.1 + * Contact: dev@nifi.apache.org + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +namespace NiFi.Swagger.Model +{ + using System; + using System.Collections.Generic; + using System.ComponentModel.DataAnnotations; + using System.Runtime.Serialization; + using System.Text; + + using Newtonsoft.Json; + + /// + /// ConnectionStatusSnapshotDTO + /// + [DataContract] + public partial class ConnectionStatusSnapshotDTO : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// The id of the connection.. + /// The id of the process group the connection belongs to.. + /// The name of the connection.. + /// The id of the source of the connection.. + /// The name of the source of the connection.. + /// The id of the destination of the connection.. + /// The name of the destination of the connection.. + /// The number of FlowFiles that have come into the connection in the last 5 minutes.. + /// The size of the FlowFiles that have come into the connection in the last 5 minutes.. + /// The input count/size for the connection in the last 5 minutes, pretty printed.. + /// The number of FlowFiles that have left the connection in the last 5 minutes.. + /// The number of bytes that have left the connection in the last 5 minutes.. + /// The output count/sie for the connection in the last 5 minutes, pretty printed.. + /// The number of FlowFiles that are currently queued in the connection.. + /// The size of the FlowFiles that are currently queued in the connection.. + /// The total count and size of queued flowfiles formatted.. + /// The total size of flowfiles that are queued formatted.. + /// The number of flowfiles that are queued, pretty printed.. + /// Connection percent use regarding queued flow files count and backpressure threshold if configured.. + /// Connection percent use regarding queued flow files size and backpressure threshold if configured.. + public ConnectionStatusSnapshotDTO(string id = default(string), string groupId = default(string), string name = default(string), string sourceId = default(string), string sourceName = default(string), string destinationId = default(string), string destinationName = default(string), int? flowFilesIn = default(int?), long? bytesIn = default(long?), string input = default(string), int? flowFilesOut = default(int?), long? bytesOut = default(long?), string output = default(string), int? flowFilesQueued = default(int?), long? bytesQueued = default(long?), string queued = default(string), string queuedSize = default(string), string queuedCount = default(string), int? percentUseCount = default(int?), int? percentUseBytes = default(int?)) + { + this.Id = id; + this.GroupId = groupId; + this.Name = name; + this.SourceId = sourceId; + this.SourceName = sourceName; + this.DestinationId = destinationId; + this.DestinationName = destinationName; + this.FlowFilesIn = flowFilesIn; + this.BytesIn = bytesIn; + this.Input = input; + this.FlowFilesOut = flowFilesOut; + this.BytesOut = bytesOut; + this.Output = output; + this.FlowFilesQueued = flowFilesQueued; + this.BytesQueued = bytesQueued; + this.Queued = queued; + this.QueuedSize = queuedSize; + this.QueuedCount = queuedCount; + this.PercentUseCount = percentUseCount; + this.PercentUseBytes = percentUseBytes; + } + + /// + /// The id of the connection. + /// + /// The id of the connection. + [DataMember(Name="id", EmitDefaultValue=false)] + public string Id { get; set; } + + /// + /// The id of the process group the connection belongs to. + /// + /// The id of the process group the connection belongs to. + [DataMember(Name="groupId", EmitDefaultValue=false)] + public string GroupId { get; set; } + + /// + /// The name of the connection. + /// + /// The name of the connection. + [DataMember(Name="name", EmitDefaultValue=false)] + public string Name { get; set; } + + /// + /// The id of the source of the connection. + /// + /// The id of the source of the connection. + [DataMember(Name="sourceId", EmitDefaultValue=false)] + public string SourceId { get; set; } + + /// + /// The name of the source of the connection. + /// + /// The name of the source of the connection. + [DataMember(Name="sourceName", EmitDefaultValue=false)] + public string SourceName { get; set; } + + /// + /// The id of the destination of the connection. + /// + /// The id of the destination of the connection. + [DataMember(Name="destinationId", EmitDefaultValue=false)] + public string DestinationId { get; set; } + + /// + /// The name of the destination of the connection. + /// + /// The name of the destination of the connection. + [DataMember(Name="destinationName", EmitDefaultValue=false)] + public string DestinationName { get; set; } + + /// + /// The number of FlowFiles that have come into the connection in the last 5 minutes. + /// + /// The number of FlowFiles that have come into the connection in the last 5 minutes. + [DataMember(Name="flowFilesIn", EmitDefaultValue=false)] + public int? FlowFilesIn { get; set; } + + /// + /// The size of the FlowFiles that have come into the connection in the last 5 minutes. + /// + /// The size of the FlowFiles that have come into the connection in the last 5 minutes. + [DataMember(Name="bytesIn", EmitDefaultValue=false)] + public long? BytesIn { get; set; } + + /// + /// The input count/size for the connection in the last 5 minutes, pretty printed. + /// + /// The input count/size for the connection in the last 5 minutes, pretty printed. + [DataMember(Name="input", EmitDefaultValue=false)] + public string Input { get; set; } + + /// + /// The number of FlowFiles that have left the connection in the last 5 minutes. + /// + /// The number of FlowFiles that have left the connection in the last 5 minutes. + [DataMember(Name="flowFilesOut", EmitDefaultValue=false)] + public int? FlowFilesOut { get; set; } + + /// + /// The number of bytes that have left the connection in the last 5 minutes. + /// + /// The number of bytes that have left the connection in the last 5 minutes. + [DataMember(Name="bytesOut", EmitDefaultValue=false)] + public long? BytesOut { get; set; } + + /// + /// The output count/sie for the connection in the last 5 minutes, pretty printed. + /// + /// The output count/sie for the connection in the last 5 minutes, pretty printed. + [DataMember(Name="output", EmitDefaultValue=false)] + public string Output { get; set; } + + /// + /// The number of FlowFiles that are currently queued in the connection. + /// + /// The number of FlowFiles that are currently queued in the connection. + [DataMember(Name="flowFilesQueued", EmitDefaultValue=false)] + public int? FlowFilesQueued { get; set; } + + /// + /// The size of the FlowFiles that are currently queued in the connection. + /// + /// The size of the FlowFiles that are currently queued in the connection. + [DataMember(Name="bytesQueued", EmitDefaultValue=false)] + public long? BytesQueued { get; set; } + + /// + /// The total count and size of queued flowfiles formatted. + /// + /// The total count and size of queued flowfiles formatted. + [DataMember(Name="queued", EmitDefaultValue=false)] + public string Queued { get; set; } + + /// + /// The total size of flowfiles that are queued formatted. + /// + /// The total size of flowfiles that are queued formatted. + [DataMember(Name="queuedSize", EmitDefaultValue=false)] + public string QueuedSize { get; set; } + + /// + /// The number of flowfiles that are queued, pretty printed. + /// + /// The number of flowfiles that are queued, pretty printed. + [DataMember(Name="queuedCount", EmitDefaultValue=false)] + public string QueuedCount { get; set; } + + /// + /// Connection percent use regarding queued flow files count and backpressure threshold if configured. + /// + /// Connection percent use regarding queued flow files count and backpressure threshold if configured. + [DataMember(Name="percentUseCount", EmitDefaultValue=false)] + public int? PercentUseCount { get; set; } + + /// + /// Connection percent use regarding queued flow files size and backpressure threshold if configured. + /// + /// Connection percent use regarding queued flow files size and backpressure threshold if configured. + [DataMember(Name="percentUseBytes", EmitDefaultValue=false)] + public int? PercentUseBytes { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class ConnectionStatusSnapshotDTO {\n"); + sb.Append(" Id: ").Append(this.Id).Append("\n"); + sb.Append(" GroupId: ").Append(this.GroupId).Append("\n"); + sb.Append(" Name: ").Append(this.Name).Append("\n"); + sb.Append(" SourceId: ").Append(this.SourceId).Append("\n"); + sb.Append(" SourceName: ").Append(this.SourceName).Append("\n"); + sb.Append(" DestinationId: ").Append(this.DestinationId).Append("\n"); + sb.Append(" DestinationName: ").Append(this.DestinationName).Append("\n"); + sb.Append(" FlowFilesIn: ").Append(this.FlowFilesIn).Append("\n"); + sb.Append(" BytesIn: ").Append(this.BytesIn).Append("\n"); + sb.Append(" Input: ").Append(this.Input).Append("\n"); + sb.Append(" FlowFilesOut: ").Append(this.FlowFilesOut).Append("\n"); + sb.Append(" BytesOut: ").Append(this.BytesOut).Append("\n"); + sb.Append(" Output: ").Append(this.Output).Append("\n"); + sb.Append(" FlowFilesQueued: ").Append(this.FlowFilesQueued).Append("\n"); + sb.Append(" BytesQueued: ").Append(this.BytesQueued).Append("\n"); + sb.Append(" Queued: ").Append(this.Queued).Append("\n"); + sb.Append(" QueuedSize: ").Append(this.QueuedSize).Append("\n"); + sb.Append(" QueuedCount: ").Append(this.QueuedCount).Append("\n"); + sb.Append(" PercentUseCount: ").Append(this.PercentUseCount).Append("\n"); + sb.Append(" PercentUseBytes: ").Append(this.PercentUseBytes).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as ConnectionStatusSnapshotDTO); + } + + /// + /// Returns true if ConnectionStatusSnapshotDTO instances are equal + /// + /// Instance of ConnectionStatusSnapshotDTO to be compared + /// Boolean + public bool Equals(ConnectionStatusSnapshotDTO input) + { + if (input == null) + return false; + + return + ( + this.Id == input.Id || + (this.Id != null && + this.Id.Equals(input.Id)) + ) && + ( + this.GroupId == input.GroupId || + (this.GroupId != null && + this.GroupId.Equals(input.GroupId)) + ) && + ( + this.Name == input.Name || + (this.Name != null && + this.Name.Equals(input.Name)) + ) && + ( + this.SourceId == input.SourceId || + (this.SourceId != null && + this.SourceId.Equals(input.SourceId)) + ) && + ( + this.SourceName == input.SourceName || + (this.SourceName != null && + this.SourceName.Equals(input.SourceName)) + ) && + ( + this.DestinationId == input.DestinationId || + (this.DestinationId != null && + this.DestinationId.Equals(input.DestinationId)) + ) && + ( + this.DestinationName == input.DestinationName || + (this.DestinationName != null && + this.DestinationName.Equals(input.DestinationName)) + ) && + ( + this.FlowFilesIn == input.FlowFilesIn || + (this.FlowFilesIn != null && + this.FlowFilesIn.Equals(input.FlowFilesIn)) + ) && + ( + this.BytesIn == input.BytesIn || + (this.BytesIn != null && + this.BytesIn.Equals(input.BytesIn)) + ) && + ( + this.Input == input.Input || + (this.Input != null && + this.Input.Equals(input.Input)) + ) && + ( + this.FlowFilesOut == input.FlowFilesOut || + (this.FlowFilesOut != null && + this.FlowFilesOut.Equals(input.FlowFilesOut)) + ) && + ( + this.BytesOut == input.BytesOut || + (this.BytesOut != null && + this.BytesOut.Equals(input.BytesOut)) + ) && + ( + this.Output == input.Output || + (this.Output != null && + this.Output.Equals(input.Output)) + ) && + ( + this.FlowFilesQueued == input.FlowFilesQueued || + (this.FlowFilesQueued != null && + this.FlowFilesQueued.Equals(input.FlowFilesQueued)) + ) && + ( + this.BytesQueued == input.BytesQueued || + (this.BytesQueued != null && + this.BytesQueued.Equals(input.BytesQueued)) + ) && + ( + this.Queued == input.Queued || + (this.Queued != null && + this.Queued.Equals(input.Queued)) + ) && + ( + this.QueuedSize == input.QueuedSize || + (this.QueuedSize != null && + this.QueuedSize.Equals(input.QueuedSize)) + ) && + ( + this.QueuedCount == input.QueuedCount || + (this.QueuedCount != null && + this.QueuedCount.Equals(input.QueuedCount)) + ) && + ( + this.PercentUseCount == input.PercentUseCount || + (this.PercentUseCount != null && + this.PercentUseCount.Equals(input.PercentUseCount)) + ) && + ( + this.PercentUseBytes == input.PercentUseBytes || + (this.PercentUseBytes != null && + this.PercentUseBytes.Equals(input.PercentUseBytes)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Id != null) + hashCode = hashCode * 59 + this.Id.GetHashCode(); + if (this.GroupId != null) + hashCode = hashCode * 59 + this.GroupId.GetHashCode(); + if (this.Name != null) + hashCode = hashCode * 59 + this.Name.GetHashCode(); + if (this.SourceId != null) + hashCode = hashCode * 59 + this.SourceId.GetHashCode(); + if (this.SourceName != null) + hashCode = hashCode * 59 + this.SourceName.GetHashCode(); + if (this.DestinationId != null) + hashCode = hashCode * 59 + this.DestinationId.GetHashCode(); + if (this.DestinationName != null) + hashCode = hashCode * 59 + this.DestinationName.GetHashCode(); + if (this.FlowFilesIn != null) + hashCode = hashCode * 59 + this.FlowFilesIn.GetHashCode(); + if (this.BytesIn != null) + hashCode = hashCode * 59 + this.BytesIn.GetHashCode(); + if (this.Input != null) + hashCode = hashCode * 59 + this.Input.GetHashCode(); + if (this.FlowFilesOut != null) + hashCode = hashCode * 59 + this.FlowFilesOut.GetHashCode(); + if (this.BytesOut != null) + hashCode = hashCode * 59 + this.BytesOut.GetHashCode(); + if (this.Output != null) + hashCode = hashCode * 59 + this.Output.GetHashCode(); + if (this.FlowFilesQueued != null) + hashCode = hashCode * 59 + this.FlowFilesQueued.GetHashCode(); + if (this.BytesQueued != null) + hashCode = hashCode * 59 + this.BytesQueued.GetHashCode(); + if (this.Queued != null) + hashCode = hashCode * 59 + this.Queued.GetHashCode(); + if (this.QueuedSize != null) + hashCode = hashCode * 59 + this.QueuedSize.GetHashCode(); + if (this.QueuedCount != null) + hashCode = hashCode * 59 + this.QueuedCount.GetHashCode(); + if (this.PercentUseCount != null) + hashCode = hashCode * 59 + this.PercentUseCount.GetHashCode(); + if (this.PercentUseBytes != null) + hashCode = hashCode * 59 + this.PercentUseBytes.GetHashCode(); + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/NiFi.Swagger/Model/ConnectionStatusSnapshotEntity.cs b/NiFi.Swagger/Model/ConnectionStatusSnapshotEntity.cs new file mode 100644 index 0000000..911c773 --- /dev/null +++ b/NiFi.Swagger/Model/ConnectionStatusSnapshotEntity.cs @@ -0,0 +1,150 @@ +/* + * NiFi Rest Api + * + * The Rest Api provides programmatic access to command and control a NiFi instance in real time. Start and stop processors, monitor queues, query provenance data, and more. Each endpoint below includes a description, definitions of the expected input and output, potential response codes, and the authorizations required to invoke each service. + * + * OpenAPI spec version: 1.9.1 + * Contact: dev@nifi.apache.org + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +namespace NiFi.Swagger.Model +{ + using System; + using System.Collections.Generic; + using System.ComponentModel.DataAnnotations; + using System.Runtime.Serialization; + using System.Text; + + using Newtonsoft.Json; + + /// + /// ConnectionStatusSnapshotEntity + /// + [DataContract] + public partial class ConnectionStatusSnapshotEntity : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// The id of the connection.. + /// connectionStatusSnapshot. + public ConnectionStatusSnapshotEntity(string id = default(string), ConnectionStatusSnapshotDTO connectionStatusSnapshot = default(ConnectionStatusSnapshotDTO)) + { + this.Id = id; + this.ConnectionStatusSnapshot = connectionStatusSnapshot; + } + + /// + /// The id of the connection. + /// + /// The id of the connection. + [DataMember(Name="id", EmitDefaultValue=false)] + public string Id { get; set; } + + /// + /// Gets or Sets ConnectionStatusSnapshot + /// + [DataMember(Name="connectionStatusSnapshot", EmitDefaultValue=false)] + public ConnectionStatusSnapshotDTO ConnectionStatusSnapshot { get; set; } + + /// + /// Indicates whether the user can read a given resource. + /// + /// Indicates whether the user can read a given resource. + [DataMember(Name="canRead", EmitDefaultValue=false)] + public bool? CanRead { get; private set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class ConnectionStatusSnapshotEntity {\n"); + sb.Append(" Id: ").Append(this.Id).Append("\n"); + sb.Append(" ConnectionStatusSnapshot: ").Append(this.ConnectionStatusSnapshot).Append("\n"); + sb.Append(" CanRead: ").Append(this.CanRead).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as ConnectionStatusSnapshotEntity); + } + + /// + /// Returns true if ConnectionStatusSnapshotEntity instances are equal + /// + /// Instance of ConnectionStatusSnapshotEntity to be compared + /// Boolean + public bool Equals(ConnectionStatusSnapshotEntity input) + { + if (input == null) + return false; + + return + ( + this.Id == input.Id || + (this.Id != null && + this.Id.Equals(input.Id)) + ) && + ( + this.ConnectionStatusSnapshot == input.ConnectionStatusSnapshot || + (this.ConnectionStatusSnapshot != null && + this.ConnectionStatusSnapshot.Equals(input.ConnectionStatusSnapshot)) + ) && + ( + this.CanRead == input.CanRead || + (this.CanRead != null && + this.CanRead.Equals(input.CanRead)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Id != null) + hashCode = hashCode * 59 + this.Id.GetHashCode(); + if (this.ConnectionStatusSnapshot != null) + hashCode = hashCode * 59 + this.ConnectionStatusSnapshot.GetHashCode(); + if (this.CanRead != null) + hashCode = hashCode * 59 + this.CanRead.GetHashCode(); + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/NiFi.Swagger/Model/ConnectionsEntity.cs b/NiFi.Swagger/Model/ConnectionsEntity.cs new file mode 100644 index 0000000..5eab93f --- /dev/null +++ b/NiFi.Swagger/Model/ConnectionsEntity.cs @@ -0,0 +1,119 @@ +/* + * NiFi Rest Api + * + * The Rest Api provides programmatic access to command and control a NiFi instance in real time. Start and stop processors, monitor queues, query provenance data, and more. Each endpoint below includes a description, definitions of the expected input and output, potential response codes, and the authorizations required to invoke each service. + * + * OpenAPI spec version: 1.9.1 + * Contact: dev@nifi.apache.org + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +namespace NiFi.Swagger.Model +{ + using System; + using System.Collections.Generic; + using System.ComponentModel.DataAnnotations; + using System.Linq; + using System.Runtime.Serialization; + using System.Text; + + using Newtonsoft.Json; + + /// + /// ConnectionsEntity + /// + [DataContract] + public partial class ConnectionsEntity : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// connections. + public ConnectionsEntity(List connections = default(List)) + { + this.Connections = connections; + } + + /// + /// Gets or Sets Connections + /// + [DataMember(Name="connections", EmitDefaultValue=false)] + public List Connections { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class ConnectionsEntity {\n"); + sb.Append(" Connections: ").Append(this.Connections).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as ConnectionsEntity); + } + + /// + /// Returns true if ConnectionsEntity instances are equal + /// + /// Instance of ConnectionsEntity to be compared + /// Boolean + public bool Equals(ConnectionsEntity input) + { + if (input == null) + return false; + + return + ( + this.Connections == input.Connections || + this.Connections != null && + this.Connections.SequenceEqual(input.Connections) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Connections != null) + hashCode = hashCode * 59 + this.Connections.GetHashCode(); + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/NiFi.Swagger/Model/ControllerBulletinsEntity.cs b/NiFi.Swagger/Model/ControllerBulletinsEntity.cs new file mode 100644 index 0000000..2148d4b --- /dev/null +++ b/NiFi.Swagger/Model/ControllerBulletinsEntity.cs @@ -0,0 +1,154 @@ +/* + * NiFi Rest Api + * + * The Rest Api provides programmatic access to command and control a NiFi instance in real time. Start and stop processors, monitor queues, query provenance data, and more. Each endpoint below includes a description, definitions of the expected input and output, potential response codes, and the authorizations required to invoke each service. + * + * OpenAPI spec version: 1.9.1 + * Contact: dev@nifi.apache.org + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +namespace NiFi.Swagger.Model +{ + using System; + using System.Collections.Generic; + using System.ComponentModel.DataAnnotations; + using System.Linq; + using System.Runtime.Serialization; + using System.Text; + + using Newtonsoft.Json; + + /// + /// ControllerBulletinsEntity + /// + [DataContract] + public partial class ControllerBulletinsEntity : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// System level bulletins to be reported to the user.. + /// Controller service bulletins to be reported to the user.. + /// Reporting task bulletins to be reported to the user.. + public ControllerBulletinsEntity(List bulletins = default(List), List controllerServiceBulletins = default(List), List reportingTaskBulletins = default(List)) + { + this.Bulletins = bulletins; + this.ControllerServiceBulletins = controllerServiceBulletins; + this.ReportingTaskBulletins = reportingTaskBulletins; + } + + /// + /// System level bulletins to be reported to the user. + /// + /// System level bulletins to be reported to the user. + [DataMember(Name="bulletins", EmitDefaultValue=false)] + public List Bulletins { get; set; } + + /// + /// Controller service bulletins to be reported to the user. + /// + /// Controller service bulletins to be reported to the user. + [DataMember(Name="controllerServiceBulletins", EmitDefaultValue=false)] + public List ControllerServiceBulletins { get; set; } + + /// + /// Reporting task bulletins to be reported to the user. + /// + /// Reporting task bulletins to be reported to the user. + [DataMember(Name="reportingTaskBulletins", EmitDefaultValue=false)] + public List ReportingTaskBulletins { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class ControllerBulletinsEntity {\n"); + sb.Append(" Bulletins: ").Append(this.Bulletins).Append("\n"); + sb.Append(" ControllerServiceBulletins: ").Append(this.ControllerServiceBulletins).Append("\n"); + sb.Append(" ReportingTaskBulletins: ").Append(this.ReportingTaskBulletins).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as ControllerBulletinsEntity); + } + + /// + /// Returns true if ControllerBulletinsEntity instances are equal + /// + /// Instance of ControllerBulletinsEntity to be compared + /// Boolean + public bool Equals(ControllerBulletinsEntity input) + { + if (input == null) + return false; + + return + ( + this.Bulletins == input.Bulletins || + this.Bulletins != null && + this.Bulletins.SequenceEqual(input.Bulletins) + ) && + ( + this.ControllerServiceBulletins == input.ControllerServiceBulletins || + this.ControllerServiceBulletins != null && + this.ControllerServiceBulletins.SequenceEqual(input.ControllerServiceBulletins) + ) && + ( + this.ReportingTaskBulletins == input.ReportingTaskBulletins || + this.ReportingTaskBulletins != null && + this.ReportingTaskBulletins.SequenceEqual(input.ReportingTaskBulletins) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Bulletins != null) + hashCode = hashCode * 59 + this.Bulletins.GetHashCode(); + if (this.ControllerServiceBulletins != null) + hashCode = hashCode * 59 + this.ControllerServiceBulletins.GetHashCode(); + if (this.ReportingTaskBulletins != null) + hashCode = hashCode * 59 + this.ReportingTaskBulletins.GetHashCode(); + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/NiFi.Swagger/Model/ControllerConfigurationDTO.cs b/NiFi.Swagger/Model/ControllerConfigurationDTO.cs new file mode 100644 index 0000000..a6119e7 --- /dev/null +++ b/NiFi.Swagger/Model/ControllerConfigurationDTO.cs @@ -0,0 +1,136 @@ +/* + * NiFi Rest Api + * + * The Rest Api provides programmatic access to command and control a NiFi instance in real time. Start and stop processors, monitor queues, query provenance data, and more. Each endpoint below includes a description, definitions of the expected input and output, potential response codes, and the authorizations required to invoke each service. + * + * OpenAPI spec version: 1.9.1 + * Contact: dev@nifi.apache.org + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +namespace NiFi.Swagger.Model +{ + using System; + using System.Collections.Generic; + using System.ComponentModel.DataAnnotations; + using System.Runtime.Serialization; + using System.Text; + + using Newtonsoft.Json; + + /// + /// ControllerConfigurationDTO + /// + [DataContract] + public partial class ControllerConfigurationDTO : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// The maximum number of timer driven threads the NiFi has available.. + /// The maximum number of event driven threads the NiFi has available.. + public ControllerConfigurationDTO(int? maxTimerDrivenThreadCount = default(int?), int? maxEventDrivenThreadCount = default(int?)) + { + this.MaxTimerDrivenThreadCount = maxTimerDrivenThreadCount; + this.MaxEventDrivenThreadCount = maxEventDrivenThreadCount; + } + + /// + /// The maximum number of timer driven threads the NiFi has available. + /// + /// The maximum number of timer driven threads the NiFi has available. + [DataMember(Name="maxTimerDrivenThreadCount", EmitDefaultValue=false)] + public int? MaxTimerDrivenThreadCount { get; set; } + + /// + /// The maximum number of event driven threads the NiFi has available. + /// + /// The maximum number of event driven threads the NiFi has available. + [DataMember(Name="maxEventDrivenThreadCount", EmitDefaultValue=false)] + public int? MaxEventDrivenThreadCount { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class ControllerConfigurationDTO {\n"); + sb.Append(" MaxTimerDrivenThreadCount: ").Append(this.MaxTimerDrivenThreadCount).Append("\n"); + sb.Append(" MaxEventDrivenThreadCount: ").Append(this.MaxEventDrivenThreadCount).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as ControllerConfigurationDTO); + } + + /// + /// Returns true if ControllerConfigurationDTO instances are equal + /// + /// Instance of ControllerConfigurationDTO to be compared + /// Boolean + public bool Equals(ControllerConfigurationDTO input) + { + if (input == null) + return false; + + return + ( + this.MaxTimerDrivenThreadCount == input.MaxTimerDrivenThreadCount || + (this.MaxTimerDrivenThreadCount != null && + this.MaxTimerDrivenThreadCount.Equals(input.MaxTimerDrivenThreadCount)) + ) && + ( + this.MaxEventDrivenThreadCount == input.MaxEventDrivenThreadCount || + (this.MaxEventDrivenThreadCount != null && + this.MaxEventDrivenThreadCount.Equals(input.MaxEventDrivenThreadCount)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.MaxTimerDrivenThreadCount != null) + hashCode = hashCode * 59 + this.MaxTimerDrivenThreadCount.GetHashCode(); + if (this.MaxEventDrivenThreadCount != null) + hashCode = hashCode * 59 + this.MaxEventDrivenThreadCount.GetHashCode(); + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/NiFi.Swagger/Model/ControllerConfigurationEntity.cs b/NiFi.Swagger/Model/ControllerConfigurationEntity.cs new file mode 100644 index 0000000..6c51c33 --- /dev/null +++ b/NiFi.Swagger/Model/ControllerConfigurationEntity.cs @@ -0,0 +1,170 @@ +/* + * NiFi Rest Api + * + * The Rest Api provides programmatic access to command and control a NiFi instance in real time. Start and stop processors, monitor queues, query provenance data, and more. Each endpoint below includes a description, definitions of the expected input and output, potential response codes, and the authorizations required to invoke each service. + * + * OpenAPI spec version: 1.9.1 + * Contact: dev@nifi.apache.org + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +namespace NiFi.Swagger.Model +{ + using System; + using System.Collections.Generic; + using System.ComponentModel.DataAnnotations; + using System.Runtime.Serialization; + using System.Text; + + using Newtonsoft.Json; + + /// + /// ControllerConfigurationEntity + /// + [DataContract] + public partial class ControllerConfigurationEntity : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// The revision for this request/response. The revision is required for any mutable flow requests and is included in all responses.. + /// The permissions for this component.. + /// Acknowledges that this node is disconnected to allow for mutable requests to proceed.. + /// The controller configuration.. + public ControllerConfigurationEntity(RevisionDTO revision = default(RevisionDTO), PermissionsDTO permissions = default(PermissionsDTO), bool? disconnectedNodeAcknowledged = default(bool?), ControllerConfigurationDTO component = default(ControllerConfigurationDTO)) + { + this.Revision = revision; + this.Permissions = permissions; + this.DisconnectedNodeAcknowledged = disconnectedNodeAcknowledged; + this.Component = component; + } + + /// + /// The revision for this request/response. The revision is required for any mutable flow requests and is included in all responses. + /// + /// The revision for this request/response. The revision is required for any mutable flow requests and is included in all responses. + [DataMember(Name="revision", EmitDefaultValue=false)] + public RevisionDTO Revision { get; set; } + + /// + /// The permissions for this component. + /// + /// The permissions for this component. + [DataMember(Name="permissions", EmitDefaultValue=false)] + public PermissionsDTO Permissions { get; set; } + + /// + /// Acknowledges that this node is disconnected to allow for mutable requests to proceed. + /// + /// Acknowledges that this node is disconnected to allow for mutable requests to proceed. + [DataMember(Name="disconnectedNodeAcknowledged", EmitDefaultValue=false)] + public bool? DisconnectedNodeAcknowledged { get; set; } + + /// + /// The controller configuration. + /// + /// The controller configuration. + [DataMember(Name="component", EmitDefaultValue=false)] + public ControllerConfigurationDTO Component { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class ControllerConfigurationEntity {\n"); + sb.Append(" Revision: ").Append(this.Revision).Append("\n"); + sb.Append(" Permissions: ").Append(this.Permissions).Append("\n"); + sb.Append(" DisconnectedNodeAcknowledged: ").Append(this.DisconnectedNodeAcknowledged).Append("\n"); + sb.Append(" Component: ").Append(this.Component).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as ControllerConfigurationEntity); + } + + /// + /// Returns true if ControllerConfigurationEntity instances are equal + /// + /// Instance of ControllerConfigurationEntity to be compared + /// Boolean + public bool Equals(ControllerConfigurationEntity input) + { + if (input == null) + return false; + + return + ( + this.Revision == input.Revision || + (this.Revision != null && + this.Revision.Equals(input.Revision)) + ) && + ( + this.Permissions == input.Permissions || + (this.Permissions != null && + this.Permissions.Equals(input.Permissions)) + ) && + ( + this.DisconnectedNodeAcknowledged == input.DisconnectedNodeAcknowledged || + (this.DisconnectedNodeAcknowledged != null && + this.DisconnectedNodeAcknowledged.Equals(input.DisconnectedNodeAcknowledged)) + ) && + ( + this.Component == input.Component || + (this.Component != null && + this.Component.Equals(input.Component)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Revision != null) + hashCode = hashCode * 59 + this.Revision.GetHashCode(); + if (this.Permissions != null) + hashCode = hashCode * 59 + this.Permissions.GetHashCode(); + if (this.DisconnectedNodeAcknowledged != null) + hashCode = hashCode * 59 + this.DisconnectedNodeAcknowledged.GetHashCode(); + if (this.Component != null) + hashCode = hashCode * 59 + this.Component.GetHashCode(); + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/NiFi.Swagger/Model/ControllerDTO.cs b/NiFi.Swagger/Model/ControllerDTO.cs new file mode 100644 index 0000000..48c0aa5 --- /dev/null +++ b/NiFi.Swagger/Model/ControllerDTO.cs @@ -0,0 +1,392 @@ +/* + * NiFi Rest Api + * + * The Rest Api provides programmatic access to command and control a NiFi instance in real time. Start and stop processors, monitor queues, query provenance data, and more. Each endpoint below includes a description, definitions of the expected input and output, potential response codes, and the authorizations required to invoke each service. + * + * OpenAPI spec version: 1.9.1 + * Contact: dev@nifi.apache.org + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +namespace NiFi.Swagger.Model +{ + using System; + using System.Collections.Generic; + using System.ComponentModel.DataAnnotations; + using System.Linq; + using System.Runtime.Serialization; + using System.Text; + + using Newtonsoft.Json; + + /// + /// ControllerDTO + /// + [DataContract] + public partial class ControllerDTO : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// The id of the NiFi.. + /// The name of the NiFi.. + /// The comments for the NiFi.. + /// The number of running components in the NiFi.. + /// The number of stopped components in the NiFi.. + /// The number of invalid components in the NiFi.. + /// The number of disabled components in the NiFi.. + /// The number of active remote ports contained in the NiFi.. + /// The number of inactive remote ports contained in the NiFi.. + /// The number of input ports contained in the NiFi.. + /// The number of output ports in the NiFi.. + /// The Socket Port on which this instance is listening for Remote Transfers of Flow Files. If this instance is not configured to receive Flow Files from remote instances, this will be null.. + /// The HTTP(S) Port on which this instance is listening for Remote Transfers of Flow Files. If this instance is not configured to receive Flow Files from remote instances, this will be null.. + /// Indicates whether or not Site-to-Site communications with this instance is secure (2-way authentication).. + /// If clustered, the id of the Cluster Manager, otherwise the id of the NiFi.. + /// The input ports available to send data to for the NiFi.. + /// The output ports available to received data from the NiFi.. + public ControllerDTO(string id = default(string), string name = default(string), string comments = default(string), int? runningCount = default(int?), int? stoppedCount = default(int?), int? invalidCount = default(int?), int? disabledCount = default(int?), int? activeRemotePortCount = default(int?), int? inactiveRemotePortCount = default(int?), int? inputPortCount = default(int?), int? outputPortCount = default(int?), int? remoteSiteListeningPort = default(int?), int? remoteSiteHttpListeningPort = default(int?), bool? siteToSiteSecure = default(bool?), string instanceId = default(string), List inputPorts = default(List), List outputPorts = default(List)) + { + this.Id = id; + this.Name = name; + this.Comments = comments; + this.RunningCount = runningCount; + this.StoppedCount = stoppedCount; + this.InvalidCount = invalidCount; + this.DisabledCount = disabledCount; + this.ActiveRemotePortCount = activeRemotePortCount; + this.InactiveRemotePortCount = inactiveRemotePortCount; + this.InputPortCount = inputPortCount; + this.OutputPortCount = outputPortCount; + this.RemoteSiteListeningPort = remoteSiteListeningPort; + this.RemoteSiteHttpListeningPort = remoteSiteHttpListeningPort; + this.SiteToSiteSecure = siteToSiteSecure; + this.InstanceId = instanceId; + this.InputPorts = inputPorts; + this.OutputPorts = outputPorts; + } + + /// + /// The id of the NiFi. + /// + /// The id of the NiFi. + [DataMember(Name="id", EmitDefaultValue=false)] + public string Id { get; set; } + + /// + /// The name of the NiFi. + /// + /// The name of the NiFi. + [DataMember(Name="name", EmitDefaultValue=false)] + public string Name { get; set; } + + /// + /// The comments for the NiFi. + /// + /// The comments for the NiFi. + [DataMember(Name="comments", EmitDefaultValue=false)] + public string Comments { get; set; } + + /// + /// The number of running components in the NiFi. + /// + /// The number of running components in the NiFi. + [DataMember(Name="runningCount", EmitDefaultValue=false)] + public int? RunningCount { get; set; } + + /// + /// The number of stopped components in the NiFi. + /// + /// The number of stopped components in the NiFi. + [DataMember(Name="stoppedCount", EmitDefaultValue=false)] + public int? StoppedCount { get; set; } + + /// + /// The number of invalid components in the NiFi. + /// + /// The number of invalid components in the NiFi. + [DataMember(Name="invalidCount", EmitDefaultValue=false)] + public int? InvalidCount { get; set; } + + /// + /// The number of disabled components in the NiFi. + /// + /// The number of disabled components in the NiFi. + [DataMember(Name="disabledCount", EmitDefaultValue=false)] + public int? DisabledCount { get; set; } + + /// + /// The number of active remote ports contained in the NiFi. + /// + /// The number of active remote ports contained in the NiFi. + [DataMember(Name="activeRemotePortCount", EmitDefaultValue=false)] + public int? ActiveRemotePortCount { get; set; } + + /// + /// The number of inactive remote ports contained in the NiFi. + /// + /// The number of inactive remote ports contained in the NiFi. + [DataMember(Name="inactiveRemotePortCount", EmitDefaultValue=false)] + public int? InactiveRemotePortCount { get; set; } + + /// + /// The number of input ports contained in the NiFi. + /// + /// The number of input ports contained in the NiFi. + [DataMember(Name="inputPortCount", EmitDefaultValue=false)] + public int? InputPortCount { get; set; } + + /// + /// The number of output ports in the NiFi. + /// + /// The number of output ports in the NiFi. + [DataMember(Name="outputPortCount", EmitDefaultValue=false)] + public int? OutputPortCount { get; set; } + + /// + /// The Socket Port on which this instance is listening for Remote Transfers of Flow Files. If this instance is not configured to receive Flow Files from remote instances, this will be null. + /// + /// The Socket Port on which this instance is listening for Remote Transfers of Flow Files. If this instance is not configured to receive Flow Files from remote instances, this will be null. + [DataMember(Name="remoteSiteListeningPort", EmitDefaultValue=false)] + public int? RemoteSiteListeningPort { get; set; } + + /// + /// The HTTP(S) Port on which this instance is listening for Remote Transfers of Flow Files. If this instance is not configured to receive Flow Files from remote instances, this will be null. + /// + /// The HTTP(S) Port on which this instance is listening for Remote Transfers of Flow Files. If this instance is not configured to receive Flow Files from remote instances, this will be null. + [DataMember(Name="remoteSiteHttpListeningPort", EmitDefaultValue=false)] + public int? RemoteSiteHttpListeningPort { get; set; } + + /// + /// Indicates whether or not Site-to-Site communications with this instance is secure (2-way authentication). + /// + /// Indicates whether or not Site-to-Site communications with this instance is secure (2-way authentication). + [DataMember(Name="siteToSiteSecure", EmitDefaultValue=false)] + public bool? SiteToSiteSecure { get; set; } + + /// + /// If clustered, the id of the Cluster Manager, otherwise the id of the NiFi. + /// + /// If clustered, the id of the Cluster Manager, otherwise the id of the NiFi. + [DataMember(Name="instanceId", EmitDefaultValue=false)] + public string InstanceId { get; set; } + + /// + /// The input ports available to send data to for the NiFi. + /// + /// The input ports available to send data to for the NiFi. + [DataMember(Name="inputPorts", EmitDefaultValue=false)] + public List InputPorts { get; set; } + + /// + /// The output ports available to received data from the NiFi. + /// + /// The output ports available to received data from the NiFi. + [DataMember(Name="outputPorts", EmitDefaultValue=false)] + public List OutputPorts { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class ControllerDTO {\n"); + sb.Append(" Id: ").Append(this.Id).Append("\n"); + sb.Append(" Name: ").Append(this.Name).Append("\n"); + sb.Append(" Comments: ").Append(this.Comments).Append("\n"); + sb.Append(" RunningCount: ").Append(this.RunningCount).Append("\n"); + sb.Append(" StoppedCount: ").Append(this.StoppedCount).Append("\n"); + sb.Append(" InvalidCount: ").Append(this.InvalidCount).Append("\n"); + sb.Append(" DisabledCount: ").Append(this.DisabledCount).Append("\n"); + sb.Append(" ActiveRemotePortCount: ").Append(this.ActiveRemotePortCount).Append("\n"); + sb.Append(" InactiveRemotePortCount: ").Append(this.InactiveRemotePortCount).Append("\n"); + sb.Append(" InputPortCount: ").Append(this.InputPortCount).Append("\n"); + sb.Append(" OutputPortCount: ").Append(this.OutputPortCount).Append("\n"); + sb.Append(" RemoteSiteListeningPort: ").Append(this.RemoteSiteListeningPort).Append("\n"); + sb.Append(" RemoteSiteHttpListeningPort: ").Append(this.RemoteSiteHttpListeningPort).Append("\n"); + sb.Append(" SiteToSiteSecure: ").Append(this.SiteToSiteSecure).Append("\n"); + sb.Append(" InstanceId: ").Append(this.InstanceId).Append("\n"); + sb.Append(" InputPorts: ").Append(this.InputPorts).Append("\n"); + sb.Append(" OutputPorts: ").Append(this.OutputPorts).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as ControllerDTO); + } + + /// + /// Returns true if ControllerDTO instances are equal + /// + /// Instance of ControllerDTO to be compared + /// Boolean + public bool Equals(ControllerDTO input) + { + if (input == null) + return false; + + return + ( + this.Id == input.Id || + (this.Id != null && + this.Id.Equals(input.Id)) + ) && + ( + this.Name == input.Name || + (this.Name != null && + this.Name.Equals(input.Name)) + ) && + ( + this.Comments == input.Comments || + (this.Comments != null && + this.Comments.Equals(input.Comments)) + ) && + ( + this.RunningCount == input.RunningCount || + (this.RunningCount != null && + this.RunningCount.Equals(input.RunningCount)) + ) && + ( + this.StoppedCount == input.StoppedCount || + (this.StoppedCount != null && + this.StoppedCount.Equals(input.StoppedCount)) + ) && + ( + this.InvalidCount == input.InvalidCount || + (this.InvalidCount != null && + this.InvalidCount.Equals(input.InvalidCount)) + ) && + ( + this.DisabledCount == input.DisabledCount || + (this.DisabledCount != null && + this.DisabledCount.Equals(input.DisabledCount)) + ) && + ( + this.ActiveRemotePortCount == input.ActiveRemotePortCount || + (this.ActiveRemotePortCount != null && + this.ActiveRemotePortCount.Equals(input.ActiveRemotePortCount)) + ) && + ( + this.InactiveRemotePortCount == input.InactiveRemotePortCount || + (this.InactiveRemotePortCount != null && + this.InactiveRemotePortCount.Equals(input.InactiveRemotePortCount)) + ) && + ( + this.InputPortCount == input.InputPortCount || + (this.InputPortCount != null && + this.InputPortCount.Equals(input.InputPortCount)) + ) && + ( + this.OutputPortCount == input.OutputPortCount || + (this.OutputPortCount != null && + this.OutputPortCount.Equals(input.OutputPortCount)) + ) && + ( + this.RemoteSiteListeningPort == input.RemoteSiteListeningPort || + (this.RemoteSiteListeningPort != null && + this.RemoteSiteListeningPort.Equals(input.RemoteSiteListeningPort)) + ) && + ( + this.RemoteSiteHttpListeningPort == input.RemoteSiteHttpListeningPort || + (this.RemoteSiteHttpListeningPort != null && + this.RemoteSiteHttpListeningPort.Equals(input.RemoteSiteHttpListeningPort)) + ) && + ( + this.SiteToSiteSecure == input.SiteToSiteSecure || + (this.SiteToSiteSecure != null && + this.SiteToSiteSecure.Equals(input.SiteToSiteSecure)) + ) && + ( + this.InstanceId == input.InstanceId || + (this.InstanceId != null && + this.InstanceId.Equals(input.InstanceId)) + ) && + ( + this.InputPorts == input.InputPorts || + this.InputPorts != null && + this.InputPorts.SequenceEqual(input.InputPorts) + ) && + ( + this.OutputPorts == input.OutputPorts || + this.OutputPorts != null && + this.OutputPorts.SequenceEqual(input.OutputPorts) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Id != null) + hashCode = hashCode * 59 + this.Id.GetHashCode(); + if (this.Name != null) + hashCode = hashCode * 59 + this.Name.GetHashCode(); + if (this.Comments != null) + hashCode = hashCode * 59 + this.Comments.GetHashCode(); + if (this.RunningCount != null) + hashCode = hashCode * 59 + this.RunningCount.GetHashCode(); + if (this.StoppedCount != null) + hashCode = hashCode * 59 + this.StoppedCount.GetHashCode(); + if (this.InvalidCount != null) + hashCode = hashCode * 59 + this.InvalidCount.GetHashCode(); + if (this.DisabledCount != null) + hashCode = hashCode * 59 + this.DisabledCount.GetHashCode(); + if (this.ActiveRemotePortCount != null) + hashCode = hashCode * 59 + this.ActiveRemotePortCount.GetHashCode(); + if (this.InactiveRemotePortCount != null) + hashCode = hashCode * 59 + this.InactiveRemotePortCount.GetHashCode(); + if (this.InputPortCount != null) + hashCode = hashCode * 59 + this.InputPortCount.GetHashCode(); + if (this.OutputPortCount != null) + hashCode = hashCode * 59 + this.OutputPortCount.GetHashCode(); + if (this.RemoteSiteListeningPort != null) + hashCode = hashCode * 59 + this.RemoteSiteListeningPort.GetHashCode(); + if (this.RemoteSiteHttpListeningPort != null) + hashCode = hashCode * 59 + this.RemoteSiteHttpListeningPort.GetHashCode(); + if (this.SiteToSiteSecure != null) + hashCode = hashCode * 59 + this.SiteToSiteSecure.GetHashCode(); + if (this.InstanceId != null) + hashCode = hashCode * 59 + this.InstanceId.GetHashCode(); + if (this.InputPorts != null) + hashCode = hashCode * 59 + this.InputPorts.GetHashCode(); + if (this.OutputPorts != null) + hashCode = hashCode * 59 + this.OutputPorts.GetHashCode(); + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/NiFi.Swagger/Model/ControllerEntity.cs b/NiFi.Swagger/Model/ControllerEntity.cs new file mode 100644 index 0000000..08e7312 --- /dev/null +++ b/NiFi.Swagger/Model/ControllerEntity.cs @@ -0,0 +1,118 @@ +/* + * NiFi Rest Api + * + * The Rest Api provides programmatic access to command and control a NiFi instance in real time. Start and stop processors, monitor queues, query provenance data, and more. Each endpoint below includes a description, definitions of the expected input and output, potential response codes, and the authorizations required to invoke each service. + * + * OpenAPI spec version: 1.9.1 + * Contact: dev@nifi.apache.org + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +namespace NiFi.Swagger.Model +{ + using System; + using System.Collections.Generic; + using System.ComponentModel.DataAnnotations; + using System.Runtime.Serialization; + using System.Text; + + using Newtonsoft.Json; + + /// + /// ControllerEntity + /// + [DataContract] + public partial class ControllerEntity : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// controller. + public ControllerEntity(ControllerDTO controller = default(ControllerDTO)) + { + this.Controller = controller; + } + + /// + /// Gets or Sets Controller + /// + [DataMember(Name="controller", EmitDefaultValue=false)] + public ControllerDTO Controller { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class ControllerEntity {\n"); + sb.Append(" Controller: ").Append(this.Controller).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as ControllerEntity); + } + + /// + /// Returns true if ControllerEntity instances are equal + /// + /// Instance of ControllerEntity to be compared + /// Boolean + public bool Equals(ControllerEntity input) + { + if (input == null) + return false; + + return + ( + this.Controller == input.Controller || + (this.Controller != null && + this.Controller.Equals(input.Controller)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Controller != null) + hashCode = hashCode * 59 + this.Controller.GetHashCode(); + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/NiFi.Swagger/Model/ControllerServiceAPI.cs b/NiFi.Swagger/Model/ControllerServiceAPI.cs new file mode 100644 index 0000000..b84f664 --- /dev/null +++ b/NiFi.Swagger/Model/ControllerServiceAPI.cs @@ -0,0 +1,136 @@ +/* + * NiFi Rest Api + * + * The Rest Api provides programmatic access to command and control a NiFi instance in real time. Start and stop processors, monitor queues, query provenance data, and more. Each endpoint below includes a description, definitions of the expected input and output, potential response codes, and the authorizations required to invoke each service. + * + * OpenAPI spec version: 1.9.1 + * Contact: dev@nifi.apache.org + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +namespace NiFi.Swagger.Model +{ + using System; + using System.Collections.Generic; + using System.ComponentModel.DataAnnotations; + using System.Runtime.Serialization; + using System.Text; + + using Newtonsoft.Json; + + /// + /// ControllerServiceAPI + /// + [DataContract] + public partial class ControllerServiceAPI : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// The fully qualified name of the service interface.. + /// The details of the artifact that bundled this service interface.. + public ControllerServiceAPI(string type = default(string), Bundle bundle = default(Bundle)) + { + this.Type = type; + this.Bundle = bundle; + } + + /// + /// The fully qualified name of the service interface. + /// + /// The fully qualified name of the service interface. + [DataMember(Name="type", EmitDefaultValue=false)] + public string Type { get; set; } + + /// + /// The details of the artifact that bundled this service interface. + /// + /// The details of the artifact that bundled this service interface. + [DataMember(Name="bundle", EmitDefaultValue=false)] + public Bundle Bundle { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class ControllerServiceAPI {\n"); + sb.Append(" Type: ").Append(this.Type).Append("\n"); + sb.Append(" Bundle: ").Append(this.Bundle).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as ControllerServiceAPI); + } + + /// + /// Returns true if ControllerServiceAPI instances are equal + /// + /// Instance of ControllerServiceAPI to be compared + /// Boolean + public bool Equals(ControllerServiceAPI input) + { + if (input == null) + return false; + + return + ( + this.Type == input.Type || + (this.Type != null && + this.Type.Equals(input.Type)) + ) && + ( + this.Bundle == input.Bundle || + (this.Bundle != null && + this.Bundle.Equals(input.Bundle)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Type != null) + hashCode = hashCode * 59 + this.Type.GetHashCode(); + if (this.Bundle != null) + hashCode = hashCode * 59 + this.Bundle.GetHashCode(); + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/NiFi.Swagger/Model/ControllerServiceApiDTO.cs b/NiFi.Swagger/Model/ControllerServiceApiDTO.cs new file mode 100644 index 0000000..7079194 --- /dev/null +++ b/NiFi.Swagger/Model/ControllerServiceApiDTO.cs @@ -0,0 +1,136 @@ +/* + * NiFi Rest Api + * + * The Rest Api provides programmatic access to command and control a NiFi instance in real time. Start and stop processors, monitor queues, query provenance data, and more. Each endpoint below includes a description, definitions of the expected input and output, potential response codes, and the authorizations required to invoke each service. + * + * OpenAPI spec version: 1.9.1 + * Contact: dev@nifi.apache.org + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +namespace NiFi.Swagger.Model +{ + using System; + using System.Collections.Generic; + using System.ComponentModel.DataAnnotations; + using System.Runtime.Serialization; + using System.Text; + + using Newtonsoft.Json; + + /// + /// ControllerServiceApiDTO + /// + [DataContract] + public partial class ControllerServiceApiDTO : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// The fully qualified name of the service interface.. + /// The details of the artifact that bundled this service interface.. + public ControllerServiceApiDTO(string type = default(string), BundleDTO bundle = default(BundleDTO)) + { + this.Type = type; + this.Bundle = bundle; + } + + /// + /// The fully qualified name of the service interface. + /// + /// The fully qualified name of the service interface. + [DataMember(Name="type", EmitDefaultValue=false)] + public string Type { get; set; } + + /// + /// The details of the artifact that bundled this service interface. + /// + /// The details of the artifact that bundled this service interface. + [DataMember(Name="bundle", EmitDefaultValue=false)] + public BundleDTO Bundle { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class ControllerServiceApiDTO {\n"); + sb.Append(" Type: ").Append(this.Type).Append("\n"); + sb.Append(" Bundle: ").Append(this.Bundle).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as ControllerServiceApiDTO); + } + + /// + /// Returns true if ControllerServiceApiDTO instances are equal + /// + /// Instance of ControllerServiceApiDTO to be compared + /// Boolean + public bool Equals(ControllerServiceApiDTO input) + { + if (input == null) + return false; + + return + ( + this.Type == input.Type || + (this.Type != null && + this.Type.Equals(input.Type)) + ) && + ( + this.Bundle == input.Bundle || + (this.Bundle != null && + this.Bundle.Equals(input.Bundle)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Type != null) + hashCode = hashCode * 59 + this.Type.GetHashCode(); + if (this.Bundle != null) + hashCode = hashCode * 59 + this.Bundle.GetHashCode(); + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/NiFi.Swagger/Model/ControllerServiceDTO.cs b/NiFi.Swagger/Model/ControllerServiceDTO.cs new file mode 100644 index 0000000..bc7f2d3 --- /dev/null +++ b/NiFi.Swagger/Model/ControllerServiceDTO.cs @@ -0,0 +1,536 @@ +/* + * NiFi Rest Api + * + * The Rest Api provides programmatic access to command and control a NiFi instance in real time. Start and stop processors, monitor queues, query provenance data, and more. Each endpoint below includes a description, definitions of the expected input and output, potential response codes, and the authorizations required to invoke each service. + * + * OpenAPI spec version: 1.9.1 + * Contact: dev@nifi.apache.org + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +namespace NiFi.Swagger.Model +{ + using System; + using System.Collections.Generic; + using System.ComponentModel.DataAnnotations; + using System.Linq; + using System.Runtime.Serialization; + using System.Text; + + using Newtonsoft.Json; + using Newtonsoft.Json.Converters; + + /// + /// ControllerServiceDTO + /// + [DataContract] + public partial class ControllerServiceDTO : IEquatable, IValidatableObject + { + /// + /// The state of the controller service. + /// + /// The state of the controller service. + [JsonConverter(typeof(StringEnumConverter))] + public enum StateEnum + { + + /// + /// Enum ENABLED for value: ENABLED + /// + [EnumMember(Value = "ENABLED")] + ENABLED = 1, + + /// + /// Enum ENABLING for value: ENABLING + /// + [EnumMember(Value = "ENABLING")] + ENABLING = 2, + + /// + /// Enum DISABLED for value: DISABLED + /// + [EnumMember(Value = "DISABLED")] + DISABLED = 3, + + /// + /// Enum DISABLING for value: DISABLING + /// + [EnumMember(Value = "DISABLING")] + DISABLING = 4 + } + + /// + /// The state of the controller service. + /// + /// The state of the controller service. + [DataMember(Name="state", EmitDefaultValue=false)] + public StateEnum? State { get; set; } + /// + /// Indicates whether the ControllerService is valid, invalid, or still in the process of validating (i.e., it is unknown whether or not the ControllerService is valid) + /// + /// Indicates whether the ControllerService is valid, invalid, or still in the process of validating (i.e., it is unknown whether or not the ControllerService is valid) + [JsonConverter(typeof(StringEnumConverter))] + public enum ValidationStatusEnum + { + + /// + /// Enum VALID for value: VALID + /// + [EnumMember(Value = "VALID")] + VALID = 1, + + /// + /// Enum INVALID for value: INVALID + /// + [EnumMember(Value = "INVALID")] + INVALID = 2, + + /// + /// Enum VALIDATING for value: VALIDATING + /// + [EnumMember(Value = "VALIDATING")] + VALIDATING = 3 + } + + /// + /// Indicates whether the ControllerService is valid, invalid, or still in the process of validating (i.e., it is unknown whether or not the ControllerService is valid) + /// + /// Indicates whether the ControllerService is valid, invalid, or still in the process of validating (i.e., it is unknown whether or not the ControllerService is valid) + [DataMember(Name="validationStatus", EmitDefaultValue=false)] + public ValidationStatusEnum? ValidationStatus { get; set; } + /// + /// Initializes a new instance of the class. + /// + /// The id of the component.. + /// The ID of the corresponding component that is under version control. + /// The id of parent process group of this component if applicable.. + /// The position of this component in the UI if applicable.. + /// The name of the controller service.. + /// The type of the controller service.. + /// The details of the artifact that bundled this processor type.. + /// Lists the APIs this Controller Service implements.. + /// The comments for the controller service.. + /// The state of the controller service.. + /// Whether the controller service persists state.. + /// Whether the controller service requires elevated privileges.. + /// Whether the ontroller service has been deprecated.. + /// Whether the controller service has multiple versions available.. + /// The properties of the controller service.. + /// The descriptors for the controller service properties.. + /// The URL for the controller services custom configuration UI if applicable.. + /// The annotation for the controller service. This is how the custom UI relays configuration to the controller service.. + /// All components referencing this controller service.. + /// The validation errors from the controller service. These validation errors represent the problems with the controller service that must be resolved before it can be enabled.. + /// Whether the underlying extension is missing.. + public ControllerServiceDTO(string id = default(string), string versionedComponentId = default(string), string parentGroupId = default(string), PositionDTO position = default(PositionDTO), string name = default(string), string type = default(string), BundleDTO bundle = default(BundleDTO), List controllerServiceApis = default(List), string comments = default(string), StateEnum? state = default(StateEnum?), bool? persistsState = default(bool?), bool? restricted = default(bool?), bool? deprecated = default(bool?), bool? multipleVersionsAvailable = default(bool?), Dictionary properties = default(Dictionary), Dictionary descriptors = default(Dictionary), string customUiUrl = default(string), string annotationData = default(string), List referencingComponents = default(List), List validationErrors = default(List), bool? extensionMissing = default(bool?)) + { + this.Id = id; + this.VersionedComponentId = versionedComponentId; + this.ParentGroupId = parentGroupId; + this.Position = position; + this.Name = name; + this.Type = type; + this.Bundle = bundle; + this.ControllerServiceApis = controllerServiceApis; + this.Comments = comments; + this.State = state; + this.PersistsState = persistsState; + this.Restricted = restricted; + this.Deprecated = deprecated; + this.MultipleVersionsAvailable = multipleVersionsAvailable; + this.Properties = properties; + this.Descriptors = descriptors; + this.CustomUiUrl = customUiUrl; + this.AnnotationData = annotationData; + this.ReferencingComponents = referencingComponents; + this.ValidationErrors = validationErrors; + this.ExtensionMissing = extensionMissing; + } + + /// + /// The id of the component. + /// + /// The id of the component. + [DataMember(Name="id", EmitDefaultValue=false)] + public string Id { get; set; } + + /// + /// The ID of the corresponding component that is under version control + /// + /// The ID of the corresponding component that is under version control + [DataMember(Name="versionedComponentId", EmitDefaultValue=false)] + public string VersionedComponentId { get; set; } + + /// + /// The id of parent process group of this component if applicable. + /// + /// The id of parent process group of this component if applicable. + [DataMember(Name="parentGroupId", EmitDefaultValue=false)] + public string ParentGroupId { get; set; } + + /// + /// The position of this component in the UI if applicable. + /// + /// The position of this component in the UI if applicable. + [DataMember(Name="position", EmitDefaultValue=false)] + public PositionDTO Position { get; set; } + + /// + /// The name of the controller service. + /// + /// The name of the controller service. + [DataMember(Name="name", EmitDefaultValue=false)] + public string Name { get; set; } + + /// + /// The type of the controller service. + /// + /// The type of the controller service. + [DataMember(Name="type", EmitDefaultValue=false)] + public string Type { get; set; } + + /// + /// The details of the artifact that bundled this processor type. + /// + /// The details of the artifact that bundled this processor type. + [DataMember(Name="bundle", EmitDefaultValue=false)] + public BundleDTO Bundle { get; set; } + + /// + /// Lists the APIs this Controller Service implements. + /// + /// Lists the APIs this Controller Service implements. + [DataMember(Name="controllerServiceApis", EmitDefaultValue=false)] + public List ControllerServiceApis { get; set; } + + /// + /// The comments for the controller service. + /// + /// The comments for the controller service. + [DataMember(Name="comments", EmitDefaultValue=false)] + public string Comments { get; set; } + + + /// + /// Whether the controller service persists state. + /// + /// Whether the controller service persists state. + [DataMember(Name="persistsState", EmitDefaultValue=false)] + public bool? PersistsState { get; set; } + + /// + /// Whether the controller service requires elevated privileges. + /// + /// Whether the controller service requires elevated privileges. + [DataMember(Name="restricted", EmitDefaultValue=false)] + public bool? Restricted { get; set; } + + /// + /// Whether the ontroller service has been deprecated. + /// + /// Whether the ontroller service has been deprecated. + [DataMember(Name="deprecated", EmitDefaultValue=false)] + public bool? Deprecated { get; set; } + + /// + /// Whether the controller service has multiple versions available. + /// + /// Whether the controller service has multiple versions available. + [DataMember(Name="multipleVersionsAvailable", EmitDefaultValue=false)] + public bool? MultipleVersionsAvailable { get; set; } + + /// + /// The properties of the controller service. + /// + /// The properties of the controller service. + [DataMember(Name="properties", EmitDefaultValue=false)] + public Dictionary Properties { get; set; } + + /// + /// The descriptors for the controller service properties. + /// + /// The descriptors for the controller service properties. + [DataMember(Name="descriptors", EmitDefaultValue=false)] + public Dictionary Descriptors { get; set; } + + /// + /// The URL for the controller services custom configuration UI if applicable. + /// + /// The URL for the controller services custom configuration UI if applicable. + [DataMember(Name="customUiUrl", EmitDefaultValue=false)] + public string CustomUiUrl { get; set; } + + /// + /// The annotation for the controller service. This is how the custom UI relays configuration to the controller service. + /// + /// The annotation for the controller service. This is how the custom UI relays configuration to the controller service. + [DataMember(Name="annotationData", EmitDefaultValue=false)] + public string AnnotationData { get; set; } + + /// + /// All components referencing this controller service. + /// + /// All components referencing this controller service. + [DataMember(Name="referencingComponents", EmitDefaultValue=false)] + public List ReferencingComponents { get; set; } + + /// + /// The validation errors from the controller service. These validation errors represent the problems with the controller service that must be resolved before it can be enabled. + /// + /// The validation errors from the controller service. These validation errors represent the problems with the controller service that must be resolved before it can be enabled. + [DataMember(Name="validationErrors", EmitDefaultValue=false)] + public List ValidationErrors { get; set; } + + + /// + /// Whether the underlying extension is missing. + /// + /// Whether the underlying extension is missing. + [DataMember(Name="extensionMissing", EmitDefaultValue=false)] + public bool? ExtensionMissing { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class ControllerServiceDTO {\n"); + sb.Append(" Id: ").Append(this.Id).Append("\n"); + sb.Append(" VersionedComponentId: ").Append(this.VersionedComponentId).Append("\n"); + sb.Append(" ParentGroupId: ").Append(this.ParentGroupId).Append("\n"); + sb.Append(" Position: ").Append(this.Position).Append("\n"); + sb.Append(" Name: ").Append(this.Name).Append("\n"); + sb.Append(" Type: ").Append(this.Type).Append("\n"); + sb.Append(" Bundle: ").Append(this.Bundle).Append("\n"); + sb.Append(" ControllerServiceApis: ").Append(this.ControllerServiceApis).Append("\n"); + sb.Append(" Comments: ").Append(this.Comments).Append("\n"); + sb.Append(" State: ").Append(this.State).Append("\n"); + sb.Append(" PersistsState: ").Append(this.PersistsState).Append("\n"); + sb.Append(" Restricted: ").Append(this.Restricted).Append("\n"); + sb.Append(" Deprecated: ").Append(this.Deprecated).Append("\n"); + sb.Append(" MultipleVersionsAvailable: ").Append(this.MultipleVersionsAvailable).Append("\n"); + sb.Append(" Properties: ").Append(this.Properties).Append("\n"); + sb.Append(" Descriptors: ").Append(this.Descriptors).Append("\n"); + sb.Append(" CustomUiUrl: ").Append(this.CustomUiUrl).Append("\n"); + sb.Append(" AnnotationData: ").Append(this.AnnotationData).Append("\n"); + sb.Append(" ReferencingComponents: ").Append(this.ReferencingComponents).Append("\n"); + sb.Append(" ValidationErrors: ").Append(this.ValidationErrors).Append("\n"); + sb.Append(" ValidationStatus: ").Append(this.ValidationStatus).Append("\n"); + sb.Append(" ExtensionMissing: ").Append(this.ExtensionMissing).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as ControllerServiceDTO); + } + + /// + /// Returns true if ControllerServiceDTO instances are equal + /// + /// Instance of ControllerServiceDTO to be compared + /// Boolean + public bool Equals(ControllerServiceDTO input) + { + if (input == null) + return false; + + return + ( + this.Id == input.Id || + (this.Id != null && + this.Id.Equals(input.Id)) + ) && + ( + this.VersionedComponentId == input.VersionedComponentId || + (this.VersionedComponentId != null && + this.VersionedComponentId.Equals(input.VersionedComponentId)) + ) && + ( + this.ParentGroupId == input.ParentGroupId || + (this.ParentGroupId != null && + this.ParentGroupId.Equals(input.ParentGroupId)) + ) && + ( + this.Position == input.Position || + (this.Position != null && + this.Position.Equals(input.Position)) + ) && + ( + this.Name == input.Name || + (this.Name != null && + this.Name.Equals(input.Name)) + ) && + ( + this.Type == input.Type || + (this.Type != null && + this.Type.Equals(input.Type)) + ) && + ( + this.Bundle == input.Bundle || + (this.Bundle != null && + this.Bundle.Equals(input.Bundle)) + ) && + ( + this.ControllerServiceApis == input.ControllerServiceApis || + this.ControllerServiceApis != null && + this.ControllerServiceApis.SequenceEqual(input.ControllerServiceApis) + ) && + ( + this.Comments == input.Comments || + (this.Comments != null && + this.Comments.Equals(input.Comments)) + ) && + ( + this.State == input.State || + (this.State != null && + this.State.Equals(input.State)) + ) && + ( + this.PersistsState == input.PersistsState || + (this.PersistsState != null && + this.PersistsState.Equals(input.PersistsState)) + ) && + ( + this.Restricted == input.Restricted || + (this.Restricted != null && + this.Restricted.Equals(input.Restricted)) + ) && + ( + this.Deprecated == input.Deprecated || + (this.Deprecated != null && + this.Deprecated.Equals(input.Deprecated)) + ) && + ( + this.MultipleVersionsAvailable == input.MultipleVersionsAvailable || + (this.MultipleVersionsAvailable != null && + this.MultipleVersionsAvailable.Equals(input.MultipleVersionsAvailable)) + ) && + ( + this.Properties == input.Properties || + this.Properties != null && + this.Properties.SequenceEqual(input.Properties) + ) && + ( + this.Descriptors == input.Descriptors || + this.Descriptors != null && + this.Descriptors.SequenceEqual(input.Descriptors) + ) && + ( + this.CustomUiUrl == input.CustomUiUrl || + (this.CustomUiUrl != null && + this.CustomUiUrl.Equals(input.CustomUiUrl)) + ) && + ( + this.AnnotationData == input.AnnotationData || + (this.AnnotationData != null && + this.AnnotationData.Equals(input.AnnotationData)) + ) && + ( + this.ReferencingComponents == input.ReferencingComponents || + this.ReferencingComponents != null && + this.ReferencingComponents.SequenceEqual(input.ReferencingComponents) + ) && + ( + this.ValidationErrors == input.ValidationErrors || + this.ValidationErrors != null && + this.ValidationErrors.SequenceEqual(input.ValidationErrors) + ) && + ( + this.ValidationStatus == input.ValidationStatus || + (this.ValidationStatus != null && + this.ValidationStatus.Equals(input.ValidationStatus)) + ) && + ( + this.ExtensionMissing == input.ExtensionMissing || + (this.ExtensionMissing != null && + this.ExtensionMissing.Equals(input.ExtensionMissing)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Id != null) + hashCode = hashCode * 59 + this.Id.GetHashCode(); + if (this.VersionedComponentId != null) + hashCode = hashCode * 59 + this.VersionedComponentId.GetHashCode(); + if (this.ParentGroupId != null) + hashCode = hashCode * 59 + this.ParentGroupId.GetHashCode(); + if (this.Position != null) + hashCode = hashCode * 59 + this.Position.GetHashCode(); + if (this.Name != null) + hashCode = hashCode * 59 + this.Name.GetHashCode(); + if (this.Type != null) + hashCode = hashCode * 59 + this.Type.GetHashCode(); + if (this.Bundle != null) + hashCode = hashCode * 59 + this.Bundle.GetHashCode(); + if (this.ControllerServiceApis != null) + hashCode = hashCode * 59 + this.ControllerServiceApis.GetHashCode(); + if (this.Comments != null) + hashCode = hashCode * 59 + this.Comments.GetHashCode(); + if (this.State != null) + hashCode = hashCode * 59 + this.State.GetHashCode(); + if (this.PersistsState != null) + hashCode = hashCode * 59 + this.PersistsState.GetHashCode(); + if (this.Restricted != null) + hashCode = hashCode * 59 + this.Restricted.GetHashCode(); + if (this.Deprecated != null) + hashCode = hashCode * 59 + this.Deprecated.GetHashCode(); + if (this.MultipleVersionsAvailable != null) + hashCode = hashCode * 59 + this.MultipleVersionsAvailable.GetHashCode(); + if (this.Properties != null) + hashCode = hashCode * 59 + this.Properties.GetHashCode(); + if (this.Descriptors != null) + hashCode = hashCode * 59 + this.Descriptors.GetHashCode(); + if (this.CustomUiUrl != null) + hashCode = hashCode * 59 + this.CustomUiUrl.GetHashCode(); + if (this.AnnotationData != null) + hashCode = hashCode * 59 + this.AnnotationData.GetHashCode(); + if (this.ReferencingComponents != null) + hashCode = hashCode * 59 + this.ReferencingComponents.GetHashCode(); + if (this.ValidationErrors != null) + hashCode = hashCode * 59 + this.ValidationErrors.GetHashCode(); + if (this.ValidationStatus != null) + hashCode = hashCode * 59 + this.ValidationStatus.GetHashCode(); + if (this.ExtensionMissing != null) + hashCode = hashCode * 59 + this.ExtensionMissing.GetHashCode(); + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/NiFi.Swagger/Model/ControllerServiceEntity.cs b/NiFi.Swagger/Model/ControllerServiceEntity.cs new file mode 100644 index 0000000..2628fc5 --- /dev/null +++ b/NiFi.Swagger/Model/ControllerServiceEntity.cs @@ -0,0 +1,287 @@ +/* + * NiFi Rest Api + * + * The Rest Api provides programmatic access to command and control a NiFi instance in real time. Start and stop processors, monitor queues, query provenance data, and more. Each endpoint below includes a description, definitions of the expected input and output, potential response codes, and the authorizations required to invoke each service. + * + * OpenAPI spec version: 1.9.1 + * Contact: dev@nifi.apache.org + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +namespace NiFi.Swagger.Model +{ + using System; + using System.Collections.Generic; + using System.ComponentModel.DataAnnotations; + using System.Linq; + using System.Runtime.Serialization; + using System.Text; + + using Newtonsoft.Json; + + /// + /// ControllerServiceEntity + /// + [DataContract] + public partial class ControllerServiceEntity : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// The revision for this request/response. The revision is required for any mutable flow requests and is included in all responses.. + /// The id of the component.. + /// The URI for futures requests to the component.. + /// The position of this component in the UI if applicable.. + /// The permissions for this component.. + /// The bulletins for this component.. + /// Acknowledges that this node is disconnected to allow for mutable requests to proceed.. + /// The id of parent process group of this ControllerService.. + /// component. + /// The permissions for this component operations.. + public ControllerServiceEntity(RevisionDTO revision = default(RevisionDTO), string id = default(string), string uri = default(string), PositionDTO position = default(PositionDTO), PermissionsDTO permissions = default(PermissionsDTO), List bulletins = default(List), bool? disconnectedNodeAcknowledged = default(bool?), string parentGroupId = default(string), ControllerServiceDTO component = default(ControllerServiceDTO), PermissionsDTO operatePermissions = default(PermissionsDTO)) + { + this.Revision = revision; + this.Id = id; + this.Uri = uri; + this.Position = position; + this.Permissions = permissions; + this.Bulletins = bulletins; + this.DisconnectedNodeAcknowledged = disconnectedNodeAcknowledged; + this.ParentGroupId = parentGroupId; + this.Component = component; + this.OperatePermissions = operatePermissions; + } + + /// + /// The revision for this request/response. The revision is required for any mutable flow requests and is included in all responses. + /// + /// The revision for this request/response. The revision is required for any mutable flow requests and is included in all responses. + [DataMember(Name="revision", EmitDefaultValue=false)] + public RevisionDTO Revision { get; set; } + + /// + /// The id of the component. + /// + /// The id of the component. + [DataMember(Name="id", EmitDefaultValue=false)] + public string Id { get; set; } + + /// + /// The URI for futures requests to the component. + /// + /// The URI for futures requests to the component. + [DataMember(Name="uri", EmitDefaultValue=false)] + public string Uri { get; set; } + + /// + /// The position of this component in the UI if applicable. + /// + /// The position of this component in the UI if applicable. + [DataMember(Name="position", EmitDefaultValue=false)] + public PositionDTO Position { get; set; } + + /// + /// The permissions for this component. + /// + /// The permissions for this component. + [DataMember(Name="permissions", EmitDefaultValue=false)] + public PermissionsDTO Permissions { get; set; } + + /// + /// The bulletins for this component. + /// + /// The bulletins for this component. + [DataMember(Name="bulletins", EmitDefaultValue=false)] + public List Bulletins { get; set; } + + /// + /// Acknowledges that this node is disconnected to allow for mutable requests to proceed. + /// + /// Acknowledges that this node is disconnected to allow for mutable requests to proceed. + [DataMember(Name="disconnectedNodeAcknowledged", EmitDefaultValue=false)] + public bool? DisconnectedNodeAcknowledged { get; set; } + + /// + /// The id of parent process group of this ControllerService. + /// + /// The id of parent process group of this ControllerService. + [DataMember(Name="parentGroupId", EmitDefaultValue=false)] + public string ParentGroupId { get; set; } + + /// + /// Gets or Sets Component + /// + [DataMember(Name="component", EmitDefaultValue=false)] + public ControllerServiceDTO Component { get; set; } + + /// + /// The permissions for this component operations. + /// + /// The permissions for this component operations. + [DataMember(Name="operatePermissions", EmitDefaultValue=false)] + public PermissionsDTO OperatePermissions { get; set; } + + /// + /// The status for this ControllerService. + /// + /// The status for this ControllerService. + [DataMember(Name="status", EmitDefaultValue=false)] + public ControllerServiceStatusDTO Status { get; private set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class ControllerServiceEntity {\n"); + sb.Append(" Revision: ").Append(this.Revision).Append("\n"); + sb.Append(" Id: ").Append(this.Id).Append("\n"); + sb.Append(" Uri: ").Append(this.Uri).Append("\n"); + sb.Append(" Position: ").Append(this.Position).Append("\n"); + sb.Append(" Permissions: ").Append(this.Permissions).Append("\n"); + sb.Append(" Bulletins: ").Append(this.Bulletins).Append("\n"); + sb.Append(" DisconnectedNodeAcknowledged: ").Append(this.DisconnectedNodeAcknowledged).Append("\n"); + sb.Append(" ParentGroupId: ").Append(this.ParentGroupId).Append("\n"); + sb.Append(" Component: ").Append(this.Component).Append("\n"); + sb.Append(" OperatePermissions: ").Append(this.OperatePermissions).Append("\n"); + sb.Append(" Status: ").Append(this.Status).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as ControllerServiceEntity); + } + + /// + /// Returns true if ControllerServiceEntity instances are equal + /// + /// Instance of ControllerServiceEntity to be compared + /// Boolean + public bool Equals(ControllerServiceEntity input) + { + if (input == null) + return false; + + return + ( + this.Revision == input.Revision || + (this.Revision != null && + this.Revision.Equals(input.Revision)) + ) && + ( + this.Id == input.Id || + (this.Id != null && + this.Id.Equals(input.Id)) + ) && + ( + this.Uri == input.Uri || + (this.Uri != null && + this.Uri.Equals(input.Uri)) + ) && + ( + this.Position == input.Position || + (this.Position != null && + this.Position.Equals(input.Position)) + ) && + ( + this.Permissions == input.Permissions || + (this.Permissions != null && + this.Permissions.Equals(input.Permissions)) + ) && + ( + this.Bulletins == input.Bulletins || + this.Bulletins != null && + this.Bulletins.SequenceEqual(input.Bulletins) + ) && + ( + this.DisconnectedNodeAcknowledged == input.DisconnectedNodeAcknowledged || + (this.DisconnectedNodeAcknowledged != null && + this.DisconnectedNodeAcknowledged.Equals(input.DisconnectedNodeAcknowledged)) + ) && + ( + this.ParentGroupId == input.ParentGroupId || + (this.ParentGroupId != null && + this.ParentGroupId.Equals(input.ParentGroupId)) + ) && + ( + this.Component == input.Component || + (this.Component != null && + this.Component.Equals(input.Component)) + ) && + ( + this.OperatePermissions == input.OperatePermissions || + (this.OperatePermissions != null && + this.OperatePermissions.Equals(input.OperatePermissions)) + ) && + ( + this.Status == input.Status || + (this.Status != null && + this.Status.Equals(input.Status)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Revision != null) + hashCode = hashCode * 59 + this.Revision.GetHashCode(); + if (this.Id != null) + hashCode = hashCode * 59 + this.Id.GetHashCode(); + if (this.Uri != null) + hashCode = hashCode * 59 + this.Uri.GetHashCode(); + if (this.Position != null) + hashCode = hashCode * 59 + this.Position.GetHashCode(); + if (this.Permissions != null) + hashCode = hashCode * 59 + this.Permissions.GetHashCode(); + if (this.Bulletins != null) + hashCode = hashCode * 59 + this.Bulletins.GetHashCode(); + if (this.DisconnectedNodeAcknowledged != null) + hashCode = hashCode * 59 + this.DisconnectedNodeAcknowledged.GetHashCode(); + if (this.ParentGroupId != null) + hashCode = hashCode * 59 + this.ParentGroupId.GetHashCode(); + if (this.Component != null) + hashCode = hashCode * 59 + this.Component.GetHashCode(); + if (this.OperatePermissions != null) + hashCode = hashCode * 59 + this.OperatePermissions.GetHashCode(); + if (this.Status != null) + hashCode = hashCode * 59 + this.Status.GetHashCode(); + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/NiFi.Swagger/Model/ControllerServiceReferencingComponentDTO.cs b/NiFi.Swagger/Model/ControllerServiceReferencingComponentDTO.cs new file mode 100644 index 0000000..54cf053 --- /dev/null +++ b/NiFi.Swagger/Model/ControllerServiceReferencingComponentDTO.cs @@ -0,0 +1,335 @@ +/* + * NiFi Rest Api + * + * The Rest Api provides programmatic access to command and control a NiFi instance in real time. Start and stop processors, monitor queues, query provenance data, and more. Each endpoint below includes a description, definitions of the expected input and output, potential response codes, and the authorizations required to invoke each service. + * + * OpenAPI spec version: 1.9.1 + * Contact: dev@nifi.apache.org + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +namespace NiFi.Swagger.Model +{ + using System; + using System.Collections.Generic; + using System.ComponentModel.DataAnnotations; + using System.Linq; + using System.Runtime.Serialization; + using System.Text; + + using Newtonsoft.Json; + using Newtonsoft.Json.Converters; + + /// + /// ControllerServiceReferencingComponentDTO + /// + [DataContract] + public partial class ControllerServiceReferencingComponentDTO : IEquatable, IValidatableObject + { + /// + /// The type of reference this is. + /// + /// The type of reference this is. + [JsonConverter(typeof(StringEnumConverter))] + public enum ReferenceTypeEnum + { + + /// + /// Enum Processor for value: Processor + /// + [EnumMember(Value = "Processor")] + Processor = 1, + + /// + /// Enum ControllerService for value: ControllerService + /// + [EnumMember(Value = "ControllerService")] + ControllerService = 2, + + /// + /// Enum OrReportingTask for value: or ReportingTask + /// + [EnumMember(Value = "or ReportingTask")] + OrReportingTask = 3 + } + + /// + /// The type of reference this is. + /// + /// The type of reference this is. + [DataMember(Name="referenceType", EmitDefaultValue=false)] + public ReferenceTypeEnum? ReferenceType { get; set; } + /// + /// Initializes a new instance of the class. + /// + /// The group id for the component referencing a controller service. If this component is another controller service or a reporting task, this field is blank.. + /// The id of the component referencing a controller service.. + /// The name of the component referencing a controller service.. + /// The type of the component referencing a controller service in simple Java class name format without package name.. + /// The scheduled state of a processor or reporting task referencing a controller service. If this component is another controller service, this field represents the controller service state.. + /// The properties for the component.. + /// The descriptors for the component properties.. + /// The validation errors for the component.. + /// The type of reference this is.. + /// The number of active threads for the referencing component.. + /// If the referencing component represents a controller service, this indicates whether it has already been represented in this hierarchy.. + /// If the referencing component represents a controller service, these are the components that reference it.. + public ControllerServiceReferencingComponentDTO(string groupId = default(string), string id = default(string), string name = default(string), string type = default(string), string state = default(string), Dictionary properties = default(Dictionary), Dictionary descriptors = default(Dictionary), List validationErrors = default(List), ReferenceTypeEnum? referenceType = default(ReferenceTypeEnum?), int? activeThreadCount = default(int?), bool? referenceCycle = default(bool?), List referencingComponents = default(List)) + { + this.GroupId = groupId; + this.Id = id; + this.Name = name; + this.Type = type; + this.State = state; + this.Properties = properties; + this.Descriptors = descriptors; + this.ValidationErrors = validationErrors; + this.ReferenceType = referenceType; + this.ActiveThreadCount = activeThreadCount; + this.ReferenceCycle = referenceCycle; + this.ReferencingComponents = referencingComponents; + } + + /// + /// The group id for the component referencing a controller service. If this component is another controller service or a reporting task, this field is blank. + /// + /// The group id for the component referencing a controller service. If this component is another controller service or a reporting task, this field is blank. + [DataMember(Name="groupId", EmitDefaultValue=false)] + public string GroupId { get; set; } + + /// + /// The id of the component referencing a controller service. + /// + /// The id of the component referencing a controller service. + [DataMember(Name="id", EmitDefaultValue=false)] + public string Id { get; set; } + + /// + /// The name of the component referencing a controller service. + /// + /// The name of the component referencing a controller service. + [DataMember(Name="name", EmitDefaultValue=false)] + public string Name { get; set; } + + /// + /// The type of the component referencing a controller service in simple Java class name format without package name. + /// + /// The type of the component referencing a controller service in simple Java class name format without package name. + [DataMember(Name="type", EmitDefaultValue=false)] + public string Type { get; set; } + + /// + /// The scheduled state of a processor or reporting task referencing a controller service. If this component is another controller service, this field represents the controller service state. + /// + /// The scheduled state of a processor or reporting task referencing a controller service. If this component is another controller service, this field represents the controller service state. + [DataMember(Name="state", EmitDefaultValue=false)] + public string State { get; set; } + + /// + /// The properties for the component. + /// + /// The properties for the component. + [DataMember(Name="properties", EmitDefaultValue=false)] + public Dictionary Properties { get; set; } + + /// + /// The descriptors for the component properties. + /// + /// The descriptors for the component properties. + [DataMember(Name="descriptors", EmitDefaultValue=false)] + public Dictionary Descriptors { get; set; } + + /// + /// The validation errors for the component. + /// + /// The validation errors for the component. + [DataMember(Name="validationErrors", EmitDefaultValue=false)] + public List ValidationErrors { get; set; } + + + /// + /// The number of active threads for the referencing component. + /// + /// The number of active threads for the referencing component. + [DataMember(Name="activeThreadCount", EmitDefaultValue=false)] + public int? ActiveThreadCount { get; set; } + + /// + /// If the referencing component represents a controller service, this indicates whether it has already been represented in this hierarchy. + /// + /// If the referencing component represents a controller service, this indicates whether it has already been represented in this hierarchy. + [DataMember(Name="referenceCycle", EmitDefaultValue=false)] + public bool? ReferenceCycle { get; set; } + + /// + /// If the referencing component represents a controller service, these are the components that reference it. + /// + /// If the referencing component represents a controller service, these are the components that reference it. + [DataMember(Name="referencingComponents", EmitDefaultValue=false)] + public List ReferencingComponents { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class ControllerServiceReferencingComponentDTO {\n"); + sb.Append(" GroupId: ").Append(this.GroupId).Append("\n"); + sb.Append(" Id: ").Append(this.Id).Append("\n"); + sb.Append(" Name: ").Append(this.Name).Append("\n"); + sb.Append(" Type: ").Append(this.Type).Append("\n"); + sb.Append(" State: ").Append(this.State).Append("\n"); + sb.Append(" Properties: ").Append(this.Properties).Append("\n"); + sb.Append(" Descriptors: ").Append(this.Descriptors).Append("\n"); + sb.Append(" ValidationErrors: ").Append(this.ValidationErrors).Append("\n"); + sb.Append(" ReferenceType: ").Append(this.ReferenceType).Append("\n"); + sb.Append(" ActiveThreadCount: ").Append(this.ActiveThreadCount).Append("\n"); + sb.Append(" ReferenceCycle: ").Append(this.ReferenceCycle).Append("\n"); + sb.Append(" ReferencingComponents: ").Append(this.ReferencingComponents).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as ControllerServiceReferencingComponentDTO); + } + + /// + /// Returns true if ControllerServiceReferencingComponentDTO instances are equal + /// + /// Instance of ControllerServiceReferencingComponentDTO to be compared + /// Boolean + public bool Equals(ControllerServiceReferencingComponentDTO input) + { + if (input == null) + return false; + + return + ( + this.GroupId == input.GroupId || + (this.GroupId != null && + this.GroupId.Equals(input.GroupId)) + ) && + ( + this.Id == input.Id || + (this.Id != null && + this.Id.Equals(input.Id)) + ) && + ( + this.Name == input.Name || + (this.Name != null && + this.Name.Equals(input.Name)) + ) && + ( + this.Type == input.Type || + (this.Type != null && + this.Type.Equals(input.Type)) + ) && + ( + this.State == input.State || + (this.State != null && + this.State.Equals(input.State)) + ) && + ( + this.Properties == input.Properties || + this.Properties != null && + this.Properties.SequenceEqual(input.Properties) + ) && + ( + this.Descriptors == input.Descriptors || + this.Descriptors != null && + this.Descriptors.SequenceEqual(input.Descriptors) + ) && + ( + this.ValidationErrors == input.ValidationErrors || + this.ValidationErrors != null && + this.ValidationErrors.SequenceEqual(input.ValidationErrors) + ) && + ( + this.ReferenceType == input.ReferenceType || + (this.ReferenceType != null && + this.ReferenceType.Equals(input.ReferenceType)) + ) && + ( + this.ActiveThreadCount == input.ActiveThreadCount || + (this.ActiveThreadCount != null && + this.ActiveThreadCount.Equals(input.ActiveThreadCount)) + ) && + ( + this.ReferenceCycle == input.ReferenceCycle || + (this.ReferenceCycle != null && + this.ReferenceCycle.Equals(input.ReferenceCycle)) + ) && + ( + this.ReferencingComponents == input.ReferencingComponents || + this.ReferencingComponents != null && + this.ReferencingComponents.SequenceEqual(input.ReferencingComponents) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.GroupId != null) + hashCode = hashCode * 59 + this.GroupId.GetHashCode(); + if (this.Id != null) + hashCode = hashCode * 59 + this.Id.GetHashCode(); + if (this.Name != null) + hashCode = hashCode * 59 + this.Name.GetHashCode(); + if (this.Type != null) + hashCode = hashCode * 59 + this.Type.GetHashCode(); + if (this.State != null) + hashCode = hashCode * 59 + this.State.GetHashCode(); + if (this.Properties != null) + hashCode = hashCode * 59 + this.Properties.GetHashCode(); + if (this.Descriptors != null) + hashCode = hashCode * 59 + this.Descriptors.GetHashCode(); + if (this.ValidationErrors != null) + hashCode = hashCode * 59 + this.ValidationErrors.GetHashCode(); + if (this.ReferenceType != null) + hashCode = hashCode * 59 + this.ReferenceType.GetHashCode(); + if (this.ActiveThreadCount != null) + hashCode = hashCode * 59 + this.ActiveThreadCount.GetHashCode(); + if (this.ReferenceCycle != null) + hashCode = hashCode * 59 + this.ReferenceCycle.GetHashCode(); + if (this.ReferencingComponents != null) + hashCode = hashCode * 59 + this.ReferencingComponents.GetHashCode(); + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/NiFi.Swagger/Model/ControllerServiceReferencingComponentEntity.cs b/NiFi.Swagger/Model/ControllerServiceReferencingComponentEntity.cs new file mode 100644 index 0000000..745aa41 --- /dev/null +++ b/NiFi.Swagger/Model/ControllerServiceReferencingComponentEntity.cs @@ -0,0 +1,255 @@ +/* + * NiFi Rest Api + * + * The Rest Api provides programmatic access to command and control a NiFi instance in real time. Start and stop processors, monitor queues, query provenance data, and more. Each endpoint below includes a description, definitions of the expected input and output, potential response codes, and the authorizations required to invoke each service. + * + * OpenAPI spec version: 1.9.1 + * Contact: dev@nifi.apache.org + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +namespace NiFi.Swagger.Model +{ + using System; + using System.Collections.Generic; + using System.ComponentModel.DataAnnotations; + using System.Linq; + using System.Runtime.Serialization; + using System.Text; + + using Newtonsoft.Json; + + /// + /// ControllerServiceReferencingComponentEntity + /// + [DataContract] + public partial class ControllerServiceReferencingComponentEntity : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// The revision for this request/response. The revision is required for any mutable flow requests and is included in all responses.. + /// The id of the component.. + /// The URI for futures requests to the component.. + /// The position of this component in the UI if applicable.. + /// The permissions for this component.. + /// The bulletins for this component.. + /// Acknowledges that this node is disconnected to allow for mutable requests to proceed.. + /// component. + /// The permissions for this component operations.. + public ControllerServiceReferencingComponentEntity(RevisionDTO revision = default(RevisionDTO), string id = default(string), string uri = default(string), PositionDTO position = default(PositionDTO), PermissionsDTO permissions = default(PermissionsDTO), List bulletins = default(List), bool? disconnectedNodeAcknowledged = default(bool?), ControllerServiceReferencingComponentDTO component = default(ControllerServiceReferencingComponentDTO), PermissionsDTO operatePermissions = default(PermissionsDTO)) + { + this.Revision = revision; + this.Id = id; + this.Uri = uri; + this.Position = position; + this.Permissions = permissions; + this.Bulletins = bulletins; + this.DisconnectedNodeAcknowledged = disconnectedNodeAcknowledged; + this.Component = component; + this.OperatePermissions = operatePermissions; + } + + /// + /// The revision for this request/response. The revision is required for any mutable flow requests and is included in all responses. + /// + /// The revision for this request/response. The revision is required for any mutable flow requests and is included in all responses. + [DataMember(Name="revision", EmitDefaultValue=false)] + public RevisionDTO Revision { get; set; } + + /// + /// The id of the component. + /// + /// The id of the component. + [DataMember(Name="id", EmitDefaultValue=false)] + public string Id { get; set; } + + /// + /// The URI for futures requests to the component. + /// + /// The URI for futures requests to the component. + [DataMember(Name="uri", EmitDefaultValue=false)] + public string Uri { get; set; } + + /// + /// The position of this component in the UI if applicable. + /// + /// The position of this component in the UI if applicable. + [DataMember(Name="position", EmitDefaultValue=false)] + public PositionDTO Position { get; set; } + + /// + /// The permissions for this component. + /// + /// The permissions for this component. + [DataMember(Name="permissions", EmitDefaultValue=false)] + public PermissionsDTO Permissions { get; set; } + + /// + /// The bulletins for this component. + /// + /// The bulletins for this component. + [DataMember(Name="bulletins", EmitDefaultValue=false)] + public List Bulletins { get; set; } + + /// + /// Acknowledges that this node is disconnected to allow for mutable requests to proceed. + /// + /// Acknowledges that this node is disconnected to allow for mutable requests to proceed. + [DataMember(Name="disconnectedNodeAcknowledged", EmitDefaultValue=false)] + public bool? DisconnectedNodeAcknowledged { get; set; } + + /// + /// Gets or Sets Component + /// + [DataMember(Name="component", EmitDefaultValue=false)] + public ControllerServiceReferencingComponentDTO Component { get; set; } + + /// + /// The permissions for this component operations. + /// + /// The permissions for this component operations. + [DataMember(Name="operatePermissions", EmitDefaultValue=false)] + public PermissionsDTO OperatePermissions { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class ControllerServiceReferencingComponentEntity {\n"); + sb.Append(" Revision: ").Append(this.Revision).Append("\n"); + sb.Append(" Id: ").Append(this.Id).Append("\n"); + sb.Append(" Uri: ").Append(this.Uri).Append("\n"); + sb.Append(" Position: ").Append(this.Position).Append("\n"); + sb.Append(" Permissions: ").Append(this.Permissions).Append("\n"); + sb.Append(" Bulletins: ").Append(this.Bulletins).Append("\n"); + sb.Append(" DisconnectedNodeAcknowledged: ").Append(this.DisconnectedNodeAcknowledged).Append("\n"); + sb.Append(" Component: ").Append(this.Component).Append("\n"); + sb.Append(" OperatePermissions: ").Append(this.OperatePermissions).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as ControllerServiceReferencingComponentEntity); + } + + /// + /// Returns true if ControllerServiceReferencingComponentEntity instances are equal + /// + /// Instance of ControllerServiceReferencingComponentEntity to be compared + /// Boolean + public bool Equals(ControllerServiceReferencingComponentEntity input) + { + if (input == null) + return false; + + return + ( + this.Revision == input.Revision || + (this.Revision != null && + this.Revision.Equals(input.Revision)) + ) && + ( + this.Id == input.Id || + (this.Id != null && + this.Id.Equals(input.Id)) + ) && + ( + this.Uri == input.Uri || + (this.Uri != null && + this.Uri.Equals(input.Uri)) + ) && + ( + this.Position == input.Position || + (this.Position != null && + this.Position.Equals(input.Position)) + ) && + ( + this.Permissions == input.Permissions || + (this.Permissions != null && + this.Permissions.Equals(input.Permissions)) + ) && + ( + this.Bulletins == input.Bulletins || + this.Bulletins != null && + this.Bulletins.SequenceEqual(input.Bulletins) + ) && + ( + this.DisconnectedNodeAcknowledged == input.DisconnectedNodeAcknowledged || + (this.DisconnectedNodeAcknowledged != null && + this.DisconnectedNodeAcknowledged.Equals(input.DisconnectedNodeAcknowledged)) + ) && + ( + this.Component == input.Component || + (this.Component != null && + this.Component.Equals(input.Component)) + ) && + ( + this.OperatePermissions == input.OperatePermissions || + (this.OperatePermissions != null && + this.OperatePermissions.Equals(input.OperatePermissions)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Revision != null) + hashCode = hashCode * 59 + this.Revision.GetHashCode(); + if (this.Id != null) + hashCode = hashCode * 59 + this.Id.GetHashCode(); + if (this.Uri != null) + hashCode = hashCode * 59 + this.Uri.GetHashCode(); + if (this.Position != null) + hashCode = hashCode * 59 + this.Position.GetHashCode(); + if (this.Permissions != null) + hashCode = hashCode * 59 + this.Permissions.GetHashCode(); + if (this.Bulletins != null) + hashCode = hashCode * 59 + this.Bulletins.GetHashCode(); + if (this.DisconnectedNodeAcknowledged != null) + hashCode = hashCode * 59 + this.DisconnectedNodeAcknowledged.GetHashCode(); + if (this.Component != null) + hashCode = hashCode * 59 + this.Component.GetHashCode(); + if (this.OperatePermissions != null) + hashCode = hashCode * 59 + this.OperatePermissions.GetHashCode(); + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/NiFi.Swagger/Model/ControllerServiceReferencingComponentsEntity.cs b/NiFi.Swagger/Model/ControllerServiceReferencingComponentsEntity.cs new file mode 100644 index 0000000..2f8590b --- /dev/null +++ b/NiFi.Swagger/Model/ControllerServiceReferencingComponentsEntity.cs @@ -0,0 +1,119 @@ +/* + * NiFi Rest Api + * + * The Rest Api provides programmatic access to command and control a NiFi instance in real time. Start and stop processors, monitor queues, query provenance data, and more. Each endpoint below includes a description, definitions of the expected input and output, potential response codes, and the authorizations required to invoke each service. + * + * OpenAPI spec version: 1.9.1 + * Contact: dev@nifi.apache.org + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +namespace NiFi.Swagger.Model +{ + using System; + using System.Collections.Generic; + using System.ComponentModel.DataAnnotations; + using System.Linq; + using System.Runtime.Serialization; + using System.Text; + + using Newtonsoft.Json; + + /// + /// ControllerServiceReferencingComponentsEntity + /// + [DataContract] + public partial class ControllerServiceReferencingComponentsEntity : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// controllerServiceReferencingComponents. + public ControllerServiceReferencingComponentsEntity(List controllerServiceReferencingComponents = default(List)) + { + this.ControllerServiceReferencingComponents = controllerServiceReferencingComponents; + } + + /// + /// Gets or Sets ControllerServiceReferencingComponents + /// + [DataMember(Name="controllerServiceReferencingComponents", EmitDefaultValue=false)] + public List ControllerServiceReferencingComponents { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class ControllerServiceReferencingComponentsEntity {\n"); + sb.Append(" ControllerServiceReferencingComponents: ").Append(this.ControllerServiceReferencingComponents).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as ControllerServiceReferencingComponentsEntity); + } + + /// + /// Returns true if ControllerServiceReferencingComponentsEntity instances are equal + /// + /// Instance of ControllerServiceReferencingComponentsEntity to be compared + /// Boolean + public bool Equals(ControllerServiceReferencingComponentsEntity input) + { + if (input == null) + return false; + + return + ( + this.ControllerServiceReferencingComponents == input.ControllerServiceReferencingComponents || + this.ControllerServiceReferencingComponents != null && + this.ControllerServiceReferencingComponents.SequenceEqual(input.ControllerServiceReferencingComponents) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.ControllerServiceReferencingComponents != null) + hashCode = hashCode * 59 + this.ControllerServiceReferencingComponents.GetHashCode(); + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/NiFi.Swagger/Model/ControllerServiceRunStatusEntity.cs b/NiFi.Swagger/Model/ControllerServiceRunStatusEntity.cs new file mode 100644 index 0000000..5cb02f6 --- /dev/null +++ b/NiFi.Swagger/Model/ControllerServiceRunStatusEntity.cs @@ -0,0 +1,175 @@ +/* + * NiFi Rest Api + * + * The Rest Api provides programmatic access to command and control a NiFi instance in real time. Start and stop processors, monitor queues, query provenance data, and more. Each endpoint below includes a description, definitions of the expected input and output, potential response codes, and the authorizations required to invoke each service. + * + * OpenAPI spec version: 1.9.1 + * Contact: dev@nifi.apache.org + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +namespace NiFi.Swagger.Model +{ + using System; + using System.Collections.Generic; + using System.ComponentModel.DataAnnotations; + using System.Runtime.Serialization; + using System.Text; + + using Newtonsoft.Json; + using Newtonsoft.Json.Converters; + + /// + /// ControllerServiceRunStatusEntity + /// + [DataContract] + public partial class ControllerServiceRunStatusEntity : IEquatable, IValidatableObject + { + /// + /// The run status of the ControllerService. + /// + /// The run status of the ControllerService. + [JsonConverter(typeof(StringEnumConverter))] + public enum StateEnum + { + + /// + /// Enum ENABLED for value: ENABLED + /// + [EnumMember(Value = "ENABLED")] + ENABLED = 1, + + /// + /// Enum DISABLED for value: DISABLED + /// + [EnumMember(Value = "DISABLED")] + DISABLED = 2 + } + + /// + /// The run status of the ControllerService. + /// + /// The run status of the ControllerService. + [DataMember(Name="state", EmitDefaultValue=false)] + public StateEnum? State { get; set; } + /// + /// Initializes a new instance of the class. + /// + /// The revision for this request/response. The revision is required for any mutable flow requests and is included in all responses.. + /// The run status of the ControllerService.. + /// Acknowledges that this node is disconnected to allow for mutable requests to proceed.. + public ControllerServiceRunStatusEntity(RevisionDTO revision = default(RevisionDTO), StateEnum? state = default(StateEnum?), bool? disconnectedNodeAcknowledged = default(bool?)) + { + this.Revision = revision; + this.State = state; + this.DisconnectedNodeAcknowledged = disconnectedNodeAcknowledged; + } + + /// + /// The revision for this request/response. The revision is required for any mutable flow requests and is included in all responses. + /// + /// The revision for this request/response. The revision is required for any mutable flow requests and is included in all responses. + [DataMember(Name="revision", EmitDefaultValue=false)] + public RevisionDTO Revision { get; set; } + + + /// + /// Acknowledges that this node is disconnected to allow for mutable requests to proceed. + /// + /// Acknowledges that this node is disconnected to allow for mutable requests to proceed. + [DataMember(Name="disconnectedNodeAcknowledged", EmitDefaultValue=false)] + public bool? DisconnectedNodeAcknowledged { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class ControllerServiceRunStatusEntity {\n"); + sb.Append(" Revision: ").Append(this.Revision).Append("\n"); + sb.Append(" State: ").Append(this.State).Append("\n"); + sb.Append(" DisconnectedNodeAcknowledged: ").Append(this.DisconnectedNodeAcknowledged).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as ControllerServiceRunStatusEntity); + } + + /// + /// Returns true if ControllerServiceRunStatusEntity instances are equal + /// + /// Instance of ControllerServiceRunStatusEntity to be compared + /// Boolean + public bool Equals(ControllerServiceRunStatusEntity input) + { + if (input == null) + return false; + + return + ( + this.Revision == input.Revision || + (this.Revision != null && + this.Revision.Equals(input.Revision)) + ) && + ( + this.State == input.State || + (this.State != null && + this.State.Equals(input.State)) + ) && + ( + this.DisconnectedNodeAcknowledged == input.DisconnectedNodeAcknowledged || + (this.DisconnectedNodeAcknowledged != null && + this.DisconnectedNodeAcknowledged.Equals(input.DisconnectedNodeAcknowledged)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Revision != null) + hashCode = hashCode * 59 + this.Revision.GetHashCode(); + if (this.State != null) + hashCode = hashCode * 59 + this.State.GetHashCode(); + if (this.DisconnectedNodeAcknowledged != null) + hashCode = hashCode * 59 + this.DisconnectedNodeAcknowledged.GetHashCode(); + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/NiFi.Swagger/Model/ControllerServiceStatusDTO.cs b/NiFi.Swagger/Model/ControllerServiceStatusDTO.cs new file mode 100644 index 0000000..8a06798 --- /dev/null +++ b/NiFi.Swagger/Model/ControllerServiceStatusDTO.cs @@ -0,0 +1,210 @@ +/* + * NiFi Rest Api + * + * The Rest Api provides programmatic access to command and control a NiFi instance in real time. Start and stop processors, monitor queues, query provenance data, and more. Each endpoint below includes a description, definitions of the expected input and output, potential response codes, and the authorizations required to invoke each service. + * + * OpenAPI spec version: 1.9.1 + * Contact: dev@nifi.apache.org + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +namespace NiFi.Swagger.Model +{ + using System; + using System.Collections.Generic; + using System.ComponentModel.DataAnnotations; + using System.Runtime.Serialization; + using System.Text; + + using Newtonsoft.Json; + using Newtonsoft.Json.Converters; + + /// + /// ControllerServiceStatusDTO + /// + [DataContract] + public partial class ControllerServiceStatusDTO : IEquatable, IValidatableObject + { + /// + /// The run status of this ControllerService + /// + /// The run status of this ControllerService + [JsonConverter(typeof(StringEnumConverter))] + public enum RunStatusEnum + { + + /// + /// Enum ENABLED for value: ENABLED + /// + [EnumMember(Value = "ENABLED")] + ENABLED = 1, + + /// + /// Enum ENABLING for value: ENABLING + /// + [EnumMember(Value = "ENABLING")] + ENABLING = 2, + + /// + /// Enum DISABLED for value: DISABLED + /// + [EnumMember(Value = "DISABLED")] + DISABLED = 3, + + /// + /// Enum DISABLING for value: DISABLING + /// + [EnumMember(Value = "DISABLING")] + DISABLING = 4 + } + + /// + /// The run status of this ControllerService + /// + /// The run status of this ControllerService + [DataMember(Name="runStatus", EmitDefaultValue=false)] + public RunStatusEnum? RunStatus { get; set; } + /// + /// Indicates whether the component is valid, invalid, or still in the process of validating (i.e., it is unknown whether or not the component is valid) + /// + /// Indicates whether the component is valid, invalid, or still in the process of validating (i.e., it is unknown whether or not the component is valid) + [JsonConverter(typeof(StringEnumConverter))] + public enum ValidationStatusEnum + { + + /// + /// Enum VALID for value: VALID + /// + [EnumMember(Value = "VALID")] + VALID = 1, + + /// + /// Enum INVALID for value: INVALID + /// + [EnumMember(Value = "INVALID")] + INVALID = 2, + + /// + /// Enum VALIDATING for value: VALIDATING + /// + [EnumMember(Value = "VALIDATING")] + VALIDATING = 3 + } + + /// + /// Indicates whether the component is valid, invalid, or still in the process of validating (i.e., it is unknown whether or not the component is valid) + /// + /// Indicates whether the component is valid, invalid, or still in the process of validating (i.e., it is unknown whether or not the component is valid) + [DataMember(Name="validationStatus", EmitDefaultValue=false)] + public ValidationStatusEnum? ValidationStatus { get; set; } + /// + /// Initializes a new instance of the class. + /// + /// The number of active threads for the component.. + public ControllerServiceStatusDTO(int? activeThreadCount = default(int?)) + { + this.ActiveThreadCount = activeThreadCount; + } + + + + /// + /// The number of active threads for the component. + /// + /// The number of active threads for the component. + [DataMember(Name="activeThreadCount", EmitDefaultValue=false)] + public int? ActiveThreadCount { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class ControllerServiceStatusDTO {\n"); + sb.Append(" RunStatus: ").Append(this.RunStatus).Append("\n"); + sb.Append(" ValidationStatus: ").Append(this.ValidationStatus).Append("\n"); + sb.Append(" ActiveThreadCount: ").Append(this.ActiveThreadCount).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as ControllerServiceStatusDTO); + } + + /// + /// Returns true if ControllerServiceStatusDTO instances are equal + /// + /// Instance of ControllerServiceStatusDTO to be compared + /// Boolean + public bool Equals(ControllerServiceStatusDTO input) + { + if (input == null) + return false; + + return + ( + this.RunStatus == input.RunStatus || + (this.RunStatus != null && + this.RunStatus.Equals(input.RunStatus)) + ) && + ( + this.ValidationStatus == input.ValidationStatus || + (this.ValidationStatus != null && + this.ValidationStatus.Equals(input.ValidationStatus)) + ) && + ( + this.ActiveThreadCount == input.ActiveThreadCount || + (this.ActiveThreadCount != null && + this.ActiveThreadCount.Equals(input.ActiveThreadCount)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.RunStatus != null) + hashCode = hashCode * 59 + this.RunStatus.GetHashCode(); + if (this.ValidationStatus != null) + hashCode = hashCode * 59 + this.ValidationStatus.GetHashCode(); + if (this.ActiveThreadCount != null) + hashCode = hashCode * 59 + this.ActiveThreadCount.GetHashCode(); + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/NiFi.Swagger/Model/ControllerServiceTypesEntity.cs b/NiFi.Swagger/Model/ControllerServiceTypesEntity.cs new file mode 100644 index 0000000..3196e5b --- /dev/null +++ b/NiFi.Swagger/Model/ControllerServiceTypesEntity.cs @@ -0,0 +1,119 @@ +/* + * NiFi Rest Api + * + * The Rest Api provides programmatic access to command and control a NiFi instance in real time. Start and stop processors, monitor queues, query provenance data, and more. Each endpoint below includes a description, definitions of the expected input and output, potential response codes, and the authorizations required to invoke each service. + * + * OpenAPI spec version: 1.9.1 + * Contact: dev@nifi.apache.org + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +namespace NiFi.Swagger.Model +{ + using System; + using System.Collections.Generic; + using System.ComponentModel.DataAnnotations; + using System.Linq; + using System.Runtime.Serialization; + using System.Text; + + using Newtonsoft.Json; + + /// + /// ControllerServiceTypesEntity + /// + [DataContract] + public partial class ControllerServiceTypesEntity : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// controllerServiceTypes. + public ControllerServiceTypesEntity(List controllerServiceTypes = default(List)) + { + this.ControllerServiceTypes = controllerServiceTypes; + } + + /// + /// Gets or Sets ControllerServiceTypes + /// + [DataMember(Name="controllerServiceTypes", EmitDefaultValue=false)] + public List ControllerServiceTypes { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class ControllerServiceTypesEntity {\n"); + sb.Append(" ControllerServiceTypes: ").Append(this.ControllerServiceTypes).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as ControllerServiceTypesEntity); + } + + /// + /// Returns true if ControllerServiceTypesEntity instances are equal + /// + /// Instance of ControllerServiceTypesEntity to be compared + /// Boolean + public bool Equals(ControllerServiceTypesEntity input) + { + if (input == null) + return false; + + return + ( + this.ControllerServiceTypes == input.ControllerServiceTypes || + this.ControllerServiceTypes != null && + this.ControllerServiceTypes.SequenceEqual(input.ControllerServiceTypes) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.ControllerServiceTypes != null) + hashCode = hashCode * 59 + this.ControllerServiceTypes.GetHashCode(); + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/NiFi.Swagger/Model/ControllerServicesEntity.cs b/NiFi.Swagger/Model/ControllerServicesEntity.cs new file mode 100644 index 0000000..0ea6416 --- /dev/null +++ b/NiFi.Swagger/Model/ControllerServicesEntity.cs @@ -0,0 +1,136 @@ +/* + * NiFi Rest Api + * + * The Rest Api provides programmatic access to command and control a NiFi instance in real time. Start and stop processors, monitor queues, query provenance data, and more. Each endpoint below includes a description, definitions of the expected input and output, potential response codes, and the authorizations required to invoke each service. + * + * OpenAPI spec version: 1.9.1 + * Contact: dev@nifi.apache.org + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +namespace NiFi.Swagger.Model +{ + using System; + using System.Collections.Generic; + using System.ComponentModel.DataAnnotations; + using System.Linq; + using System.Runtime.Serialization; + using System.Text; + + using Newtonsoft.Json; + + /// + /// ControllerServicesEntity + /// + [DataContract] + public partial class ControllerServicesEntity : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// The current time on the system.. + /// controllerServices. + public ControllerServicesEntity(string currentTime = default(string), List controllerServices = default(List)) + { + this.CurrentTime = currentTime; + this.ControllerServices = controllerServices; + } + + /// + /// The current time on the system. + /// + /// The current time on the system. + [DataMember(Name="currentTime", EmitDefaultValue=false)] + public string CurrentTime { get; set; } + + /// + /// Gets or Sets ControllerServices + /// + [DataMember(Name="controllerServices", EmitDefaultValue=false)] + public List ControllerServices { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class ControllerServicesEntity {\n"); + sb.Append(" CurrentTime: ").Append(this.CurrentTime).Append("\n"); + sb.Append(" ControllerServices: ").Append(this.ControllerServices).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as ControllerServicesEntity); + } + + /// + /// Returns true if ControllerServicesEntity instances are equal + /// + /// Instance of ControllerServicesEntity to be compared + /// Boolean + public bool Equals(ControllerServicesEntity input) + { + if (input == null) + return false; + + return + ( + this.CurrentTime == input.CurrentTime || + (this.CurrentTime != null && + this.CurrentTime.Equals(input.CurrentTime)) + ) && + ( + this.ControllerServices == input.ControllerServices || + this.ControllerServices != null && + this.ControllerServices.SequenceEqual(input.ControllerServices) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.CurrentTime != null) + hashCode = hashCode * 59 + this.CurrentTime.GetHashCode(); + if (this.ControllerServices != null) + hashCode = hashCode * 59 + this.ControllerServices.GetHashCode(); + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/NiFi.Swagger/Model/ControllerStatusDTO.cs b/NiFi.Swagger/Model/ControllerStatusDTO.cs new file mode 100644 index 0000000..939374c --- /dev/null +++ b/NiFi.Swagger/Model/ControllerStatusDTO.cs @@ -0,0 +1,374 @@ +/* + * NiFi Rest Api + * + * The Rest Api provides programmatic access to command and control a NiFi instance in real time. Start and stop processors, monitor queues, query provenance data, and more. Each endpoint below includes a description, definitions of the expected input and output, potential response codes, and the authorizations required to invoke each service. + * + * OpenAPI spec version: 1.9.1 + * Contact: dev@nifi.apache.org + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +namespace NiFi.Swagger.Model +{ + using System; + using System.Collections.Generic; + using System.ComponentModel.DataAnnotations; + using System.Runtime.Serialization; + using System.Text; + + using Newtonsoft.Json; + + /// + /// ControllerStatusDTO + /// + [DataContract] + public partial class ControllerStatusDTO : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// The number of active threads in the NiFi.. + /// The number of terminated threads in the NiFi.. + /// The number of flowfiles queued in the NiFi.. + /// The number of FlowFiles queued across the entire flow. + /// The size of the FlowFiles queued across the entire flow. + /// The number of running components in the NiFi.. + /// The number of stopped components in the NiFi.. + /// The number of invalid components in the NiFi.. + /// The number of disabled components in the NiFi.. + /// The number of active remote ports in the NiFi.. + /// The number of inactive remote ports in the NiFi.. + /// The number of up to date versioned process groups in the NiFi.. + /// The number of locally modified versioned process groups in the NiFi.. + /// The number of stale versioned process groups in the NiFi.. + /// The number of locally modified and stale versioned process groups in the NiFi.. + /// The number of versioned process groups in the NiFi that are unable to sync to a registry.. + public ControllerStatusDTO(int? activeThreadCount = default(int?), int? terminatedThreadCount = default(int?), string queued = default(string), int? flowFilesQueued = default(int?), long? bytesQueued = default(long?), int? runningCount = default(int?), int? stoppedCount = default(int?), int? invalidCount = default(int?), int? disabledCount = default(int?), int? activeRemotePortCount = default(int?), int? inactiveRemotePortCount = default(int?), int? upToDateCount = default(int?), int? locallyModifiedCount = default(int?), int? staleCount = default(int?), int? locallyModifiedAndStaleCount = default(int?), int? syncFailureCount = default(int?)) + { + this.ActiveThreadCount = activeThreadCount; + this.TerminatedThreadCount = terminatedThreadCount; + this.Queued = queued; + this.FlowFilesQueued = flowFilesQueued; + this.BytesQueued = bytesQueued; + this.RunningCount = runningCount; + this.StoppedCount = stoppedCount; + this.InvalidCount = invalidCount; + this.DisabledCount = disabledCount; + this.ActiveRemotePortCount = activeRemotePortCount; + this.InactiveRemotePortCount = inactiveRemotePortCount; + this.UpToDateCount = upToDateCount; + this.LocallyModifiedCount = locallyModifiedCount; + this.StaleCount = staleCount; + this.LocallyModifiedAndStaleCount = locallyModifiedAndStaleCount; + this.SyncFailureCount = syncFailureCount; + } + + /// + /// The number of active threads in the NiFi. + /// + /// The number of active threads in the NiFi. + [DataMember(Name="activeThreadCount", EmitDefaultValue=false)] + public int? ActiveThreadCount { get; set; } + + /// + /// The number of terminated threads in the NiFi. + /// + /// The number of terminated threads in the NiFi. + [DataMember(Name="terminatedThreadCount", EmitDefaultValue=false)] + public int? TerminatedThreadCount { get; set; } + + /// + /// The number of flowfiles queued in the NiFi. + /// + /// The number of flowfiles queued in the NiFi. + [DataMember(Name="queued", EmitDefaultValue=false)] + public string Queued { get; set; } + + /// + /// The number of FlowFiles queued across the entire flow + /// + /// The number of FlowFiles queued across the entire flow + [DataMember(Name="flowFilesQueued", EmitDefaultValue=false)] + public int? FlowFilesQueued { get; set; } + + /// + /// The size of the FlowFiles queued across the entire flow + /// + /// The size of the FlowFiles queued across the entire flow + [DataMember(Name="bytesQueued", EmitDefaultValue=false)] + public long? BytesQueued { get; set; } + + /// + /// The number of running components in the NiFi. + /// + /// The number of running components in the NiFi. + [DataMember(Name="runningCount", EmitDefaultValue=false)] + public int? RunningCount { get; set; } + + /// + /// The number of stopped components in the NiFi. + /// + /// The number of stopped components in the NiFi. + [DataMember(Name="stoppedCount", EmitDefaultValue=false)] + public int? StoppedCount { get; set; } + + /// + /// The number of invalid components in the NiFi. + /// + /// The number of invalid components in the NiFi. + [DataMember(Name="invalidCount", EmitDefaultValue=false)] + public int? InvalidCount { get; set; } + + /// + /// The number of disabled components in the NiFi. + /// + /// The number of disabled components in the NiFi. + [DataMember(Name="disabledCount", EmitDefaultValue=false)] + public int? DisabledCount { get; set; } + + /// + /// The number of active remote ports in the NiFi. + /// + /// The number of active remote ports in the NiFi. + [DataMember(Name="activeRemotePortCount", EmitDefaultValue=false)] + public int? ActiveRemotePortCount { get; set; } + + /// + /// The number of inactive remote ports in the NiFi. + /// + /// The number of inactive remote ports in the NiFi. + [DataMember(Name="inactiveRemotePortCount", EmitDefaultValue=false)] + public int? InactiveRemotePortCount { get; set; } + + /// + /// The number of up to date versioned process groups in the NiFi. + /// + /// The number of up to date versioned process groups in the NiFi. + [DataMember(Name="upToDateCount", EmitDefaultValue=false)] + public int? UpToDateCount { get; set; } + + /// + /// The number of locally modified versioned process groups in the NiFi. + /// + /// The number of locally modified versioned process groups in the NiFi. + [DataMember(Name="locallyModifiedCount", EmitDefaultValue=false)] + public int? LocallyModifiedCount { get; set; } + + /// + /// The number of stale versioned process groups in the NiFi. + /// + /// The number of stale versioned process groups in the NiFi. + [DataMember(Name="staleCount", EmitDefaultValue=false)] + public int? StaleCount { get; set; } + + /// + /// The number of locally modified and stale versioned process groups in the NiFi. + /// + /// The number of locally modified and stale versioned process groups in the NiFi. + [DataMember(Name="locallyModifiedAndStaleCount", EmitDefaultValue=false)] + public int? LocallyModifiedAndStaleCount { get; set; } + + /// + /// The number of versioned process groups in the NiFi that are unable to sync to a registry. + /// + /// The number of versioned process groups in the NiFi that are unable to sync to a registry. + [DataMember(Name="syncFailureCount", EmitDefaultValue=false)] + public int? SyncFailureCount { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class ControllerStatusDTO {\n"); + sb.Append(" ActiveThreadCount: ").Append(this.ActiveThreadCount).Append("\n"); + sb.Append(" TerminatedThreadCount: ").Append(this.TerminatedThreadCount).Append("\n"); + sb.Append(" Queued: ").Append(this.Queued).Append("\n"); + sb.Append(" FlowFilesQueued: ").Append(this.FlowFilesQueued).Append("\n"); + sb.Append(" BytesQueued: ").Append(this.BytesQueued).Append("\n"); + sb.Append(" RunningCount: ").Append(this.RunningCount).Append("\n"); + sb.Append(" StoppedCount: ").Append(this.StoppedCount).Append("\n"); + sb.Append(" InvalidCount: ").Append(this.InvalidCount).Append("\n"); + sb.Append(" DisabledCount: ").Append(this.DisabledCount).Append("\n"); + sb.Append(" ActiveRemotePortCount: ").Append(this.ActiveRemotePortCount).Append("\n"); + sb.Append(" InactiveRemotePortCount: ").Append(this.InactiveRemotePortCount).Append("\n"); + sb.Append(" UpToDateCount: ").Append(this.UpToDateCount).Append("\n"); + sb.Append(" LocallyModifiedCount: ").Append(this.LocallyModifiedCount).Append("\n"); + sb.Append(" StaleCount: ").Append(this.StaleCount).Append("\n"); + sb.Append(" LocallyModifiedAndStaleCount: ").Append(this.LocallyModifiedAndStaleCount).Append("\n"); + sb.Append(" SyncFailureCount: ").Append(this.SyncFailureCount).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as ControllerStatusDTO); + } + + /// + /// Returns true if ControllerStatusDTO instances are equal + /// + /// Instance of ControllerStatusDTO to be compared + /// Boolean + public bool Equals(ControllerStatusDTO input) + { + if (input == null) + return false; + + return + ( + this.ActiveThreadCount == input.ActiveThreadCount || + (this.ActiveThreadCount != null && + this.ActiveThreadCount.Equals(input.ActiveThreadCount)) + ) && + ( + this.TerminatedThreadCount == input.TerminatedThreadCount || + (this.TerminatedThreadCount != null && + this.TerminatedThreadCount.Equals(input.TerminatedThreadCount)) + ) && + ( + this.Queued == input.Queued || + (this.Queued != null && + this.Queued.Equals(input.Queued)) + ) && + ( + this.FlowFilesQueued == input.FlowFilesQueued || + (this.FlowFilesQueued != null && + this.FlowFilesQueued.Equals(input.FlowFilesQueued)) + ) && + ( + this.BytesQueued == input.BytesQueued || + (this.BytesQueued != null && + this.BytesQueued.Equals(input.BytesQueued)) + ) && + ( + this.RunningCount == input.RunningCount || + (this.RunningCount != null && + this.RunningCount.Equals(input.RunningCount)) + ) && + ( + this.StoppedCount == input.StoppedCount || + (this.StoppedCount != null && + this.StoppedCount.Equals(input.StoppedCount)) + ) && + ( + this.InvalidCount == input.InvalidCount || + (this.InvalidCount != null && + this.InvalidCount.Equals(input.InvalidCount)) + ) && + ( + this.DisabledCount == input.DisabledCount || + (this.DisabledCount != null && + this.DisabledCount.Equals(input.DisabledCount)) + ) && + ( + this.ActiveRemotePortCount == input.ActiveRemotePortCount || + (this.ActiveRemotePortCount != null && + this.ActiveRemotePortCount.Equals(input.ActiveRemotePortCount)) + ) && + ( + this.InactiveRemotePortCount == input.InactiveRemotePortCount || + (this.InactiveRemotePortCount != null && + this.InactiveRemotePortCount.Equals(input.InactiveRemotePortCount)) + ) && + ( + this.UpToDateCount == input.UpToDateCount || + (this.UpToDateCount != null && + this.UpToDateCount.Equals(input.UpToDateCount)) + ) && + ( + this.LocallyModifiedCount == input.LocallyModifiedCount || + (this.LocallyModifiedCount != null && + this.LocallyModifiedCount.Equals(input.LocallyModifiedCount)) + ) && + ( + this.StaleCount == input.StaleCount || + (this.StaleCount != null && + this.StaleCount.Equals(input.StaleCount)) + ) && + ( + this.LocallyModifiedAndStaleCount == input.LocallyModifiedAndStaleCount || + (this.LocallyModifiedAndStaleCount != null && + this.LocallyModifiedAndStaleCount.Equals(input.LocallyModifiedAndStaleCount)) + ) && + ( + this.SyncFailureCount == input.SyncFailureCount || + (this.SyncFailureCount != null && + this.SyncFailureCount.Equals(input.SyncFailureCount)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.ActiveThreadCount != null) + hashCode = hashCode * 59 + this.ActiveThreadCount.GetHashCode(); + if (this.TerminatedThreadCount != null) + hashCode = hashCode * 59 + this.TerminatedThreadCount.GetHashCode(); + if (this.Queued != null) + hashCode = hashCode * 59 + this.Queued.GetHashCode(); + if (this.FlowFilesQueued != null) + hashCode = hashCode * 59 + this.FlowFilesQueued.GetHashCode(); + if (this.BytesQueued != null) + hashCode = hashCode * 59 + this.BytesQueued.GetHashCode(); + if (this.RunningCount != null) + hashCode = hashCode * 59 + this.RunningCount.GetHashCode(); + if (this.StoppedCount != null) + hashCode = hashCode * 59 + this.StoppedCount.GetHashCode(); + if (this.InvalidCount != null) + hashCode = hashCode * 59 + this.InvalidCount.GetHashCode(); + if (this.DisabledCount != null) + hashCode = hashCode * 59 + this.DisabledCount.GetHashCode(); + if (this.ActiveRemotePortCount != null) + hashCode = hashCode * 59 + this.ActiveRemotePortCount.GetHashCode(); + if (this.InactiveRemotePortCount != null) + hashCode = hashCode * 59 + this.InactiveRemotePortCount.GetHashCode(); + if (this.UpToDateCount != null) + hashCode = hashCode * 59 + this.UpToDateCount.GetHashCode(); + if (this.LocallyModifiedCount != null) + hashCode = hashCode * 59 + this.LocallyModifiedCount.GetHashCode(); + if (this.StaleCount != null) + hashCode = hashCode * 59 + this.StaleCount.GetHashCode(); + if (this.LocallyModifiedAndStaleCount != null) + hashCode = hashCode * 59 + this.LocallyModifiedAndStaleCount.GetHashCode(); + if (this.SyncFailureCount != null) + hashCode = hashCode * 59 + this.SyncFailureCount.GetHashCode(); + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/NiFi.Swagger/Model/ControllerStatusEntity.cs b/NiFi.Swagger/Model/ControllerStatusEntity.cs new file mode 100644 index 0000000..30fab09 --- /dev/null +++ b/NiFi.Swagger/Model/ControllerStatusEntity.cs @@ -0,0 +1,118 @@ +/* + * NiFi Rest Api + * + * The Rest Api provides programmatic access to command and control a NiFi instance in real time. Start and stop processors, monitor queues, query provenance data, and more. Each endpoint below includes a description, definitions of the expected input and output, potential response codes, and the authorizations required to invoke each service. + * + * OpenAPI spec version: 1.9.1 + * Contact: dev@nifi.apache.org + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +namespace NiFi.Swagger.Model +{ + using System; + using System.Collections.Generic; + using System.ComponentModel.DataAnnotations; + using System.Runtime.Serialization; + using System.Text; + + using Newtonsoft.Json; + + /// + /// ControllerStatusEntity + /// + [DataContract] + public partial class ControllerStatusEntity : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// controllerStatus. + public ControllerStatusEntity(ControllerStatusDTO controllerStatus = default(ControllerStatusDTO)) + { + this.ControllerStatus = controllerStatus; + } + + /// + /// Gets or Sets ControllerStatus + /// + [DataMember(Name="controllerStatus", EmitDefaultValue=false)] + public ControllerStatusDTO ControllerStatus { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class ControllerStatusEntity {\n"); + sb.Append(" ControllerStatus: ").Append(this.ControllerStatus).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as ControllerStatusEntity); + } + + /// + /// Returns true if ControllerStatusEntity instances are equal + /// + /// Instance of ControllerStatusEntity to be compared + /// Boolean + public bool Equals(ControllerStatusEntity input) + { + if (input == null) + return false; + + return + ( + this.ControllerStatus == input.ControllerStatus || + (this.ControllerStatus != null && + this.ControllerStatus.Equals(input.ControllerStatus)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.ControllerStatus != null) + hashCode = hashCode * 59 + this.ControllerStatus.GetHashCode(); + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/NiFi.Swagger/Model/CopySnippetRequestEntity.cs b/NiFi.Swagger/Model/CopySnippetRequestEntity.cs new file mode 100644 index 0000000..c8a9024 --- /dev/null +++ b/NiFi.Swagger/Model/CopySnippetRequestEntity.cs @@ -0,0 +1,170 @@ +/* + * NiFi Rest Api + * + * The Rest Api provides programmatic access to command and control a NiFi instance in real time. Start and stop processors, monitor queues, query provenance data, and more. Each endpoint below includes a description, definitions of the expected input and output, potential response codes, and the authorizations required to invoke each service. + * + * OpenAPI spec version: 1.9.1 + * Contact: dev@nifi.apache.org + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +namespace NiFi.Swagger.Model +{ + using System; + using System.Collections.Generic; + using System.ComponentModel.DataAnnotations; + using System.Runtime.Serialization; + using System.Text; + + using Newtonsoft.Json; + + /// + /// CopySnippetRequestEntity + /// + [DataContract] + public partial class CopySnippetRequestEntity : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// The identifier of the snippet.. + /// The x coordinate of the origin of the bounding box where the new components will be placed.. + /// The y coordinate of the origin of the bounding box where the new components will be placed.. + /// Acknowledges that this node is disconnected to allow for mutable requests to proceed.. + public CopySnippetRequestEntity(string snippetId = default(string), double? originX = default(double?), double? originY = default(double?), bool? disconnectedNodeAcknowledged = default(bool?)) + { + this.SnippetId = snippetId; + this.OriginX = originX; + this.OriginY = originY; + this.DisconnectedNodeAcknowledged = disconnectedNodeAcknowledged; + } + + /// + /// The identifier of the snippet. + /// + /// The identifier of the snippet. + [DataMember(Name="snippetId", EmitDefaultValue=false)] + public string SnippetId { get; set; } + + /// + /// The x coordinate of the origin of the bounding box where the new components will be placed. + /// + /// The x coordinate of the origin of the bounding box where the new components will be placed. + [DataMember(Name="originX", EmitDefaultValue=false)] + public double? OriginX { get; set; } + + /// + /// The y coordinate of the origin of the bounding box where the new components will be placed. + /// + /// The y coordinate of the origin of the bounding box where the new components will be placed. + [DataMember(Name="originY", EmitDefaultValue=false)] + public double? OriginY { get; set; } + + /// + /// Acknowledges that this node is disconnected to allow for mutable requests to proceed. + /// + /// Acknowledges that this node is disconnected to allow for mutable requests to proceed. + [DataMember(Name="disconnectedNodeAcknowledged", EmitDefaultValue=false)] + public bool? DisconnectedNodeAcknowledged { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class CopySnippetRequestEntity {\n"); + sb.Append(" SnippetId: ").Append(this.SnippetId).Append("\n"); + sb.Append(" OriginX: ").Append(this.OriginX).Append("\n"); + sb.Append(" OriginY: ").Append(this.OriginY).Append("\n"); + sb.Append(" DisconnectedNodeAcknowledged: ").Append(this.DisconnectedNodeAcknowledged).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as CopySnippetRequestEntity); + } + + /// + /// Returns true if CopySnippetRequestEntity instances are equal + /// + /// Instance of CopySnippetRequestEntity to be compared + /// Boolean + public bool Equals(CopySnippetRequestEntity input) + { + if (input == null) + return false; + + return + ( + this.SnippetId == input.SnippetId || + (this.SnippetId != null && + this.SnippetId.Equals(input.SnippetId)) + ) && + ( + this.OriginX == input.OriginX || + (this.OriginX != null && + this.OriginX.Equals(input.OriginX)) + ) && + ( + this.OriginY == input.OriginY || + (this.OriginY != null && + this.OriginY.Equals(input.OriginY)) + ) && + ( + this.DisconnectedNodeAcknowledged == input.DisconnectedNodeAcknowledged || + (this.DisconnectedNodeAcknowledged != null && + this.DisconnectedNodeAcknowledged.Equals(input.DisconnectedNodeAcknowledged)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.SnippetId != null) + hashCode = hashCode * 59 + this.SnippetId.GetHashCode(); + if (this.OriginX != null) + hashCode = hashCode * 59 + this.OriginX.GetHashCode(); + if (this.OriginY != null) + hashCode = hashCode * 59 + this.OriginY.GetHashCode(); + if (this.DisconnectedNodeAcknowledged != null) + hashCode = hashCode * 59 + this.DisconnectedNodeAcknowledged.GetHashCode(); + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/NiFi.Swagger/Model/CounterDTO.cs b/NiFi.Swagger/Model/CounterDTO.cs new file mode 100644 index 0000000..e31e541 --- /dev/null +++ b/NiFi.Swagger/Model/CounterDTO.cs @@ -0,0 +1,187 @@ +/* + * NiFi Rest Api + * + * The Rest Api provides programmatic access to command and control a NiFi instance in real time. Start and stop processors, monitor queues, query provenance data, and more. Each endpoint below includes a description, definitions of the expected input and output, potential response codes, and the authorizations required to invoke each service. + * + * OpenAPI spec version: 1.9.1 + * Contact: dev@nifi.apache.org + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +namespace NiFi.Swagger.Model +{ + using System; + using System.Collections.Generic; + using System.ComponentModel.DataAnnotations; + using System.Runtime.Serialization; + using System.Text; + + using Newtonsoft.Json; + + /// + /// CounterDTO + /// + [DataContract] + public partial class CounterDTO : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// The id of the counter.. + /// The context of the counter.. + /// The name of the counter.. + /// The value count.. + /// The value of the counter.. + public CounterDTO(string id = default(string), string context = default(string), string name = default(string), long? valueCount = default(long?), string value = default(string)) + { + this.Id = id; + this.Context = context; + this.Name = name; + this.ValueCount = valueCount; + this.Value = value; + } + + /// + /// The id of the counter. + /// + /// The id of the counter. + [DataMember(Name="id", EmitDefaultValue=false)] + public string Id { get; set; } + + /// + /// The context of the counter. + /// + /// The context of the counter. + [DataMember(Name="context", EmitDefaultValue=false)] + public string Context { get; set; } + + /// + /// The name of the counter. + /// + /// The name of the counter. + [DataMember(Name="name", EmitDefaultValue=false)] + public string Name { get; set; } + + /// + /// The value count. + /// + /// The value count. + [DataMember(Name="valueCount", EmitDefaultValue=false)] + public long? ValueCount { get; set; } + + /// + /// The value of the counter. + /// + /// The value of the counter. + [DataMember(Name="value", EmitDefaultValue=false)] + public string Value { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class CounterDTO {\n"); + sb.Append(" Id: ").Append(this.Id).Append("\n"); + sb.Append(" Context: ").Append(this.Context).Append("\n"); + sb.Append(" Name: ").Append(this.Name).Append("\n"); + sb.Append(" ValueCount: ").Append(this.ValueCount).Append("\n"); + sb.Append(" Value: ").Append(this.Value).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as CounterDTO); + } + + /// + /// Returns true if CounterDTO instances are equal + /// + /// Instance of CounterDTO to be compared + /// Boolean + public bool Equals(CounterDTO input) + { + if (input == null) + return false; + + return + ( + this.Id == input.Id || + (this.Id != null && + this.Id.Equals(input.Id)) + ) && + ( + this.Context == input.Context || + (this.Context != null && + this.Context.Equals(input.Context)) + ) && + ( + this.Name == input.Name || + (this.Name != null && + this.Name.Equals(input.Name)) + ) && + ( + this.ValueCount == input.ValueCount || + (this.ValueCount != null && + this.ValueCount.Equals(input.ValueCount)) + ) && + ( + this.Value == input.Value || + (this.Value != null && + this.Value.Equals(input.Value)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Id != null) + hashCode = hashCode * 59 + this.Id.GetHashCode(); + if (this.Context != null) + hashCode = hashCode * 59 + this.Context.GetHashCode(); + if (this.Name != null) + hashCode = hashCode * 59 + this.Name.GetHashCode(); + if (this.ValueCount != null) + hashCode = hashCode * 59 + this.ValueCount.GetHashCode(); + if (this.Value != null) + hashCode = hashCode * 59 + this.Value.GetHashCode(); + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/NiFi.Swagger/Model/CounterEntity.cs b/NiFi.Swagger/Model/CounterEntity.cs new file mode 100644 index 0000000..f1ff79c --- /dev/null +++ b/NiFi.Swagger/Model/CounterEntity.cs @@ -0,0 +1,118 @@ +/* + * NiFi Rest Api + * + * The Rest Api provides programmatic access to command and control a NiFi instance in real time. Start and stop processors, monitor queues, query provenance data, and more. Each endpoint below includes a description, definitions of the expected input and output, potential response codes, and the authorizations required to invoke each service. + * + * OpenAPI spec version: 1.9.1 + * Contact: dev@nifi.apache.org + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +namespace NiFi.Swagger.Model +{ + using System; + using System.Collections.Generic; + using System.ComponentModel.DataAnnotations; + using System.Runtime.Serialization; + using System.Text; + + using Newtonsoft.Json; + + /// + /// CounterEntity + /// + [DataContract] + public partial class CounterEntity : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// counter. + public CounterEntity(CounterDTO counter = default(CounterDTO)) + { + this.Counter = counter; + } + + /// + /// Gets or Sets Counter + /// + [DataMember(Name="counter", EmitDefaultValue=false)] + public CounterDTO Counter { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class CounterEntity {\n"); + sb.Append(" Counter: ").Append(this.Counter).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as CounterEntity); + } + + /// + /// Returns true if CounterEntity instances are equal + /// + /// Instance of CounterEntity to be compared + /// Boolean + public bool Equals(CounterEntity input) + { + if (input == null) + return false; + + return + ( + this.Counter == input.Counter || + (this.Counter != null && + this.Counter.Equals(input.Counter)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Counter != null) + hashCode = hashCode * 59 + this.Counter.GetHashCode(); + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/NiFi.Swagger/Model/CountersDTO.cs b/NiFi.Swagger/Model/CountersDTO.cs new file mode 100644 index 0000000..36e300f --- /dev/null +++ b/NiFi.Swagger/Model/CountersDTO.cs @@ -0,0 +1,137 @@ +/* + * NiFi Rest Api + * + * The Rest Api provides programmatic access to command and control a NiFi instance in real time. Start and stop processors, monitor queues, query provenance data, and more. Each endpoint below includes a description, definitions of the expected input and output, potential response codes, and the authorizations required to invoke each service. + * + * OpenAPI spec version: 1.9.1 + * Contact: dev@nifi.apache.org + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +namespace NiFi.Swagger.Model +{ + using System; + using System.Collections.Generic; + using System.ComponentModel.DataAnnotations; + using System.Linq; + using System.Runtime.Serialization; + using System.Text; + + using Newtonsoft.Json; + + /// + /// CountersDTO + /// + [DataContract] + public partial class CountersDTO : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// A Counters snapshot that represents the aggregate values of all nodes in the cluster. If the NiFi instance is a standalone instance, rather than a cluster, this represents the stats of the single instance.. + /// A Counters snapshot for each node in the cluster. If the NiFi instance is a standalone instance, rather than a cluster, this may be null.. + public CountersDTO(CountersSnapshotDTO aggregateSnapshot = default(CountersSnapshotDTO), List nodeSnapshots = default(List)) + { + this.AggregateSnapshot = aggregateSnapshot; + this.NodeSnapshots = nodeSnapshots; + } + + /// + /// A Counters snapshot that represents the aggregate values of all nodes in the cluster. If the NiFi instance is a standalone instance, rather than a cluster, this represents the stats of the single instance. + /// + /// A Counters snapshot that represents the aggregate values of all nodes in the cluster. If the NiFi instance is a standalone instance, rather than a cluster, this represents the stats of the single instance. + [DataMember(Name="aggregateSnapshot", EmitDefaultValue=false)] + public CountersSnapshotDTO AggregateSnapshot { get; set; } + + /// + /// A Counters snapshot for each node in the cluster. If the NiFi instance is a standalone instance, rather than a cluster, this may be null. + /// + /// A Counters snapshot for each node in the cluster. If the NiFi instance is a standalone instance, rather than a cluster, this may be null. + [DataMember(Name="nodeSnapshots", EmitDefaultValue=false)] + public List NodeSnapshots { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class CountersDTO {\n"); + sb.Append(" AggregateSnapshot: ").Append(this.AggregateSnapshot).Append("\n"); + sb.Append(" NodeSnapshots: ").Append(this.NodeSnapshots).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as CountersDTO); + } + + /// + /// Returns true if CountersDTO instances are equal + /// + /// Instance of CountersDTO to be compared + /// Boolean + public bool Equals(CountersDTO input) + { + if (input == null) + return false; + + return + ( + this.AggregateSnapshot == input.AggregateSnapshot || + (this.AggregateSnapshot != null && + this.AggregateSnapshot.Equals(input.AggregateSnapshot)) + ) && + ( + this.NodeSnapshots == input.NodeSnapshots || + this.NodeSnapshots != null && + this.NodeSnapshots.SequenceEqual(input.NodeSnapshots) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.AggregateSnapshot != null) + hashCode = hashCode * 59 + this.AggregateSnapshot.GetHashCode(); + if (this.NodeSnapshots != null) + hashCode = hashCode * 59 + this.NodeSnapshots.GetHashCode(); + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/NiFi.Swagger/Model/CountersEntity.cs b/NiFi.Swagger/Model/CountersEntity.cs new file mode 100644 index 0000000..193553c --- /dev/null +++ b/NiFi.Swagger/Model/CountersEntity.cs @@ -0,0 +1,118 @@ +/* + * NiFi Rest Api + * + * The Rest Api provides programmatic access to command and control a NiFi instance in real time. Start and stop processors, monitor queues, query provenance data, and more. Each endpoint below includes a description, definitions of the expected input and output, potential response codes, and the authorizations required to invoke each service. + * + * OpenAPI spec version: 1.9.1 + * Contact: dev@nifi.apache.org + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +namespace NiFi.Swagger.Model +{ + using System; + using System.Collections.Generic; + using System.ComponentModel.DataAnnotations; + using System.Runtime.Serialization; + using System.Text; + + using Newtonsoft.Json; + + /// + /// CountersEntity + /// + [DataContract] + public partial class CountersEntity : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// counters. + public CountersEntity(CountersDTO counters = default(CountersDTO)) + { + this.Counters = counters; + } + + /// + /// Gets or Sets Counters + /// + [DataMember(Name="counters", EmitDefaultValue=false)] + public CountersDTO Counters { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class CountersEntity {\n"); + sb.Append(" Counters: ").Append(this.Counters).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as CountersEntity); + } + + /// + /// Returns true if CountersEntity instances are equal + /// + /// Instance of CountersEntity to be compared + /// Boolean + public bool Equals(CountersEntity input) + { + if (input == null) + return false; + + return + ( + this.Counters == input.Counters || + (this.Counters != null && + this.Counters.Equals(input.Counters)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Counters != null) + hashCode = hashCode * 59 + this.Counters.GetHashCode(); + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/NiFi.Swagger/Model/CountersSnapshotDTO.cs b/NiFi.Swagger/Model/CountersSnapshotDTO.cs new file mode 100644 index 0000000..236c137 --- /dev/null +++ b/NiFi.Swagger/Model/CountersSnapshotDTO.cs @@ -0,0 +1,137 @@ +/* + * NiFi Rest Api + * + * The Rest Api provides programmatic access to command and control a NiFi instance in real time. Start and stop processors, monitor queues, query provenance data, and more. Each endpoint below includes a description, definitions of the expected input and output, potential response codes, and the authorizations required to invoke each service. + * + * OpenAPI spec version: 1.9.1 + * Contact: dev@nifi.apache.org + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +namespace NiFi.Swagger.Model +{ + using System; + using System.Collections.Generic; + using System.ComponentModel.DataAnnotations; + using System.Linq; + using System.Runtime.Serialization; + using System.Text; + + using Newtonsoft.Json; + + /// + /// CountersSnapshotDTO + /// + [DataContract] + public partial class CountersSnapshotDTO : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// The timestamp when the report was generated.. + /// All counters in the NiFi.. + public CountersSnapshotDTO(string generated = default(string), List counters = default(List)) + { + this.Generated = generated; + this.Counters = counters; + } + + /// + /// The timestamp when the report was generated. + /// + /// The timestamp when the report was generated. + [DataMember(Name="generated", EmitDefaultValue=false)] + public string Generated { get; set; } + + /// + /// All counters in the NiFi. + /// + /// All counters in the NiFi. + [DataMember(Name="counters", EmitDefaultValue=false)] + public List Counters { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class CountersSnapshotDTO {\n"); + sb.Append(" Generated: ").Append(this.Generated).Append("\n"); + sb.Append(" Counters: ").Append(this.Counters).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as CountersSnapshotDTO); + } + + /// + /// Returns true if CountersSnapshotDTO instances are equal + /// + /// Instance of CountersSnapshotDTO to be compared + /// Boolean + public bool Equals(CountersSnapshotDTO input) + { + if (input == null) + return false; + + return + ( + this.Generated == input.Generated || + (this.Generated != null && + this.Generated.Equals(input.Generated)) + ) && + ( + this.Counters == input.Counters || + this.Counters != null && + this.Counters.SequenceEqual(input.Counters) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Generated != null) + hashCode = hashCode * 59 + this.Generated.GetHashCode(); + if (this.Counters != null) + hashCode = hashCode * 59 + this.Counters.GetHashCode(); + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/NiFi.Swagger/Model/CreateActiveRequestEntity.cs b/NiFi.Swagger/Model/CreateActiveRequestEntity.cs new file mode 100644 index 0000000..932b0f9 --- /dev/null +++ b/NiFi.Swagger/Model/CreateActiveRequestEntity.cs @@ -0,0 +1,136 @@ +/* + * NiFi Rest Api + * + * The Rest Api provides programmatic access to command and control a NiFi instance in real time. Start and stop processors, monitor queues, query provenance data, and more. Each endpoint below includes a description, definitions of the expected input and output, potential response codes, and the authorizations required to invoke each service. + * + * OpenAPI spec version: 1.9.1 + * Contact: dev@nifi.apache.org + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +namespace NiFi.Swagger.Model +{ + using System; + using System.Collections.Generic; + using System.ComponentModel.DataAnnotations; + using System.Runtime.Serialization; + using System.Text; + + using Newtonsoft.Json; + + /// + /// CreateActiveRequestEntity + /// + [DataContract] + public partial class CreateActiveRequestEntity : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// The Process Group ID that this active request will update. + /// Acknowledges that this node is disconnected to allow for mutable requests to proceed.. + public CreateActiveRequestEntity(string processGroupId = default(string), bool? disconnectedNodeAcknowledged = default(bool?)) + { + this.ProcessGroupId = processGroupId; + this.DisconnectedNodeAcknowledged = disconnectedNodeAcknowledged; + } + + /// + /// The Process Group ID that this active request will update + /// + /// The Process Group ID that this active request will update + [DataMember(Name="processGroupId", EmitDefaultValue=false)] + public string ProcessGroupId { get; set; } + + /// + /// Acknowledges that this node is disconnected to allow for mutable requests to proceed. + /// + /// Acknowledges that this node is disconnected to allow for mutable requests to proceed. + [DataMember(Name="disconnectedNodeAcknowledged", EmitDefaultValue=false)] + public bool? DisconnectedNodeAcknowledged { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class CreateActiveRequestEntity {\n"); + sb.Append(" ProcessGroupId: ").Append(this.ProcessGroupId).Append("\n"); + sb.Append(" DisconnectedNodeAcknowledged: ").Append(this.DisconnectedNodeAcknowledged).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as CreateActiveRequestEntity); + } + + /// + /// Returns true if CreateActiveRequestEntity instances are equal + /// + /// Instance of CreateActiveRequestEntity to be compared + /// Boolean + public bool Equals(CreateActiveRequestEntity input) + { + if (input == null) + return false; + + return + ( + this.ProcessGroupId == input.ProcessGroupId || + (this.ProcessGroupId != null && + this.ProcessGroupId.Equals(input.ProcessGroupId)) + ) && + ( + this.DisconnectedNodeAcknowledged == input.DisconnectedNodeAcknowledged || + (this.DisconnectedNodeAcknowledged != null && + this.DisconnectedNodeAcknowledged.Equals(input.DisconnectedNodeAcknowledged)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.ProcessGroupId != null) + hashCode = hashCode * 59 + this.ProcessGroupId.GetHashCode(); + if (this.DisconnectedNodeAcknowledged != null) + hashCode = hashCode * 59 + this.DisconnectedNodeAcknowledged.GetHashCode(); + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/NiFi.Swagger/Model/CreateTemplateRequestEntity.cs b/NiFi.Swagger/Model/CreateTemplateRequestEntity.cs new file mode 100644 index 0000000..93d7883 --- /dev/null +++ b/NiFi.Swagger/Model/CreateTemplateRequestEntity.cs @@ -0,0 +1,170 @@ +/* + * NiFi Rest Api + * + * The Rest Api provides programmatic access to command and control a NiFi instance in real time. Start and stop processors, monitor queues, query provenance data, and more. Each endpoint below includes a description, definitions of the expected input and output, potential response codes, and the authorizations required to invoke each service. + * + * OpenAPI spec version: 1.9.1 + * Contact: dev@nifi.apache.org + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +namespace NiFi.Swagger.Model +{ + using System; + using System.Collections.Generic; + using System.ComponentModel.DataAnnotations; + using System.Runtime.Serialization; + using System.Text; + + using Newtonsoft.Json; + + /// + /// CreateTemplateRequestEntity + /// + [DataContract] + public partial class CreateTemplateRequestEntity : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// The name of the template.. + /// The description of the template.. + /// The identifier of the snippet.. + /// Acknowledges that this node is disconnected to allow for mutable requests to proceed.. + public CreateTemplateRequestEntity(string name = default(string), string description = default(string), string snippetId = default(string), bool? disconnectedNodeAcknowledged = default(bool?)) + { + this.Name = name; + this.Description = description; + this.SnippetId = snippetId; + this.DisconnectedNodeAcknowledged = disconnectedNodeAcknowledged; + } + + /// + /// The name of the template. + /// + /// The name of the template. + [DataMember(Name="name", EmitDefaultValue=false)] + public string Name { get; set; } + + /// + /// The description of the template. + /// + /// The description of the template. + [DataMember(Name="description", EmitDefaultValue=false)] + public string Description { get; set; } + + /// + /// The identifier of the snippet. + /// + /// The identifier of the snippet. + [DataMember(Name="snippetId", EmitDefaultValue=false)] + public string SnippetId { get; set; } + + /// + /// Acknowledges that this node is disconnected to allow for mutable requests to proceed. + /// + /// Acknowledges that this node is disconnected to allow for mutable requests to proceed. + [DataMember(Name="disconnectedNodeAcknowledged", EmitDefaultValue=false)] + public bool? DisconnectedNodeAcknowledged { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class CreateTemplateRequestEntity {\n"); + sb.Append(" Name: ").Append(this.Name).Append("\n"); + sb.Append(" Description: ").Append(this.Description).Append("\n"); + sb.Append(" SnippetId: ").Append(this.SnippetId).Append("\n"); + sb.Append(" DisconnectedNodeAcknowledged: ").Append(this.DisconnectedNodeAcknowledged).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as CreateTemplateRequestEntity); + } + + /// + /// Returns true if CreateTemplateRequestEntity instances are equal + /// + /// Instance of CreateTemplateRequestEntity to be compared + /// Boolean + public bool Equals(CreateTemplateRequestEntity input) + { + if (input == null) + return false; + + return + ( + this.Name == input.Name || + (this.Name != null && + this.Name.Equals(input.Name)) + ) && + ( + this.Description == input.Description || + (this.Description != null && + this.Description.Equals(input.Description)) + ) && + ( + this.SnippetId == input.SnippetId || + (this.SnippetId != null && + this.SnippetId.Equals(input.SnippetId)) + ) && + ( + this.DisconnectedNodeAcknowledged == input.DisconnectedNodeAcknowledged || + (this.DisconnectedNodeAcknowledged != null && + this.DisconnectedNodeAcknowledged.Equals(input.DisconnectedNodeAcknowledged)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Name != null) + hashCode = hashCode * 59 + this.Name.GetHashCode(); + if (this.Description != null) + hashCode = hashCode * 59 + this.Description.GetHashCode(); + if (this.SnippetId != null) + hashCode = hashCode * 59 + this.SnippetId.GetHashCode(); + if (this.DisconnectedNodeAcknowledged != null) + hashCode = hashCode * 59 + this.DisconnectedNodeAcknowledged.GetHashCode(); + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/NiFi.Swagger/Model/CurrentUserEntity.cs b/NiFi.Swagger/Model/CurrentUserEntity.cs new file mode 100644 index 0000000..d306279 --- /dev/null +++ b/NiFi.Swagger/Model/CurrentUserEntity.cs @@ -0,0 +1,290 @@ +/* + * NiFi Rest Api + * + * The Rest Api provides programmatic access to command and control a NiFi instance in real time. Start and stop processors, monitor queues, query provenance data, and more. Each endpoint below includes a description, definitions of the expected input and output, potential response codes, and the authorizations required to invoke each service. + * + * OpenAPI spec version: 1.9.1 + * Contact: dev@nifi.apache.org + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +namespace NiFi.Swagger.Model +{ + using System; + using System.Collections.Generic; + using System.ComponentModel.DataAnnotations; + using System.Linq; + using System.Runtime.Serialization; + using System.Text; + + using Newtonsoft.Json; + + /// + /// CurrentUserEntity + /// + [DataContract] + public partial class CurrentUserEntity : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// The user identity being serialized.. + /// Whether the current user is anonymous.. + /// Permissions for querying provenance.. + /// Permissions for accessing counters.. + /// Permissions for accessing tenants.. + /// Permissions for accessing the controller.. + /// Permissions for accessing the policies.. + /// Permissions for accessing system.. + /// Permissions for accessing restricted components. Note: the read permission are not used and will always be false.. + /// Permissions for specific component restrictions.. + /// Whether the current user can version flows.. + public CurrentUserEntity(string identity = default(string), bool? anonymous = default(bool?), PermissionsDTO provenancePermissions = default(PermissionsDTO), PermissionsDTO countersPermissions = default(PermissionsDTO), PermissionsDTO tenantsPermissions = default(PermissionsDTO), PermissionsDTO controllerPermissions = default(PermissionsDTO), PermissionsDTO policiesPermissions = default(PermissionsDTO), PermissionsDTO systemPermissions = default(PermissionsDTO), PermissionsDTO restrictedComponentsPermissions = default(PermissionsDTO), List componentRestrictionPermissions = default(List), bool? canVersionFlows = default(bool?)) + { + this.Identity = identity; + this.Anonymous = anonymous; + this.ProvenancePermissions = provenancePermissions; + this.CountersPermissions = countersPermissions; + this.TenantsPermissions = tenantsPermissions; + this.ControllerPermissions = controllerPermissions; + this.PoliciesPermissions = policiesPermissions; + this.SystemPermissions = systemPermissions; + this.RestrictedComponentsPermissions = restrictedComponentsPermissions; + this.ComponentRestrictionPermissions = componentRestrictionPermissions; + this.CanVersionFlows = canVersionFlows; + } + + /// + /// The user identity being serialized. + /// + /// The user identity being serialized. + [DataMember(Name="identity", EmitDefaultValue=false)] + public string Identity { get; set; } + + /// + /// Whether the current user is anonymous. + /// + /// Whether the current user is anonymous. + [DataMember(Name="anonymous", EmitDefaultValue=false)] + public bool? Anonymous { get; set; } + + /// + /// Permissions for querying provenance. + /// + /// Permissions for querying provenance. + [DataMember(Name="provenancePermissions", EmitDefaultValue=false)] + public PermissionsDTO ProvenancePermissions { get; set; } + + /// + /// Permissions for accessing counters. + /// + /// Permissions for accessing counters. + [DataMember(Name="countersPermissions", EmitDefaultValue=false)] + public PermissionsDTO CountersPermissions { get; set; } + + /// + /// Permissions for accessing tenants. + /// + /// Permissions for accessing tenants. + [DataMember(Name="tenantsPermissions", EmitDefaultValue=false)] + public PermissionsDTO TenantsPermissions { get; set; } + + /// + /// Permissions for accessing the controller. + /// + /// Permissions for accessing the controller. + [DataMember(Name="controllerPermissions", EmitDefaultValue=false)] + public PermissionsDTO ControllerPermissions { get; set; } + + /// + /// Permissions for accessing the policies. + /// + /// Permissions for accessing the policies. + [DataMember(Name="policiesPermissions", EmitDefaultValue=false)] + public PermissionsDTO PoliciesPermissions { get; set; } + + /// + /// Permissions for accessing system. + /// + /// Permissions for accessing system. + [DataMember(Name="systemPermissions", EmitDefaultValue=false)] + public PermissionsDTO SystemPermissions { get; set; } + + /// + /// Permissions for accessing restricted components. Note: the read permission are not used and will always be false. + /// + /// Permissions for accessing restricted components. Note: the read permission are not used and will always be false. + [DataMember(Name="restrictedComponentsPermissions", EmitDefaultValue=false)] + public PermissionsDTO RestrictedComponentsPermissions { get; set; } + + /// + /// Permissions for specific component restrictions. + /// + /// Permissions for specific component restrictions. + [DataMember(Name="componentRestrictionPermissions", EmitDefaultValue=false)] + public List ComponentRestrictionPermissions { get; set; } + + /// + /// Whether the current user can version flows. + /// + /// Whether the current user can version flows. + [DataMember(Name="canVersionFlows", EmitDefaultValue=false)] + public bool? CanVersionFlows { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class CurrentUserEntity {\n"); + sb.Append(" Identity: ").Append(this.Identity).Append("\n"); + sb.Append(" Anonymous: ").Append(this.Anonymous).Append("\n"); + sb.Append(" ProvenancePermissions: ").Append(this.ProvenancePermissions).Append("\n"); + sb.Append(" CountersPermissions: ").Append(this.CountersPermissions).Append("\n"); + sb.Append(" TenantsPermissions: ").Append(this.TenantsPermissions).Append("\n"); + sb.Append(" ControllerPermissions: ").Append(this.ControllerPermissions).Append("\n"); + sb.Append(" PoliciesPermissions: ").Append(this.PoliciesPermissions).Append("\n"); + sb.Append(" SystemPermissions: ").Append(this.SystemPermissions).Append("\n"); + sb.Append(" RestrictedComponentsPermissions: ").Append(this.RestrictedComponentsPermissions).Append("\n"); + sb.Append(" ComponentRestrictionPermissions: ").Append(this.ComponentRestrictionPermissions).Append("\n"); + sb.Append(" CanVersionFlows: ").Append(this.CanVersionFlows).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as CurrentUserEntity); + } + + /// + /// Returns true if CurrentUserEntity instances are equal + /// + /// Instance of CurrentUserEntity to be compared + /// Boolean + public bool Equals(CurrentUserEntity input) + { + if (input == null) + return false; + + return + ( + this.Identity == input.Identity || + (this.Identity != null && + this.Identity.Equals(input.Identity)) + ) && + ( + this.Anonymous == input.Anonymous || + (this.Anonymous != null && + this.Anonymous.Equals(input.Anonymous)) + ) && + ( + this.ProvenancePermissions == input.ProvenancePermissions || + (this.ProvenancePermissions != null && + this.ProvenancePermissions.Equals(input.ProvenancePermissions)) + ) && + ( + this.CountersPermissions == input.CountersPermissions || + (this.CountersPermissions != null && + this.CountersPermissions.Equals(input.CountersPermissions)) + ) && + ( + this.TenantsPermissions == input.TenantsPermissions || + (this.TenantsPermissions != null && + this.TenantsPermissions.Equals(input.TenantsPermissions)) + ) && + ( + this.ControllerPermissions == input.ControllerPermissions || + (this.ControllerPermissions != null && + this.ControllerPermissions.Equals(input.ControllerPermissions)) + ) && + ( + this.PoliciesPermissions == input.PoliciesPermissions || + (this.PoliciesPermissions != null && + this.PoliciesPermissions.Equals(input.PoliciesPermissions)) + ) && + ( + this.SystemPermissions == input.SystemPermissions || + (this.SystemPermissions != null && + this.SystemPermissions.Equals(input.SystemPermissions)) + ) && + ( + this.RestrictedComponentsPermissions == input.RestrictedComponentsPermissions || + (this.RestrictedComponentsPermissions != null && + this.RestrictedComponentsPermissions.Equals(input.RestrictedComponentsPermissions)) + ) && + ( + this.ComponentRestrictionPermissions == input.ComponentRestrictionPermissions || + this.ComponentRestrictionPermissions != null && + this.ComponentRestrictionPermissions.SequenceEqual(input.ComponentRestrictionPermissions) + ) && + ( + this.CanVersionFlows == input.CanVersionFlows || + (this.CanVersionFlows != null && + this.CanVersionFlows.Equals(input.CanVersionFlows)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Identity != null) + hashCode = hashCode * 59 + this.Identity.GetHashCode(); + if (this.Anonymous != null) + hashCode = hashCode * 59 + this.Anonymous.GetHashCode(); + if (this.ProvenancePermissions != null) + hashCode = hashCode * 59 + this.ProvenancePermissions.GetHashCode(); + if (this.CountersPermissions != null) + hashCode = hashCode * 59 + this.CountersPermissions.GetHashCode(); + if (this.TenantsPermissions != null) + hashCode = hashCode * 59 + this.TenantsPermissions.GetHashCode(); + if (this.ControllerPermissions != null) + hashCode = hashCode * 59 + this.ControllerPermissions.GetHashCode(); + if (this.PoliciesPermissions != null) + hashCode = hashCode * 59 + this.PoliciesPermissions.GetHashCode(); + if (this.SystemPermissions != null) + hashCode = hashCode * 59 + this.SystemPermissions.GetHashCode(); + if (this.RestrictedComponentsPermissions != null) + hashCode = hashCode * 59 + this.RestrictedComponentsPermissions.GetHashCode(); + if (this.ComponentRestrictionPermissions != null) + hashCode = hashCode * 59 + this.ComponentRestrictionPermissions.GetHashCode(); + if (this.CanVersionFlows != null) + hashCode = hashCode * 59 + this.CanVersionFlows.GetHashCode(); + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/NiFi.Swagger/Model/DifferenceDTO.cs b/NiFi.Swagger/Model/DifferenceDTO.cs new file mode 100644 index 0000000..7db853e --- /dev/null +++ b/NiFi.Swagger/Model/DifferenceDTO.cs @@ -0,0 +1,136 @@ +/* + * NiFi Rest Api + * + * The Rest Api provides programmatic access to command and control a NiFi instance in real time. Start and stop processors, monitor queues, query provenance data, and more. Each endpoint below includes a description, definitions of the expected input and output, potential response codes, and the authorizations required to invoke each service. + * + * OpenAPI spec version: 1.9.1 + * Contact: dev@nifi.apache.org + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +namespace NiFi.Swagger.Model +{ + using System; + using System.Collections.Generic; + using System.ComponentModel.DataAnnotations; + using System.Runtime.Serialization; + using System.Text; + + using Newtonsoft.Json; + + /// + /// DifferenceDTO + /// + [DataContract] + public partial class DifferenceDTO : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// The type of difference. + /// Description of the difference. + public DifferenceDTO(string differenceType = default(string), string difference = default(string)) + { + this.DifferenceType = differenceType; + this.Difference = difference; + } + + /// + /// The type of difference + /// + /// The type of difference + [DataMember(Name="differenceType", EmitDefaultValue=false)] + public string DifferenceType { get; set; } + + /// + /// Description of the difference + /// + /// Description of the difference + [DataMember(Name="difference", EmitDefaultValue=false)] + public string Difference { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class DifferenceDTO {\n"); + sb.Append(" DifferenceType: ").Append(this.DifferenceType).Append("\n"); + sb.Append(" Difference: ").Append(this.Difference).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as DifferenceDTO); + } + + /// + /// Returns true if DifferenceDTO instances are equal + /// + /// Instance of DifferenceDTO to be compared + /// Boolean + public bool Equals(DifferenceDTO input) + { + if (input == null) + return false; + + return + ( + this.DifferenceType == input.DifferenceType || + (this.DifferenceType != null && + this.DifferenceType.Equals(input.DifferenceType)) + ) && + ( + this.Difference == input.Difference || + (this.Difference != null && + this.Difference.Equals(input.Difference)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.DifferenceType != null) + hashCode = hashCode * 59 + this.DifferenceType.GetHashCode(); + if (this.Difference != null) + hashCode = hashCode * 59 + this.Difference.GetHashCode(); + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/NiFi.Swagger/Model/DimensionsDTO.cs b/NiFi.Swagger/Model/DimensionsDTO.cs new file mode 100644 index 0000000..32660ca --- /dev/null +++ b/NiFi.Swagger/Model/DimensionsDTO.cs @@ -0,0 +1,136 @@ +/* + * NiFi Rest Api + * + * The Rest Api provides programmatic access to command and control a NiFi instance in real time. Start and stop processors, monitor queues, query provenance data, and more. Each endpoint below includes a description, definitions of the expected input and output, potential response codes, and the authorizations required to invoke each service. + * + * OpenAPI spec version: 1.9.1 + * Contact: dev@nifi.apache.org + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +namespace NiFi.Swagger.Model +{ + using System; + using System.Collections.Generic; + using System.ComponentModel.DataAnnotations; + using System.Runtime.Serialization; + using System.Text; + + using Newtonsoft.Json; + + /// + /// DimensionsDTO + /// + [DataContract] + public partial class DimensionsDTO : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// The width of the label in pixels when at a 1:1 scale.. + /// The height of the label in pixels when at a 1:1 scale.. + public DimensionsDTO(double? width = default(double?), double? height = default(double?)) + { + this.Width = width; + this.Height = height; + } + + /// + /// The width of the label in pixels when at a 1:1 scale. + /// + /// The width of the label in pixels when at a 1:1 scale. + [DataMember(Name="width", EmitDefaultValue=false)] + public double? Width { get; set; } + + /// + /// The height of the label in pixels when at a 1:1 scale. + /// + /// The height of the label in pixels when at a 1:1 scale. + [DataMember(Name="height", EmitDefaultValue=false)] + public double? Height { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class DimensionsDTO {\n"); + sb.Append(" Width: ").Append(this.Width).Append("\n"); + sb.Append(" Height: ").Append(this.Height).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as DimensionsDTO); + } + + /// + /// Returns true if DimensionsDTO instances are equal + /// + /// Instance of DimensionsDTO to be compared + /// Boolean + public bool Equals(DimensionsDTO input) + { + if (input == null) + return false; + + return + ( + this.Width == input.Width || + (this.Width != null && + this.Width.Equals(input.Width)) + ) && + ( + this.Height == input.Height || + (this.Height != null && + this.Height.Equals(input.Height)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Width != null) + hashCode = hashCode * 59 + this.Width.GetHashCode(); + if (this.Height != null) + hashCode = hashCode * 59 + this.Height.GetHashCode(); + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/NiFi.Swagger/Model/DocumentedTypeDTO.cs b/NiFi.Swagger/Model/DocumentedTypeDTO.cs new file mode 100644 index 0000000..9781eb0 --- /dev/null +++ b/NiFi.Swagger/Model/DocumentedTypeDTO.cs @@ -0,0 +1,256 @@ +/* + * NiFi Rest Api + * + * The Rest Api provides programmatic access to command and control a NiFi instance in real time. Start and stop processors, monitor queues, query provenance data, and more. Each endpoint below includes a description, definitions of the expected input and output, potential response codes, and the authorizations required to invoke each service. + * + * OpenAPI spec version: 1.9.1 + * Contact: dev@nifi.apache.org + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +namespace NiFi.Swagger.Model +{ + using System; + using System.Collections.Generic; + using System.ComponentModel.DataAnnotations; + using System.Linq; + using System.Runtime.Serialization; + using System.Text; + + using Newtonsoft.Json; + + /// + /// DocumentedTypeDTO + /// + [DataContract] + public partial class DocumentedTypeDTO : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// The fully qualified name of the type.. + /// The details of the artifact that bundled this type.. + /// If this type represents a ControllerService, this lists the APIs it implements.. + /// The description of the type.. + /// Whether this type is restricted.. + /// The optional description of why the usage of this component is restricted.. + /// An optional collection of explicit restrictions. If specified, these explicit restrictions will be enfored.. + /// The description of why the usage of this component is restricted.. + /// The tags associated with this type.. + public DocumentedTypeDTO(string type = default(string), BundleDTO bundle = default(BundleDTO), List controllerServiceApis = default(List), string description = default(string), bool? restricted = default(bool?), string usageRestriction = default(string), List explicitRestrictions = default(List), string deprecationReason = default(string), List tags = default(List)) + { + this.Type = type; + this.Bundle = bundle; + this.ControllerServiceApis = controllerServiceApis; + this.Description = description; + this.Restricted = restricted; + this.UsageRestriction = usageRestriction; + this.ExplicitRestrictions = explicitRestrictions; + this.DeprecationReason = deprecationReason; + this.Tags = tags; + } + + /// + /// The fully qualified name of the type. + /// + /// The fully qualified name of the type. + [DataMember(Name="type", EmitDefaultValue=false)] + public string Type { get; set; } + + /// + /// The details of the artifact that bundled this type. + /// + /// The details of the artifact that bundled this type. + [DataMember(Name="bundle", EmitDefaultValue=false)] + public BundleDTO Bundle { get; set; } + + /// + /// If this type represents a ControllerService, this lists the APIs it implements. + /// + /// If this type represents a ControllerService, this lists the APIs it implements. + [DataMember(Name="controllerServiceApis", EmitDefaultValue=false)] + public List ControllerServiceApis { get; set; } + + /// + /// The description of the type. + /// + /// The description of the type. + [DataMember(Name="description", EmitDefaultValue=false)] + public string Description { get; set; } + + /// + /// Whether this type is restricted. + /// + /// Whether this type is restricted. + [DataMember(Name="restricted", EmitDefaultValue=false)] + public bool? Restricted { get; set; } + + /// + /// The optional description of why the usage of this component is restricted. + /// + /// The optional description of why the usage of this component is restricted. + [DataMember(Name="usageRestriction", EmitDefaultValue=false)] + public string UsageRestriction { get; set; } + + /// + /// An optional collection of explicit restrictions. If specified, these explicit restrictions will be enfored. + /// + /// An optional collection of explicit restrictions. If specified, these explicit restrictions will be enfored. + [DataMember(Name="explicitRestrictions", EmitDefaultValue=false)] + public List ExplicitRestrictions { get; set; } + + /// + /// The description of why the usage of this component is restricted. + /// + /// The description of why the usage of this component is restricted. + [DataMember(Name="deprecationReason", EmitDefaultValue=false)] + public string DeprecationReason { get; set; } + + /// + /// The tags associated with this type. + /// + /// The tags associated with this type. + [DataMember(Name="tags", EmitDefaultValue=false)] + public List Tags { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class DocumentedTypeDTO {\n"); + sb.Append(" Type: ").Append(this.Type).Append("\n"); + sb.Append(" Bundle: ").Append(this.Bundle).Append("\n"); + sb.Append(" ControllerServiceApis: ").Append(this.ControllerServiceApis).Append("\n"); + sb.Append(" Description: ").Append(this.Description).Append("\n"); + sb.Append(" Restricted: ").Append(this.Restricted).Append("\n"); + sb.Append(" UsageRestriction: ").Append(this.UsageRestriction).Append("\n"); + sb.Append(" ExplicitRestrictions: ").Append(this.ExplicitRestrictions).Append("\n"); + sb.Append(" DeprecationReason: ").Append(this.DeprecationReason).Append("\n"); + sb.Append(" Tags: ").Append(this.Tags).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as DocumentedTypeDTO); + } + + /// + /// Returns true if DocumentedTypeDTO instances are equal + /// + /// Instance of DocumentedTypeDTO to be compared + /// Boolean + public bool Equals(DocumentedTypeDTO input) + { + if (input == null) + return false; + + return + ( + this.Type == input.Type || + (this.Type != null && + this.Type.Equals(input.Type)) + ) && + ( + this.Bundle == input.Bundle || + (this.Bundle != null && + this.Bundle.Equals(input.Bundle)) + ) && + ( + this.ControllerServiceApis == input.ControllerServiceApis || + this.ControllerServiceApis != null && + this.ControllerServiceApis.SequenceEqual(input.ControllerServiceApis) + ) && + ( + this.Description == input.Description || + (this.Description != null && + this.Description.Equals(input.Description)) + ) && + ( + this.Restricted == input.Restricted || + (this.Restricted != null && + this.Restricted.Equals(input.Restricted)) + ) && + ( + this.UsageRestriction == input.UsageRestriction || + (this.UsageRestriction != null && + this.UsageRestriction.Equals(input.UsageRestriction)) + ) && + ( + this.ExplicitRestrictions == input.ExplicitRestrictions || + this.ExplicitRestrictions != null && + this.ExplicitRestrictions.SequenceEqual(input.ExplicitRestrictions) + ) && + ( + this.DeprecationReason == input.DeprecationReason || + (this.DeprecationReason != null && + this.DeprecationReason.Equals(input.DeprecationReason)) + ) && + ( + this.Tags == input.Tags || + this.Tags != null && + this.Tags.SequenceEqual(input.Tags) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Type != null) + hashCode = hashCode * 59 + this.Type.GetHashCode(); + if (this.Bundle != null) + hashCode = hashCode * 59 + this.Bundle.GetHashCode(); + if (this.ControllerServiceApis != null) + hashCode = hashCode * 59 + this.ControllerServiceApis.GetHashCode(); + if (this.Description != null) + hashCode = hashCode * 59 + this.Description.GetHashCode(); + if (this.Restricted != null) + hashCode = hashCode * 59 + this.Restricted.GetHashCode(); + if (this.UsageRestriction != null) + hashCode = hashCode * 59 + this.UsageRestriction.GetHashCode(); + if (this.ExplicitRestrictions != null) + hashCode = hashCode * 59 + this.ExplicitRestrictions.GetHashCode(); + if (this.DeprecationReason != null) + hashCode = hashCode * 59 + this.DeprecationReason.GetHashCode(); + if (this.Tags != null) + hashCode = hashCode * 59 + this.Tags.GetHashCode(); + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/NiFi.Swagger/Model/DropRequestDTO.cs b/NiFi.Swagger/Model/DropRequestDTO.cs new file mode 100644 index 0000000..ab80bd4 --- /dev/null +++ b/NiFi.Swagger/Model/DropRequestDTO.cs @@ -0,0 +1,391 @@ +/* + * NiFi Rest Api + * + * The Rest Api provides programmatic access to command and control a NiFi instance in real time. Start and stop processors, monitor queues, query provenance data, and more. Each endpoint below includes a description, definitions of the expected input and output, potential response codes, and the authorizations required to invoke each service. + * + * OpenAPI spec version: 1.9.1 + * Contact: dev@nifi.apache.org + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +namespace NiFi.Swagger.Model +{ + using System; + using System.Collections.Generic; + using System.ComponentModel.DataAnnotations; + using System.Runtime.Serialization; + using System.Text; + + using Newtonsoft.Json; + + /// + /// DropRequestDTO + /// + [DataContract] + public partial class DropRequestDTO : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// The id for this drop request.. + /// The URI for future requests to this drop request.. + /// The timestamp when the query was submitted.. + /// The last time this drop request was updated.. + /// The current percent complete.. + /// Whether the query has finished.. + /// The reason, if any, that this drop request failed.. + /// The number of flow files currently queued.. + /// The size of flow files currently queued in bytes.. + /// The count and size of flow files currently queued.. + /// The number of flow files to be dropped as a result of this request.. + /// The size of flow files to be dropped as a result of this request in bytes.. + /// The count and size of flow files to be dropped as a result of this request.. + /// The number of flow files that have been dropped thus far.. + /// The size of flow files that have been dropped thus far in bytes.. + /// The count and size of flow files that have been dropped thus far.. + /// The current state of the drop request.. + public DropRequestDTO(string id = default(string), string uri = default(string), string submissionTime = default(string), string lastUpdated = default(string), int? percentCompleted = default(int?), bool? finished = default(bool?), string failureReason = default(string), int? currentCount = default(int?), long? currentSize = default(long?), string current = default(string), int? originalCount = default(int?), long? originalSize = default(long?), string original = default(string), int? droppedCount = default(int?), long? droppedSize = default(long?), string dropped = default(string), string state = default(string)) + { + this.Id = id; + this.Uri = uri; + this.SubmissionTime = submissionTime; + this.LastUpdated = lastUpdated; + this.PercentCompleted = percentCompleted; + this.Finished = finished; + this.FailureReason = failureReason; + this.CurrentCount = currentCount; + this.CurrentSize = currentSize; + this.Current = current; + this.OriginalCount = originalCount; + this.OriginalSize = originalSize; + this.Original = original; + this.DroppedCount = droppedCount; + this.DroppedSize = droppedSize; + this.Dropped = dropped; + this.State = state; + } + + /// + /// The id for this drop request. + /// + /// The id for this drop request. + [DataMember(Name="id", EmitDefaultValue=false)] + public string Id { get; set; } + + /// + /// The URI for future requests to this drop request. + /// + /// The URI for future requests to this drop request. + [DataMember(Name="uri", EmitDefaultValue=false)] + public string Uri { get; set; } + + /// + /// The timestamp when the query was submitted. + /// + /// The timestamp when the query was submitted. + [DataMember(Name="submissionTime", EmitDefaultValue=false)] + public string SubmissionTime { get; set; } + + /// + /// The last time this drop request was updated. + /// + /// The last time this drop request was updated. + [DataMember(Name="lastUpdated", EmitDefaultValue=false)] + public string LastUpdated { get; set; } + + /// + /// The current percent complete. + /// + /// The current percent complete. + [DataMember(Name="percentCompleted", EmitDefaultValue=false)] + public int? PercentCompleted { get; set; } + + /// + /// Whether the query has finished. + /// + /// Whether the query has finished. + [DataMember(Name="finished", EmitDefaultValue=false)] + public bool? Finished { get; set; } + + /// + /// The reason, if any, that this drop request failed. + /// + /// The reason, if any, that this drop request failed. + [DataMember(Name="failureReason", EmitDefaultValue=false)] + public string FailureReason { get; set; } + + /// + /// The number of flow files currently queued. + /// + /// The number of flow files currently queued. + [DataMember(Name="currentCount", EmitDefaultValue=false)] + public int? CurrentCount { get; set; } + + /// + /// The size of flow files currently queued in bytes. + /// + /// The size of flow files currently queued in bytes. + [DataMember(Name="currentSize", EmitDefaultValue=false)] + public long? CurrentSize { get; set; } + + /// + /// The count and size of flow files currently queued. + /// + /// The count and size of flow files currently queued. + [DataMember(Name="current", EmitDefaultValue=false)] + public string Current { get; set; } + + /// + /// The number of flow files to be dropped as a result of this request. + /// + /// The number of flow files to be dropped as a result of this request. + [DataMember(Name="originalCount", EmitDefaultValue=false)] + public int? OriginalCount { get; set; } + + /// + /// The size of flow files to be dropped as a result of this request in bytes. + /// + /// The size of flow files to be dropped as a result of this request in bytes. + [DataMember(Name="originalSize", EmitDefaultValue=false)] + public long? OriginalSize { get; set; } + + /// + /// The count and size of flow files to be dropped as a result of this request. + /// + /// The count and size of flow files to be dropped as a result of this request. + [DataMember(Name="original", EmitDefaultValue=false)] + public string Original { get; set; } + + /// + /// The number of flow files that have been dropped thus far. + /// + /// The number of flow files that have been dropped thus far. + [DataMember(Name="droppedCount", EmitDefaultValue=false)] + public int? DroppedCount { get; set; } + + /// + /// The size of flow files that have been dropped thus far in bytes. + /// + /// The size of flow files that have been dropped thus far in bytes. + [DataMember(Name="droppedSize", EmitDefaultValue=false)] + public long? DroppedSize { get; set; } + + /// + /// The count and size of flow files that have been dropped thus far. + /// + /// The count and size of flow files that have been dropped thus far. + [DataMember(Name="dropped", EmitDefaultValue=false)] + public string Dropped { get; set; } + + /// + /// The current state of the drop request. + /// + /// The current state of the drop request. + [DataMember(Name="state", EmitDefaultValue=false)] + public string State { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class DropRequestDTO {\n"); + sb.Append(" Id: ").Append(this.Id).Append("\n"); + sb.Append(" Uri: ").Append(this.Uri).Append("\n"); + sb.Append(" SubmissionTime: ").Append(this.SubmissionTime).Append("\n"); + sb.Append(" LastUpdated: ").Append(this.LastUpdated).Append("\n"); + sb.Append(" PercentCompleted: ").Append(this.PercentCompleted).Append("\n"); + sb.Append(" Finished: ").Append(this.Finished).Append("\n"); + sb.Append(" FailureReason: ").Append(this.FailureReason).Append("\n"); + sb.Append(" CurrentCount: ").Append(this.CurrentCount).Append("\n"); + sb.Append(" CurrentSize: ").Append(this.CurrentSize).Append("\n"); + sb.Append(" Current: ").Append(this.Current).Append("\n"); + sb.Append(" OriginalCount: ").Append(this.OriginalCount).Append("\n"); + sb.Append(" OriginalSize: ").Append(this.OriginalSize).Append("\n"); + sb.Append(" Original: ").Append(this.Original).Append("\n"); + sb.Append(" DroppedCount: ").Append(this.DroppedCount).Append("\n"); + sb.Append(" DroppedSize: ").Append(this.DroppedSize).Append("\n"); + sb.Append(" Dropped: ").Append(this.Dropped).Append("\n"); + sb.Append(" State: ").Append(this.State).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as DropRequestDTO); + } + + /// + /// Returns true if DropRequestDTO instances are equal + /// + /// Instance of DropRequestDTO to be compared + /// Boolean + public bool Equals(DropRequestDTO input) + { + if (input == null) + return false; + + return + ( + this.Id == input.Id || + (this.Id != null && + this.Id.Equals(input.Id)) + ) && + ( + this.Uri == input.Uri || + (this.Uri != null && + this.Uri.Equals(input.Uri)) + ) && + ( + this.SubmissionTime == input.SubmissionTime || + (this.SubmissionTime != null && + this.SubmissionTime.Equals(input.SubmissionTime)) + ) && + ( + this.LastUpdated == input.LastUpdated || + (this.LastUpdated != null && + this.LastUpdated.Equals(input.LastUpdated)) + ) && + ( + this.PercentCompleted == input.PercentCompleted || + (this.PercentCompleted != null && + this.PercentCompleted.Equals(input.PercentCompleted)) + ) && + ( + this.Finished == input.Finished || + (this.Finished != null && + this.Finished.Equals(input.Finished)) + ) && + ( + this.FailureReason == input.FailureReason || + (this.FailureReason != null && + this.FailureReason.Equals(input.FailureReason)) + ) && + ( + this.CurrentCount == input.CurrentCount || + (this.CurrentCount != null && + this.CurrentCount.Equals(input.CurrentCount)) + ) && + ( + this.CurrentSize == input.CurrentSize || + (this.CurrentSize != null && + this.CurrentSize.Equals(input.CurrentSize)) + ) && + ( + this.Current == input.Current || + (this.Current != null && + this.Current.Equals(input.Current)) + ) && + ( + this.OriginalCount == input.OriginalCount || + (this.OriginalCount != null && + this.OriginalCount.Equals(input.OriginalCount)) + ) && + ( + this.OriginalSize == input.OriginalSize || + (this.OriginalSize != null && + this.OriginalSize.Equals(input.OriginalSize)) + ) && + ( + this.Original == input.Original || + (this.Original != null && + this.Original.Equals(input.Original)) + ) && + ( + this.DroppedCount == input.DroppedCount || + (this.DroppedCount != null && + this.DroppedCount.Equals(input.DroppedCount)) + ) && + ( + this.DroppedSize == input.DroppedSize || + (this.DroppedSize != null && + this.DroppedSize.Equals(input.DroppedSize)) + ) && + ( + this.Dropped == input.Dropped || + (this.Dropped != null && + this.Dropped.Equals(input.Dropped)) + ) && + ( + this.State == input.State || + (this.State != null && + this.State.Equals(input.State)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Id != null) + hashCode = hashCode * 59 + this.Id.GetHashCode(); + if (this.Uri != null) + hashCode = hashCode * 59 + this.Uri.GetHashCode(); + if (this.SubmissionTime != null) + hashCode = hashCode * 59 + this.SubmissionTime.GetHashCode(); + if (this.LastUpdated != null) + hashCode = hashCode * 59 + this.LastUpdated.GetHashCode(); + if (this.PercentCompleted != null) + hashCode = hashCode * 59 + this.PercentCompleted.GetHashCode(); + if (this.Finished != null) + hashCode = hashCode * 59 + this.Finished.GetHashCode(); + if (this.FailureReason != null) + hashCode = hashCode * 59 + this.FailureReason.GetHashCode(); + if (this.CurrentCount != null) + hashCode = hashCode * 59 + this.CurrentCount.GetHashCode(); + if (this.CurrentSize != null) + hashCode = hashCode * 59 + this.CurrentSize.GetHashCode(); + if (this.Current != null) + hashCode = hashCode * 59 + this.Current.GetHashCode(); + if (this.OriginalCount != null) + hashCode = hashCode * 59 + this.OriginalCount.GetHashCode(); + if (this.OriginalSize != null) + hashCode = hashCode * 59 + this.OriginalSize.GetHashCode(); + if (this.Original != null) + hashCode = hashCode * 59 + this.Original.GetHashCode(); + if (this.DroppedCount != null) + hashCode = hashCode * 59 + this.DroppedCount.GetHashCode(); + if (this.DroppedSize != null) + hashCode = hashCode * 59 + this.DroppedSize.GetHashCode(); + if (this.Dropped != null) + hashCode = hashCode * 59 + this.Dropped.GetHashCode(); + if (this.State != null) + hashCode = hashCode * 59 + this.State.GetHashCode(); + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/NiFi.Swagger/Model/DropRequestEntity.cs b/NiFi.Swagger/Model/DropRequestEntity.cs new file mode 100644 index 0000000..d257687 --- /dev/null +++ b/NiFi.Swagger/Model/DropRequestEntity.cs @@ -0,0 +1,118 @@ +/* + * NiFi Rest Api + * + * The Rest Api provides programmatic access to command and control a NiFi instance in real time. Start and stop processors, monitor queues, query provenance data, and more. Each endpoint below includes a description, definitions of the expected input and output, potential response codes, and the authorizations required to invoke each service. + * + * OpenAPI spec version: 1.9.1 + * Contact: dev@nifi.apache.org + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +namespace NiFi.Swagger.Model +{ + using System; + using System.Collections.Generic; + using System.ComponentModel.DataAnnotations; + using System.Runtime.Serialization; + using System.Text; + + using Newtonsoft.Json; + + /// + /// DropRequestEntity + /// + [DataContract] + public partial class DropRequestEntity : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// dropRequest. + public DropRequestEntity(DropRequestDTO dropRequest = default(DropRequestDTO)) + { + this.DropRequest = dropRequest; + } + + /// + /// Gets or Sets DropRequest + /// + [DataMember(Name="dropRequest", EmitDefaultValue=false)] + public DropRequestDTO DropRequest { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class DropRequestEntity {\n"); + sb.Append(" DropRequest: ").Append(this.DropRequest).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as DropRequestEntity); + } + + /// + /// Returns true if DropRequestEntity instances are equal + /// + /// Instance of DropRequestEntity to be compared + /// Boolean + public bool Equals(DropRequestEntity input) + { + if (input == null) + return false; + + return + ( + this.DropRequest == input.DropRequest || + (this.DropRequest != null && + this.DropRequest.Equals(input.DropRequest)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.DropRequest != null) + hashCode = hashCode * 59 + this.DropRequest.GetHashCode(); + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/NiFi.Swagger/Model/ExplicitRestrictionDTO.cs b/NiFi.Swagger/Model/ExplicitRestrictionDTO.cs new file mode 100644 index 0000000..161568e --- /dev/null +++ b/NiFi.Swagger/Model/ExplicitRestrictionDTO.cs @@ -0,0 +1,136 @@ +/* + * NiFi Rest Api + * + * The Rest Api provides programmatic access to command and control a NiFi instance in real time. Start and stop processors, monitor queues, query provenance data, and more. Each endpoint below includes a description, definitions of the expected input and output, potential response codes, and the authorizations required to invoke each service. + * + * OpenAPI spec version: 1.9.1 + * Contact: dev@nifi.apache.org + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +namespace NiFi.Swagger.Model +{ + using System; + using System.Collections.Generic; + using System.ComponentModel.DataAnnotations; + using System.Runtime.Serialization; + using System.Text; + + using Newtonsoft.Json; + + /// + /// ExplicitRestrictionDTO + /// + [DataContract] + public partial class ExplicitRestrictionDTO : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// The required permission necessary for this restriction.. + /// The description of why the usage of this component is restricted for this required permission.. + public ExplicitRestrictionDTO(RequiredPermissionDTO requiredPermission = default(RequiredPermissionDTO), string explanation = default(string)) + { + this.RequiredPermission = requiredPermission; + this.Explanation = explanation; + } + + /// + /// The required permission necessary for this restriction. + /// + /// The required permission necessary for this restriction. + [DataMember(Name="requiredPermission", EmitDefaultValue=false)] + public RequiredPermissionDTO RequiredPermission { get; set; } + + /// + /// The description of why the usage of this component is restricted for this required permission. + /// + /// The description of why the usage of this component is restricted for this required permission. + [DataMember(Name="explanation", EmitDefaultValue=false)] + public string Explanation { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class ExplicitRestrictionDTO {\n"); + sb.Append(" RequiredPermission: ").Append(this.RequiredPermission).Append("\n"); + sb.Append(" Explanation: ").Append(this.Explanation).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as ExplicitRestrictionDTO); + } + + /// + /// Returns true if ExplicitRestrictionDTO instances are equal + /// + /// Instance of ExplicitRestrictionDTO to be compared + /// Boolean + public bool Equals(ExplicitRestrictionDTO input) + { + if (input == null) + return false; + + return + ( + this.RequiredPermission == input.RequiredPermission || + (this.RequiredPermission != null && + this.RequiredPermission.Equals(input.RequiredPermission)) + ) && + ( + this.Explanation == input.Explanation || + (this.Explanation != null && + this.Explanation.Equals(input.Explanation)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.RequiredPermission != null) + hashCode = hashCode * 59 + this.RequiredPermission.GetHashCode(); + if (this.Explanation != null) + hashCode = hashCode * 59 + this.Explanation.GetHashCode(); + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/NiFi.Swagger/Model/FlowBreadcrumbDTO.cs b/NiFi.Swagger/Model/FlowBreadcrumbDTO.cs new file mode 100644 index 0000000..1ab517e --- /dev/null +++ b/NiFi.Swagger/Model/FlowBreadcrumbDTO.cs @@ -0,0 +1,153 @@ +/* + * NiFi Rest Api + * + * The Rest Api provides programmatic access to command and control a NiFi instance in real time. Start and stop processors, monitor queues, query provenance data, and more. Each endpoint below includes a description, definitions of the expected input and output, potential response codes, and the authorizations required to invoke each service. + * + * OpenAPI spec version: 1.9.1 + * Contact: dev@nifi.apache.org + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +namespace NiFi.Swagger.Model +{ + using System; + using System.Collections.Generic; + using System.ComponentModel.DataAnnotations; + using System.Runtime.Serialization; + using System.Text; + + using Newtonsoft.Json; + + /// + /// FlowBreadcrumbDTO + /// + [DataContract] + public partial class FlowBreadcrumbDTO : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// The id of the group.. + /// The id of the group.. + /// The process group version control information or null if not version controlled.. + public FlowBreadcrumbDTO(string id = default(string), string name = default(string), VersionControlInformationDTO versionControlInformation = default(VersionControlInformationDTO)) + { + this.Id = id; + this.Name = name; + this.VersionControlInformation = versionControlInformation; + } + + /// + /// The id of the group. + /// + /// The id of the group. + [DataMember(Name="id", EmitDefaultValue=false)] + public string Id { get; set; } + + /// + /// The id of the group. + /// + /// The id of the group. + [DataMember(Name="name", EmitDefaultValue=false)] + public string Name { get; set; } + + /// + /// The process group version control information or null if not version controlled. + /// + /// The process group version control information or null if not version controlled. + [DataMember(Name="versionControlInformation", EmitDefaultValue=false)] + public VersionControlInformationDTO VersionControlInformation { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class FlowBreadcrumbDTO {\n"); + sb.Append(" Id: ").Append(this.Id).Append("\n"); + sb.Append(" Name: ").Append(this.Name).Append("\n"); + sb.Append(" VersionControlInformation: ").Append(this.VersionControlInformation).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as FlowBreadcrumbDTO); + } + + /// + /// Returns true if FlowBreadcrumbDTO instances are equal + /// + /// Instance of FlowBreadcrumbDTO to be compared + /// Boolean + public bool Equals(FlowBreadcrumbDTO input) + { + if (input == null) + return false; + + return + ( + this.Id == input.Id || + (this.Id != null && + this.Id.Equals(input.Id)) + ) && + ( + this.Name == input.Name || + (this.Name != null && + this.Name.Equals(input.Name)) + ) && + ( + this.VersionControlInformation == input.VersionControlInformation || + (this.VersionControlInformation != null && + this.VersionControlInformation.Equals(input.VersionControlInformation)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Id != null) + hashCode = hashCode * 59 + this.Id.GetHashCode(); + if (this.Name != null) + hashCode = hashCode * 59 + this.Name.GetHashCode(); + if (this.VersionControlInformation != null) + hashCode = hashCode * 59 + this.VersionControlInformation.GetHashCode(); + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/NiFi.Swagger/Model/FlowBreadcrumbEntity.cs b/NiFi.Swagger/Model/FlowBreadcrumbEntity.cs new file mode 100644 index 0000000..2373926 --- /dev/null +++ b/NiFi.Swagger/Model/FlowBreadcrumbEntity.cs @@ -0,0 +1,225 @@ +/* + * NiFi Rest Api + * + * The Rest Api provides programmatic access to command and control a NiFi instance in real time. Start and stop processors, monitor queues, query provenance data, and more. Each endpoint below includes a description, definitions of the expected input and output, potential response codes, and the authorizations required to invoke each service. + * + * OpenAPI spec version: 1.9.1 + * Contact: dev@nifi.apache.org + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +namespace NiFi.Swagger.Model +{ + using System; + using System.Collections.Generic; + using System.ComponentModel.DataAnnotations; + using System.Runtime.Serialization; + using System.Text; + + using Newtonsoft.Json; + using Newtonsoft.Json.Converters; + + /// + /// FlowBreadcrumbEntity + /// + [DataContract] + public partial class FlowBreadcrumbEntity : IEquatable, IValidatableObject + { + /// + /// The current state of the Process Group, as it relates to the Versioned Flow + /// + /// The current state of the Process Group, as it relates to the Versioned Flow + [JsonConverter(typeof(StringEnumConverter))] + public enum VersionedFlowStateEnum + { + + /// + /// Enum LOCALLYMODIFIED for value: LOCALLY_MODIFIED + /// + [EnumMember(Value = "LOCALLY_MODIFIED")] + LOCALLYMODIFIED = 1, + + /// + /// Enum STALE for value: STALE + /// + [EnumMember(Value = "STALE")] + STALE = 2, + + /// + /// Enum LOCALLYMODIFIEDANDSTALE for value: LOCALLY_MODIFIED_AND_STALE + /// + [EnumMember(Value = "LOCALLY_MODIFIED_AND_STALE")] + LOCALLYMODIFIEDANDSTALE = 3, + + /// + /// Enum UPTODATE for value: UP_TO_DATE + /// + [EnumMember(Value = "UP_TO_DATE")] + UPTODATE = 4, + + /// + /// Enum SYNCFAILURE for value: SYNC_FAILURE + /// + [EnumMember(Value = "SYNC_FAILURE")] + SYNCFAILURE = 5 + } + + /// + /// The current state of the Process Group, as it relates to the Versioned Flow + /// + /// The current state of the Process Group, as it relates to the Versioned Flow + [DataMember(Name="versionedFlowState", EmitDefaultValue=false)] + public VersionedFlowStateEnum? VersionedFlowState { get; set; } + /// + /// Initializes a new instance of the class. + /// + /// The id of this ancestor ProcessGroup.. + /// The permissions for this ancestor ProcessGroup.. + /// This breadcrumb.. + /// The parent breadcrumb for this breadcrumb.. + public FlowBreadcrumbEntity(string id = default(string), PermissionsDTO permissions = default(PermissionsDTO), FlowBreadcrumbDTO breadcrumb = default(FlowBreadcrumbDTO), FlowBreadcrumbEntity parentBreadcrumb = default(FlowBreadcrumbEntity)) + { + this.Id = id; + this.Permissions = permissions; + this.Breadcrumb = breadcrumb; + this.ParentBreadcrumb = parentBreadcrumb; + } + + /// + /// The id of this ancestor ProcessGroup. + /// + /// The id of this ancestor ProcessGroup. + [DataMember(Name="id", EmitDefaultValue=false)] + public string Id { get; set; } + + /// + /// The permissions for this ancestor ProcessGroup. + /// + /// The permissions for this ancestor ProcessGroup. + [DataMember(Name="permissions", EmitDefaultValue=false)] + public PermissionsDTO Permissions { get; set; } + + + /// + /// This breadcrumb. + /// + /// This breadcrumb. + [DataMember(Name="breadcrumb", EmitDefaultValue=false)] + public FlowBreadcrumbDTO Breadcrumb { get; set; } + + /// + /// The parent breadcrumb for this breadcrumb. + /// + /// The parent breadcrumb for this breadcrumb. + [DataMember(Name="parentBreadcrumb", EmitDefaultValue=false)] + public FlowBreadcrumbEntity ParentBreadcrumb { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class FlowBreadcrumbEntity {\n"); + sb.Append(" Id: ").Append(this.Id).Append("\n"); + sb.Append(" Permissions: ").Append(this.Permissions).Append("\n"); + sb.Append(" VersionedFlowState: ").Append(this.VersionedFlowState).Append("\n"); + sb.Append(" Breadcrumb: ").Append(this.Breadcrumb).Append("\n"); + sb.Append(" ParentBreadcrumb: ").Append(this.ParentBreadcrumb).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as FlowBreadcrumbEntity); + } + + /// + /// Returns true if FlowBreadcrumbEntity instances are equal + /// + /// Instance of FlowBreadcrumbEntity to be compared + /// Boolean + public bool Equals(FlowBreadcrumbEntity input) + { + if (input == null) + return false; + + return + ( + this.Id == input.Id || + (this.Id != null && + this.Id.Equals(input.Id)) + ) && + ( + this.Permissions == input.Permissions || + (this.Permissions != null && + this.Permissions.Equals(input.Permissions)) + ) && + ( + this.VersionedFlowState == input.VersionedFlowState || + (this.VersionedFlowState != null && + this.VersionedFlowState.Equals(input.VersionedFlowState)) + ) && + ( + this.Breadcrumb == input.Breadcrumb || + (this.Breadcrumb != null && + this.Breadcrumb.Equals(input.Breadcrumb)) + ) && + ( + this.ParentBreadcrumb == input.ParentBreadcrumb || + (this.ParentBreadcrumb != null && + this.ParentBreadcrumb.Equals(input.ParentBreadcrumb)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Id != null) + hashCode = hashCode * 59 + this.Id.GetHashCode(); + if (this.Permissions != null) + hashCode = hashCode * 59 + this.Permissions.GetHashCode(); + if (this.VersionedFlowState != null) + hashCode = hashCode * 59 + this.VersionedFlowState.GetHashCode(); + if (this.Breadcrumb != null) + hashCode = hashCode * 59 + this.Breadcrumb.GetHashCode(); + if (this.ParentBreadcrumb != null) + hashCode = hashCode * 59 + this.ParentBreadcrumb.GetHashCode(); + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/NiFi.Swagger/Model/FlowComparisonEntity.cs b/NiFi.Swagger/Model/FlowComparisonEntity.cs new file mode 100644 index 0000000..e1c0fb0 --- /dev/null +++ b/NiFi.Swagger/Model/FlowComparisonEntity.cs @@ -0,0 +1,120 @@ +/* + * NiFi Rest Api + * + * The Rest Api provides programmatic access to command and control a NiFi instance in real time. Start and stop processors, monitor queues, query provenance data, and more. Each endpoint below includes a description, definitions of the expected input and output, potential response codes, and the authorizations required to invoke each service. + * + * OpenAPI spec version: 1.9.1 + * Contact: dev@nifi.apache.org + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +namespace NiFi.Swagger.Model +{ + using System; + using System.Collections.Generic; + using System.ComponentModel.DataAnnotations; + using System.Linq; + using System.Runtime.Serialization; + using System.Text; + + using Newtonsoft.Json; + + /// + /// FlowComparisonEntity + /// + [DataContract] + public partial class FlowComparisonEntity : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// The list of differences for each component in the flow that is not the same between the two flows. + public FlowComparisonEntity(List componentDifferences = default(List)) + { + this.ComponentDifferences = componentDifferences; + } + + /// + /// The list of differences for each component in the flow that is not the same between the two flows + /// + /// The list of differences for each component in the flow that is not the same between the two flows + [DataMember(Name="componentDifferences", EmitDefaultValue=false)] + public List ComponentDifferences { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class FlowComparisonEntity {\n"); + sb.Append(" ComponentDifferences: ").Append(this.ComponentDifferences).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as FlowComparisonEntity); + } + + /// + /// Returns true if FlowComparisonEntity instances are equal + /// + /// Instance of FlowComparisonEntity to be compared + /// Boolean + public bool Equals(FlowComparisonEntity input) + { + if (input == null) + return false; + + return + ( + this.ComponentDifferences == input.ComponentDifferences || + this.ComponentDifferences != null && + this.ComponentDifferences.SequenceEqual(input.ComponentDifferences) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.ComponentDifferences != null) + hashCode = hashCode * 59 + this.ComponentDifferences.GetHashCode(); + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/NiFi.Swagger/Model/FlowConfigurationDTO.cs b/NiFi.Swagger/Model/FlowConfigurationDTO.cs new file mode 100644 index 0000000..e9bb82b --- /dev/null +++ b/NiFi.Swagger/Model/FlowConfigurationDTO.cs @@ -0,0 +1,230 @@ +/* + * NiFi Rest Api + * + * The Rest Api provides programmatic access to command and control a NiFi instance in real time. Start and stop processors, monitor queues, query provenance data, and more. Each endpoint below includes a description, definitions of the expected input and output, potential response codes, and the authorizations required to invoke each service. + * + * OpenAPI spec version: 1.9.1 + * Contact: dev@nifi.apache.org + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +namespace NiFi.Swagger.Model +{ + using System; + using System.Collections.Generic; + using System.ComponentModel.DataAnnotations; + using System.Runtime.Serialization; + using System.Text; + + using Newtonsoft.Json; + + /// + /// FlowConfigurationDTO + /// + [DataContract] + public partial class FlowConfigurationDTO : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// The current time on the system.. + /// The time offset of the system.. + /// The default back pressure object threshold.. + /// The default back pressure data size threshold.. + public FlowConfigurationDTO(string currentTime = default(string), int? timeOffset = default(int?), long? defaultBackPressureObjectThreshold = default(long?), string defaultBackPressureDataSizeThreshold = default(string)) + { + this.CurrentTime = currentTime; + this.TimeOffset = timeOffset; + this.DefaultBackPressureObjectThreshold = defaultBackPressureObjectThreshold; + this.DefaultBackPressureDataSizeThreshold = defaultBackPressureDataSizeThreshold; + } + + /// + /// Whether this NiFi supports a managed authorizer. Managed authorizers can visualize users, groups, and policies in the UI. + /// + /// Whether this NiFi supports a managed authorizer. Managed authorizers can visualize users, groups, and policies in the UI. + [DataMember(Name="supportsManagedAuthorizer", EmitDefaultValue=false)] + public bool? SupportsManagedAuthorizer { get; private set; } + + /// + /// Whether this NiFi supports a configurable authorizer. + /// + /// Whether this NiFi supports a configurable authorizer. + [DataMember(Name="supportsConfigurableAuthorizer", EmitDefaultValue=false)] + public bool? SupportsConfigurableAuthorizer { get; private set; } + + /// + /// Whether this NiFi supports configurable users and groups. + /// + /// Whether this NiFi supports configurable users and groups. + [DataMember(Name="supportsConfigurableUsersAndGroups", EmitDefaultValue=false)] + public bool? SupportsConfigurableUsersAndGroups { get; private set; } + + /// + /// The interval in seconds between the automatic NiFi refresh requests. + /// + /// The interval in seconds between the automatic NiFi refresh requests. + [DataMember(Name="autoRefreshIntervalSeconds", EmitDefaultValue=false)] + public long? AutoRefreshIntervalSeconds { get; private set; } + + /// + /// The current time on the system. + /// + /// The current time on the system. + [DataMember(Name="currentTime", EmitDefaultValue=false)] + public string CurrentTime { get; set; } + + /// + /// The time offset of the system. + /// + /// The time offset of the system. + [DataMember(Name="timeOffset", EmitDefaultValue=false)] + public int? TimeOffset { get; set; } + + /// + /// The default back pressure object threshold. + /// + /// The default back pressure object threshold. + [DataMember(Name="defaultBackPressureObjectThreshold", EmitDefaultValue=false)] + public long? DefaultBackPressureObjectThreshold { get; set; } + + /// + /// The default back pressure data size threshold. + /// + /// The default back pressure data size threshold. + [DataMember(Name="defaultBackPressureDataSizeThreshold", EmitDefaultValue=false)] + public string DefaultBackPressureDataSizeThreshold { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class FlowConfigurationDTO {\n"); + sb.Append(" SupportsManagedAuthorizer: ").Append(this.SupportsManagedAuthorizer).Append("\n"); + sb.Append(" SupportsConfigurableAuthorizer: ").Append(this.SupportsConfigurableAuthorizer).Append("\n"); + sb.Append(" SupportsConfigurableUsersAndGroups: ").Append(this.SupportsConfigurableUsersAndGroups).Append("\n"); + sb.Append(" AutoRefreshIntervalSeconds: ").Append(this.AutoRefreshIntervalSeconds).Append("\n"); + sb.Append(" CurrentTime: ").Append(this.CurrentTime).Append("\n"); + sb.Append(" TimeOffset: ").Append(this.TimeOffset).Append("\n"); + sb.Append(" DefaultBackPressureObjectThreshold: ").Append(this.DefaultBackPressureObjectThreshold).Append("\n"); + sb.Append(" DefaultBackPressureDataSizeThreshold: ").Append(this.DefaultBackPressureDataSizeThreshold).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as FlowConfigurationDTO); + } + + /// + /// Returns true if FlowConfigurationDTO instances are equal + /// + /// Instance of FlowConfigurationDTO to be compared + /// Boolean + public bool Equals(FlowConfigurationDTO input) + { + if (input == null) + return false; + + return + ( + this.SupportsManagedAuthorizer == input.SupportsManagedAuthorizer || + (this.SupportsManagedAuthorizer != null && + this.SupportsManagedAuthorizer.Equals(input.SupportsManagedAuthorizer)) + ) && + ( + this.SupportsConfigurableAuthorizer == input.SupportsConfigurableAuthorizer || + (this.SupportsConfigurableAuthorizer != null && + this.SupportsConfigurableAuthorizer.Equals(input.SupportsConfigurableAuthorizer)) + ) && + ( + this.SupportsConfigurableUsersAndGroups == input.SupportsConfigurableUsersAndGroups || + (this.SupportsConfigurableUsersAndGroups != null && + this.SupportsConfigurableUsersAndGroups.Equals(input.SupportsConfigurableUsersAndGroups)) + ) && + ( + this.AutoRefreshIntervalSeconds == input.AutoRefreshIntervalSeconds || + (this.AutoRefreshIntervalSeconds != null && + this.AutoRefreshIntervalSeconds.Equals(input.AutoRefreshIntervalSeconds)) + ) && + ( + this.CurrentTime == input.CurrentTime || + (this.CurrentTime != null && + this.CurrentTime.Equals(input.CurrentTime)) + ) && + ( + this.TimeOffset == input.TimeOffset || + (this.TimeOffset != null && + this.TimeOffset.Equals(input.TimeOffset)) + ) && + ( + this.DefaultBackPressureObjectThreshold == input.DefaultBackPressureObjectThreshold || + (this.DefaultBackPressureObjectThreshold != null && + this.DefaultBackPressureObjectThreshold.Equals(input.DefaultBackPressureObjectThreshold)) + ) && + ( + this.DefaultBackPressureDataSizeThreshold == input.DefaultBackPressureDataSizeThreshold || + (this.DefaultBackPressureDataSizeThreshold != null && + this.DefaultBackPressureDataSizeThreshold.Equals(input.DefaultBackPressureDataSizeThreshold)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.SupportsManagedAuthorizer != null) + hashCode = hashCode * 59 + this.SupportsManagedAuthorizer.GetHashCode(); + if (this.SupportsConfigurableAuthorizer != null) + hashCode = hashCode * 59 + this.SupportsConfigurableAuthorizer.GetHashCode(); + if (this.SupportsConfigurableUsersAndGroups != null) + hashCode = hashCode * 59 + this.SupportsConfigurableUsersAndGroups.GetHashCode(); + if (this.AutoRefreshIntervalSeconds != null) + hashCode = hashCode * 59 + this.AutoRefreshIntervalSeconds.GetHashCode(); + if (this.CurrentTime != null) + hashCode = hashCode * 59 + this.CurrentTime.GetHashCode(); + if (this.TimeOffset != null) + hashCode = hashCode * 59 + this.TimeOffset.GetHashCode(); + if (this.DefaultBackPressureObjectThreshold != null) + hashCode = hashCode * 59 + this.DefaultBackPressureObjectThreshold.GetHashCode(); + if (this.DefaultBackPressureDataSizeThreshold != null) + hashCode = hashCode * 59 + this.DefaultBackPressureDataSizeThreshold.GetHashCode(); + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/NiFi.Swagger/Model/FlowConfigurationEntity.cs b/NiFi.Swagger/Model/FlowConfigurationEntity.cs new file mode 100644 index 0000000..286420e --- /dev/null +++ b/NiFi.Swagger/Model/FlowConfigurationEntity.cs @@ -0,0 +1,119 @@ +/* + * NiFi Rest Api + * + * The Rest Api provides programmatic access to command and control a NiFi instance in real time. Start and stop processors, monitor queues, query provenance data, and more. Each endpoint below includes a description, definitions of the expected input and output, potential response codes, and the authorizations required to invoke each service. + * + * OpenAPI spec version: 1.9.1 + * Contact: dev@nifi.apache.org + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +namespace NiFi.Swagger.Model +{ + using System; + using System.Collections.Generic; + using System.ComponentModel.DataAnnotations; + using System.Runtime.Serialization; + using System.Text; + + using Newtonsoft.Json; + + /// + /// FlowConfigurationEntity + /// + [DataContract] + public partial class FlowConfigurationEntity : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// The controller configuration.. + public FlowConfigurationEntity(FlowConfigurationDTO flowConfiguration = default(FlowConfigurationDTO)) + { + this.FlowConfiguration = flowConfiguration; + } + + /// + /// The controller configuration. + /// + /// The controller configuration. + [DataMember(Name="flowConfiguration", EmitDefaultValue=false)] + public FlowConfigurationDTO FlowConfiguration { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class FlowConfigurationEntity {\n"); + sb.Append(" FlowConfiguration: ").Append(this.FlowConfiguration).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as FlowConfigurationEntity); + } + + /// + /// Returns true if FlowConfigurationEntity instances are equal + /// + /// Instance of FlowConfigurationEntity to be compared + /// Boolean + public bool Equals(FlowConfigurationEntity input) + { + if (input == null) + return false; + + return + ( + this.FlowConfiguration == input.FlowConfiguration || + (this.FlowConfiguration != null && + this.FlowConfiguration.Equals(input.FlowConfiguration)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.FlowConfiguration != null) + hashCode = hashCode * 59 + this.FlowConfiguration.GetHashCode(); + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/NiFi.Swagger/Model/FlowDTO.cs b/NiFi.Swagger/Model/FlowDTO.cs new file mode 100644 index 0000000..6f8d6be --- /dev/null +++ b/NiFi.Swagger/Model/FlowDTO.cs @@ -0,0 +1,239 @@ +/* + * NiFi Rest Api + * + * The Rest Api provides programmatic access to command and control a NiFi instance in real time. Start and stop processors, monitor queues, query provenance data, and more. Each endpoint below includes a description, definitions of the expected input and output, potential response codes, and the authorizations required to invoke each service. + * + * OpenAPI spec version: 1.9.1 + * Contact: dev@nifi.apache.org + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +namespace NiFi.Swagger.Model +{ + using System; + using System.Collections.Generic; + using System.ComponentModel.DataAnnotations; + using System.Linq; + using System.Runtime.Serialization; + using System.Text; + + using Newtonsoft.Json; + + /// + /// FlowDTO + /// + [DataContract] + public partial class FlowDTO : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// The process groups in this flow.. + /// The remote process groups in this flow.. + /// The processors in this flow.. + /// The input ports in this flow.. + /// The output ports in this flow.. + /// The connections in this flow.. + /// The labels in this flow.. + /// The funnels in this flow.. + public FlowDTO(List processGroups = default(List), List remoteProcessGroups = default(List), List processors = default(List), List inputPorts = default(List), List outputPorts = default(List), List connections = default(List), List labels = default(List), List funnels = default(List)) + { + this.ProcessGroups = processGroups; + this.RemoteProcessGroups = remoteProcessGroups; + this.Processors = processors; + this.InputPorts = inputPorts; + this.OutputPorts = outputPorts; + this.Connections = connections; + this.Labels = labels; + this.Funnels = funnels; + } + + /// + /// The process groups in this flow. + /// + /// The process groups in this flow. + [DataMember(Name="processGroups", EmitDefaultValue=false)] + public List ProcessGroups { get; set; } + + /// + /// The remote process groups in this flow. + /// + /// The remote process groups in this flow. + [DataMember(Name="remoteProcessGroups", EmitDefaultValue=false)] + public List RemoteProcessGroups { get; set; } + + /// + /// The processors in this flow. + /// + /// The processors in this flow. + [DataMember(Name="processors", EmitDefaultValue=false)] + public List Processors { get; set; } + + /// + /// The input ports in this flow. + /// + /// The input ports in this flow. + [DataMember(Name="inputPorts", EmitDefaultValue=false)] + public List InputPorts { get; set; } + + /// + /// The output ports in this flow. + /// + /// The output ports in this flow. + [DataMember(Name="outputPorts", EmitDefaultValue=false)] + public List OutputPorts { get; set; } + + /// + /// The connections in this flow. + /// + /// The connections in this flow. + [DataMember(Name="connections", EmitDefaultValue=false)] + public List Connections { get; set; } + + /// + /// The labels in this flow. + /// + /// The labels in this flow. + [DataMember(Name="labels", EmitDefaultValue=false)] + public List Labels { get; set; } + + /// + /// The funnels in this flow. + /// + /// The funnels in this flow. + [DataMember(Name="funnels", EmitDefaultValue=false)] + public List Funnels { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class FlowDTO {\n"); + sb.Append(" ProcessGroups: ").Append(this.ProcessGroups).Append("\n"); + sb.Append(" RemoteProcessGroups: ").Append(this.RemoteProcessGroups).Append("\n"); + sb.Append(" Processors: ").Append(this.Processors).Append("\n"); + sb.Append(" InputPorts: ").Append(this.InputPorts).Append("\n"); + sb.Append(" OutputPorts: ").Append(this.OutputPorts).Append("\n"); + sb.Append(" Connections: ").Append(this.Connections).Append("\n"); + sb.Append(" Labels: ").Append(this.Labels).Append("\n"); + sb.Append(" Funnels: ").Append(this.Funnels).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as FlowDTO); + } + + /// + /// Returns true if FlowDTO instances are equal + /// + /// Instance of FlowDTO to be compared + /// Boolean + public bool Equals(FlowDTO input) + { + if (input == null) + return false; + + return + ( + this.ProcessGroups == input.ProcessGroups || + this.ProcessGroups != null && + this.ProcessGroups.SequenceEqual(input.ProcessGroups) + ) && + ( + this.RemoteProcessGroups == input.RemoteProcessGroups || + this.RemoteProcessGroups != null && + this.RemoteProcessGroups.SequenceEqual(input.RemoteProcessGroups) + ) && + ( + this.Processors == input.Processors || + this.Processors != null && + this.Processors.SequenceEqual(input.Processors) + ) && + ( + this.InputPorts == input.InputPorts || + this.InputPorts != null && + this.InputPorts.SequenceEqual(input.InputPorts) + ) && + ( + this.OutputPorts == input.OutputPorts || + this.OutputPorts != null && + this.OutputPorts.SequenceEqual(input.OutputPorts) + ) && + ( + this.Connections == input.Connections || + this.Connections != null && + this.Connections.SequenceEqual(input.Connections) + ) && + ( + this.Labels == input.Labels || + this.Labels != null && + this.Labels.SequenceEqual(input.Labels) + ) && + ( + this.Funnels == input.Funnels || + this.Funnels != null && + this.Funnels.SequenceEqual(input.Funnels) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.ProcessGroups != null) + hashCode = hashCode * 59 + this.ProcessGroups.GetHashCode(); + if (this.RemoteProcessGroups != null) + hashCode = hashCode * 59 + this.RemoteProcessGroups.GetHashCode(); + if (this.Processors != null) + hashCode = hashCode * 59 + this.Processors.GetHashCode(); + if (this.InputPorts != null) + hashCode = hashCode * 59 + this.InputPorts.GetHashCode(); + if (this.OutputPorts != null) + hashCode = hashCode * 59 + this.OutputPorts.GetHashCode(); + if (this.Connections != null) + hashCode = hashCode * 59 + this.Connections.GetHashCode(); + if (this.Labels != null) + hashCode = hashCode * 59 + this.Labels.GetHashCode(); + if (this.Funnels != null) + hashCode = hashCode * 59 + this.Funnels.GetHashCode(); + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/NiFi.Swagger/Model/FlowEntity.cs b/NiFi.Swagger/Model/FlowEntity.cs new file mode 100644 index 0000000..4c173e4 --- /dev/null +++ b/NiFi.Swagger/Model/FlowEntity.cs @@ -0,0 +1,118 @@ +/* + * NiFi Rest Api + * + * The Rest Api provides programmatic access to command and control a NiFi instance in real time. Start and stop processors, monitor queues, query provenance data, and more. Each endpoint below includes a description, definitions of the expected input and output, potential response codes, and the authorizations required to invoke each service. + * + * OpenAPI spec version: 1.9.1 + * Contact: dev@nifi.apache.org + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +namespace NiFi.Swagger.Model +{ + using System; + using System.Collections.Generic; + using System.ComponentModel.DataAnnotations; + using System.Runtime.Serialization; + using System.Text; + + using Newtonsoft.Json; + + /// + /// FlowEntity + /// + [DataContract] + public partial class FlowEntity : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// flow. + public FlowEntity(FlowDTO flow = default(FlowDTO)) + { + this.Flow = flow; + } + + /// + /// Gets or Sets Flow + /// + [DataMember(Name="flow", EmitDefaultValue=false)] + public FlowDTO Flow { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class FlowEntity {\n"); + sb.Append(" Flow: ").Append(this.Flow).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as FlowEntity); + } + + /// + /// Returns true if FlowEntity instances are equal + /// + /// Instance of FlowEntity to be compared + /// Boolean + public bool Equals(FlowEntity input) + { + if (input == null) + return false; + + return + ( + this.Flow == input.Flow || + (this.Flow != null && + this.Flow.Equals(input.Flow)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Flow != null) + hashCode = hashCode * 59 + this.Flow.GetHashCode(); + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/NiFi.Swagger/Model/FlowFileDTO.cs b/NiFi.Swagger/Model/FlowFileDTO.cs new file mode 100644 index 0000000..1243771 --- /dev/null +++ b/NiFi.Swagger/Model/FlowFileDTO.cs @@ -0,0 +1,409 @@ +/* + * NiFi Rest Api + * + * The Rest Api provides programmatic access to command and control a NiFi instance in real time. Start and stop processors, monitor queues, query provenance data, and more. Each endpoint below includes a description, definitions of the expected input and output, potential response codes, and the authorizations required to invoke each service. + * + * OpenAPI spec version: 1.9.1 + * Contact: dev@nifi.apache.org + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +namespace NiFi.Swagger.Model +{ + using System; + using System.Collections.Generic; + using System.ComponentModel.DataAnnotations; + using System.Linq; + using System.Runtime.Serialization; + using System.Text; + + using Newtonsoft.Json; + + /// + /// FlowFileDTO + /// + [DataContract] + public partial class FlowFileDTO : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// The URI that can be used to access this FlowFile.. + /// The FlowFile UUID.. + /// The FlowFile filename.. + /// The FlowFile's position in the queue.. + /// The FlowFile file size.. + /// How long this FlowFile has been enqueued.. + /// Duration since the FlowFile's greatest ancestor entered the flow.. + /// How long in milliseconds until the FlowFile penalty expires.. + /// The id of the node where this FlowFile resides.. + /// The label for the node where this FlowFile resides.. + /// The FlowFile attributes.. + /// The section in which the content claim lives.. + /// The container in which the content claim lives.. + /// The identifier of the content claim.. + /// The offset into the content claim where the flowfile's content begins.. + /// The file size of the content claim formatted.. + /// The file size of the content claim in bytes.. + /// If the FlowFile is penalized.. + public FlowFileDTO(string uri = default(string), string uuid = default(string), string filename = default(string), int? position = default(int?), long? size = default(long?), long? queuedDuration = default(long?), long? lineageDuration = default(long?), long? penaltyExpiresIn = default(long?), string clusterNodeId = default(string), string clusterNodeAddress = default(string), Dictionary attributes = default(Dictionary), string contentClaimSection = default(string), string contentClaimContainer = default(string), string contentClaimIdentifier = default(string), long? contentClaimOffset = default(long?), string contentClaimFileSize = default(string), long? contentClaimFileSizeBytes = default(long?), bool? penalized = default(bool?)) + { + this.Uri = uri; + this.Uuid = uuid; + this.Filename = filename; + this.Position = position; + this.Size = size; + this.QueuedDuration = queuedDuration; + this.LineageDuration = lineageDuration; + this.PenaltyExpiresIn = penaltyExpiresIn; + this.ClusterNodeId = clusterNodeId; + this.ClusterNodeAddress = clusterNodeAddress; + this.Attributes = attributes; + this.ContentClaimSection = contentClaimSection; + this.ContentClaimContainer = contentClaimContainer; + this.ContentClaimIdentifier = contentClaimIdentifier; + this.ContentClaimOffset = contentClaimOffset; + this.ContentClaimFileSize = contentClaimFileSize; + this.ContentClaimFileSizeBytes = contentClaimFileSizeBytes; + this.Penalized = penalized; + } + + /// + /// The URI that can be used to access this FlowFile. + /// + /// The URI that can be used to access this FlowFile. + [DataMember(Name="uri", EmitDefaultValue=false)] + public string Uri { get; set; } + + /// + /// The FlowFile UUID. + /// + /// The FlowFile UUID. + [DataMember(Name="uuid", EmitDefaultValue=false)] + public string Uuid { get; set; } + + /// + /// The FlowFile filename. + /// + /// The FlowFile filename. + [DataMember(Name="filename", EmitDefaultValue=false)] + public string Filename { get; set; } + + /// + /// The FlowFile's position in the queue. + /// + /// The FlowFile's position in the queue. + [DataMember(Name="position", EmitDefaultValue=false)] + public int? Position { get; set; } + + /// + /// The FlowFile file size. + /// + /// The FlowFile file size. + [DataMember(Name="size", EmitDefaultValue=false)] + public long? Size { get; set; } + + /// + /// How long this FlowFile has been enqueued. + /// + /// How long this FlowFile has been enqueued. + [DataMember(Name="queuedDuration", EmitDefaultValue=false)] + public long? QueuedDuration { get; set; } + + /// + /// Duration since the FlowFile's greatest ancestor entered the flow. + /// + /// Duration since the FlowFile's greatest ancestor entered the flow. + [DataMember(Name="lineageDuration", EmitDefaultValue=false)] + public long? LineageDuration { get; set; } + + /// + /// How long in milliseconds until the FlowFile penalty expires. + /// + /// How long in milliseconds until the FlowFile penalty expires. + [DataMember(Name="penaltyExpiresIn", EmitDefaultValue=false)] + public long? PenaltyExpiresIn { get; set; } + + /// + /// The id of the node where this FlowFile resides. + /// + /// The id of the node where this FlowFile resides. + [DataMember(Name="clusterNodeId", EmitDefaultValue=false)] + public string ClusterNodeId { get; set; } + + /// + /// The label for the node where this FlowFile resides. + /// + /// The label for the node where this FlowFile resides. + [DataMember(Name="clusterNodeAddress", EmitDefaultValue=false)] + public string ClusterNodeAddress { get; set; } + + /// + /// The FlowFile attributes. + /// + /// The FlowFile attributes. + [DataMember(Name="attributes", EmitDefaultValue=false)] + public Dictionary Attributes { get; set; } + + /// + /// The section in which the content claim lives. + /// + /// The section in which the content claim lives. + [DataMember(Name="contentClaimSection", EmitDefaultValue=false)] + public string ContentClaimSection { get; set; } + + /// + /// The container in which the content claim lives. + /// + /// The container in which the content claim lives. + [DataMember(Name="contentClaimContainer", EmitDefaultValue=false)] + public string ContentClaimContainer { get; set; } + + /// + /// The identifier of the content claim. + /// + /// The identifier of the content claim. + [DataMember(Name="contentClaimIdentifier", EmitDefaultValue=false)] + public string ContentClaimIdentifier { get; set; } + + /// + /// The offset into the content claim where the flowfile's content begins. + /// + /// The offset into the content claim where the flowfile's content begins. + [DataMember(Name="contentClaimOffset", EmitDefaultValue=false)] + public long? ContentClaimOffset { get; set; } + + /// + /// The file size of the content claim formatted. + /// + /// The file size of the content claim formatted. + [DataMember(Name="contentClaimFileSize", EmitDefaultValue=false)] + public string ContentClaimFileSize { get; set; } + + /// + /// The file size of the content claim in bytes. + /// + /// The file size of the content claim in bytes. + [DataMember(Name="contentClaimFileSizeBytes", EmitDefaultValue=false)] + public long? ContentClaimFileSizeBytes { get; set; } + + /// + /// If the FlowFile is penalized. + /// + /// If the FlowFile is penalized. + [DataMember(Name="penalized", EmitDefaultValue=false)] + public bool? Penalized { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class FlowFileDTO {\n"); + sb.Append(" Uri: ").Append(this.Uri).Append("\n"); + sb.Append(" Uuid: ").Append(this.Uuid).Append("\n"); + sb.Append(" Filename: ").Append(this.Filename).Append("\n"); + sb.Append(" Position: ").Append(this.Position).Append("\n"); + sb.Append(" Size: ").Append(this.Size).Append("\n"); + sb.Append(" QueuedDuration: ").Append(this.QueuedDuration).Append("\n"); + sb.Append(" LineageDuration: ").Append(this.LineageDuration).Append("\n"); + sb.Append(" PenaltyExpiresIn: ").Append(this.PenaltyExpiresIn).Append("\n"); + sb.Append(" ClusterNodeId: ").Append(this.ClusterNodeId).Append("\n"); + sb.Append(" ClusterNodeAddress: ").Append(this.ClusterNodeAddress).Append("\n"); + sb.Append(" Attributes: ").Append(this.Attributes).Append("\n"); + sb.Append(" ContentClaimSection: ").Append(this.ContentClaimSection).Append("\n"); + sb.Append(" ContentClaimContainer: ").Append(this.ContentClaimContainer).Append("\n"); + sb.Append(" ContentClaimIdentifier: ").Append(this.ContentClaimIdentifier).Append("\n"); + sb.Append(" ContentClaimOffset: ").Append(this.ContentClaimOffset).Append("\n"); + sb.Append(" ContentClaimFileSize: ").Append(this.ContentClaimFileSize).Append("\n"); + sb.Append(" ContentClaimFileSizeBytes: ").Append(this.ContentClaimFileSizeBytes).Append("\n"); + sb.Append(" Penalized: ").Append(this.Penalized).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as FlowFileDTO); + } + + /// + /// Returns true if FlowFileDTO instances are equal + /// + /// Instance of FlowFileDTO to be compared + /// Boolean + public bool Equals(FlowFileDTO input) + { + if (input == null) + return false; + + return + ( + this.Uri == input.Uri || + (this.Uri != null && + this.Uri.Equals(input.Uri)) + ) && + ( + this.Uuid == input.Uuid || + (this.Uuid != null && + this.Uuid.Equals(input.Uuid)) + ) && + ( + this.Filename == input.Filename || + (this.Filename != null && + this.Filename.Equals(input.Filename)) + ) && + ( + this.Position == input.Position || + (this.Position != null && + this.Position.Equals(input.Position)) + ) && + ( + this.Size == input.Size || + (this.Size != null && + this.Size.Equals(input.Size)) + ) && + ( + this.QueuedDuration == input.QueuedDuration || + (this.QueuedDuration != null && + this.QueuedDuration.Equals(input.QueuedDuration)) + ) && + ( + this.LineageDuration == input.LineageDuration || + (this.LineageDuration != null && + this.LineageDuration.Equals(input.LineageDuration)) + ) && + ( + this.PenaltyExpiresIn == input.PenaltyExpiresIn || + (this.PenaltyExpiresIn != null && + this.PenaltyExpiresIn.Equals(input.PenaltyExpiresIn)) + ) && + ( + this.ClusterNodeId == input.ClusterNodeId || + (this.ClusterNodeId != null && + this.ClusterNodeId.Equals(input.ClusterNodeId)) + ) && + ( + this.ClusterNodeAddress == input.ClusterNodeAddress || + (this.ClusterNodeAddress != null && + this.ClusterNodeAddress.Equals(input.ClusterNodeAddress)) + ) && + ( + this.Attributes == input.Attributes || + this.Attributes != null && + this.Attributes.SequenceEqual(input.Attributes) + ) && + ( + this.ContentClaimSection == input.ContentClaimSection || + (this.ContentClaimSection != null && + this.ContentClaimSection.Equals(input.ContentClaimSection)) + ) && + ( + this.ContentClaimContainer == input.ContentClaimContainer || + (this.ContentClaimContainer != null && + this.ContentClaimContainer.Equals(input.ContentClaimContainer)) + ) && + ( + this.ContentClaimIdentifier == input.ContentClaimIdentifier || + (this.ContentClaimIdentifier != null && + this.ContentClaimIdentifier.Equals(input.ContentClaimIdentifier)) + ) && + ( + this.ContentClaimOffset == input.ContentClaimOffset || + (this.ContentClaimOffset != null && + this.ContentClaimOffset.Equals(input.ContentClaimOffset)) + ) && + ( + this.ContentClaimFileSize == input.ContentClaimFileSize || + (this.ContentClaimFileSize != null && + this.ContentClaimFileSize.Equals(input.ContentClaimFileSize)) + ) && + ( + this.ContentClaimFileSizeBytes == input.ContentClaimFileSizeBytes || + (this.ContentClaimFileSizeBytes != null && + this.ContentClaimFileSizeBytes.Equals(input.ContentClaimFileSizeBytes)) + ) && + ( + this.Penalized == input.Penalized || + (this.Penalized != null && + this.Penalized.Equals(input.Penalized)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Uri != null) + hashCode = hashCode * 59 + this.Uri.GetHashCode(); + if (this.Uuid != null) + hashCode = hashCode * 59 + this.Uuid.GetHashCode(); + if (this.Filename != null) + hashCode = hashCode * 59 + this.Filename.GetHashCode(); + if (this.Position != null) + hashCode = hashCode * 59 + this.Position.GetHashCode(); + if (this.Size != null) + hashCode = hashCode * 59 + this.Size.GetHashCode(); + if (this.QueuedDuration != null) + hashCode = hashCode * 59 + this.QueuedDuration.GetHashCode(); + if (this.LineageDuration != null) + hashCode = hashCode * 59 + this.LineageDuration.GetHashCode(); + if (this.PenaltyExpiresIn != null) + hashCode = hashCode * 59 + this.PenaltyExpiresIn.GetHashCode(); + if (this.ClusterNodeId != null) + hashCode = hashCode * 59 + this.ClusterNodeId.GetHashCode(); + if (this.ClusterNodeAddress != null) + hashCode = hashCode * 59 + this.ClusterNodeAddress.GetHashCode(); + if (this.Attributes != null) + hashCode = hashCode * 59 + this.Attributes.GetHashCode(); + if (this.ContentClaimSection != null) + hashCode = hashCode * 59 + this.ContentClaimSection.GetHashCode(); + if (this.ContentClaimContainer != null) + hashCode = hashCode * 59 + this.ContentClaimContainer.GetHashCode(); + if (this.ContentClaimIdentifier != null) + hashCode = hashCode * 59 + this.ContentClaimIdentifier.GetHashCode(); + if (this.ContentClaimOffset != null) + hashCode = hashCode * 59 + this.ContentClaimOffset.GetHashCode(); + if (this.ContentClaimFileSize != null) + hashCode = hashCode * 59 + this.ContentClaimFileSize.GetHashCode(); + if (this.ContentClaimFileSizeBytes != null) + hashCode = hashCode * 59 + this.ContentClaimFileSizeBytes.GetHashCode(); + if (this.Penalized != null) + hashCode = hashCode * 59 + this.Penalized.GetHashCode(); + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/NiFi.Swagger/Model/FlowFileEntity.cs b/NiFi.Swagger/Model/FlowFileEntity.cs new file mode 100644 index 0000000..be185ea --- /dev/null +++ b/NiFi.Swagger/Model/FlowFileEntity.cs @@ -0,0 +1,118 @@ +/* + * NiFi Rest Api + * + * The Rest Api provides programmatic access to command and control a NiFi instance in real time. Start and stop processors, monitor queues, query provenance data, and more. Each endpoint below includes a description, definitions of the expected input and output, potential response codes, and the authorizations required to invoke each service. + * + * OpenAPI spec version: 1.9.1 + * Contact: dev@nifi.apache.org + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +namespace NiFi.Swagger.Model +{ + using System; + using System.Collections.Generic; + using System.ComponentModel.DataAnnotations; + using System.Runtime.Serialization; + using System.Text; + + using Newtonsoft.Json; + + /// + /// FlowFileEntity + /// + [DataContract] + public partial class FlowFileEntity : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// flowFile. + public FlowFileEntity(FlowFileDTO flowFile = default(FlowFileDTO)) + { + this.FlowFile = flowFile; + } + + /// + /// Gets or Sets FlowFile + /// + [DataMember(Name="flowFile", EmitDefaultValue=false)] + public FlowFileDTO FlowFile { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class FlowFileEntity {\n"); + sb.Append(" FlowFile: ").Append(this.FlowFile).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as FlowFileEntity); + } + + /// + /// Returns true if FlowFileEntity instances are equal + /// + /// Instance of FlowFileEntity to be compared + /// Boolean + public bool Equals(FlowFileEntity input) + { + if (input == null) + return false; + + return + ( + this.FlowFile == input.FlowFile || + (this.FlowFile != null && + this.FlowFile.Equals(input.FlowFile)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.FlowFile != null) + hashCode = hashCode * 59 + this.FlowFile.GetHashCode(); + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/NiFi.Swagger/Model/FlowFileSummaryDTO.cs b/NiFi.Swagger/Model/FlowFileSummaryDTO.cs new file mode 100644 index 0000000..62d7dcb --- /dev/null +++ b/NiFi.Swagger/Model/FlowFileSummaryDTO.cs @@ -0,0 +1,289 @@ +/* + * NiFi Rest Api + * + * The Rest Api provides programmatic access to command and control a NiFi instance in real time. Start and stop processors, monitor queues, query provenance data, and more. Each endpoint below includes a description, definitions of the expected input and output, potential response codes, and the authorizations required to invoke each service. + * + * OpenAPI spec version: 1.9.1 + * Contact: dev@nifi.apache.org + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +namespace NiFi.Swagger.Model +{ + using System; + using System.Collections.Generic; + using System.ComponentModel.DataAnnotations; + using System.Runtime.Serialization; + using System.Text; + + using Newtonsoft.Json; + + /// + /// FlowFileSummaryDTO + /// + [DataContract] + public partial class FlowFileSummaryDTO : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// The URI that can be used to access this FlowFile.. + /// The FlowFile UUID.. + /// The FlowFile filename.. + /// The FlowFile's position in the queue.. + /// The FlowFile file size.. + /// How long this FlowFile has been enqueued.. + /// Duration since the FlowFile's greatest ancestor entered the flow.. + /// How long in milliseconds until the FlowFile penalty expires.. + /// The id of the node where this FlowFile resides.. + /// The label for the node where this FlowFile resides.. + /// If the FlowFile is penalized.. + public FlowFileSummaryDTO(string uri = default(string), string uuid = default(string), string filename = default(string), int? position = default(int?), long? size = default(long?), long? queuedDuration = default(long?), long? lineageDuration = default(long?), long? penaltyExpiresIn = default(long?), string clusterNodeId = default(string), string clusterNodeAddress = default(string), bool? penalized = default(bool?)) + { + this.Uri = uri; + this.Uuid = uuid; + this.Filename = filename; + this.Position = position; + this.Size = size; + this.QueuedDuration = queuedDuration; + this.LineageDuration = lineageDuration; + this.PenaltyExpiresIn = penaltyExpiresIn; + this.ClusterNodeId = clusterNodeId; + this.ClusterNodeAddress = clusterNodeAddress; + this.Penalized = penalized; + } + + /// + /// The URI that can be used to access this FlowFile. + /// + /// The URI that can be used to access this FlowFile. + [DataMember(Name="uri", EmitDefaultValue=false)] + public string Uri { get; set; } + + /// + /// The FlowFile UUID. + /// + /// The FlowFile UUID. + [DataMember(Name="uuid", EmitDefaultValue=false)] + public string Uuid { get; set; } + + /// + /// The FlowFile filename. + /// + /// The FlowFile filename. + [DataMember(Name="filename", EmitDefaultValue=false)] + public string Filename { get; set; } + + /// + /// The FlowFile's position in the queue. + /// + /// The FlowFile's position in the queue. + [DataMember(Name="position", EmitDefaultValue=false)] + public int? Position { get; set; } + + /// + /// The FlowFile file size. + /// + /// The FlowFile file size. + [DataMember(Name="size", EmitDefaultValue=false)] + public long? Size { get; set; } + + /// + /// How long this FlowFile has been enqueued. + /// + /// How long this FlowFile has been enqueued. + [DataMember(Name="queuedDuration", EmitDefaultValue=false)] + public long? QueuedDuration { get; set; } + + /// + /// Duration since the FlowFile's greatest ancestor entered the flow. + /// + /// Duration since the FlowFile's greatest ancestor entered the flow. + [DataMember(Name="lineageDuration", EmitDefaultValue=false)] + public long? LineageDuration { get; set; } + + /// + /// How long in milliseconds until the FlowFile penalty expires. + /// + /// How long in milliseconds until the FlowFile penalty expires. + [DataMember(Name="penaltyExpiresIn", EmitDefaultValue=false)] + public long? PenaltyExpiresIn { get; set; } + + /// + /// The id of the node where this FlowFile resides. + /// + /// The id of the node where this FlowFile resides. + [DataMember(Name="clusterNodeId", EmitDefaultValue=false)] + public string ClusterNodeId { get; set; } + + /// + /// The label for the node where this FlowFile resides. + /// + /// The label for the node where this FlowFile resides. + [DataMember(Name="clusterNodeAddress", EmitDefaultValue=false)] + public string ClusterNodeAddress { get; set; } + + /// + /// If the FlowFile is penalized. + /// + /// If the FlowFile is penalized. + [DataMember(Name="penalized", EmitDefaultValue=false)] + public bool? Penalized { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class FlowFileSummaryDTO {\n"); + sb.Append(" Uri: ").Append(this.Uri).Append("\n"); + sb.Append(" Uuid: ").Append(this.Uuid).Append("\n"); + sb.Append(" Filename: ").Append(this.Filename).Append("\n"); + sb.Append(" Position: ").Append(this.Position).Append("\n"); + sb.Append(" Size: ").Append(this.Size).Append("\n"); + sb.Append(" QueuedDuration: ").Append(this.QueuedDuration).Append("\n"); + sb.Append(" LineageDuration: ").Append(this.LineageDuration).Append("\n"); + sb.Append(" PenaltyExpiresIn: ").Append(this.PenaltyExpiresIn).Append("\n"); + sb.Append(" ClusterNodeId: ").Append(this.ClusterNodeId).Append("\n"); + sb.Append(" ClusterNodeAddress: ").Append(this.ClusterNodeAddress).Append("\n"); + sb.Append(" Penalized: ").Append(this.Penalized).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as FlowFileSummaryDTO); + } + + /// + /// Returns true if FlowFileSummaryDTO instances are equal + /// + /// Instance of FlowFileSummaryDTO to be compared + /// Boolean + public bool Equals(FlowFileSummaryDTO input) + { + if (input == null) + return false; + + return + ( + this.Uri == input.Uri || + (this.Uri != null && + this.Uri.Equals(input.Uri)) + ) && + ( + this.Uuid == input.Uuid || + (this.Uuid != null && + this.Uuid.Equals(input.Uuid)) + ) && + ( + this.Filename == input.Filename || + (this.Filename != null && + this.Filename.Equals(input.Filename)) + ) && + ( + this.Position == input.Position || + (this.Position != null && + this.Position.Equals(input.Position)) + ) && + ( + this.Size == input.Size || + (this.Size != null && + this.Size.Equals(input.Size)) + ) && + ( + this.QueuedDuration == input.QueuedDuration || + (this.QueuedDuration != null && + this.QueuedDuration.Equals(input.QueuedDuration)) + ) && + ( + this.LineageDuration == input.LineageDuration || + (this.LineageDuration != null && + this.LineageDuration.Equals(input.LineageDuration)) + ) && + ( + this.PenaltyExpiresIn == input.PenaltyExpiresIn || + (this.PenaltyExpiresIn != null && + this.PenaltyExpiresIn.Equals(input.PenaltyExpiresIn)) + ) && + ( + this.ClusterNodeId == input.ClusterNodeId || + (this.ClusterNodeId != null && + this.ClusterNodeId.Equals(input.ClusterNodeId)) + ) && + ( + this.ClusterNodeAddress == input.ClusterNodeAddress || + (this.ClusterNodeAddress != null && + this.ClusterNodeAddress.Equals(input.ClusterNodeAddress)) + ) && + ( + this.Penalized == input.Penalized || + (this.Penalized != null && + this.Penalized.Equals(input.Penalized)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Uri != null) + hashCode = hashCode * 59 + this.Uri.GetHashCode(); + if (this.Uuid != null) + hashCode = hashCode * 59 + this.Uuid.GetHashCode(); + if (this.Filename != null) + hashCode = hashCode * 59 + this.Filename.GetHashCode(); + if (this.Position != null) + hashCode = hashCode * 59 + this.Position.GetHashCode(); + if (this.Size != null) + hashCode = hashCode * 59 + this.Size.GetHashCode(); + if (this.QueuedDuration != null) + hashCode = hashCode * 59 + this.QueuedDuration.GetHashCode(); + if (this.LineageDuration != null) + hashCode = hashCode * 59 + this.LineageDuration.GetHashCode(); + if (this.PenaltyExpiresIn != null) + hashCode = hashCode * 59 + this.PenaltyExpiresIn.GetHashCode(); + if (this.ClusterNodeId != null) + hashCode = hashCode * 59 + this.ClusterNodeId.GetHashCode(); + if (this.ClusterNodeAddress != null) + hashCode = hashCode * 59 + this.ClusterNodeAddress.GetHashCode(); + if (this.Penalized != null) + hashCode = hashCode * 59 + this.Penalized.GetHashCode(); + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/NiFi.Swagger/Model/FlowSnippetDTO.cs b/NiFi.Swagger/Model/FlowSnippetDTO.cs new file mode 100644 index 0000000..d586664 --- /dev/null +++ b/NiFi.Swagger/Model/FlowSnippetDTO.cs @@ -0,0 +1,256 @@ +/* + * NiFi Rest Api + * + * The Rest Api provides programmatic access to command and control a NiFi instance in real time. Start and stop processors, monitor queues, query provenance data, and more. Each endpoint below includes a description, definitions of the expected input and output, potential response codes, and the authorizations required to invoke each service. + * + * OpenAPI spec version: 1.9.1 + * Contact: dev@nifi.apache.org + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +namespace NiFi.Swagger.Model +{ + using System; + using System.Collections.Generic; + using System.ComponentModel.DataAnnotations; + using System.Linq; + using System.Runtime.Serialization; + using System.Text; + + using Newtonsoft.Json; + + /// + /// FlowSnippetDTO + /// + [DataContract] + public partial class FlowSnippetDTO : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// The process groups in this flow snippet.. + /// The remote process groups in this flow snippet.. + /// The processors in this flow snippet.. + /// The input ports in this flow snippet.. + /// The output ports in this flow snippet.. + /// The connections in this flow snippet.. + /// The labels in this flow snippet.. + /// The funnels in this flow snippet.. + /// The controller services in this flow snippet.. + public FlowSnippetDTO(List processGroups = default(List), List remoteProcessGroups = default(List), List processors = default(List), List inputPorts = default(List), List outputPorts = default(List), List connections = default(List), List labels = default(List), List funnels = default(List), List controllerServices = default(List)) + { + this.ProcessGroups = processGroups; + this.RemoteProcessGroups = remoteProcessGroups; + this.Processors = processors; + this.InputPorts = inputPorts; + this.OutputPorts = outputPorts; + this.Connections = connections; + this.Labels = labels; + this.Funnels = funnels; + this.ControllerServices = controllerServices; + } + + /// + /// The process groups in this flow snippet. + /// + /// The process groups in this flow snippet. + [DataMember(Name="processGroups", EmitDefaultValue=false)] + public List ProcessGroups { get; set; } + + /// + /// The remote process groups in this flow snippet. + /// + /// The remote process groups in this flow snippet. + [DataMember(Name="remoteProcessGroups", EmitDefaultValue=false)] + public List RemoteProcessGroups { get; set; } + + /// + /// The processors in this flow snippet. + /// + /// The processors in this flow snippet. + [DataMember(Name="processors", EmitDefaultValue=false)] + public List Processors { get; set; } + + /// + /// The input ports in this flow snippet. + /// + /// The input ports in this flow snippet. + [DataMember(Name="inputPorts", EmitDefaultValue=false)] + public List InputPorts { get; set; } + + /// + /// The output ports in this flow snippet. + /// + /// The output ports in this flow snippet. + [DataMember(Name="outputPorts", EmitDefaultValue=false)] + public List OutputPorts { get; set; } + + /// + /// The connections in this flow snippet. + /// + /// The connections in this flow snippet. + [DataMember(Name="connections", EmitDefaultValue=false)] + public List Connections { get; set; } + + /// + /// The labels in this flow snippet. + /// + /// The labels in this flow snippet. + [DataMember(Name="labels", EmitDefaultValue=false)] + public List Labels { get; set; } + + /// + /// The funnels in this flow snippet. + /// + /// The funnels in this flow snippet. + [DataMember(Name="funnels", EmitDefaultValue=false)] + public List Funnels { get; set; } + + /// + /// The controller services in this flow snippet. + /// + /// The controller services in this flow snippet. + [DataMember(Name="controllerServices", EmitDefaultValue=false)] + public List ControllerServices { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class FlowSnippetDTO {\n"); + sb.Append(" ProcessGroups: ").Append(this.ProcessGroups).Append("\n"); + sb.Append(" RemoteProcessGroups: ").Append(this.RemoteProcessGroups).Append("\n"); + sb.Append(" Processors: ").Append(this.Processors).Append("\n"); + sb.Append(" InputPorts: ").Append(this.InputPorts).Append("\n"); + sb.Append(" OutputPorts: ").Append(this.OutputPorts).Append("\n"); + sb.Append(" Connections: ").Append(this.Connections).Append("\n"); + sb.Append(" Labels: ").Append(this.Labels).Append("\n"); + sb.Append(" Funnels: ").Append(this.Funnels).Append("\n"); + sb.Append(" ControllerServices: ").Append(this.ControllerServices).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as FlowSnippetDTO); + } + + /// + /// Returns true if FlowSnippetDTO instances are equal + /// + /// Instance of FlowSnippetDTO to be compared + /// Boolean + public bool Equals(FlowSnippetDTO input) + { + if (input == null) + return false; + + return + ( + this.ProcessGroups == input.ProcessGroups || + this.ProcessGroups != null && + this.ProcessGroups.SequenceEqual(input.ProcessGroups) + ) && + ( + this.RemoteProcessGroups == input.RemoteProcessGroups || + this.RemoteProcessGroups != null && + this.RemoteProcessGroups.SequenceEqual(input.RemoteProcessGroups) + ) && + ( + this.Processors == input.Processors || + this.Processors != null && + this.Processors.SequenceEqual(input.Processors) + ) && + ( + this.InputPorts == input.InputPorts || + this.InputPorts != null && + this.InputPorts.SequenceEqual(input.InputPorts) + ) && + ( + this.OutputPorts == input.OutputPorts || + this.OutputPorts != null && + this.OutputPorts.SequenceEqual(input.OutputPorts) + ) && + ( + this.Connections == input.Connections || + this.Connections != null && + this.Connections.SequenceEqual(input.Connections) + ) && + ( + this.Labels == input.Labels || + this.Labels != null && + this.Labels.SequenceEqual(input.Labels) + ) && + ( + this.Funnels == input.Funnels || + this.Funnels != null && + this.Funnels.SequenceEqual(input.Funnels) + ) && + ( + this.ControllerServices == input.ControllerServices || + this.ControllerServices != null && + this.ControllerServices.SequenceEqual(input.ControllerServices) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.ProcessGroups != null) + hashCode = hashCode * 59 + this.ProcessGroups.GetHashCode(); + if (this.RemoteProcessGroups != null) + hashCode = hashCode * 59 + this.RemoteProcessGroups.GetHashCode(); + if (this.Processors != null) + hashCode = hashCode * 59 + this.Processors.GetHashCode(); + if (this.InputPorts != null) + hashCode = hashCode * 59 + this.InputPorts.GetHashCode(); + if (this.OutputPorts != null) + hashCode = hashCode * 59 + this.OutputPorts.GetHashCode(); + if (this.Connections != null) + hashCode = hashCode * 59 + this.Connections.GetHashCode(); + if (this.Labels != null) + hashCode = hashCode * 59 + this.Labels.GetHashCode(); + if (this.Funnels != null) + hashCode = hashCode * 59 + this.Funnels.GetHashCode(); + if (this.ControllerServices != null) + hashCode = hashCode * 59 + this.ControllerServices.GetHashCode(); + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/NiFi.Swagger/Model/FunnelDTO.cs b/NiFi.Swagger/Model/FunnelDTO.cs new file mode 100644 index 0000000..abfdca2 --- /dev/null +++ b/NiFi.Swagger/Model/FunnelDTO.cs @@ -0,0 +1,170 @@ +/* + * NiFi Rest Api + * + * The Rest Api provides programmatic access to command and control a NiFi instance in real time. Start and stop processors, monitor queues, query provenance data, and more. Each endpoint below includes a description, definitions of the expected input and output, potential response codes, and the authorizations required to invoke each service. + * + * OpenAPI spec version: 1.9.1 + * Contact: dev@nifi.apache.org + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +namespace NiFi.Swagger.Model +{ + using System; + using System.Collections.Generic; + using System.ComponentModel.DataAnnotations; + using System.Runtime.Serialization; + using System.Text; + + using Newtonsoft.Json; + + /// + /// FunnelDTO + /// + [DataContract] + public partial class FunnelDTO : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// The id of the component.. + /// The ID of the corresponding component that is under version control. + /// The id of parent process group of this component if applicable.. + /// The position of this component in the UI if applicable.. + public FunnelDTO(string id = default(string), string versionedComponentId = default(string), string parentGroupId = default(string), PositionDTO position = default(PositionDTO)) + { + this.Id = id; + this.VersionedComponentId = versionedComponentId; + this.ParentGroupId = parentGroupId; + this.Position = position; + } + + /// + /// The id of the component. + /// + /// The id of the component. + [DataMember(Name="id", EmitDefaultValue=false)] + public string Id { get; set; } + + /// + /// The ID of the corresponding component that is under version control + /// + /// The ID of the corresponding component that is under version control + [DataMember(Name="versionedComponentId", EmitDefaultValue=false)] + public string VersionedComponentId { get; set; } + + /// + /// The id of parent process group of this component if applicable. + /// + /// The id of parent process group of this component if applicable. + [DataMember(Name="parentGroupId", EmitDefaultValue=false)] + public string ParentGroupId { get; set; } + + /// + /// The position of this component in the UI if applicable. + /// + /// The position of this component in the UI if applicable. + [DataMember(Name="position", EmitDefaultValue=false)] + public PositionDTO Position { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class FunnelDTO {\n"); + sb.Append(" Id: ").Append(this.Id).Append("\n"); + sb.Append(" VersionedComponentId: ").Append(this.VersionedComponentId).Append("\n"); + sb.Append(" ParentGroupId: ").Append(this.ParentGroupId).Append("\n"); + sb.Append(" Position: ").Append(this.Position).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as FunnelDTO); + } + + /// + /// Returns true if FunnelDTO instances are equal + /// + /// Instance of FunnelDTO to be compared + /// Boolean + public bool Equals(FunnelDTO input) + { + if (input == null) + return false; + + return + ( + this.Id == input.Id || + (this.Id != null && + this.Id.Equals(input.Id)) + ) && + ( + this.VersionedComponentId == input.VersionedComponentId || + (this.VersionedComponentId != null && + this.VersionedComponentId.Equals(input.VersionedComponentId)) + ) && + ( + this.ParentGroupId == input.ParentGroupId || + (this.ParentGroupId != null && + this.ParentGroupId.Equals(input.ParentGroupId)) + ) && + ( + this.Position == input.Position || + (this.Position != null && + this.Position.Equals(input.Position)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Id != null) + hashCode = hashCode * 59 + this.Id.GetHashCode(); + if (this.VersionedComponentId != null) + hashCode = hashCode * 59 + this.VersionedComponentId.GetHashCode(); + if (this.ParentGroupId != null) + hashCode = hashCode * 59 + this.ParentGroupId.GetHashCode(); + if (this.Position != null) + hashCode = hashCode * 59 + this.Position.GetHashCode(); + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/NiFi.Swagger/Model/FunnelEntity.cs b/NiFi.Swagger/Model/FunnelEntity.cs new file mode 100644 index 0000000..5892edd --- /dev/null +++ b/NiFi.Swagger/Model/FunnelEntity.cs @@ -0,0 +1,238 @@ +/* + * NiFi Rest Api + * + * The Rest Api provides programmatic access to command and control a NiFi instance in real time. Start and stop processors, monitor queues, query provenance data, and more. Each endpoint below includes a description, definitions of the expected input and output, potential response codes, and the authorizations required to invoke each service. + * + * OpenAPI spec version: 1.9.1 + * Contact: dev@nifi.apache.org + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +namespace NiFi.Swagger.Model +{ + using System; + using System.Collections.Generic; + using System.ComponentModel.DataAnnotations; + using System.Linq; + using System.Runtime.Serialization; + using System.Text; + + using Newtonsoft.Json; + + /// + /// FunnelEntity + /// + [DataContract] + public partial class FunnelEntity : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// The revision for this request/response. The revision is required for any mutable flow requests and is included in all responses.. + /// The id of the component.. + /// The URI for futures requests to the component.. + /// The position of this component in the UI if applicable.. + /// The permissions for this component.. + /// The bulletins for this component.. + /// Acknowledges that this node is disconnected to allow for mutable requests to proceed.. + /// component. + public FunnelEntity(RevisionDTO revision = default(RevisionDTO), string id = default(string), string uri = default(string), PositionDTO position = default(PositionDTO), PermissionsDTO permissions = default(PermissionsDTO), List bulletins = default(List), bool? disconnectedNodeAcknowledged = default(bool?), FunnelDTO component = default(FunnelDTO)) + { + this.Revision = revision; + this.Id = id; + this.Uri = uri; + this.Position = position; + this.Permissions = permissions; + this.Bulletins = bulletins; + this.DisconnectedNodeAcknowledged = disconnectedNodeAcknowledged; + this.Component = component; + } + + /// + /// The revision for this request/response. The revision is required for any mutable flow requests and is included in all responses. + /// + /// The revision for this request/response. The revision is required for any mutable flow requests and is included in all responses. + [DataMember(Name="revision", EmitDefaultValue=false)] + public RevisionDTO Revision { get; set; } + + /// + /// The id of the component. + /// + /// The id of the component. + [DataMember(Name="id", EmitDefaultValue=false)] + public string Id { get; set; } + + /// + /// The URI for futures requests to the component. + /// + /// The URI for futures requests to the component. + [DataMember(Name="uri", EmitDefaultValue=false)] + public string Uri { get; set; } + + /// + /// The position of this component in the UI if applicable. + /// + /// The position of this component in the UI if applicable. + [DataMember(Name="position", EmitDefaultValue=false)] + public PositionDTO Position { get; set; } + + /// + /// The permissions for this component. + /// + /// The permissions for this component. + [DataMember(Name="permissions", EmitDefaultValue=false)] + public PermissionsDTO Permissions { get; set; } + + /// + /// The bulletins for this component. + /// + /// The bulletins for this component. + [DataMember(Name="bulletins", EmitDefaultValue=false)] + public List Bulletins { get; set; } + + /// + /// Acknowledges that this node is disconnected to allow for mutable requests to proceed. + /// + /// Acknowledges that this node is disconnected to allow for mutable requests to proceed. + [DataMember(Name="disconnectedNodeAcknowledged", EmitDefaultValue=false)] + public bool? DisconnectedNodeAcknowledged { get; set; } + + /// + /// Gets or Sets Component + /// + [DataMember(Name="component", EmitDefaultValue=false)] + public FunnelDTO Component { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class FunnelEntity {\n"); + sb.Append(" Revision: ").Append(this.Revision).Append("\n"); + sb.Append(" Id: ").Append(this.Id).Append("\n"); + sb.Append(" Uri: ").Append(this.Uri).Append("\n"); + sb.Append(" Position: ").Append(this.Position).Append("\n"); + sb.Append(" Permissions: ").Append(this.Permissions).Append("\n"); + sb.Append(" Bulletins: ").Append(this.Bulletins).Append("\n"); + sb.Append(" DisconnectedNodeAcknowledged: ").Append(this.DisconnectedNodeAcknowledged).Append("\n"); + sb.Append(" Component: ").Append(this.Component).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as FunnelEntity); + } + + /// + /// Returns true if FunnelEntity instances are equal + /// + /// Instance of FunnelEntity to be compared + /// Boolean + public bool Equals(FunnelEntity input) + { + if (input == null) + return false; + + return + ( + this.Revision == input.Revision || + (this.Revision != null && + this.Revision.Equals(input.Revision)) + ) && + ( + this.Id == input.Id || + (this.Id != null && + this.Id.Equals(input.Id)) + ) && + ( + this.Uri == input.Uri || + (this.Uri != null && + this.Uri.Equals(input.Uri)) + ) && + ( + this.Position == input.Position || + (this.Position != null && + this.Position.Equals(input.Position)) + ) && + ( + this.Permissions == input.Permissions || + (this.Permissions != null && + this.Permissions.Equals(input.Permissions)) + ) && + ( + this.Bulletins == input.Bulletins || + this.Bulletins != null && + this.Bulletins.SequenceEqual(input.Bulletins) + ) && + ( + this.DisconnectedNodeAcknowledged == input.DisconnectedNodeAcknowledged || + (this.DisconnectedNodeAcknowledged != null && + this.DisconnectedNodeAcknowledged.Equals(input.DisconnectedNodeAcknowledged)) + ) && + ( + this.Component == input.Component || + (this.Component != null && + this.Component.Equals(input.Component)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Revision != null) + hashCode = hashCode * 59 + this.Revision.GetHashCode(); + if (this.Id != null) + hashCode = hashCode * 59 + this.Id.GetHashCode(); + if (this.Uri != null) + hashCode = hashCode * 59 + this.Uri.GetHashCode(); + if (this.Position != null) + hashCode = hashCode * 59 + this.Position.GetHashCode(); + if (this.Permissions != null) + hashCode = hashCode * 59 + this.Permissions.GetHashCode(); + if (this.Bulletins != null) + hashCode = hashCode * 59 + this.Bulletins.GetHashCode(); + if (this.DisconnectedNodeAcknowledged != null) + hashCode = hashCode * 59 + this.DisconnectedNodeAcknowledged.GetHashCode(); + if (this.Component != null) + hashCode = hashCode * 59 + this.Component.GetHashCode(); + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/NiFi.Swagger/Model/FunnelsEntity.cs b/NiFi.Swagger/Model/FunnelsEntity.cs new file mode 100644 index 0000000..36542c9 --- /dev/null +++ b/NiFi.Swagger/Model/FunnelsEntity.cs @@ -0,0 +1,119 @@ +/* + * NiFi Rest Api + * + * The Rest Api provides programmatic access to command and control a NiFi instance in real time. Start and stop processors, monitor queues, query provenance data, and more. Each endpoint below includes a description, definitions of the expected input and output, potential response codes, and the authorizations required to invoke each service. + * + * OpenAPI spec version: 1.9.1 + * Contact: dev@nifi.apache.org + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +namespace NiFi.Swagger.Model +{ + using System; + using System.Collections.Generic; + using System.ComponentModel.DataAnnotations; + using System.Linq; + using System.Runtime.Serialization; + using System.Text; + + using Newtonsoft.Json; + + /// + /// FunnelsEntity + /// + [DataContract] + public partial class FunnelsEntity : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// funnels. + public FunnelsEntity(List funnels = default(List)) + { + this.Funnels = funnels; + } + + /// + /// Gets or Sets Funnels + /// + [DataMember(Name="funnels", EmitDefaultValue=false)] + public List Funnels { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class FunnelsEntity {\n"); + sb.Append(" Funnels: ").Append(this.Funnels).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as FunnelsEntity); + } + + /// + /// Returns true if FunnelsEntity instances are equal + /// + /// Instance of FunnelsEntity to be compared + /// Boolean + public bool Equals(FunnelsEntity input) + { + if (input == null) + return false; + + return + ( + this.Funnels == input.Funnels || + this.Funnels != null && + this.Funnels.SequenceEqual(input.Funnels) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Funnels != null) + hashCode = hashCode * 59 + this.Funnels.GetHashCode(); + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/NiFi.Swagger/Model/GarbageCollectionDTO.cs b/NiFi.Swagger/Model/GarbageCollectionDTO.cs new file mode 100644 index 0000000..7d789e1 --- /dev/null +++ b/NiFi.Swagger/Model/GarbageCollectionDTO.cs @@ -0,0 +1,170 @@ +/* + * NiFi Rest Api + * + * The Rest Api provides programmatic access to command and control a NiFi instance in real time. Start and stop processors, monitor queues, query provenance data, and more. Each endpoint below includes a description, definitions of the expected input and output, potential response codes, and the authorizations required to invoke each service. + * + * OpenAPI spec version: 1.9.1 + * Contact: dev@nifi.apache.org + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +namespace NiFi.Swagger.Model +{ + using System; + using System.Collections.Generic; + using System.ComponentModel.DataAnnotations; + using System.Runtime.Serialization; + using System.Text; + + using Newtonsoft.Json; + + /// + /// GarbageCollectionDTO + /// + [DataContract] + public partial class GarbageCollectionDTO : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// The name of the garbage collector.. + /// The number of times garbage collection has run.. + /// The total amount of time spent garbage collecting.. + /// The total number of milliseconds spent garbage collecting.. + public GarbageCollectionDTO(string name = default(string), long? collectionCount = default(long?), string collectionTime = default(string), long? collectionMillis = default(long?)) + { + this.Name = name; + this.CollectionCount = collectionCount; + this.CollectionTime = collectionTime; + this.CollectionMillis = collectionMillis; + } + + /// + /// The name of the garbage collector. + /// + /// The name of the garbage collector. + [DataMember(Name="name", EmitDefaultValue=false)] + public string Name { get; set; } + + /// + /// The number of times garbage collection has run. + /// + /// The number of times garbage collection has run. + [DataMember(Name="collectionCount", EmitDefaultValue=false)] + public long? CollectionCount { get; set; } + + /// + /// The total amount of time spent garbage collecting. + /// + /// The total amount of time spent garbage collecting. + [DataMember(Name="collectionTime", EmitDefaultValue=false)] + public string CollectionTime { get; set; } + + /// + /// The total number of milliseconds spent garbage collecting. + /// + /// The total number of milliseconds spent garbage collecting. + [DataMember(Name="collectionMillis", EmitDefaultValue=false)] + public long? CollectionMillis { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class GarbageCollectionDTO {\n"); + sb.Append(" Name: ").Append(this.Name).Append("\n"); + sb.Append(" CollectionCount: ").Append(this.CollectionCount).Append("\n"); + sb.Append(" CollectionTime: ").Append(this.CollectionTime).Append("\n"); + sb.Append(" CollectionMillis: ").Append(this.CollectionMillis).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as GarbageCollectionDTO); + } + + /// + /// Returns true if GarbageCollectionDTO instances are equal + /// + /// Instance of GarbageCollectionDTO to be compared + /// Boolean + public bool Equals(GarbageCollectionDTO input) + { + if (input == null) + return false; + + return + ( + this.Name == input.Name || + (this.Name != null && + this.Name.Equals(input.Name)) + ) && + ( + this.CollectionCount == input.CollectionCount || + (this.CollectionCount != null && + this.CollectionCount.Equals(input.CollectionCount)) + ) && + ( + this.CollectionTime == input.CollectionTime || + (this.CollectionTime != null && + this.CollectionTime.Equals(input.CollectionTime)) + ) && + ( + this.CollectionMillis == input.CollectionMillis || + (this.CollectionMillis != null && + this.CollectionMillis.Equals(input.CollectionMillis)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Name != null) + hashCode = hashCode * 59 + this.Name.GetHashCode(); + if (this.CollectionCount != null) + hashCode = hashCode * 59 + this.CollectionCount.GetHashCode(); + if (this.CollectionTime != null) + hashCode = hashCode * 59 + this.CollectionTime.GetHashCode(); + if (this.CollectionMillis != null) + hashCode = hashCode * 59 + this.CollectionMillis.GetHashCode(); + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/NiFi.Swagger/Model/HistoryDTO.cs b/NiFi.Swagger/Model/HistoryDTO.cs new file mode 100644 index 0000000..4ca0681 --- /dev/null +++ b/NiFi.Swagger/Model/HistoryDTO.cs @@ -0,0 +1,154 @@ +/* + * NiFi Rest Api + * + * The Rest Api provides programmatic access to command and control a NiFi instance in real time. Start and stop processors, monitor queues, query provenance data, and more. Each endpoint below includes a description, definitions of the expected input and output, potential response codes, and the authorizations required to invoke each service. + * + * OpenAPI spec version: 1.9.1 + * Contact: dev@nifi.apache.org + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +namespace NiFi.Swagger.Model +{ + using System; + using System.Collections.Generic; + using System.ComponentModel.DataAnnotations; + using System.Linq; + using System.Runtime.Serialization; + using System.Text; + + using Newtonsoft.Json; + + /// + /// HistoryDTO + /// + [DataContract] + public partial class HistoryDTO : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// The number of number of actions that matched the search criteria... + /// The timestamp when the report was generated.. + /// The actions.. + public HistoryDTO(int? total = default(int?), string lastRefreshed = default(string), List actions = default(List)) + { + this.Total = total; + this.LastRefreshed = lastRefreshed; + this.Actions = actions; + } + + /// + /// The number of number of actions that matched the search criteria.. + /// + /// The number of number of actions that matched the search criteria.. + [DataMember(Name="total", EmitDefaultValue=false)] + public int? Total { get; set; } + + /// + /// The timestamp when the report was generated. + /// + /// The timestamp when the report was generated. + [DataMember(Name="lastRefreshed", EmitDefaultValue=false)] + public string LastRefreshed { get; set; } + + /// + /// The actions. + /// + /// The actions. + [DataMember(Name="actions", EmitDefaultValue=false)] + public List Actions { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class HistoryDTO {\n"); + sb.Append(" Total: ").Append(this.Total).Append("\n"); + sb.Append(" LastRefreshed: ").Append(this.LastRefreshed).Append("\n"); + sb.Append(" Actions: ").Append(this.Actions).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as HistoryDTO); + } + + /// + /// Returns true if HistoryDTO instances are equal + /// + /// Instance of HistoryDTO to be compared + /// Boolean + public bool Equals(HistoryDTO input) + { + if (input == null) + return false; + + return + ( + this.Total == input.Total || + (this.Total != null && + this.Total.Equals(input.Total)) + ) && + ( + this.LastRefreshed == input.LastRefreshed || + (this.LastRefreshed != null && + this.LastRefreshed.Equals(input.LastRefreshed)) + ) && + ( + this.Actions == input.Actions || + this.Actions != null && + this.Actions.SequenceEqual(input.Actions) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Total != null) + hashCode = hashCode * 59 + this.Total.GetHashCode(); + if (this.LastRefreshed != null) + hashCode = hashCode * 59 + this.LastRefreshed.GetHashCode(); + if (this.Actions != null) + hashCode = hashCode * 59 + this.Actions.GetHashCode(); + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/NiFi.Swagger/Model/HistoryEntity.cs b/NiFi.Swagger/Model/HistoryEntity.cs new file mode 100644 index 0000000..7b08ed5 --- /dev/null +++ b/NiFi.Swagger/Model/HistoryEntity.cs @@ -0,0 +1,118 @@ +/* + * NiFi Rest Api + * + * The Rest Api provides programmatic access to command and control a NiFi instance in real time. Start and stop processors, monitor queues, query provenance data, and more. Each endpoint below includes a description, definitions of the expected input and output, potential response codes, and the authorizations required to invoke each service. + * + * OpenAPI spec version: 1.9.1 + * Contact: dev@nifi.apache.org + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +namespace NiFi.Swagger.Model +{ + using System; + using System.Collections.Generic; + using System.ComponentModel.DataAnnotations; + using System.Runtime.Serialization; + using System.Text; + + using Newtonsoft.Json; + + /// + /// HistoryEntity + /// + [DataContract] + public partial class HistoryEntity : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// history. + public HistoryEntity(HistoryDTO history = default(HistoryDTO)) + { + this.History = history; + } + + /// + /// Gets or Sets History + /// + [DataMember(Name="history", EmitDefaultValue=false)] + public HistoryDTO History { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class HistoryEntity {\n"); + sb.Append(" History: ").Append(this.History).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as HistoryEntity); + } + + /// + /// Returns true if HistoryEntity instances are equal + /// + /// Instance of HistoryEntity to be compared + /// Boolean + public bool Equals(HistoryEntity input) + { + if (input == null) + return false; + + return + ( + this.History == input.History || + (this.History != null && + this.History.Equals(input.History)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.History != null) + hashCode = hashCode * 59 + this.History.GetHashCode(); + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/NiFi.Swagger/Model/InputPortsEntity.cs b/NiFi.Swagger/Model/InputPortsEntity.cs new file mode 100644 index 0000000..c291085 --- /dev/null +++ b/NiFi.Swagger/Model/InputPortsEntity.cs @@ -0,0 +1,119 @@ +/* + * NiFi Rest Api + * + * The Rest Api provides programmatic access to command and control a NiFi instance in real time. Start and stop processors, monitor queues, query provenance data, and more. Each endpoint below includes a description, definitions of the expected input and output, potential response codes, and the authorizations required to invoke each service. + * + * OpenAPI spec version: 1.9.1 + * Contact: dev@nifi.apache.org + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +namespace NiFi.Swagger.Model +{ + using System; + using System.Collections.Generic; + using System.ComponentModel.DataAnnotations; + using System.Linq; + using System.Runtime.Serialization; + using System.Text; + + using Newtonsoft.Json; + + /// + /// InputPortsEntity + /// + [DataContract] + public partial class InputPortsEntity : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// inputPorts. + public InputPortsEntity(List inputPorts = default(List)) + { + this.InputPorts = inputPorts; + } + + /// + /// Gets or Sets InputPorts + /// + [DataMember(Name="inputPorts", EmitDefaultValue=false)] + public List InputPorts { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class InputPortsEntity {\n"); + sb.Append(" InputPorts: ").Append(this.InputPorts).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as InputPortsEntity); + } + + /// + /// Returns true if InputPortsEntity instances are equal + /// + /// Instance of InputPortsEntity to be compared + /// Boolean + public bool Equals(InputPortsEntity input) + { + if (input == null) + return false; + + return + ( + this.InputPorts == input.InputPorts || + this.InputPorts != null && + this.InputPorts.SequenceEqual(input.InputPorts) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.InputPorts != null) + hashCode = hashCode * 59 + this.InputPorts.GetHashCode(); + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/NiFi.Swagger/Model/InstantiateTemplateRequestEntity.cs b/NiFi.Swagger/Model/InstantiateTemplateRequestEntity.cs new file mode 100644 index 0000000..6cc99f6 --- /dev/null +++ b/NiFi.Swagger/Model/InstantiateTemplateRequestEntity.cs @@ -0,0 +1,204 @@ +/* + * NiFi Rest Api + * + * The Rest Api provides programmatic access to command and control a NiFi instance in real time. Start and stop processors, monitor queues, query provenance data, and more. Each endpoint below includes a description, definitions of the expected input and output, potential response codes, and the authorizations required to invoke each service. + * + * OpenAPI spec version: 1.9.1 + * Contact: dev@nifi.apache.org + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +namespace NiFi.Swagger.Model +{ + using System; + using System.Collections.Generic; + using System.ComponentModel.DataAnnotations; + using System.Runtime.Serialization; + using System.Text; + + using Newtonsoft.Json; + + /// + /// InstantiateTemplateRequestEntity + /// + [DataContract] + public partial class InstantiateTemplateRequestEntity : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// The x coordinate of the origin of the bounding box where the new components will be placed.. + /// The y coordinate of the origin of the bounding box where the new components will be placed.. + /// The identifier of the template.. + /// The encoding version of the flow snippet. If not specified, this is automatically populated by the node receiving the user request. If the snippet is specified, the version will be the latest. If the snippet is not specified, the version will come from the underlying template. These details need to be replicated throughout the cluster to ensure consistency.. + /// A flow snippet of the template contents. If not specified, this is automatically populated by the node receiving the user request. These details need to be replicated throughout the cluster to ensure consistency.. + /// Acknowledges that this node is disconnected to allow for mutable requests to proceed.. + public InstantiateTemplateRequestEntity(double? originX = default(double?), double? originY = default(double?), string templateId = default(string), string encodingVersion = default(string), FlowSnippetDTO snippet = default(FlowSnippetDTO), bool? disconnectedNodeAcknowledged = default(bool?)) + { + this.OriginX = originX; + this.OriginY = originY; + this.TemplateId = templateId; + this.EncodingVersion = encodingVersion; + this.Snippet = snippet; + this.DisconnectedNodeAcknowledged = disconnectedNodeAcknowledged; + } + + /// + /// The x coordinate of the origin of the bounding box where the new components will be placed. + /// + /// The x coordinate of the origin of the bounding box where the new components will be placed. + [DataMember(Name="originX", EmitDefaultValue=false)] + public double? OriginX { get; set; } + + /// + /// The y coordinate of the origin of the bounding box where the new components will be placed. + /// + /// The y coordinate of the origin of the bounding box where the new components will be placed. + [DataMember(Name="originY", EmitDefaultValue=false)] + public double? OriginY { get; set; } + + /// + /// The identifier of the template. + /// + /// The identifier of the template. + [DataMember(Name="templateId", EmitDefaultValue=false)] + public string TemplateId { get; set; } + + /// + /// The encoding version of the flow snippet. If not specified, this is automatically populated by the node receiving the user request. If the snippet is specified, the version will be the latest. If the snippet is not specified, the version will come from the underlying template. These details need to be replicated throughout the cluster to ensure consistency. + /// + /// The encoding version of the flow snippet. If not specified, this is automatically populated by the node receiving the user request. If the snippet is specified, the version will be the latest. If the snippet is not specified, the version will come from the underlying template. These details need to be replicated throughout the cluster to ensure consistency. + [DataMember(Name="encodingVersion", EmitDefaultValue=false)] + public string EncodingVersion { get; set; } + + /// + /// A flow snippet of the template contents. If not specified, this is automatically populated by the node receiving the user request. These details need to be replicated throughout the cluster to ensure consistency. + /// + /// A flow snippet of the template contents. If not specified, this is automatically populated by the node receiving the user request. These details need to be replicated throughout the cluster to ensure consistency. + [DataMember(Name="snippet", EmitDefaultValue=false)] + public FlowSnippetDTO Snippet { get; set; } + + /// + /// Acknowledges that this node is disconnected to allow for mutable requests to proceed. + /// + /// Acknowledges that this node is disconnected to allow for mutable requests to proceed. + [DataMember(Name="disconnectedNodeAcknowledged", EmitDefaultValue=false)] + public bool? DisconnectedNodeAcknowledged { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class InstantiateTemplateRequestEntity {\n"); + sb.Append(" OriginX: ").Append(this.OriginX).Append("\n"); + sb.Append(" OriginY: ").Append(this.OriginY).Append("\n"); + sb.Append(" TemplateId: ").Append(this.TemplateId).Append("\n"); + sb.Append(" EncodingVersion: ").Append(this.EncodingVersion).Append("\n"); + sb.Append(" Snippet: ").Append(this.Snippet).Append("\n"); + sb.Append(" DisconnectedNodeAcknowledged: ").Append(this.DisconnectedNodeAcknowledged).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as InstantiateTemplateRequestEntity); + } + + /// + /// Returns true if InstantiateTemplateRequestEntity instances are equal + /// + /// Instance of InstantiateTemplateRequestEntity to be compared + /// Boolean + public bool Equals(InstantiateTemplateRequestEntity input) + { + if (input == null) + return false; + + return + ( + this.OriginX == input.OriginX || + (this.OriginX != null && + this.OriginX.Equals(input.OriginX)) + ) && + ( + this.OriginY == input.OriginY || + (this.OriginY != null && + this.OriginY.Equals(input.OriginY)) + ) && + ( + this.TemplateId == input.TemplateId || + (this.TemplateId != null && + this.TemplateId.Equals(input.TemplateId)) + ) && + ( + this.EncodingVersion == input.EncodingVersion || + (this.EncodingVersion != null && + this.EncodingVersion.Equals(input.EncodingVersion)) + ) && + ( + this.Snippet == input.Snippet || + (this.Snippet != null && + this.Snippet.Equals(input.Snippet)) + ) && + ( + this.DisconnectedNodeAcknowledged == input.DisconnectedNodeAcknowledged || + (this.DisconnectedNodeAcknowledged != null && + this.DisconnectedNodeAcknowledged.Equals(input.DisconnectedNodeAcknowledged)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.OriginX != null) + hashCode = hashCode * 59 + this.OriginX.GetHashCode(); + if (this.OriginY != null) + hashCode = hashCode * 59 + this.OriginY.GetHashCode(); + if (this.TemplateId != null) + hashCode = hashCode * 59 + this.TemplateId.GetHashCode(); + if (this.EncodingVersion != null) + hashCode = hashCode * 59 + this.EncodingVersion.GetHashCode(); + if (this.Snippet != null) + hashCode = hashCode * 59 + this.Snippet.GetHashCode(); + if (this.DisconnectedNodeAcknowledged != null) + hashCode = hashCode * 59 + this.DisconnectedNodeAcknowledged.GetHashCode(); + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/NiFi.Swagger/Model/LabelDTO.cs b/NiFi.Swagger/Model/LabelDTO.cs new file mode 100644 index 0000000..d28493a --- /dev/null +++ b/NiFi.Swagger/Model/LabelDTO.cs @@ -0,0 +1,239 @@ +/* + * NiFi Rest Api + * + * The Rest Api provides programmatic access to command and control a NiFi instance in real time. Start and stop processors, monitor queues, query provenance data, and more. Each endpoint below includes a description, definitions of the expected input and output, potential response codes, and the authorizations required to invoke each service. + * + * OpenAPI spec version: 1.9.1 + * Contact: dev@nifi.apache.org + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +namespace NiFi.Swagger.Model +{ + using System; + using System.Collections.Generic; + using System.ComponentModel.DataAnnotations; + using System.Linq; + using System.Runtime.Serialization; + using System.Text; + + using Newtonsoft.Json; + + /// + /// LabelDTO + /// + [DataContract] + public partial class LabelDTO : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// The id of the component.. + /// The ID of the corresponding component that is under version control. + /// The id of parent process group of this component if applicable.. + /// The position of this component in the UI if applicable.. + /// The text that appears in the label.. + /// The width of the label in pixels when at a 1:1 scale.. + /// The height of the label in pixels when at a 1:1 scale.. + /// The styles for this label (font-size : 12px, background-color : #eee, etc).. + public LabelDTO(string id = default(string), string versionedComponentId = default(string), string parentGroupId = default(string), PositionDTO position = default(PositionDTO), string label = default(string), double? width = default(double?), double? height = default(double?), Dictionary style = default(Dictionary)) + { + this.Id = id; + this.VersionedComponentId = versionedComponentId; + this.ParentGroupId = parentGroupId; + this.Position = position; + this.Label = label; + this.Width = width; + this.Height = height; + this.Style = style; + } + + /// + /// The id of the component. + /// + /// The id of the component. + [DataMember(Name="id", EmitDefaultValue=false)] + public string Id { get; set; } + + /// + /// The ID of the corresponding component that is under version control + /// + /// The ID of the corresponding component that is under version control + [DataMember(Name="versionedComponentId", EmitDefaultValue=false)] + public string VersionedComponentId { get; set; } + + /// + /// The id of parent process group of this component if applicable. + /// + /// The id of parent process group of this component if applicable. + [DataMember(Name="parentGroupId", EmitDefaultValue=false)] + public string ParentGroupId { get; set; } + + /// + /// The position of this component in the UI if applicable. + /// + /// The position of this component in the UI if applicable. + [DataMember(Name="position", EmitDefaultValue=false)] + public PositionDTO Position { get; set; } + + /// + /// The text that appears in the label. + /// + /// The text that appears in the label. + [DataMember(Name="label", EmitDefaultValue=false)] + public string Label { get; set; } + + /// + /// The width of the label in pixels when at a 1:1 scale. + /// + /// The width of the label in pixels when at a 1:1 scale. + [DataMember(Name="width", EmitDefaultValue=false)] + public double? Width { get; set; } + + /// + /// The height of the label in pixels when at a 1:1 scale. + /// + /// The height of the label in pixels when at a 1:1 scale. + [DataMember(Name="height", EmitDefaultValue=false)] + public double? Height { get; set; } + + /// + /// The styles for this label (font-size : 12px, background-color : #eee, etc). + /// + /// The styles for this label (font-size : 12px, background-color : #eee, etc). + [DataMember(Name="style", EmitDefaultValue=false)] + public Dictionary Style { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class LabelDTO {\n"); + sb.Append(" Id: ").Append(this.Id).Append("\n"); + sb.Append(" VersionedComponentId: ").Append(this.VersionedComponentId).Append("\n"); + sb.Append(" ParentGroupId: ").Append(this.ParentGroupId).Append("\n"); + sb.Append(" Position: ").Append(this.Position).Append("\n"); + sb.Append(" Label: ").Append(this.Label).Append("\n"); + sb.Append(" Width: ").Append(this.Width).Append("\n"); + sb.Append(" Height: ").Append(this.Height).Append("\n"); + sb.Append(" Style: ").Append(this.Style).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as LabelDTO); + } + + /// + /// Returns true if LabelDTO instances are equal + /// + /// Instance of LabelDTO to be compared + /// Boolean + public bool Equals(LabelDTO input) + { + if (input == null) + return false; + + return + ( + this.Id == input.Id || + (this.Id != null && + this.Id.Equals(input.Id)) + ) && + ( + this.VersionedComponentId == input.VersionedComponentId || + (this.VersionedComponentId != null && + this.VersionedComponentId.Equals(input.VersionedComponentId)) + ) && + ( + this.ParentGroupId == input.ParentGroupId || + (this.ParentGroupId != null && + this.ParentGroupId.Equals(input.ParentGroupId)) + ) && + ( + this.Position == input.Position || + (this.Position != null && + this.Position.Equals(input.Position)) + ) && + ( + this.Label == input.Label || + (this.Label != null && + this.Label.Equals(input.Label)) + ) && + ( + this.Width == input.Width || + (this.Width != null && + this.Width.Equals(input.Width)) + ) && + ( + this.Height == input.Height || + (this.Height != null && + this.Height.Equals(input.Height)) + ) && + ( + this.Style == input.Style || + this.Style != null && + this.Style.SequenceEqual(input.Style) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Id != null) + hashCode = hashCode * 59 + this.Id.GetHashCode(); + if (this.VersionedComponentId != null) + hashCode = hashCode * 59 + this.VersionedComponentId.GetHashCode(); + if (this.ParentGroupId != null) + hashCode = hashCode * 59 + this.ParentGroupId.GetHashCode(); + if (this.Position != null) + hashCode = hashCode * 59 + this.Position.GetHashCode(); + if (this.Label != null) + hashCode = hashCode * 59 + this.Label.GetHashCode(); + if (this.Width != null) + hashCode = hashCode * 59 + this.Width.GetHashCode(); + if (this.Height != null) + hashCode = hashCode * 59 + this.Height.GetHashCode(); + if (this.Style != null) + hashCode = hashCode * 59 + this.Style.GetHashCode(); + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/NiFi.Swagger/Model/LabelEntity.cs b/NiFi.Swagger/Model/LabelEntity.cs new file mode 100644 index 0000000..b59ba11 --- /dev/null +++ b/NiFi.Swagger/Model/LabelEntity.cs @@ -0,0 +1,254 @@ +/* + * NiFi Rest Api + * + * The Rest Api provides programmatic access to command and control a NiFi instance in real time. Start and stop processors, monitor queues, query provenance data, and more. Each endpoint below includes a description, definitions of the expected input and output, potential response codes, and the authorizations required to invoke each service. + * + * OpenAPI spec version: 1.9.1 + * Contact: dev@nifi.apache.org + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +namespace NiFi.Swagger.Model +{ + using System; + using System.Collections.Generic; + using System.ComponentModel.DataAnnotations; + using System.Linq; + using System.Runtime.Serialization; + using System.Text; + + using Newtonsoft.Json; + + /// + /// LabelEntity + /// + [DataContract] + public partial class LabelEntity : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// The revision for this request/response. The revision is required for any mutable flow requests and is included in all responses.. + /// The id of the component.. + /// The URI for futures requests to the component.. + /// The position of this component in the UI if applicable.. + /// The permissions for this component.. + /// The bulletins for this component.. + /// Acknowledges that this node is disconnected to allow for mutable requests to proceed.. + /// dimensions. + /// component. + public LabelEntity(RevisionDTO revision = default(RevisionDTO), string id = default(string), string uri = default(string), PositionDTO position = default(PositionDTO), PermissionsDTO permissions = default(PermissionsDTO), List bulletins = default(List), bool? disconnectedNodeAcknowledged = default(bool?), DimensionsDTO dimensions = default(DimensionsDTO), LabelDTO component = default(LabelDTO)) + { + this.Revision = revision; + this.Id = id; + this.Uri = uri; + this.Position = position; + this.Permissions = permissions; + this.Bulletins = bulletins; + this.DisconnectedNodeAcknowledged = disconnectedNodeAcknowledged; + this.Dimensions = dimensions; + this.Component = component; + } + + /// + /// The revision for this request/response. The revision is required for any mutable flow requests and is included in all responses. + /// + /// The revision for this request/response. The revision is required for any mutable flow requests and is included in all responses. + [DataMember(Name="revision", EmitDefaultValue=false)] + public RevisionDTO Revision { get; set; } + + /// + /// The id of the component. + /// + /// The id of the component. + [DataMember(Name="id", EmitDefaultValue=false)] + public string Id { get; set; } + + /// + /// The URI for futures requests to the component. + /// + /// The URI for futures requests to the component. + [DataMember(Name="uri", EmitDefaultValue=false)] + public string Uri { get; set; } + + /// + /// The position of this component in the UI if applicable. + /// + /// The position of this component in the UI if applicable. + [DataMember(Name="position", EmitDefaultValue=false)] + public PositionDTO Position { get; set; } + + /// + /// The permissions for this component. + /// + /// The permissions for this component. + [DataMember(Name="permissions", EmitDefaultValue=false)] + public PermissionsDTO Permissions { get; set; } + + /// + /// The bulletins for this component. + /// + /// The bulletins for this component. + [DataMember(Name="bulletins", EmitDefaultValue=false)] + public List Bulletins { get; set; } + + /// + /// Acknowledges that this node is disconnected to allow for mutable requests to proceed. + /// + /// Acknowledges that this node is disconnected to allow for mutable requests to proceed. + [DataMember(Name="disconnectedNodeAcknowledged", EmitDefaultValue=false)] + public bool? DisconnectedNodeAcknowledged { get; set; } + + /// + /// Gets or Sets Dimensions + /// + [DataMember(Name="dimensions", EmitDefaultValue=false)] + public DimensionsDTO Dimensions { get; set; } + + /// + /// Gets or Sets Component + /// + [DataMember(Name="component", EmitDefaultValue=false)] + public LabelDTO Component { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class LabelEntity {\n"); + sb.Append(" Revision: ").Append(this.Revision).Append("\n"); + sb.Append(" Id: ").Append(this.Id).Append("\n"); + sb.Append(" Uri: ").Append(this.Uri).Append("\n"); + sb.Append(" Position: ").Append(this.Position).Append("\n"); + sb.Append(" Permissions: ").Append(this.Permissions).Append("\n"); + sb.Append(" Bulletins: ").Append(this.Bulletins).Append("\n"); + sb.Append(" DisconnectedNodeAcknowledged: ").Append(this.DisconnectedNodeAcknowledged).Append("\n"); + sb.Append(" Dimensions: ").Append(this.Dimensions).Append("\n"); + sb.Append(" Component: ").Append(this.Component).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as LabelEntity); + } + + /// + /// Returns true if LabelEntity instances are equal + /// + /// Instance of LabelEntity to be compared + /// Boolean + public bool Equals(LabelEntity input) + { + if (input == null) + return false; + + return + ( + this.Revision == input.Revision || + (this.Revision != null && + this.Revision.Equals(input.Revision)) + ) && + ( + this.Id == input.Id || + (this.Id != null && + this.Id.Equals(input.Id)) + ) && + ( + this.Uri == input.Uri || + (this.Uri != null && + this.Uri.Equals(input.Uri)) + ) && + ( + this.Position == input.Position || + (this.Position != null && + this.Position.Equals(input.Position)) + ) && + ( + this.Permissions == input.Permissions || + (this.Permissions != null && + this.Permissions.Equals(input.Permissions)) + ) && + ( + this.Bulletins == input.Bulletins || + this.Bulletins != null && + this.Bulletins.SequenceEqual(input.Bulletins) + ) && + ( + this.DisconnectedNodeAcknowledged == input.DisconnectedNodeAcknowledged || + (this.DisconnectedNodeAcknowledged != null && + this.DisconnectedNodeAcknowledged.Equals(input.DisconnectedNodeAcknowledged)) + ) && + ( + this.Dimensions == input.Dimensions || + (this.Dimensions != null && + this.Dimensions.Equals(input.Dimensions)) + ) && + ( + this.Component == input.Component || + (this.Component != null && + this.Component.Equals(input.Component)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Revision != null) + hashCode = hashCode * 59 + this.Revision.GetHashCode(); + if (this.Id != null) + hashCode = hashCode * 59 + this.Id.GetHashCode(); + if (this.Uri != null) + hashCode = hashCode * 59 + this.Uri.GetHashCode(); + if (this.Position != null) + hashCode = hashCode * 59 + this.Position.GetHashCode(); + if (this.Permissions != null) + hashCode = hashCode * 59 + this.Permissions.GetHashCode(); + if (this.Bulletins != null) + hashCode = hashCode * 59 + this.Bulletins.GetHashCode(); + if (this.DisconnectedNodeAcknowledged != null) + hashCode = hashCode * 59 + this.DisconnectedNodeAcknowledged.GetHashCode(); + if (this.Dimensions != null) + hashCode = hashCode * 59 + this.Dimensions.GetHashCode(); + if (this.Component != null) + hashCode = hashCode * 59 + this.Component.GetHashCode(); + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/NiFi.Swagger/Model/LabelsEntity.cs b/NiFi.Swagger/Model/LabelsEntity.cs new file mode 100644 index 0000000..2b42889 --- /dev/null +++ b/NiFi.Swagger/Model/LabelsEntity.cs @@ -0,0 +1,119 @@ +/* + * NiFi Rest Api + * + * The Rest Api provides programmatic access to command and control a NiFi instance in real time. Start and stop processors, monitor queues, query provenance data, and more. Each endpoint below includes a description, definitions of the expected input and output, potential response codes, and the authorizations required to invoke each service. + * + * OpenAPI spec version: 1.9.1 + * Contact: dev@nifi.apache.org + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +namespace NiFi.Swagger.Model +{ + using System; + using System.Collections.Generic; + using System.ComponentModel.DataAnnotations; + using System.Linq; + using System.Runtime.Serialization; + using System.Text; + + using Newtonsoft.Json; + + /// + /// LabelsEntity + /// + [DataContract] + public partial class LabelsEntity : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// labels. + public LabelsEntity(List labels = default(List)) + { + this.Labels = labels; + } + + /// + /// Gets or Sets Labels + /// + [DataMember(Name="labels", EmitDefaultValue=false)] + public List Labels { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class LabelsEntity {\n"); + sb.Append(" Labels: ").Append(this.Labels).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as LabelsEntity); + } + + /// + /// Returns true if LabelsEntity instances are equal + /// + /// Instance of LabelsEntity to be compared + /// Boolean + public bool Equals(LabelsEntity input) + { + if (input == null) + return false; + + return + ( + this.Labels == input.Labels || + this.Labels != null && + this.Labels.SequenceEqual(input.Labels) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Labels != null) + hashCode = hashCode * 59 + this.Labels.GetHashCode(); + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/NiFi.Swagger/Model/LineageDTO.cs b/NiFi.Swagger/Model/LineageDTO.cs new file mode 100644 index 0000000..3b31021 --- /dev/null +++ b/NiFi.Swagger/Model/LineageDTO.cs @@ -0,0 +1,238 @@ +/* + * NiFi Rest Api + * + * The Rest Api provides programmatic access to command and control a NiFi instance in real time. Start and stop processors, monitor queues, query provenance data, and more. Each endpoint below includes a description, definitions of the expected input and output, potential response codes, and the authorizations required to invoke each service. + * + * OpenAPI spec version: 1.9.1 + * Contact: dev@nifi.apache.org + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +namespace NiFi.Swagger.Model +{ + using System; + using System.Collections.Generic; + using System.ComponentModel.DataAnnotations; + using System.Runtime.Serialization; + using System.Text; + + using Newtonsoft.Json; + + /// + /// LineageDTO + /// + [DataContract] + public partial class LineageDTO : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// The id of this lineage query.. + /// The URI for this lineage query for later retrieval and deletion.. + /// When the lineage query was submitted.. + /// When the lineage query will expire.. + /// The percent complete for the lineage query.. + /// Whether the lineage query has finished.. + /// The initial lineage result.. + /// The results of the lineage query.. + public LineageDTO(string id = default(string), string uri = default(string), string submissionTime = default(string), string expiration = default(string), int? percentCompleted = default(int?), bool? finished = default(bool?), LineageRequestDTO request = default(LineageRequestDTO), LineageResultsDTO results = default(LineageResultsDTO)) + { + this.Id = id; + this.Uri = uri; + this.SubmissionTime = submissionTime; + this.Expiration = expiration; + this.PercentCompleted = percentCompleted; + this.Finished = finished; + this.Request = request; + this.Results = results; + } + + /// + /// The id of this lineage query. + /// + /// The id of this lineage query. + [DataMember(Name="id", EmitDefaultValue=false)] + public string Id { get; set; } + + /// + /// The URI for this lineage query for later retrieval and deletion. + /// + /// The URI for this lineage query for later retrieval and deletion. + [DataMember(Name="uri", EmitDefaultValue=false)] + public string Uri { get; set; } + + /// + /// When the lineage query was submitted. + /// + /// When the lineage query was submitted. + [DataMember(Name="submissionTime", EmitDefaultValue=false)] + public string SubmissionTime { get; set; } + + /// + /// When the lineage query will expire. + /// + /// When the lineage query will expire. + [DataMember(Name="expiration", EmitDefaultValue=false)] + public string Expiration { get; set; } + + /// + /// The percent complete for the lineage query. + /// + /// The percent complete for the lineage query. + [DataMember(Name="percentCompleted", EmitDefaultValue=false)] + public int? PercentCompleted { get; set; } + + /// + /// Whether the lineage query has finished. + /// + /// Whether the lineage query has finished. + [DataMember(Name="finished", EmitDefaultValue=false)] + public bool? Finished { get; set; } + + /// + /// The initial lineage result. + /// + /// The initial lineage result. + [DataMember(Name="request", EmitDefaultValue=false)] + public LineageRequestDTO Request { get; set; } + + /// + /// The results of the lineage query. + /// + /// The results of the lineage query. + [DataMember(Name="results", EmitDefaultValue=false)] + public LineageResultsDTO Results { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class LineageDTO {\n"); + sb.Append(" Id: ").Append(this.Id).Append("\n"); + sb.Append(" Uri: ").Append(this.Uri).Append("\n"); + sb.Append(" SubmissionTime: ").Append(this.SubmissionTime).Append("\n"); + sb.Append(" Expiration: ").Append(this.Expiration).Append("\n"); + sb.Append(" PercentCompleted: ").Append(this.PercentCompleted).Append("\n"); + sb.Append(" Finished: ").Append(this.Finished).Append("\n"); + sb.Append(" Request: ").Append(this.Request).Append("\n"); + sb.Append(" Results: ").Append(this.Results).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as LineageDTO); + } + + /// + /// Returns true if LineageDTO instances are equal + /// + /// Instance of LineageDTO to be compared + /// Boolean + public bool Equals(LineageDTO input) + { + if (input == null) + return false; + + return + ( + this.Id == input.Id || + (this.Id != null && + this.Id.Equals(input.Id)) + ) && + ( + this.Uri == input.Uri || + (this.Uri != null && + this.Uri.Equals(input.Uri)) + ) && + ( + this.SubmissionTime == input.SubmissionTime || + (this.SubmissionTime != null && + this.SubmissionTime.Equals(input.SubmissionTime)) + ) && + ( + this.Expiration == input.Expiration || + (this.Expiration != null && + this.Expiration.Equals(input.Expiration)) + ) && + ( + this.PercentCompleted == input.PercentCompleted || + (this.PercentCompleted != null && + this.PercentCompleted.Equals(input.PercentCompleted)) + ) && + ( + this.Finished == input.Finished || + (this.Finished != null && + this.Finished.Equals(input.Finished)) + ) && + ( + this.Request == input.Request || + (this.Request != null && + this.Request.Equals(input.Request)) + ) && + ( + this.Results == input.Results || + (this.Results != null && + this.Results.Equals(input.Results)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Id != null) + hashCode = hashCode * 59 + this.Id.GetHashCode(); + if (this.Uri != null) + hashCode = hashCode * 59 + this.Uri.GetHashCode(); + if (this.SubmissionTime != null) + hashCode = hashCode * 59 + this.SubmissionTime.GetHashCode(); + if (this.Expiration != null) + hashCode = hashCode * 59 + this.Expiration.GetHashCode(); + if (this.PercentCompleted != null) + hashCode = hashCode * 59 + this.PercentCompleted.GetHashCode(); + if (this.Finished != null) + hashCode = hashCode * 59 + this.Finished.GetHashCode(); + if (this.Request != null) + hashCode = hashCode * 59 + this.Request.GetHashCode(); + if (this.Results != null) + hashCode = hashCode * 59 + this.Results.GetHashCode(); + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/NiFi.Swagger/Model/LineageEntity.cs b/NiFi.Swagger/Model/LineageEntity.cs new file mode 100644 index 0000000..6bdf74c --- /dev/null +++ b/NiFi.Swagger/Model/LineageEntity.cs @@ -0,0 +1,118 @@ +/* + * NiFi Rest Api + * + * The Rest Api provides programmatic access to command and control a NiFi instance in real time. Start and stop processors, monitor queues, query provenance data, and more. Each endpoint below includes a description, definitions of the expected input and output, potential response codes, and the authorizations required to invoke each service. + * + * OpenAPI spec version: 1.9.1 + * Contact: dev@nifi.apache.org + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +namespace NiFi.Swagger.Model +{ + using System; + using System.Collections.Generic; + using System.ComponentModel.DataAnnotations; + using System.Runtime.Serialization; + using System.Text; + + using Newtonsoft.Json; + + /// + /// LineageEntity + /// + [DataContract] + public partial class LineageEntity : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// lineage. + public LineageEntity(LineageDTO lineage = default(LineageDTO)) + { + this.Lineage = lineage; + } + + /// + /// Gets or Sets Lineage + /// + [DataMember(Name="lineage", EmitDefaultValue=false)] + public LineageDTO Lineage { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class LineageEntity {\n"); + sb.Append(" Lineage: ").Append(this.Lineage).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as LineageEntity); + } + + /// + /// Returns true if LineageEntity instances are equal + /// + /// Instance of LineageEntity to be compared + /// Boolean + public bool Equals(LineageEntity input) + { + if (input == null) + return false; + + return + ( + this.Lineage == input.Lineage || + (this.Lineage != null && + this.Lineage.Equals(input.Lineage)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Lineage != null) + hashCode = hashCode * 59 + this.Lineage.GetHashCode(); + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/NiFi.Swagger/Model/LineageRequestDTO.cs b/NiFi.Swagger/Model/LineageRequestDTO.cs new file mode 100644 index 0000000..714bdb3 --- /dev/null +++ b/NiFi.Swagger/Model/LineageRequestDTO.cs @@ -0,0 +1,198 @@ +/* + * NiFi Rest Api + * + * The Rest Api provides programmatic access to command and control a NiFi instance in real time. Start and stop processors, monitor queues, query provenance data, and more. Each endpoint below includes a description, definitions of the expected input and output, potential response codes, and the authorizations required to invoke each service. + * + * OpenAPI spec version: 1.9.1 + * Contact: dev@nifi.apache.org + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +namespace NiFi.Swagger.Model +{ + using System; + using System.Collections.Generic; + using System.ComponentModel.DataAnnotations; + using System.Runtime.Serialization; + using System.Text; + + using Newtonsoft.Json; + using Newtonsoft.Json.Converters; + + /// + /// LineageRequestDTO + /// + [DataContract] + public partial class LineageRequestDTO : IEquatable, IValidatableObject + { + /// + /// The type of lineage request. PARENTS will return the lineage for the flowfiles that are parents of the specified event. CHILDREN will return the lineage for the flowfiles that are children of the specified event. FLOWFILE will return the lineage for the specified flowfile. + /// + /// The type of lineage request. PARENTS will return the lineage for the flowfiles that are parents of the specified event. CHILDREN will return the lineage for the flowfiles that are children of the specified event. FLOWFILE will return the lineage for the specified flowfile. + [JsonConverter(typeof(StringEnumConverter))] + public enum LineageRequestTypeEnum + { + + /// + /// Enum PARENTS for value: PARENTS + /// + [EnumMember(Value = "PARENTS")] + PARENTS = 1, + + /// + /// Enum CHILDREN for value: CHILDREN + /// + [EnumMember(Value = "CHILDREN")] + CHILDREN = 2, + + /// + /// Enum AndFLOWFILE for value: and FLOWFILE + /// + [EnumMember(Value = "and FLOWFILE")] + AndFLOWFILE = 3 + } + + /// + /// The type of lineage request. PARENTS will return the lineage for the flowfiles that are parents of the specified event. CHILDREN will return the lineage for the flowfiles that are children of the specified event. FLOWFILE will return the lineage for the specified flowfile. + /// + /// The type of lineage request. PARENTS will return the lineage for the flowfiles that are parents of the specified event. CHILDREN will return the lineage for the flowfiles that are children of the specified event. FLOWFILE will return the lineage for the specified flowfile. + [DataMember(Name="lineageRequestType", EmitDefaultValue=false)] + public LineageRequestTypeEnum? LineageRequestType { get; set; } + /// + /// Initializes a new instance of the class. + /// + /// The event id that was used to generate this lineage, if applicable. The event id is allowed for any type of lineageRequestType. If the lineageRequestType is FLOWFILE and the flowfile uuid is also included in the request, the event id will be ignored.. + /// The type of lineage request. PARENTS will return the lineage for the flowfiles that are parents of the specified event. CHILDREN will return the lineage for the flowfiles that are children of the specified event. FLOWFILE will return the lineage for the specified flowfile.. + /// The flowfile uuid that was used to generate the lineage. The flowfile uuid is only allowed when the lineageRequestType is FLOWFILE and will take precedence over event id.. + /// The id of the node where this lineage originated if clustered.. + public LineageRequestDTO(long? eventId = default(long?), LineageRequestTypeEnum? lineageRequestType = default(LineageRequestTypeEnum?), string uuid = default(string), string clusterNodeId = default(string)) + { + this.EventId = eventId; + this.LineageRequestType = lineageRequestType; + this.Uuid = uuid; + this.ClusterNodeId = clusterNodeId; + } + + /// + /// The event id that was used to generate this lineage, if applicable. The event id is allowed for any type of lineageRequestType. If the lineageRequestType is FLOWFILE and the flowfile uuid is also included in the request, the event id will be ignored. + /// + /// The event id that was used to generate this lineage, if applicable. The event id is allowed for any type of lineageRequestType. If the lineageRequestType is FLOWFILE and the flowfile uuid is also included in the request, the event id will be ignored. + [DataMember(Name="eventId", EmitDefaultValue=false)] + public long? EventId { get; set; } + + + /// + /// The flowfile uuid that was used to generate the lineage. The flowfile uuid is only allowed when the lineageRequestType is FLOWFILE and will take precedence over event id. + /// + /// The flowfile uuid that was used to generate the lineage. The flowfile uuid is only allowed when the lineageRequestType is FLOWFILE and will take precedence over event id. + [DataMember(Name="uuid", EmitDefaultValue=false)] + public string Uuid { get; set; } + + /// + /// The id of the node where this lineage originated if clustered. + /// + /// The id of the node where this lineage originated if clustered. + [DataMember(Name="clusterNodeId", EmitDefaultValue=false)] + public string ClusterNodeId { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class LineageRequestDTO {\n"); + sb.Append(" EventId: ").Append(this.EventId).Append("\n"); + sb.Append(" LineageRequestType: ").Append(this.LineageRequestType).Append("\n"); + sb.Append(" Uuid: ").Append(this.Uuid).Append("\n"); + sb.Append(" ClusterNodeId: ").Append(this.ClusterNodeId).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as LineageRequestDTO); + } + + /// + /// Returns true if LineageRequestDTO instances are equal + /// + /// Instance of LineageRequestDTO to be compared + /// Boolean + public bool Equals(LineageRequestDTO input) + { + if (input == null) + return false; + + return + ( + this.EventId == input.EventId || + (this.EventId != null && + this.EventId.Equals(input.EventId)) + ) && + ( + this.LineageRequestType == input.LineageRequestType || + (this.LineageRequestType != null && + this.LineageRequestType.Equals(input.LineageRequestType)) + ) && + ( + this.Uuid == input.Uuid || + (this.Uuid != null && + this.Uuid.Equals(input.Uuid)) + ) && + ( + this.ClusterNodeId == input.ClusterNodeId || + (this.ClusterNodeId != null && + this.ClusterNodeId.Equals(input.ClusterNodeId)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.EventId != null) + hashCode = hashCode * 59 + this.EventId.GetHashCode(); + if (this.LineageRequestType != null) + hashCode = hashCode * 59 + this.LineageRequestType.GetHashCode(); + if (this.Uuid != null) + hashCode = hashCode * 59 + this.Uuid.GetHashCode(); + if (this.ClusterNodeId != null) + hashCode = hashCode * 59 + this.ClusterNodeId.GetHashCode(); + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/NiFi.Swagger/Model/LineageResultsDTO.cs b/NiFi.Swagger/Model/LineageResultsDTO.cs new file mode 100644 index 0000000..4969708 --- /dev/null +++ b/NiFi.Swagger/Model/LineageResultsDTO.cs @@ -0,0 +1,154 @@ +/* + * NiFi Rest Api + * + * The Rest Api provides programmatic access to command and control a NiFi instance in real time. Start and stop processors, monitor queues, query provenance data, and more. Each endpoint below includes a description, definitions of the expected input and output, potential response codes, and the authorizations required to invoke each service. + * + * OpenAPI spec version: 1.9.1 + * Contact: dev@nifi.apache.org + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +namespace NiFi.Swagger.Model +{ + using System; + using System.Collections.Generic; + using System.ComponentModel.DataAnnotations; + using System.Linq; + using System.Runtime.Serialization; + using System.Text; + + using Newtonsoft.Json; + + /// + /// LineageResultsDTO + /// + [DataContract] + public partial class LineageResultsDTO : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// Any errors that occurred while generating the lineage.. + /// The nodes in the lineage.. + /// The links between the nodes in the lineage.. + public LineageResultsDTO(List errors = default(List), List nodes = default(List), List links = default(List)) + { + this.Errors = errors; + this.Nodes = nodes; + this.Links = links; + } + + /// + /// Any errors that occurred while generating the lineage. + /// + /// Any errors that occurred while generating the lineage. + [DataMember(Name="errors", EmitDefaultValue=false)] + public List Errors { get; set; } + + /// + /// The nodes in the lineage. + /// + /// The nodes in the lineage. + [DataMember(Name="nodes", EmitDefaultValue=false)] + public List Nodes { get; set; } + + /// + /// The links between the nodes in the lineage. + /// + /// The links between the nodes in the lineage. + [DataMember(Name="links", EmitDefaultValue=false)] + public List Links { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class LineageResultsDTO {\n"); + sb.Append(" Errors: ").Append(this.Errors).Append("\n"); + sb.Append(" Nodes: ").Append(this.Nodes).Append("\n"); + sb.Append(" Links: ").Append(this.Links).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as LineageResultsDTO); + } + + /// + /// Returns true if LineageResultsDTO instances are equal + /// + /// Instance of LineageResultsDTO to be compared + /// Boolean + public bool Equals(LineageResultsDTO input) + { + if (input == null) + return false; + + return + ( + this.Errors == input.Errors || + this.Errors != null && + this.Errors.SequenceEqual(input.Errors) + ) && + ( + this.Nodes == input.Nodes || + this.Nodes != null && + this.Nodes.SequenceEqual(input.Nodes) + ) && + ( + this.Links == input.Links || + this.Links != null && + this.Links.SequenceEqual(input.Links) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Errors != null) + hashCode = hashCode * 59 + this.Errors.GetHashCode(); + if (this.Nodes != null) + hashCode = hashCode * 59 + this.Nodes.GetHashCode(); + if (this.Links != null) + hashCode = hashCode * 59 + this.Links.GetHashCode(); + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/NiFi.Swagger/Model/Link.cs b/NiFi.Swagger/Model/Link.cs new file mode 100644 index 0000000..e2158e8 --- /dev/null +++ b/NiFi.Swagger/Model/Link.cs @@ -0,0 +1,215 @@ +/* + * NiFi Rest Api + * + * The Rest Api provides programmatic access to command and control a NiFi instance in real time. Start and stop processors, monitor queues, query provenance data, and more. Each endpoint below includes a description, definitions of the expected input and output, potential response codes, and the authorizations required to invoke each service. + * + * OpenAPI spec version: 1.9.1 + * Contact: dev@nifi.apache.org + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +namespace NiFi.Swagger.Model +{ + using System; + using System.Collections.Generic; + using System.ComponentModel.DataAnnotations; + using System.Linq; + using System.Runtime.Serialization; + using System.Text; + + using Newtonsoft.Json; + + /// + /// Link + /// + [DataContract] + public partial class Link : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// type. + /// title. + /// rel. + /// rels. + /// uriBuilder. + /// _params. + /// uri. + public Link(string type = default(string), string title = default(string), string rel = default(string), List rels = default(List), UriBuilder uriBuilder = default(UriBuilder), Dictionary _params = default(Dictionary), string uri = default(string)) + { + this.Type = type; + this.Title = title; + this.Rel = rel; + this.Rels = rels; + this.UriBuilder = uriBuilder; + this.Params = _params; + this.Uri = uri; + } + + /// + /// Gets or Sets Type + /// + [DataMember(Name="type", EmitDefaultValue=false)] + public string Type { get; set; } + + /// + /// Gets or Sets Title + /// + [DataMember(Name="title", EmitDefaultValue=false)] + public string Title { get; set; } + + /// + /// Gets or Sets Rel + /// + [DataMember(Name="rel", EmitDefaultValue=false)] + public string Rel { get; set; } + + /// + /// Gets or Sets Rels + /// + [DataMember(Name="rels", EmitDefaultValue=false)] + public List Rels { get; set; } + + /// + /// Gets or Sets UriBuilder + /// + [DataMember(Name="uriBuilder", EmitDefaultValue=false)] + public UriBuilder UriBuilder { get; set; } + + /// + /// Gets or Sets Params + /// + [DataMember(Name="params", EmitDefaultValue=false)] + public Dictionary Params { get; set; } + + /// + /// Gets or Sets Uri + /// + [DataMember(Name="uri", EmitDefaultValue=false)] + public string Uri { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class Link {\n"); + sb.Append(" Type: ").Append(this.Type).Append("\n"); + sb.Append(" Title: ").Append(this.Title).Append("\n"); + sb.Append(" Rel: ").Append(this.Rel).Append("\n"); + sb.Append(" Rels: ").Append(this.Rels).Append("\n"); + sb.Append(" UriBuilder: ").Append(this.UriBuilder).Append("\n"); + sb.Append(" Params: ").Append(this.Params).Append("\n"); + sb.Append(" Uri: ").Append(this.Uri).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as Link); + } + + /// + /// Returns true if Link instances are equal + /// + /// Instance of Link to be compared + /// Boolean + public bool Equals(Link input) + { + if (input == null) + return false; + + return + ( + this.Type == input.Type || + (this.Type != null && + this.Type.Equals(input.Type)) + ) && + ( + this.Title == input.Title || + (this.Title != null && + this.Title.Equals(input.Title)) + ) && + ( + this.Rel == input.Rel || + (this.Rel != null && + this.Rel.Equals(input.Rel)) + ) && + ( + this.Rels == input.Rels || + this.Rels != null && + this.Rels.SequenceEqual(input.Rels) + ) && + ( + this.UriBuilder == input.UriBuilder || + (this.UriBuilder != null && + this.UriBuilder.Equals(input.UriBuilder)) + ) && + ( + this.Params == input.Params || + this.Params != null && + this.Params.SequenceEqual(input.Params) + ) && + ( + this.Uri == input.Uri || + (this.Uri != null && + this.Uri.Equals(input.Uri)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Type != null) + hashCode = hashCode * 59 + this.Type.GetHashCode(); + if (this.Title != null) + hashCode = hashCode * 59 + this.Title.GetHashCode(); + if (this.Rel != null) + hashCode = hashCode * 59 + this.Rel.GetHashCode(); + if (this.Rels != null) + hashCode = hashCode * 59 + this.Rels.GetHashCode(); + if (this.UriBuilder != null) + hashCode = hashCode * 59 + this.UriBuilder.GetHashCode(); + if (this.Params != null) + hashCode = hashCode * 59 + this.Params.GetHashCode(); + if (this.Uri != null) + hashCode = hashCode * 59 + this.Uri.GetHashCode(); + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/NiFi.Swagger/Model/ListingRequestDTO.cs b/NiFi.Swagger/Model/ListingRequestDTO.cs new file mode 100644 index 0000000..2ff6c8c --- /dev/null +++ b/NiFi.Swagger/Model/ListingRequestDTO.cs @@ -0,0 +1,324 @@ +/* + * NiFi Rest Api + * + * The Rest Api provides programmatic access to command and control a NiFi instance in real time. Start and stop processors, monitor queues, query provenance data, and more. Each endpoint below includes a description, definitions of the expected input and output, potential response codes, and the authorizations required to invoke each service. + * + * OpenAPI spec version: 1.9.1 + * Contact: dev@nifi.apache.org + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +namespace NiFi.Swagger.Model +{ + using System; + using System.Collections.Generic; + using System.ComponentModel.DataAnnotations; + using System.Linq; + using System.Runtime.Serialization; + using System.Text; + + using Newtonsoft.Json; + + /// + /// ListingRequestDTO + /// + [DataContract] + public partial class ListingRequestDTO : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// The id for this listing request.. + /// The URI for future requests to this listing request.. + /// The timestamp when the query was submitted.. + /// The last time this listing request was updated.. + /// The current percent complete.. + /// Whether the query has finished.. + /// The reason, if any, that this listing request failed.. + /// The maximum number of FlowFileSummary objects to return. + /// The current state of the listing request.. + /// The size of the queue. + /// The FlowFile summaries. The summaries will be populated once the request has completed.. + /// Whether the source of the connection is running. + /// Whether the destination of the connection is running. + public ListingRequestDTO(string id = default(string), string uri = default(string), string submissionTime = default(string), string lastUpdated = default(string), int? percentCompleted = default(int?), bool? finished = default(bool?), string failureReason = default(string), int? maxResults = default(int?), string state = default(string), QueueSizeDTO queueSize = default(QueueSizeDTO), List flowFileSummaries = default(List), bool? sourceRunning = default(bool?), bool? destinationRunning = default(bool?)) + { + this.Id = id; + this.Uri = uri; + this.SubmissionTime = submissionTime; + this.LastUpdated = lastUpdated; + this.PercentCompleted = percentCompleted; + this.Finished = finished; + this.FailureReason = failureReason; + this.MaxResults = maxResults; + this.State = state; + this.QueueSize = queueSize; + this.FlowFileSummaries = flowFileSummaries; + this.SourceRunning = sourceRunning; + this.DestinationRunning = destinationRunning; + } + + /// + /// The id for this listing request. + /// + /// The id for this listing request. + [DataMember(Name="id", EmitDefaultValue=false)] + public string Id { get; set; } + + /// + /// The URI for future requests to this listing request. + /// + /// The URI for future requests to this listing request. + [DataMember(Name="uri", EmitDefaultValue=false)] + public string Uri { get; set; } + + /// + /// The timestamp when the query was submitted. + /// + /// The timestamp when the query was submitted. + [DataMember(Name="submissionTime", EmitDefaultValue=false)] + public string SubmissionTime { get; set; } + + /// + /// The last time this listing request was updated. + /// + /// The last time this listing request was updated. + [DataMember(Name="lastUpdated", EmitDefaultValue=false)] + public string LastUpdated { get; set; } + + /// + /// The current percent complete. + /// + /// The current percent complete. + [DataMember(Name="percentCompleted", EmitDefaultValue=false)] + public int? PercentCompleted { get; set; } + + /// + /// Whether the query has finished. + /// + /// Whether the query has finished. + [DataMember(Name="finished", EmitDefaultValue=false)] + public bool? Finished { get; set; } + + /// + /// The reason, if any, that this listing request failed. + /// + /// The reason, if any, that this listing request failed. + [DataMember(Name="failureReason", EmitDefaultValue=false)] + public string FailureReason { get; set; } + + /// + /// The maximum number of FlowFileSummary objects to return + /// + /// The maximum number of FlowFileSummary objects to return + [DataMember(Name="maxResults", EmitDefaultValue=false)] + public int? MaxResults { get; set; } + + /// + /// The current state of the listing request. + /// + /// The current state of the listing request. + [DataMember(Name="state", EmitDefaultValue=false)] + public string State { get; set; } + + /// + /// The size of the queue + /// + /// The size of the queue + [DataMember(Name="queueSize", EmitDefaultValue=false)] + public QueueSizeDTO QueueSize { get; set; } + + /// + /// The FlowFile summaries. The summaries will be populated once the request has completed. + /// + /// The FlowFile summaries. The summaries will be populated once the request has completed. + [DataMember(Name="flowFileSummaries", EmitDefaultValue=false)] + public List FlowFileSummaries { get; set; } + + /// + /// Whether the source of the connection is running + /// + /// Whether the source of the connection is running + [DataMember(Name="sourceRunning", EmitDefaultValue=false)] + public bool? SourceRunning { get; set; } + + /// + /// Whether the destination of the connection is running + /// + /// Whether the destination of the connection is running + [DataMember(Name="destinationRunning", EmitDefaultValue=false)] + public bool? DestinationRunning { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class ListingRequestDTO {\n"); + sb.Append(" Id: ").Append(this.Id).Append("\n"); + sb.Append(" Uri: ").Append(this.Uri).Append("\n"); + sb.Append(" SubmissionTime: ").Append(this.SubmissionTime).Append("\n"); + sb.Append(" LastUpdated: ").Append(this.LastUpdated).Append("\n"); + sb.Append(" PercentCompleted: ").Append(this.PercentCompleted).Append("\n"); + sb.Append(" Finished: ").Append(this.Finished).Append("\n"); + sb.Append(" FailureReason: ").Append(this.FailureReason).Append("\n"); + sb.Append(" MaxResults: ").Append(this.MaxResults).Append("\n"); + sb.Append(" State: ").Append(this.State).Append("\n"); + sb.Append(" QueueSize: ").Append(this.QueueSize).Append("\n"); + sb.Append(" FlowFileSummaries: ").Append(this.FlowFileSummaries).Append("\n"); + sb.Append(" SourceRunning: ").Append(this.SourceRunning).Append("\n"); + sb.Append(" DestinationRunning: ").Append(this.DestinationRunning).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as ListingRequestDTO); + } + + /// + /// Returns true if ListingRequestDTO instances are equal + /// + /// Instance of ListingRequestDTO to be compared + /// Boolean + public bool Equals(ListingRequestDTO input) + { + if (input == null) + return false; + + return + ( + this.Id == input.Id || + (this.Id != null && + this.Id.Equals(input.Id)) + ) && + ( + this.Uri == input.Uri || + (this.Uri != null && + this.Uri.Equals(input.Uri)) + ) && + ( + this.SubmissionTime == input.SubmissionTime || + (this.SubmissionTime != null && + this.SubmissionTime.Equals(input.SubmissionTime)) + ) && + ( + this.LastUpdated == input.LastUpdated || + (this.LastUpdated != null && + this.LastUpdated.Equals(input.LastUpdated)) + ) && + ( + this.PercentCompleted == input.PercentCompleted || + (this.PercentCompleted != null && + this.PercentCompleted.Equals(input.PercentCompleted)) + ) && + ( + this.Finished == input.Finished || + (this.Finished != null && + this.Finished.Equals(input.Finished)) + ) && + ( + this.FailureReason == input.FailureReason || + (this.FailureReason != null && + this.FailureReason.Equals(input.FailureReason)) + ) && + ( + this.MaxResults == input.MaxResults || + (this.MaxResults != null && + this.MaxResults.Equals(input.MaxResults)) + ) && + ( + this.State == input.State || + (this.State != null && + this.State.Equals(input.State)) + ) && + ( + this.QueueSize == input.QueueSize || + (this.QueueSize != null && + this.QueueSize.Equals(input.QueueSize)) + ) && + ( + this.FlowFileSummaries == input.FlowFileSummaries || + this.FlowFileSummaries != null && + this.FlowFileSummaries.SequenceEqual(input.FlowFileSummaries) + ) && + ( + this.SourceRunning == input.SourceRunning || + (this.SourceRunning != null && + this.SourceRunning.Equals(input.SourceRunning)) + ) && + ( + this.DestinationRunning == input.DestinationRunning || + (this.DestinationRunning != null && + this.DestinationRunning.Equals(input.DestinationRunning)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Id != null) + hashCode = hashCode * 59 + this.Id.GetHashCode(); + if (this.Uri != null) + hashCode = hashCode * 59 + this.Uri.GetHashCode(); + if (this.SubmissionTime != null) + hashCode = hashCode * 59 + this.SubmissionTime.GetHashCode(); + if (this.LastUpdated != null) + hashCode = hashCode * 59 + this.LastUpdated.GetHashCode(); + if (this.PercentCompleted != null) + hashCode = hashCode * 59 + this.PercentCompleted.GetHashCode(); + if (this.Finished != null) + hashCode = hashCode * 59 + this.Finished.GetHashCode(); + if (this.FailureReason != null) + hashCode = hashCode * 59 + this.FailureReason.GetHashCode(); + if (this.MaxResults != null) + hashCode = hashCode * 59 + this.MaxResults.GetHashCode(); + if (this.State != null) + hashCode = hashCode * 59 + this.State.GetHashCode(); + if (this.QueueSize != null) + hashCode = hashCode * 59 + this.QueueSize.GetHashCode(); + if (this.FlowFileSummaries != null) + hashCode = hashCode * 59 + this.FlowFileSummaries.GetHashCode(); + if (this.SourceRunning != null) + hashCode = hashCode * 59 + this.SourceRunning.GetHashCode(); + if (this.DestinationRunning != null) + hashCode = hashCode * 59 + this.DestinationRunning.GetHashCode(); + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/NiFi.Swagger/Model/ListingRequestEntity.cs b/NiFi.Swagger/Model/ListingRequestEntity.cs new file mode 100644 index 0000000..c29c335 --- /dev/null +++ b/NiFi.Swagger/Model/ListingRequestEntity.cs @@ -0,0 +1,118 @@ +/* + * NiFi Rest Api + * + * The Rest Api provides programmatic access to command and control a NiFi instance in real time. Start and stop processors, monitor queues, query provenance data, and more. Each endpoint below includes a description, definitions of the expected input and output, potential response codes, and the authorizations required to invoke each service. + * + * OpenAPI spec version: 1.9.1 + * Contact: dev@nifi.apache.org + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +namespace NiFi.Swagger.Model +{ + using System; + using System.Collections.Generic; + using System.ComponentModel.DataAnnotations; + using System.Runtime.Serialization; + using System.Text; + + using Newtonsoft.Json; + + /// + /// ListingRequestEntity + /// + [DataContract] + public partial class ListingRequestEntity : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// listingRequest. + public ListingRequestEntity(ListingRequestDTO listingRequest = default(ListingRequestDTO)) + { + this.ListingRequest = listingRequest; + } + + /// + /// Gets or Sets ListingRequest + /// + [DataMember(Name="listingRequest", EmitDefaultValue=false)] + public ListingRequestDTO ListingRequest { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class ListingRequestEntity {\n"); + sb.Append(" ListingRequest: ").Append(this.ListingRequest).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as ListingRequestEntity); + } + + /// + /// Returns true if ListingRequestEntity instances are equal + /// + /// Instance of ListingRequestEntity to be compared + /// Boolean + public bool Equals(ListingRequestEntity input) + { + if (input == null) + return false; + + return + ( + this.ListingRequest == input.ListingRequest || + (this.ListingRequest != null && + this.ListingRequest.Equals(input.ListingRequest)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.ListingRequest != null) + hashCode = hashCode * 59 + this.ListingRequest.GetHashCode(); + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/NiFi.Swagger/Model/NodeConnectionStatusSnapshotDTO.cs b/NiFi.Swagger/Model/NodeConnectionStatusSnapshotDTO.cs new file mode 100644 index 0000000..00f258a --- /dev/null +++ b/NiFi.Swagger/Model/NodeConnectionStatusSnapshotDTO.cs @@ -0,0 +1,170 @@ +/* + * NiFi Rest Api + * + * The Rest Api provides programmatic access to command and control a NiFi instance in real time. Start and stop processors, monitor queues, query provenance data, and more. Each endpoint below includes a description, definitions of the expected input and output, potential response codes, and the authorizations required to invoke each service. + * + * OpenAPI spec version: 1.9.1 + * Contact: dev@nifi.apache.org + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +namespace NiFi.Swagger.Model +{ + using System; + using System.Collections.Generic; + using System.ComponentModel.DataAnnotations; + using System.Runtime.Serialization; + using System.Text; + + using Newtonsoft.Json; + + /// + /// NodeConnectionStatusSnapshotDTO + /// + [DataContract] + public partial class NodeConnectionStatusSnapshotDTO : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// The unique ID that identifies the node. + /// The API address of the node. + /// The API port used to communicate with the node. + /// The connection status snapshot from the node.. + public NodeConnectionStatusSnapshotDTO(string nodeId = default(string), string address = default(string), int? apiPort = default(int?), ConnectionStatusSnapshotDTO statusSnapshot = default(ConnectionStatusSnapshotDTO)) + { + this.NodeId = nodeId; + this.Address = address; + this.ApiPort = apiPort; + this.StatusSnapshot = statusSnapshot; + } + + /// + /// The unique ID that identifies the node + /// + /// The unique ID that identifies the node + [DataMember(Name="nodeId", EmitDefaultValue=false)] + public string NodeId { get; set; } + + /// + /// The API address of the node + /// + /// The API address of the node + [DataMember(Name="address", EmitDefaultValue=false)] + public string Address { get; set; } + + /// + /// The API port used to communicate with the node + /// + /// The API port used to communicate with the node + [DataMember(Name="apiPort", EmitDefaultValue=false)] + public int? ApiPort { get; set; } + + /// + /// The connection status snapshot from the node. + /// + /// The connection status snapshot from the node. + [DataMember(Name="statusSnapshot", EmitDefaultValue=false)] + public ConnectionStatusSnapshotDTO StatusSnapshot { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class NodeConnectionStatusSnapshotDTO {\n"); + sb.Append(" NodeId: ").Append(this.NodeId).Append("\n"); + sb.Append(" Address: ").Append(this.Address).Append("\n"); + sb.Append(" ApiPort: ").Append(this.ApiPort).Append("\n"); + sb.Append(" StatusSnapshot: ").Append(this.StatusSnapshot).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as NodeConnectionStatusSnapshotDTO); + } + + /// + /// Returns true if NodeConnectionStatusSnapshotDTO instances are equal + /// + /// Instance of NodeConnectionStatusSnapshotDTO to be compared + /// Boolean + public bool Equals(NodeConnectionStatusSnapshotDTO input) + { + if (input == null) + return false; + + return + ( + this.NodeId == input.NodeId || + (this.NodeId != null && + this.NodeId.Equals(input.NodeId)) + ) && + ( + this.Address == input.Address || + (this.Address != null && + this.Address.Equals(input.Address)) + ) && + ( + this.ApiPort == input.ApiPort || + (this.ApiPort != null && + this.ApiPort.Equals(input.ApiPort)) + ) && + ( + this.StatusSnapshot == input.StatusSnapshot || + (this.StatusSnapshot != null && + this.StatusSnapshot.Equals(input.StatusSnapshot)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.NodeId != null) + hashCode = hashCode * 59 + this.NodeId.GetHashCode(); + if (this.Address != null) + hashCode = hashCode * 59 + this.Address.GetHashCode(); + if (this.ApiPort != null) + hashCode = hashCode * 59 + this.ApiPort.GetHashCode(); + if (this.StatusSnapshot != null) + hashCode = hashCode * 59 + this.StatusSnapshot.GetHashCode(); + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/NiFi.Swagger/Model/NodeCountersSnapshotDTO.cs b/NiFi.Swagger/Model/NodeCountersSnapshotDTO.cs new file mode 100644 index 0000000..25628a0 --- /dev/null +++ b/NiFi.Swagger/Model/NodeCountersSnapshotDTO.cs @@ -0,0 +1,170 @@ +/* + * NiFi Rest Api + * + * The Rest Api provides programmatic access to command and control a NiFi instance in real time. Start and stop processors, monitor queues, query provenance data, and more. Each endpoint below includes a description, definitions of the expected input and output, potential response codes, and the authorizations required to invoke each service. + * + * OpenAPI spec version: 1.9.1 + * Contact: dev@nifi.apache.org + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +namespace NiFi.Swagger.Model +{ + using System; + using System.Collections.Generic; + using System.ComponentModel.DataAnnotations; + using System.Runtime.Serialization; + using System.Text; + + using Newtonsoft.Json; + + /// + /// NodeCountersSnapshotDTO + /// + [DataContract] + public partial class NodeCountersSnapshotDTO : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// The unique ID that identifies the node. + /// The API address of the node. + /// The API port used to communicate with the node. + /// The counters from the node.. + public NodeCountersSnapshotDTO(string nodeId = default(string), string address = default(string), int? apiPort = default(int?), CountersSnapshotDTO snapshot = default(CountersSnapshotDTO)) + { + this.NodeId = nodeId; + this.Address = address; + this.ApiPort = apiPort; + this.Snapshot = snapshot; + } + + /// + /// The unique ID that identifies the node + /// + /// The unique ID that identifies the node + [DataMember(Name="nodeId", EmitDefaultValue=false)] + public string NodeId { get; set; } + + /// + /// The API address of the node + /// + /// The API address of the node + [DataMember(Name="address", EmitDefaultValue=false)] + public string Address { get; set; } + + /// + /// The API port used to communicate with the node + /// + /// The API port used to communicate with the node + [DataMember(Name="apiPort", EmitDefaultValue=false)] + public int? ApiPort { get; set; } + + /// + /// The counters from the node. + /// + /// The counters from the node. + [DataMember(Name="snapshot", EmitDefaultValue=false)] + public CountersSnapshotDTO Snapshot { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class NodeCountersSnapshotDTO {\n"); + sb.Append(" NodeId: ").Append(this.NodeId).Append("\n"); + sb.Append(" Address: ").Append(this.Address).Append("\n"); + sb.Append(" ApiPort: ").Append(this.ApiPort).Append("\n"); + sb.Append(" Snapshot: ").Append(this.Snapshot).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as NodeCountersSnapshotDTO); + } + + /// + /// Returns true if NodeCountersSnapshotDTO instances are equal + /// + /// Instance of NodeCountersSnapshotDTO to be compared + /// Boolean + public bool Equals(NodeCountersSnapshotDTO input) + { + if (input == null) + return false; + + return + ( + this.NodeId == input.NodeId || + (this.NodeId != null && + this.NodeId.Equals(input.NodeId)) + ) && + ( + this.Address == input.Address || + (this.Address != null && + this.Address.Equals(input.Address)) + ) && + ( + this.ApiPort == input.ApiPort || + (this.ApiPort != null && + this.ApiPort.Equals(input.ApiPort)) + ) && + ( + this.Snapshot == input.Snapshot || + (this.Snapshot != null && + this.Snapshot.Equals(input.Snapshot)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.NodeId != null) + hashCode = hashCode * 59 + this.NodeId.GetHashCode(); + if (this.Address != null) + hashCode = hashCode * 59 + this.Address.GetHashCode(); + if (this.ApiPort != null) + hashCode = hashCode * 59 + this.ApiPort.GetHashCode(); + if (this.Snapshot != null) + hashCode = hashCode * 59 + this.Snapshot.GetHashCode(); + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/NiFi.Swagger/Model/NodeDTO.cs b/NiFi.Swagger/Model/NodeDTO.cs new file mode 100644 index 0000000..7b67209 --- /dev/null +++ b/NiFi.Swagger/Model/NodeDTO.cs @@ -0,0 +1,270 @@ +/* + * NiFi Rest Api + * + * The Rest Api provides programmatic access to command and control a NiFi instance in real time. Start and stop processors, monitor queues, query provenance data, and more. Each endpoint below includes a description, definitions of the expected input and output, potential response codes, and the authorizations required to invoke each service. + * + * OpenAPI spec version: 1.9.1 + * Contact: dev@nifi.apache.org + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +namespace NiFi.Swagger.Model +{ + using System; + using System.Collections.Generic; + using System.ComponentModel.DataAnnotations; + using System.Linq; + using System.Runtime.Serialization; + using System.Text; + + using Newtonsoft.Json; + + /// + /// NodeDTO + /// + [DataContract] + public partial class NodeDTO : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// The node's status.. + public NodeDTO(string status = default(string)) + { + this.Status = status; + } + + /// + /// The id of the node. + /// + /// The id of the node. + [DataMember(Name="nodeId", EmitDefaultValue=false)] + public string NodeId { get; private set; } + + /// + /// The node's host/ip address. + /// + /// The node's host/ip address. + [DataMember(Name="address", EmitDefaultValue=false)] + public string Address { get; private set; } + + /// + /// The port the node is listening for API requests. + /// + /// The port the node is listening for API requests. + [DataMember(Name="apiPort", EmitDefaultValue=false)] + public int? ApiPort { get; private set; } + + /// + /// The node's status. + /// + /// The node's status. + [DataMember(Name="status", EmitDefaultValue=false)] + public string Status { get; set; } + + /// + /// the time of the nodes's last heartbeat. + /// + /// the time of the nodes's last heartbeat. + [DataMember(Name="heartbeat", EmitDefaultValue=false)] + public string Heartbeat { get; private set; } + + /// + /// The time of the node's last connection request. + /// + /// The time of the node's last connection request. + [DataMember(Name="connectionRequested", EmitDefaultValue=false)] + public string ConnectionRequested { get; private set; } + + /// + /// The roles of this node. + /// + /// The roles of this node. + [DataMember(Name="roles", EmitDefaultValue=false)] + public List Roles { get; private set; } + + /// + /// The active threads for the NiFi on the node. + /// + /// The active threads for the NiFi on the node. + [DataMember(Name="activeThreadCount", EmitDefaultValue=false)] + public int? ActiveThreadCount { get; private set; } + + /// + /// The queue the NiFi on the node. + /// + /// The queue the NiFi on the node. + [DataMember(Name="queued", EmitDefaultValue=false)] + public string Queued { get; private set; } + + /// + /// The node's events. + /// + /// The node's events. + [DataMember(Name="events", EmitDefaultValue=false)] + public List Events { get; private set; } + + /// + /// The time at which this Node was last refreshed. + /// + /// The time at which this Node was last refreshed. + [DataMember(Name="nodeStartTime", EmitDefaultValue=false)] + public string NodeStartTime { get; private set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class NodeDTO {\n"); + sb.Append(" NodeId: ").Append(this.NodeId).Append("\n"); + sb.Append(" Address: ").Append(this.Address).Append("\n"); + sb.Append(" ApiPort: ").Append(this.ApiPort).Append("\n"); + sb.Append(" Status: ").Append(this.Status).Append("\n"); + sb.Append(" Heartbeat: ").Append(this.Heartbeat).Append("\n"); + sb.Append(" ConnectionRequested: ").Append(this.ConnectionRequested).Append("\n"); + sb.Append(" Roles: ").Append(this.Roles).Append("\n"); + sb.Append(" ActiveThreadCount: ").Append(this.ActiveThreadCount).Append("\n"); + sb.Append(" Queued: ").Append(this.Queued).Append("\n"); + sb.Append(" Events: ").Append(this.Events).Append("\n"); + sb.Append(" NodeStartTime: ").Append(this.NodeStartTime).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as NodeDTO); + } + + /// + /// Returns true if NodeDTO instances are equal + /// + /// Instance of NodeDTO to be compared + /// Boolean + public bool Equals(NodeDTO input) + { + if (input == null) + return false; + + return + ( + this.NodeId == input.NodeId || + (this.NodeId != null && + this.NodeId.Equals(input.NodeId)) + ) && + ( + this.Address == input.Address || + (this.Address != null && + this.Address.Equals(input.Address)) + ) && + ( + this.ApiPort == input.ApiPort || + (this.ApiPort != null && + this.ApiPort.Equals(input.ApiPort)) + ) && + ( + this.Status == input.Status || + (this.Status != null && + this.Status.Equals(input.Status)) + ) && + ( + this.Heartbeat == input.Heartbeat || + (this.Heartbeat != null && + this.Heartbeat.Equals(input.Heartbeat)) + ) && + ( + this.ConnectionRequested == input.ConnectionRequested || + (this.ConnectionRequested != null && + this.ConnectionRequested.Equals(input.ConnectionRequested)) + ) && + ( + this.Roles == input.Roles || + this.Roles != null && + this.Roles.SequenceEqual(input.Roles) + ) && + ( + this.ActiveThreadCount == input.ActiveThreadCount || + (this.ActiveThreadCount != null && + this.ActiveThreadCount.Equals(input.ActiveThreadCount)) + ) && + ( + this.Queued == input.Queued || + (this.Queued != null && + this.Queued.Equals(input.Queued)) + ) && + ( + this.Events == input.Events || + this.Events != null && + this.Events.SequenceEqual(input.Events) + ) && + ( + this.NodeStartTime == input.NodeStartTime || + (this.NodeStartTime != null && + this.NodeStartTime.Equals(input.NodeStartTime)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.NodeId != null) + hashCode = hashCode * 59 + this.NodeId.GetHashCode(); + if (this.Address != null) + hashCode = hashCode * 59 + this.Address.GetHashCode(); + if (this.ApiPort != null) + hashCode = hashCode * 59 + this.ApiPort.GetHashCode(); + if (this.Status != null) + hashCode = hashCode * 59 + this.Status.GetHashCode(); + if (this.Heartbeat != null) + hashCode = hashCode * 59 + this.Heartbeat.GetHashCode(); + if (this.ConnectionRequested != null) + hashCode = hashCode * 59 + this.ConnectionRequested.GetHashCode(); + if (this.Roles != null) + hashCode = hashCode * 59 + this.Roles.GetHashCode(); + if (this.ActiveThreadCount != null) + hashCode = hashCode * 59 + this.ActiveThreadCount.GetHashCode(); + if (this.Queued != null) + hashCode = hashCode * 59 + this.Queued.GetHashCode(); + if (this.Events != null) + hashCode = hashCode * 59 + this.Events.GetHashCode(); + if (this.NodeStartTime != null) + hashCode = hashCode * 59 + this.NodeStartTime.GetHashCode(); + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/NiFi.Swagger/Model/NodeEntity.cs b/NiFi.Swagger/Model/NodeEntity.cs new file mode 100644 index 0000000..9798081 --- /dev/null +++ b/NiFi.Swagger/Model/NodeEntity.cs @@ -0,0 +1,118 @@ +/* + * NiFi Rest Api + * + * The Rest Api provides programmatic access to command and control a NiFi instance in real time. Start and stop processors, monitor queues, query provenance data, and more. Each endpoint below includes a description, definitions of the expected input and output, potential response codes, and the authorizations required to invoke each service. + * + * OpenAPI spec version: 1.9.1 + * Contact: dev@nifi.apache.org + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +namespace NiFi.Swagger.Model +{ + using System; + using System.Collections.Generic; + using System.ComponentModel.DataAnnotations; + using System.Runtime.Serialization; + using System.Text; + + using Newtonsoft.Json; + + /// + /// NodeEntity + /// + [DataContract] + public partial class NodeEntity : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// node. + public NodeEntity(NodeDTO node = default(NodeDTO)) + { + this.Node = node; + } + + /// + /// Gets or Sets Node + /// + [DataMember(Name="node", EmitDefaultValue=false)] + public NodeDTO Node { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class NodeEntity {\n"); + sb.Append(" Node: ").Append(this.Node).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as NodeEntity); + } + + /// + /// Returns true if NodeEntity instances are equal + /// + /// Instance of NodeEntity to be compared + /// Boolean + public bool Equals(NodeEntity input) + { + if (input == null) + return false; + + return + ( + this.Node == input.Node || + (this.Node != null && + this.Node.Equals(input.Node)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Node != null) + hashCode = hashCode * 59 + this.Node.GetHashCode(); + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/NiFi.Swagger/Model/NodeEventDTO.cs b/NiFi.Swagger/Model/NodeEventDTO.cs new file mode 100644 index 0000000..8273331 --- /dev/null +++ b/NiFi.Swagger/Model/NodeEventDTO.cs @@ -0,0 +1,153 @@ +/* + * NiFi Rest Api + * + * The Rest Api provides programmatic access to command and control a NiFi instance in real time. Start and stop processors, monitor queues, query provenance data, and more. Each endpoint below includes a description, definitions of the expected input and output, potential response codes, and the authorizations required to invoke each service. + * + * OpenAPI spec version: 1.9.1 + * Contact: dev@nifi.apache.org + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +namespace NiFi.Swagger.Model +{ + using System; + using System.Collections.Generic; + using System.ComponentModel.DataAnnotations; + using System.Runtime.Serialization; + using System.Text; + + using Newtonsoft.Json; + + /// + /// NodeEventDTO + /// + [DataContract] + public partial class NodeEventDTO : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// The timestamp of the node event.. + /// The category of the node event.. + /// The message in the node event.. + public NodeEventDTO(string timestamp = default(string), string category = default(string), string message = default(string)) + { + this.Timestamp = timestamp; + this.Category = category; + this.Message = message; + } + + /// + /// The timestamp of the node event. + /// + /// The timestamp of the node event. + [DataMember(Name="timestamp", EmitDefaultValue=false)] + public string Timestamp { get; set; } + + /// + /// The category of the node event. + /// + /// The category of the node event. + [DataMember(Name="category", EmitDefaultValue=false)] + public string Category { get; set; } + + /// + /// The message in the node event. + /// + /// The message in the node event. + [DataMember(Name="message", EmitDefaultValue=false)] + public string Message { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class NodeEventDTO {\n"); + sb.Append(" Timestamp: ").Append(this.Timestamp).Append("\n"); + sb.Append(" Category: ").Append(this.Category).Append("\n"); + sb.Append(" Message: ").Append(this.Message).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as NodeEventDTO); + } + + /// + /// Returns true if NodeEventDTO instances are equal + /// + /// Instance of NodeEventDTO to be compared + /// Boolean + public bool Equals(NodeEventDTO input) + { + if (input == null) + return false; + + return + ( + this.Timestamp == input.Timestamp || + (this.Timestamp != null && + this.Timestamp.Equals(input.Timestamp)) + ) && + ( + this.Category == input.Category || + (this.Category != null && + this.Category.Equals(input.Category)) + ) && + ( + this.Message == input.Message || + (this.Message != null && + this.Message.Equals(input.Message)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Timestamp != null) + hashCode = hashCode * 59 + this.Timestamp.GetHashCode(); + if (this.Category != null) + hashCode = hashCode * 59 + this.Category.GetHashCode(); + if (this.Message != null) + hashCode = hashCode * 59 + this.Message.GetHashCode(); + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/NiFi.Swagger/Model/NodePortStatusSnapshotDTO.cs b/NiFi.Swagger/Model/NodePortStatusSnapshotDTO.cs new file mode 100644 index 0000000..b8a3246 --- /dev/null +++ b/NiFi.Swagger/Model/NodePortStatusSnapshotDTO.cs @@ -0,0 +1,170 @@ +/* + * NiFi Rest Api + * + * The Rest Api provides programmatic access to command and control a NiFi instance in real time. Start and stop processors, monitor queues, query provenance data, and more. Each endpoint below includes a description, definitions of the expected input and output, potential response codes, and the authorizations required to invoke each service. + * + * OpenAPI spec version: 1.9.1 + * Contact: dev@nifi.apache.org + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +namespace NiFi.Swagger.Model +{ + using System; + using System.Collections.Generic; + using System.ComponentModel.DataAnnotations; + using System.Runtime.Serialization; + using System.Text; + + using Newtonsoft.Json; + + /// + /// NodePortStatusSnapshotDTO + /// + [DataContract] + public partial class NodePortStatusSnapshotDTO : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// The unique ID that identifies the node. + /// The API address of the node. + /// The API port used to communicate with the node. + /// The port status snapshot from the node.. + public NodePortStatusSnapshotDTO(string nodeId = default(string), string address = default(string), int? apiPort = default(int?), PortStatusSnapshotDTO statusSnapshot = default(PortStatusSnapshotDTO)) + { + this.NodeId = nodeId; + this.Address = address; + this.ApiPort = apiPort; + this.StatusSnapshot = statusSnapshot; + } + + /// + /// The unique ID that identifies the node + /// + /// The unique ID that identifies the node + [DataMember(Name="nodeId", EmitDefaultValue=false)] + public string NodeId { get; set; } + + /// + /// The API address of the node + /// + /// The API address of the node + [DataMember(Name="address", EmitDefaultValue=false)] + public string Address { get; set; } + + /// + /// The API port used to communicate with the node + /// + /// The API port used to communicate with the node + [DataMember(Name="apiPort", EmitDefaultValue=false)] + public int? ApiPort { get; set; } + + /// + /// The port status snapshot from the node. + /// + /// The port status snapshot from the node. + [DataMember(Name="statusSnapshot", EmitDefaultValue=false)] + public PortStatusSnapshotDTO StatusSnapshot { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class NodePortStatusSnapshotDTO {\n"); + sb.Append(" NodeId: ").Append(this.NodeId).Append("\n"); + sb.Append(" Address: ").Append(this.Address).Append("\n"); + sb.Append(" ApiPort: ").Append(this.ApiPort).Append("\n"); + sb.Append(" StatusSnapshot: ").Append(this.StatusSnapshot).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as NodePortStatusSnapshotDTO); + } + + /// + /// Returns true if NodePortStatusSnapshotDTO instances are equal + /// + /// Instance of NodePortStatusSnapshotDTO to be compared + /// Boolean + public bool Equals(NodePortStatusSnapshotDTO input) + { + if (input == null) + return false; + + return + ( + this.NodeId == input.NodeId || + (this.NodeId != null && + this.NodeId.Equals(input.NodeId)) + ) && + ( + this.Address == input.Address || + (this.Address != null && + this.Address.Equals(input.Address)) + ) && + ( + this.ApiPort == input.ApiPort || + (this.ApiPort != null && + this.ApiPort.Equals(input.ApiPort)) + ) && + ( + this.StatusSnapshot == input.StatusSnapshot || + (this.StatusSnapshot != null && + this.StatusSnapshot.Equals(input.StatusSnapshot)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.NodeId != null) + hashCode = hashCode * 59 + this.NodeId.GetHashCode(); + if (this.Address != null) + hashCode = hashCode * 59 + this.Address.GetHashCode(); + if (this.ApiPort != null) + hashCode = hashCode * 59 + this.ApiPort.GetHashCode(); + if (this.StatusSnapshot != null) + hashCode = hashCode * 59 + this.StatusSnapshot.GetHashCode(); + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/NiFi.Swagger/Model/NodeProcessGroupStatusSnapshotDTO.cs b/NiFi.Swagger/Model/NodeProcessGroupStatusSnapshotDTO.cs new file mode 100644 index 0000000..7d5ed9d --- /dev/null +++ b/NiFi.Swagger/Model/NodeProcessGroupStatusSnapshotDTO.cs @@ -0,0 +1,170 @@ +/* + * NiFi Rest Api + * + * The Rest Api provides programmatic access to command and control a NiFi instance in real time. Start and stop processors, monitor queues, query provenance data, and more. Each endpoint below includes a description, definitions of the expected input and output, potential response codes, and the authorizations required to invoke each service. + * + * OpenAPI spec version: 1.9.1 + * Contact: dev@nifi.apache.org + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +namespace NiFi.Swagger.Model +{ + using System; + using System.Collections.Generic; + using System.ComponentModel.DataAnnotations; + using System.Runtime.Serialization; + using System.Text; + + using Newtonsoft.Json; + + /// + /// NodeProcessGroupStatusSnapshotDTO + /// + [DataContract] + public partial class NodeProcessGroupStatusSnapshotDTO : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// The unique ID that identifies the node. + /// The API address of the node. + /// The API port used to communicate with the node. + /// The process group status snapshot from the node.. + public NodeProcessGroupStatusSnapshotDTO(string nodeId = default(string), string address = default(string), int? apiPort = default(int?), ProcessGroupStatusSnapshotDTO statusSnapshot = default(ProcessGroupStatusSnapshotDTO)) + { + this.NodeId = nodeId; + this.Address = address; + this.ApiPort = apiPort; + this.StatusSnapshot = statusSnapshot; + } + + /// + /// The unique ID that identifies the node + /// + /// The unique ID that identifies the node + [DataMember(Name="nodeId", EmitDefaultValue=false)] + public string NodeId { get; set; } + + /// + /// The API address of the node + /// + /// The API address of the node + [DataMember(Name="address", EmitDefaultValue=false)] + public string Address { get; set; } + + /// + /// The API port used to communicate with the node + /// + /// The API port used to communicate with the node + [DataMember(Name="apiPort", EmitDefaultValue=false)] + public int? ApiPort { get; set; } + + /// + /// The process group status snapshot from the node. + /// + /// The process group status snapshot from the node. + [DataMember(Name="statusSnapshot", EmitDefaultValue=false)] + public ProcessGroupStatusSnapshotDTO StatusSnapshot { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class NodeProcessGroupStatusSnapshotDTO {\n"); + sb.Append(" NodeId: ").Append(this.NodeId).Append("\n"); + sb.Append(" Address: ").Append(this.Address).Append("\n"); + sb.Append(" ApiPort: ").Append(this.ApiPort).Append("\n"); + sb.Append(" StatusSnapshot: ").Append(this.StatusSnapshot).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as NodeProcessGroupStatusSnapshotDTO); + } + + /// + /// Returns true if NodeProcessGroupStatusSnapshotDTO instances are equal + /// + /// Instance of NodeProcessGroupStatusSnapshotDTO to be compared + /// Boolean + public bool Equals(NodeProcessGroupStatusSnapshotDTO input) + { + if (input == null) + return false; + + return + ( + this.NodeId == input.NodeId || + (this.NodeId != null && + this.NodeId.Equals(input.NodeId)) + ) && + ( + this.Address == input.Address || + (this.Address != null && + this.Address.Equals(input.Address)) + ) && + ( + this.ApiPort == input.ApiPort || + (this.ApiPort != null && + this.ApiPort.Equals(input.ApiPort)) + ) && + ( + this.StatusSnapshot == input.StatusSnapshot || + (this.StatusSnapshot != null && + this.StatusSnapshot.Equals(input.StatusSnapshot)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.NodeId != null) + hashCode = hashCode * 59 + this.NodeId.GetHashCode(); + if (this.Address != null) + hashCode = hashCode * 59 + this.Address.GetHashCode(); + if (this.ApiPort != null) + hashCode = hashCode * 59 + this.ApiPort.GetHashCode(); + if (this.StatusSnapshot != null) + hashCode = hashCode * 59 + this.StatusSnapshot.GetHashCode(); + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/NiFi.Swagger/Model/NodeProcessorStatusSnapshotDTO.cs b/NiFi.Swagger/Model/NodeProcessorStatusSnapshotDTO.cs new file mode 100644 index 0000000..1816449 --- /dev/null +++ b/NiFi.Swagger/Model/NodeProcessorStatusSnapshotDTO.cs @@ -0,0 +1,170 @@ +/* + * NiFi Rest Api + * + * The Rest Api provides programmatic access to command and control a NiFi instance in real time. Start and stop processors, monitor queues, query provenance data, and more. Each endpoint below includes a description, definitions of the expected input and output, potential response codes, and the authorizations required to invoke each service. + * + * OpenAPI spec version: 1.9.1 + * Contact: dev@nifi.apache.org + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +namespace NiFi.Swagger.Model +{ + using System; + using System.Collections.Generic; + using System.ComponentModel.DataAnnotations; + using System.Runtime.Serialization; + using System.Text; + + using Newtonsoft.Json; + + /// + /// NodeProcessorStatusSnapshotDTO + /// + [DataContract] + public partial class NodeProcessorStatusSnapshotDTO : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// The unique ID that identifies the node. + /// The API address of the node. + /// The API port used to communicate with the node. + /// The processor status snapshot from the node.. + public NodeProcessorStatusSnapshotDTO(string nodeId = default(string), string address = default(string), int? apiPort = default(int?), ProcessorStatusSnapshotDTO statusSnapshot = default(ProcessorStatusSnapshotDTO)) + { + this.NodeId = nodeId; + this.Address = address; + this.ApiPort = apiPort; + this.StatusSnapshot = statusSnapshot; + } + + /// + /// The unique ID that identifies the node + /// + /// The unique ID that identifies the node + [DataMember(Name="nodeId", EmitDefaultValue=false)] + public string NodeId { get; set; } + + /// + /// The API address of the node + /// + /// The API address of the node + [DataMember(Name="address", EmitDefaultValue=false)] + public string Address { get; set; } + + /// + /// The API port used to communicate with the node + /// + /// The API port used to communicate with the node + [DataMember(Name="apiPort", EmitDefaultValue=false)] + public int? ApiPort { get; set; } + + /// + /// The processor status snapshot from the node. + /// + /// The processor status snapshot from the node. + [DataMember(Name="statusSnapshot", EmitDefaultValue=false)] + public ProcessorStatusSnapshotDTO StatusSnapshot { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class NodeProcessorStatusSnapshotDTO {\n"); + sb.Append(" NodeId: ").Append(this.NodeId).Append("\n"); + sb.Append(" Address: ").Append(this.Address).Append("\n"); + sb.Append(" ApiPort: ").Append(this.ApiPort).Append("\n"); + sb.Append(" StatusSnapshot: ").Append(this.StatusSnapshot).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as NodeProcessorStatusSnapshotDTO); + } + + /// + /// Returns true if NodeProcessorStatusSnapshotDTO instances are equal + /// + /// Instance of NodeProcessorStatusSnapshotDTO to be compared + /// Boolean + public bool Equals(NodeProcessorStatusSnapshotDTO input) + { + if (input == null) + return false; + + return + ( + this.NodeId == input.NodeId || + (this.NodeId != null && + this.NodeId.Equals(input.NodeId)) + ) && + ( + this.Address == input.Address || + (this.Address != null && + this.Address.Equals(input.Address)) + ) && + ( + this.ApiPort == input.ApiPort || + (this.ApiPort != null && + this.ApiPort.Equals(input.ApiPort)) + ) && + ( + this.StatusSnapshot == input.StatusSnapshot || + (this.StatusSnapshot != null && + this.StatusSnapshot.Equals(input.StatusSnapshot)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.NodeId != null) + hashCode = hashCode * 59 + this.NodeId.GetHashCode(); + if (this.Address != null) + hashCode = hashCode * 59 + this.Address.GetHashCode(); + if (this.ApiPort != null) + hashCode = hashCode * 59 + this.ApiPort.GetHashCode(); + if (this.StatusSnapshot != null) + hashCode = hashCode * 59 + this.StatusSnapshot.GetHashCode(); + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/NiFi.Swagger/Model/NodeRemoteProcessGroupStatusSnapshotDTO.cs b/NiFi.Swagger/Model/NodeRemoteProcessGroupStatusSnapshotDTO.cs new file mode 100644 index 0000000..0ab2f8c --- /dev/null +++ b/NiFi.Swagger/Model/NodeRemoteProcessGroupStatusSnapshotDTO.cs @@ -0,0 +1,170 @@ +/* + * NiFi Rest Api + * + * The Rest Api provides programmatic access to command and control a NiFi instance in real time. Start and stop processors, monitor queues, query provenance data, and more. Each endpoint below includes a description, definitions of the expected input and output, potential response codes, and the authorizations required to invoke each service. + * + * OpenAPI spec version: 1.9.1 + * Contact: dev@nifi.apache.org + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +namespace NiFi.Swagger.Model +{ + using System; + using System.Collections.Generic; + using System.ComponentModel.DataAnnotations; + using System.Runtime.Serialization; + using System.Text; + + using Newtonsoft.Json; + + /// + /// NodeRemoteProcessGroupStatusSnapshotDTO + /// + [DataContract] + public partial class NodeRemoteProcessGroupStatusSnapshotDTO : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// The unique ID that identifies the node. + /// The API address of the node. + /// The API port used to communicate with the node. + /// The remote process group status snapshot from the node.. + public NodeRemoteProcessGroupStatusSnapshotDTO(string nodeId = default(string), string address = default(string), int? apiPort = default(int?), RemoteProcessGroupStatusSnapshotDTO statusSnapshot = default(RemoteProcessGroupStatusSnapshotDTO)) + { + this.NodeId = nodeId; + this.Address = address; + this.ApiPort = apiPort; + this.StatusSnapshot = statusSnapshot; + } + + /// + /// The unique ID that identifies the node + /// + /// The unique ID that identifies the node + [DataMember(Name="nodeId", EmitDefaultValue=false)] + public string NodeId { get; set; } + + /// + /// The API address of the node + /// + /// The API address of the node + [DataMember(Name="address", EmitDefaultValue=false)] + public string Address { get; set; } + + /// + /// The API port used to communicate with the node + /// + /// The API port used to communicate with the node + [DataMember(Name="apiPort", EmitDefaultValue=false)] + public int? ApiPort { get; set; } + + /// + /// The remote process group status snapshot from the node. + /// + /// The remote process group status snapshot from the node. + [DataMember(Name="statusSnapshot", EmitDefaultValue=false)] + public RemoteProcessGroupStatusSnapshotDTO StatusSnapshot { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class NodeRemoteProcessGroupStatusSnapshotDTO {\n"); + sb.Append(" NodeId: ").Append(this.NodeId).Append("\n"); + sb.Append(" Address: ").Append(this.Address).Append("\n"); + sb.Append(" ApiPort: ").Append(this.ApiPort).Append("\n"); + sb.Append(" StatusSnapshot: ").Append(this.StatusSnapshot).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as NodeRemoteProcessGroupStatusSnapshotDTO); + } + + /// + /// Returns true if NodeRemoteProcessGroupStatusSnapshotDTO instances are equal + /// + /// Instance of NodeRemoteProcessGroupStatusSnapshotDTO to be compared + /// Boolean + public bool Equals(NodeRemoteProcessGroupStatusSnapshotDTO input) + { + if (input == null) + return false; + + return + ( + this.NodeId == input.NodeId || + (this.NodeId != null && + this.NodeId.Equals(input.NodeId)) + ) && + ( + this.Address == input.Address || + (this.Address != null && + this.Address.Equals(input.Address)) + ) && + ( + this.ApiPort == input.ApiPort || + (this.ApiPort != null && + this.ApiPort.Equals(input.ApiPort)) + ) && + ( + this.StatusSnapshot == input.StatusSnapshot || + (this.StatusSnapshot != null && + this.StatusSnapshot.Equals(input.StatusSnapshot)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.NodeId != null) + hashCode = hashCode * 59 + this.NodeId.GetHashCode(); + if (this.Address != null) + hashCode = hashCode * 59 + this.Address.GetHashCode(); + if (this.ApiPort != null) + hashCode = hashCode * 59 + this.ApiPort.GetHashCode(); + if (this.StatusSnapshot != null) + hashCode = hashCode * 59 + this.StatusSnapshot.GetHashCode(); + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/NiFi.Swagger/Model/NodeSearchResultDTO.cs b/NiFi.Swagger/Model/NodeSearchResultDTO.cs new file mode 100644 index 0000000..8e87652 --- /dev/null +++ b/NiFi.Swagger/Model/NodeSearchResultDTO.cs @@ -0,0 +1,136 @@ +/* + * NiFi Rest Api + * + * The Rest Api provides programmatic access to command and control a NiFi instance in real time. Start and stop processors, monitor queues, query provenance data, and more. Each endpoint below includes a description, definitions of the expected input and output, potential response codes, and the authorizations required to invoke each service. + * + * OpenAPI spec version: 1.9.1 + * Contact: dev@nifi.apache.org + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +namespace NiFi.Swagger.Model +{ + using System; + using System.Collections.Generic; + using System.ComponentModel.DataAnnotations; + using System.Runtime.Serialization; + using System.Text; + + using Newtonsoft.Json; + + /// + /// NodeSearchResultDTO + /// + [DataContract] + public partial class NodeSearchResultDTO : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// The id of the node that matched the search.. + /// The address of the node that matched the search.. + public NodeSearchResultDTO(string id = default(string), string address = default(string)) + { + this.Id = id; + this.Address = address; + } + + /// + /// The id of the node that matched the search. + /// + /// The id of the node that matched the search. + [DataMember(Name="id", EmitDefaultValue=false)] + public string Id { get; set; } + + /// + /// The address of the node that matched the search. + /// + /// The address of the node that matched the search. + [DataMember(Name="address", EmitDefaultValue=false)] + public string Address { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class NodeSearchResultDTO {\n"); + sb.Append(" Id: ").Append(this.Id).Append("\n"); + sb.Append(" Address: ").Append(this.Address).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as NodeSearchResultDTO); + } + + /// + /// Returns true if NodeSearchResultDTO instances are equal + /// + /// Instance of NodeSearchResultDTO to be compared + /// Boolean + public bool Equals(NodeSearchResultDTO input) + { + if (input == null) + return false; + + return + ( + this.Id == input.Id || + (this.Id != null && + this.Id.Equals(input.Id)) + ) && + ( + this.Address == input.Address || + (this.Address != null && + this.Address.Equals(input.Address)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Id != null) + hashCode = hashCode * 59 + this.Id.GetHashCode(); + if (this.Address != null) + hashCode = hashCode * 59 + this.Address.GetHashCode(); + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/NiFi.Swagger/Model/NodeStatusSnapshotsDTO.cs b/NiFi.Swagger/Model/NodeStatusSnapshotsDTO.cs new file mode 100644 index 0000000..981098e --- /dev/null +++ b/NiFi.Swagger/Model/NodeStatusSnapshotsDTO.cs @@ -0,0 +1,171 @@ +/* + * NiFi Rest Api + * + * The Rest Api provides programmatic access to command and control a NiFi instance in real time. Start and stop processors, monitor queues, query provenance data, and more. Each endpoint below includes a description, definitions of the expected input and output, potential response codes, and the authorizations required to invoke each service. + * + * OpenAPI spec version: 1.9.1 + * Contact: dev@nifi.apache.org + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +namespace NiFi.Swagger.Model +{ + using System; + using System.Collections.Generic; + using System.ComponentModel.DataAnnotations; + using System.Linq; + using System.Runtime.Serialization; + using System.Text; + + using Newtonsoft.Json; + + /// + /// NodeStatusSnapshotsDTO + /// + [DataContract] + public partial class NodeStatusSnapshotsDTO : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// The id of the node.. + /// The node's host/ip address.. + /// The port the node is listening for API requests.. + /// A list of StatusSnapshotDTO objects that provide the actual metric values for the component for this node.. + public NodeStatusSnapshotsDTO(string nodeId = default(string), string address = default(string), int? apiPort = default(int?), List statusSnapshots = default(List)) + { + this.NodeId = nodeId; + this.Address = address; + this.ApiPort = apiPort; + this.StatusSnapshots = statusSnapshots; + } + + /// + /// The id of the node. + /// + /// The id of the node. + [DataMember(Name="nodeId", EmitDefaultValue=false)] + public string NodeId { get; set; } + + /// + /// The node's host/ip address. + /// + /// The node's host/ip address. + [DataMember(Name="address", EmitDefaultValue=false)] + public string Address { get; set; } + + /// + /// The port the node is listening for API requests. + /// + /// The port the node is listening for API requests. + [DataMember(Name="apiPort", EmitDefaultValue=false)] + public int? ApiPort { get; set; } + + /// + /// A list of StatusSnapshotDTO objects that provide the actual metric values for the component for this node. + /// + /// A list of StatusSnapshotDTO objects that provide the actual metric values for the component for this node. + [DataMember(Name="statusSnapshots", EmitDefaultValue=false)] + public List StatusSnapshots { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class NodeStatusSnapshotsDTO {\n"); + sb.Append(" NodeId: ").Append(this.NodeId).Append("\n"); + sb.Append(" Address: ").Append(this.Address).Append("\n"); + sb.Append(" ApiPort: ").Append(this.ApiPort).Append("\n"); + sb.Append(" StatusSnapshots: ").Append(this.StatusSnapshots).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as NodeStatusSnapshotsDTO); + } + + /// + /// Returns true if NodeStatusSnapshotsDTO instances are equal + /// + /// Instance of NodeStatusSnapshotsDTO to be compared + /// Boolean + public bool Equals(NodeStatusSnapshotsDTO input) + { + if (input == null) + return false; + + return + ( + this.NodeId == input.NodeId || + (this.NodeId != null && + this.NodeId.Equals(input.NodeId)) + ) && + ( + this.Address == input.Address || + (this.Address != null && + this.Address.Equals(input.Address)) + ) && + ( + this.ApiPort == input.ApiPort || + (this.ApiPort != null && + this.ApiPort.Equals(input.ApiPort)) + ) && + ( + this.StatusSnapshots == input.StatusSnapshots || + this.StatusSnapshots != null && + this.StatusSnapshots.SequenceEqual(input.StatusSnapshots) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.NodeId != null) + hashCode = hashCode * 59 + this.NodeId.GetHashCode(); + if (this.Address != null) + hashCode = hashCode * 59 + this.Address.GetHashCode(); + if (this.ApiPort != null) + hashCode = hashCode * 59 + this.ApiPort.GetHashCode(); + if (this.StatusSnapshots != null) + hashCode = hashCode * 59 + this.StatusSnapshots.GetHashCode(); + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/NiFi.Swagger/Model/NodeSystemDiagnosticsSnapshotDTO.cs b/NiFi.Swagger/Model/NodeSystemDiagnosticsSnapshotDTO.cs new file mode 100644 index 0000000..70c64ef --- /dev/null +++ b/NiFi.Swagger/Model/NodeSystemDiagnosticsSnapshotDTO.cs @@ -0,0 +1,170 @@ +/* + * NiFi Rest Api + * + * The Rest Api provides programmatic access to command and control a NiFi instance in real time. Start and stop processors, monitor queues, query provenance data, and more. Each endpoint below includes a description, definitions of the expected input and output, potential response codes, and the authorizations required to invoke each service. + * + * OpenAPI spec version: 1.9.1 + * Contact: dev@nifi.apache.org + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +namespace NiFi.Swagger.Model +{ + using System; + using System.Collections.Generic; + using System.ComponentModel.DataAnnotations; + using System.Runtime.Serialization; + using System.Text; + + using Newtonsoft.Json; + + /// + /// NodeSystemDiagnosticsSnapshotDTO + /// + [DataContract] + public partial class NodeSystemDiagnosticsSnapshotDTO : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// The unique ID that identifies the node. + /// The API address of the node. + /// The API port used to communicate with the node. + /// The System Diagnostics snapshot from the node.. + public NodeSystemDiagnosticsSnapshotDTO(string nodeId = default(string), string address = default(string), int? apiPort = default(int?), SystemDiagnosticsSnapshotDTO snapshot = default(SystemDiagnosticsSnapshotDTO)) + { + this.NodeId = nodeId; + this.Address = address; + this.ApiPort = apiPort; + this.Snapshot = snapshot; + } + + /// + /// The unique ID that identifies the node + /// + /// The unique ID that identifies the node + [DataMember(Name="nodeId", EmitDefaultValue=false)] + public string NodeId { get; set; } + + /// + /// The API address of the node + /// + /// The API address of the node + [DataMember(Name="address", EmitDefaultValue=false)] + public string Address { get; set; } + + /// + /// The API port used to communicate with the node + /// + /// The API port used to communicate with the node + [DataMember(Name="apiPort", EmitDefaultValue=false)] + public int? ApiPort { get; set; } + + /// + /// The System Diagnostics snapshot from the node. + /// + /// The System Diagnostics snapshot from the node. + [DataMember(Name="snapshot", EmitDefaultValue=false)] + public SystemDiagnosticsSnapshotDTO Snapshot { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class NodeSystemDiagnosticsSnapshotDTO {\n"); + sb.Append(" NodeId: ").Append(this.NodeId).Append("\n"); + sb.Append(" Address: ").Append(this.Address).Append("\n"); + sb.Append(" ApiPort: ").Append(this.ApiPort).Append("\n"); + sb.Append(" Snapshot: ").Append(this.Snapshot).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as NodeSystemDiagnosticsSnapshotDTO); + } + + /// + /// Returns true if NodeSystemDiagnosticsSnapshotDTO instances are equal + /// + /// Instance of NodeSystemDiagnosticsSnapshotDTO to be compared + /// Boolean + public bool Equals(NodeSystemDiagnosticsSnapshotDTO input) + { + if (input == null) + return false; + + return + ( + this.NodeId == input.NodeId || + (this.NodeId != null && + this.NodeId.Equals(input.NodeId)) + ) && + ( + this.Address == input.Address || + (this.Address != null && + this.Address.Equals(input.Address)) + ) && + ( + this.ApiPort == input.ApiPort || + (this.ApiPort != null && + this.ApiPort.Equals(input.ApiPort)) + ) && + ( + this.Snapshot == input.Snapshot || + (this.Snapshot != null && + this.Snapshot.Equals(input.Snapshot)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.NodeId != null) + hashCode = hashCode * 59 + this.NodeId.GetHashCode(); + if (this.Address != null) + hashCode = hashCode * 59 + this.Address.GetHashCode(); + if (this.ApiPort != null) + hashCode = hashCode * 59 + this.ApiPort.GetHashCode(); + if (this.Snapshot != null) + hashCode = hashCode * 59 + this.Snapshot.GetHashCode(); + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/NiFi.Swagger/Model/OutputPortsEntity.cs b/NiFi.Swagger/Model/OutputPortsEntity.cs new file mode 100644 index 0000000..4f418ac --- /dev/null +++ b/NiFi.Swagger/Model/OutputPortsEntity.cs @@ -0,0 +1,119 @@ +/* + * NiFi Rest Api + * + * The Rest Api provides programmatic access to command and control a NiFi instance in real time. Start and stop processors, monitor queues, query provenance data, and more. Each endpoint below includes a description, definitions of the expected input and output, potential response codes, and the authorizations required to invoke each service. + * + * OpenAPI spec version: 1.9.1 + * Contact: dev@nifi.apache.org + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +namespace NiFi.Swagger.Model +{ + using System; + using System.Collections.Generic; + using System.ComponentModel.DataAnnotations; + using System.Linq; + using System.Runtime.Serialization; + using System.Text; + + using Newtonsoft.Json; + + /// + /// OutputPortsEntity + /// + [DataContract] + public partial class OutputPortsEntity : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// outputPorts. + public OutputPortsEntity(List outputPorts = default(List)) + { + this.OutputPorts = outputPorts; + } + + /// + /// Gets or Sets OutputPorts + /// + [DataMember(Name="outputPorts", EmitDefaultValue=false)] + public List OutputPorts { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class OutputPortsEntity {\n"); + sb.Append(" OutputPorts: ").Append(this.OutputPorts).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as OutputPortsEntity); + } + + /// + /// Returns true if OutputPortsEntity instances are equal + /// + /// Instance of OutputPortsEntity to be compared + /// Boolean + public bool Equals(OutputPortsEntity input) + { + if (input == null) + return false; + + return + ( + this.OutputPorts == input.OutputPorts || + this.OutputPorts != null && + this.OutputPorts.SequenceEqual(input.OutputPorts) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.OutputPorts != null) + hashCode = hashCode * 59 + this.OutputPorts.GetHashCode(); + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/NiFi.Swagger/Model/PeerDTO.cs b/NiFi.Swagger/Model/PeerDTO.cs new file mode 100644 index 0000000..98f5787 --- /dev/null +++ b/NiFi.Swagger/Model/PeerDTO.cs @@ -0,0 +1,170 @@ +/* + * NiFi Rest Api + * + * The Rest Api provides programmatic access to command and control a NiFi instance in real time. Start and stop processors, monitor queues, query provenance data, and more. Each endpoint below includes a description, definitions of the expected input and output, potential response codes, and the authorizations required to invoke each service. + * + * OpenAPI spec version: 1.9.1 + * Contact: dev@nifi.apache.org + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +namespace NiFi.Swagger.Model +{ + using System; + using System.Collections.Generic; + using System.ComponentModel.DataAnnotations; + using System.Runtime.Serialization; + using System.Text; + + using Newtonsoft.Json; + + /// + /// PeerDTO + /// + [DataContract] + public partial class PeerDTO : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// The hostname of this peer.. + /// The port number of this peer.. + /// Returns if this peer connection is secure.. + /// The number of flowFiles this peer holds.. + public PeerDTO(string hostname = default(string), int? port = default(int?), bool? secure = default(bool?), int? flowFileCount = default(int?)) + { + this.Hostname = hostname; + this.Port = port; + this.Secure = secure; + this.FlowFileCount = flowFileCount; + } + + /// + /// The hostname of this peer. + /// + /// The hostname of this peer. + [DataMember(Name="hostname", EmitDefaultValue=false)] + public string Hostname { get; set; } + + /// + /// The port number of this peer. + /// + /// The port number of this peer. + [DataMember(Name="port", EmitDefaultValue=false)] + public int? Port { get; set; } + + /// + /// Returns if this peer connection is secure. + /// + /// Returns if this peer connection is secure. + [DataMember(Name="secure", EmitDefaultValue=false)] + public bool? Secure { get; set; } + + /// + /// The number of flowFiles this peer holds. + /// + /// The number of flowFiles this peer holds. + [DataMember(Name="flowFileCount", EmitDefaultValue=false)] + public int? FlowFileCount { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class PeerDTO {\n"); + sb.Append(" Hostname: ").Append(this.Hostname).Append("\n"); + sb.Append(" Port: ").Append(this.Port).Append("\n"); + sb.Append(" Secure: ").Append(this.Secure).Append("\n"); + sb.Append(" FlowFileCount: ").Append(this.FlowFileCount).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as PeerDTO); + } + + /// + /// Returns true if PeerDTO instances are equal + /// + /// Instance of PeerDTO to be compared + /// Boolean + public bool Equals(PeerDTO input) + { + if (input == null) + return false; + + return + ( + this.Hostname == input.Hostname || + (this.Hostname != null && + this.Hostname.Equals(input.Hostname)) + ) && + ( + this.Port == input.Port || + (this.Port != null && + this.Port.Equals(input.Port)) + ) && + ( + this.Secure == input.Secure || + (this.Secure != null && + this.Secure.Equals(input.Secure)) + ) && + ( + this.FlowFileCount == input.FlowFileCount || + (this.FlowFileCount != null && + this.FlowFileCount.Equals(input.FlowFileCount)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Hostname != null) + hashCode = hashCode * 59 + this.Hostname.GetHashCode(); + if (this.Port != null) + hashCode = hashCode * 59 + this.Port.GetHashCode(); + if (this.Secure != null) + hashCode = hashCode * 59 + this.Secure.GetHashCode(); + if (this.FlowFileCount != null) + hashCode = hashCode * 59 + this.FlowFileCount.GetHashCode(); + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/NiFi.Swagger/Model/PeersEntity.cs b/NiFi.Swagger/Model/PeersEntity.cs new file mode 100644 index 0000000..b6fbbd4 --- /dev/null +++ b/NiFi.Swagger/Model/PeersEntity.cs @@ -0,0 +1,119 @@ +/* + * NiFi Rest Api + * + * The Rest Api provides programmatic access to command and control a NiFi instance in real time. Start and stop processors, monitor queues, query provenance data, and more. Each endpoint below includes a description, definitions of the expected input and output, potential response codes, and the authorizations required to invoke each service. + * + * OpenAPI spec version: 1.9.1 + * Contact: dev@nifi.apache.org + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +namespace NiFi.Swagger.Model +{ + using System; + using System.Collections.Generic; + using System.ComponentModel.DataAnnotations; + using System.Linq; + using System.Runtime.Serialization; + using System.Text; + + using Newtonsoft.Json; + + /// + /// PeersEntity + /// + [DataContract] + public partial class PeersEntity : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// peers. + public PeersEntity(List peers = default(List)) + { + this.Peers = peers; + } + + /// + /// Gets or Sets Peers + /// + [DataMember(Name="peers", EmitDefaultValue=false)] + public List Peers { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class PeersEntity {\n"); + sb.Append(" Peers: ").Append(this.Peers).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as PeersEntity); + } + + /// + /// Returns true if PeersEntity instances are equal + /// + /// Instance of PeersEntity to be compared + /// Boolean + public bool Equals(PeersEntity input) + { + if (input == null) + return false; + + return + ( + this.Peers == input.Peers || + this.Peers != null && + this.Peers.SequenceEqual(input.Peers) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Peers != null) + hashCode = hashCode * 59 + this.Peers.GetHashCode(); + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/NiFi.Swagger/Model/Permissions.cs b/NiFi.Swagger/Model/Permissions.cs new file mode 100644 index 0000000..ff9db98 --- /dev/null +++ b/NiFi.Swagger/Model/Permissions.cs @@ -0,0 +1,148 @@ +/* + * NiFi Rest Api + * + * The Rest Api provides programmatic access to command and control a NiFi instance in real time. Start and stop processors, monitor queues, query provenance data, and more. Each endpoint below includes a description, definitions of the expected input and output, potential response codes, and the authorizations required to invoke each service. + * + * OpenAPI spec version: 1.9.1 + * Contact: dev@nifi.apache.org + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +namespace NiFi.Swagger.Model +{ + using System; + using System.Collections.Generic; + using System.ComponentModel.DataAnnotations; + using System.Runtime.Serialization; + using System.Text; + + using Newtonsoft.Json; + + /// + /// Permissions + /// + [DataContract] + public partial class Permissions : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructor] + public Permissions() + { + } + + /// + /// Indicates whether the user can read a given resource. + /// + /// Indicates whether the user can read a given resource. + [DataMember(Name="canRead", EmitDefaultValue=false)] + public bool? CanRead { get; private set; } + + /// + /// Indicates whether the user can write a given resource. + /// + /// Indicates whether the user can write a given resource. + [DataMember(Name="canWrite", EmitDefaultValue=false)] + public bool? CanWrite { get; private set; } + + /// + /// Indicates whether the user can delete a given resource. + /// + /// Indicates whether the user can delete a given resource. + [DataMember(Name="canDelete", EmitDefaultValue=false)] + public bool? CanDelete { get; private set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class Permissions {\n"); + sb.Append(" CanRead: ").Append(this.CanRead).Append("\n"); + sb.Append(" CanWrite: ").Append(this.CanWrite).Append("\n"); + sb.Append(" CanDelete: ").Append(this.CanDelete).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as Permissions); + } + + /// + /// Returns true if Permissions instances are equal + /// + /// Instance of Permissions to be compared + /// Boolean + public bool Equals(Permissions input) + { + if (input == null) + return false; + + return + ( + this.CanRead == input.CanRead || + (this.CanRead != null && + this.CanRead.Equals(input.CanRead)) + ) && + ( + this.CanWrite == input.CanWrite || + (this.CanWrite != null && + this.CanWrite.Equals(input.CanWrite)) + ) && + ( + this.CanDelete == input.CanDelete || + (this.CanDelete != null && + this.CanDelete.Equals(input.CanDelete)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.CanRead != null) + hashCode = hashCode * 59 + this.CanRead.GetHashCode(); + if (this.CanWrite != null) + hashCode = hashCode * 59 + this.CanWrite.GetHashCode(); + if (this.CanDelete != null) + hashCode = hashCode * 59 + this.CanDelete.GetHashCode(); + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/NiFi.Swagger/Model/PermissionsDTO.cs b/NiFi.Swagger/Model/PermissionsDTO.cs new file mode 100644 index 0000000..3ea23e5 --- /dev/null +++ b/NiFi.Swagger/Model/PermissionsDTO.cs @@ -0,0 +1,133 @@ +/* + * NiFi Rest Api + * + * The Rest Api provides programmatic access to command and control a NiFi instance in real time. Start and stop processors, monitor queues, query provenance data, and more. Each endpoint below includes a description, definitions of the expected input and output, potential response codes, and the authorizations required to invoke each service. + * + * OpenAPI spec version: 1.9.1 + * Contact: dev@nifi.apache.org + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +namespace NiFi.Swagger.Model +{ + using System; + using System.Collections.Generic; + using System.ComponentModel.DataAnnotations; + using System.Runtime.Serialization; + using System.Text; + + using Newtonsoft.Json; + + /// + /// PermissionsDTO + /// + [DataContract] + public partial class PermissionsDTO : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructor] + public PermissionsDTO() + { + } + + /// + /// Indicates whether the user can read a given resource. + /// + /// Indicates whether the user can read a given resource. + [DataMember(Name="canRead", EmitDefaultValue=false)] + public bool? CanRead { get; private set; } + + /// + /// Indicates whether the user can write a given resource. + /// + /// Indicates whether the user can write a given resource. + [DataMember(Name="canWrite", EmitDefaultValue=false)] + public bool? CanWrite { get; private set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class PermissionsDTO {\n"); + sb.Append(" CanRead: ").Append(this.CanRead).Append("\n"); + sb.Append(" CanWrite: ").Append(this.CanWrite).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as PermissionsDTO); + } + + /// + /// Returns true if PermissionsDTO instances are equal + /// + /// Instance of PermissionsDTO to be compared + /// Boolean + public bool Equals(PermissionsDTO input) + { + if (input == null) + return false; + + return + ( + this.CanRead == input.CanRead || + (this.CanRead != null && + this.CanRead.Equals(input.CanRead)) + ) && + ( + this.CanWrite == input.CanWrite || + (this.CanWrite != null && + this.CanWrite.Equals(input.CanWrite)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.CanRead != null) + hashCode = hashCode * 59 + this.CanRead.GetHashCode(); + if (this.CanWrite != null) + hashCode = hashCode * 59 + this.CanWrite.GetHashCode(); + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/NiFi.Swagger/Model/PortDTO.cs b/NiFi.Swagger/Model/PortDTO.cs new file mode 100644 index 0000000..8c50eff --- /dev/null +++ b/NiFi.Swagger/Model/PortDTO.cs @@ -0,0 +1,373 @@ +/* + * NiFi Rest Api + * + * The Rest Api provides programmatic access to command and control a NiFi instance in real time. Start and stop processors, monitor queues, query provenance data, and more. Each endpoint below includes a description, definitions of the expected input and output, potential response codes, and the authorizations required to invoke each service. + * + * OpenAPI spec version: 1.9.1 + * Contact: dev@nifi.apache.org + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +namespace NiFi.Swagger.Model +{ + using System; + using System.Collections.Generic; + using System.ComponentModel.DataAnnotations; + using System.Linq; + using System.Runtime.Serialization; + using System.Text; + + using Newtonsoft.Json; + using Newtonsoft.Json.Converters; + + /// + /// PortDTO + /// + [DataContract] + public partial class PortDTO : IEquatable, IValidatableObject + { + /// + /// The state of the port. + /// + /// The state of the port. + [JsonConverter(typeof(StringEnumConverter))] + public enum StateEnum + { + + /// + /// Enum RUNNING for value: RUNNING + /// + [EnumMember(Value = "RUNNING")] + RUNNING = 1, + + /// + /// Enum STOPPED for value: STOPPED + /// + [EnumMember(Value = "STOPPED")] + STOPPED = 2, + + /// + /// Enum DISABLED for value: DISABLED + /// + [EnumMember(Value = "DISABLED")] + DISABLED = 3 + } + + /// + /// The state of the port. + /// + /// The state of the port. + [DataMember(Name="state", EmitDefaultValue=false)] + public StateEnum? State { get; set; } + /// + /// The type of port. + /// + /// The type of port. + [JsonConverter(typeof(StringEnumConverter))] + public enum TypeEnum + { + + /// + /// Enum INPUTPORT for value: INPUT_PORT + /// + [EnumMember(Value = "INPUT_PORT")] + INPUTPORT = 1, + + /// + /// Enum OUTPUTPORT for value: OUTPUT_PORT + /// + [EnumMember(Value = "OUTPUT_PORT")] + OUTPUTPORT = 2 + } + + /// + /// The type of port. + /// + /// The type of port. + [DataMember(Name="type", EmitDefaultValue=false)] + public TypeEnum? Type { get; set; } + /// + /// Initializes a new instance of the class. + /// + /// The id of the component.. + /// The ID of the corresponding component that is under version control. + /// The id of parent process group of this component if applicable.. + /// The position of this component in the UI if applicable.. + /// The name of the port.. + /// The comments for the port.. + /// The state of the port.. + /// The type of port.. + /// Whether the port has incoming or output connections to a remote NiFi. This is only applicable when the port is running in the root group.. + /// The number of tasks that should be concurrently scheduled for the port.. + /// The users that are allowed to access the port.. + /// The user groups that are allowed to access the port.. + /// Gets the validation errors from this port. These validation errors represent the problems with the port that must be resolved before it can be started.. + public PortDTO(string id = default(string), string versionedComponentId = default(string), string parentGroupId = default(string), PositionDTO position = default(PositionDTO), string name = default(string), string comments = default(string), StateEnum? state = default(StateEnum?), TypeEnum? type = default(TypeEnum?), bool? transmitting = default(bool?), int? concurrentlySchedulableTaskCount = default(int?), List userAccessControl = default(List), List groupAccessControl = default(List), List validationErrors = default(List)) + { + this.Id = id; + this.VersionedComponentId = versionedComponentId; + this.ParentGroupId = parentGroupId; + this.Position = position; + this.Name = name; + this.Comments = comments; + this.State = state; + this.Type = type; + this.Transmitting = transmitting; + this.ConcurrentlySchedulableTaskCount = concurrentlySchedulableTaskCount; + this.UserAccessControl = userAccessControl; + this.GroupAccessControl = groupAccessControl; + this.ValidationErrors = validationErrors; + } + + /// + /// The id of the component. + /// + /// The id of the component. + [DataMember(Name="id", EmitDefaultValue=false)] + public string Id { get; set; } + + /// + /// The ID of the corresponding component that is under version control + /// + /// The ID of the corresponding component that is under version control + [DataMember(Name="versionedComponentId", EmitDefaultValue=false)] + public string VersionedComponentId { get; set; } + + /// + /// The id of parent process group of this component if applicable. + /// + /// The id of parent process group of this component if applicable. + [DataMember(Name="parentGroupId", EmitDefaultValue=false)] + public string ParentGroupId { get; set; } + + /// + /// The position of this component in the UI if applicable. + /// + /// The position of this component in the UI if applicable. + [DataMember(Name="position", EmitDefaultValue=false)] + public PositionDTO Position { get; set; } + + /// + /// The name of the port. + /// + /// The name of the port. + [DataMember(Name="name", EmitDefaultValue=false)] + public string Name { get; set; } + + /// + /// The comments for the port. + /// + /// The comments for the port. + [DataMember(Name="comments", EmitDefaultValue=false)] + public string Comments { get; set; } + + + + /// + /// Whether the port has incoming or output connections to a remote NiFi. This is only applicable when the port is running in the root group. + /// + /// Whether the port has incoming or output connections to a remote NiFi. This is only applicable when the port is running in the root group. + [DataMember(Name="transmitting", EmitDefaultValue=false)] + public bool? Transmitting { get; set; } + + /// + /// The number of tasks that should be concurrently scheduled for the port. + /// + /// The number of tasks that should be concurrently scheduled for the port. + [DataMember(Name="concurrentlySchedulableTaskCount", EmitDefaultValue=false)] + public int? ConcurrentlySchedulableTaskCount { get; set; } + + /// + /// The users that are allowed to access the port. + /// + /// The users that are allowed to access the port. + [DataMember(Name="userAccessControl", EmitDefaultValue=false)] + public List UserAccessControl { get; set; } + + /// + /// The user groups that are allowed to access the port. + /// + /// The user groups that are allowed to access the port. + [DataMember(Name="groupAccessControl", EmitDefaultValue=false)] + public List GroupAccessControl { get; set; } + + /// + /// Gets the validation errors from this port. These validation errors represent the problems with the port that must be resolved before it can be started. + /// + /// Gets the validation errors from this port. These validation errors represent the problems with the port that must be resolved before it can be started. + [DataMember(Name="validationErrors", EmitDefaultValue=false)] + public List ValidationErrors { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class PortDTO {\n"); + sb.Append(" Id: ").Append(this.Id).Append("\n"); + sb.Append(" VersionedComponentId: ").Append(this.VersionedComponentId).Append("\n"); + sb.Append(" ParentGroupId: ").Append(this.ParentGroupId).Append("\n"); + sb.Append(" Position: ").Append(this.Position).Append("\n"); + sb.Append(" Name: ").Append(this.Name).Append("\n"); + sb.Append(" Comments: ").Append(this.Comments).Append("\n"); + sb.Append(" State: ").Append(this.State).Append("\n"); + sb.Append(" Type: ").Append(this.Type).Append("\n"); + sb.Append(" Transmitting: ").Append(this.Transmitting).Append("\n"); + sb.Append(" ConcurrentlySchedulableTaskCount: ").Append(this.ConcurrentlySchedulableTaskCount).Append("\n"); + sb.Append(" UserAccessControl: ").Append(this.UserAccessControl).Append("\n"); + sb.Append(" GroupAccessControl: ").Append(this.GroupAccessControl).Append("\n"); + sb.Append(" ValidationErrors: ").Append(this.ValidationErrors).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as PortDTO); + } + + /// + /// Returns true if PortDTO instances are equal + /// + /// Instance of PortDTO to be compared + /// Boolean + public bool Equals(PortDTO input) + { + if (input == null) + return false; + + return + ( + this.Id == input.Id || + (this.Id != null && + this.Id.Equals(input.Id)) + ) && + ( + this.VersionedComponentId == input.VersionedComponentId || + (this.VersionedComponentId != null && + this.VersionedComponentId.Equals(input.VersionedComponentId)) + ) && + ( + this.ParentGroupId == input.ParentGroupId || + (this.ParentGroupId != null && + this.ParentGroupId.Equals(input.ParentGroupId)) + ) && + ( + this.Position == input.Position || + (this.Position != null && + this.Position.Equals(input.Position)) + ) && + ( + this.Name == input.Name || + (this.Name != null && + this.Name.Equals(input.Name)) + ) && + ( + this.Comments == input.Comments || + (this.Comments != null && + this.Comments.Equals(input.Comments)) + ) && + ( + this.State == input.State || + (this.State != null && + this.State.Equals(input.State)) + ) && + ( + this.Type == input.Type || + (this.Type != null && + this.Type.Equals(input.Type)) + ) && + ( + this.Transmitting == input.Transmitting || + (this.Transmitting != null && + this.Transmitting.Equals(input.Transmitting)) + ) && + ( + this.ConcurrentlySchedulableTaskCount == input.ConcurrentlySchedulableTaskCount || + (this.ConcurrentlySchedulableTaskCount != null && + this.ConcurrentlySchedulableTaskCount.Equals(input.ConcurrentlySchedulableTaskCount)) + ) && + ( + this.UserAccessControl == input.UserAccessControl || + this.UserAccessControl != null && + this.UserAccessControl.SequenceEqual(input.UserAccessControl) + ) && + ( + this.GroupAccessControl == input.GroupAccessControl || + this.GroupAccessControl != null && + this.GroupAccessControl.SequenceEqual(input.GroupAccessControl) + ) && + ( + this.ValidationErrors == input.ValidationErrors || + this.ValidationErrors != null && + this.ValidationErrors.SequenceEqual(input.ValidationErrors) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Id != null) + hashCode = hashCode * 59 + this.Id.GetHashCode(); + if (this.VersionedComponentId != null) + hashCode = hashCode * 59 + this.VersionedComponentId.GetHashCode(); + if (this.ParentGroupId != null) + hashCode = hashCode * 59 + this.ParentGroupId.GetHashCode(); + if (this.Position != null) + hashCode = hashCode * 59 + this.Position.GetHashCode(); + if (this.Name != null) + hashCode = hashCode * 59 + this.Name.GetHashCode(); + if (this.Comments != null) + hashCode = hashCode * 59 + this.Comments.GetHashCode(); + if (this.State != null) + hashCode = hashCode * 59 + this.State.GetHashCode(); + if (this.Type != null) + hashCode = hashCode * 59 + this.Type.GetHashCode(); + if (this.Transmitting != null) + hashCode = hashCode * 59 + this.Transmitting.GetHashCode(); + if (this.ConcurrentlySchedulableTaskCount != null) + hashCode = hashCode * 59 + this.ConcurrentlySchedulableTaskCount.GetHashCode(); + if (this.UserAccessControl != null) + hashCode = hashCode * 59 + this.UserAccessControl.GetHashCode(); + if (this.GroupAccessControl != null) + hashCode = hashCode * 59 + this.GroupAccessControl.GetHashCode(); + if (this.ValidationErrors != null) + hashCode = hashCode * 59 + this.ValidationErrors.GetHashCode(); + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/NiFi.Swagger/Model/PortEntity.cs b/NiFi.Swagger/Model/PortEntity.cs new file mode 100644 index 0000000..044bece --- /dev/null +++ b/NiFi.Swagger/Model/PortEntity.cs @@ -0,0 +1,288 @@ +/* + * NiFi Rest Api + * + * The Rest Api provides programmatic access to command and control a NiFi instance in real time. Start and stop processors, monitor queues, query provenance data, and more. Each endpoint below includes a description, definitions of the expected input and output, potential response codes, and the authorizations required to invoke each service. + * + * OpenAPI spec version: 1.9.1 + * Contact: dev@nifi.apache.org + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +namespace NiFi.Swagger.Model +{ + using System; + using System.Collections.Generic; + using System.ComponentModel.DataAnnotations; + using System.Linq; + using System.Runtime.Serialization; + using System.Text; + + using Newtonsoft.Json; + + /// + /// PortEntity + /// + [DataContract] + public partial class PortEntity : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// The revision for this request/response. The revision is required for any mutable flow requests and is included in all responses.. + /// The id of the component.. + /// The URI for futures requests to the component.. + /// The position of this component in the UI if applicable.. + /// The permissions for this component.. + /// The bulletins for this component.. + /// Acknowledges that this node is disconnected to allow for mutable requests to proceed.. + /// component. + /// The status of the port.. + /// portType. + /// The permissions for this component operations.. + public PortEntity(RevisionDTO revision = default(RevisionDTO), string id = default(string), string uri = default(string), PositionDTO position = default(PositionDTO), PermissionsDTO permissions = default(PermissionsDTO), List bulletins = default(List), bool? disconnectedNodeAcknowledged = default(bool?), PortDTO component = default(PortDTO), PortStatusDTO status = default(PortStatusDTO), string portType = default(string), PermissionsDTO operatePermissions = default(PermissionsDTO)) + { + this.Revision = revision; + this.Id = id; + this.Uri = uri; + this.Position = position; + this.Permissions = permissions; + this.Bulletins = bulletins; + this.DisconnectedNodeAcknowledged = disconnectedNodeAcknowledged; + this.Component = component; + this.Status = status; + this.PortType = portType; + this.OperatePermissions = operatePermissions; + } + + /// + /// The revision for this request/response. The revision is required for any mutable flow requests and is included in all responses. + /// + /// The revision for this request/response. The revision is required for any mutable flow requests and is included in all responses. + [DataMember(Name="revision", EmitDefaultValue=false)] + public RevisionDTO Revision { get; set; } + + /// + /// The id of the component. + /// + /// The id of the component. + [DataMember(Name="id", EmitDefaultValue=false)] + public string Id { get; set; } + + /// + /// The URI for futures requests to the component. + /// + /// The URI for futures requests to the component. + [DataMember(Name="uri", EmitDefaultValue=false)] + public string Uri { get; set; } + + /// + /// The position of this component in the UI if applicable. + /// + /// The position of this component in the UI if applicable. + [DataMember(Name="position", EmitDefaultValue=false)] + public PositionDTO Position { get; set; } + + /// + /// The permissions for this component. + /// + /// The permissions for this component. + [DataMember(Name="permissions", EmitDefaultValue=false)] + public PermissionsDTO Permissions { get; set; } + + /// + /// The bulletins for this component. + /// + /// The bulletins for this component. + [DataMember(Name="bulletins", EmitDefaultValue=false)] + public List Bulletins { get; set; } + + /// + /// Acknowledges that this node is disconnected to allow for mutable requests to proceed. + /// + /// Acknowledges that this node is disconnected to allow for mutable requests to proceed. + [DataMember(Name="disconnectedNodeAcknowledged", EmitDefaultValue=false)] + public bool? DisconnectedNodeAcknowledged { get; set; } + + /// + /// Gets or Sets Component + /// + [DataMember(Name="component", EmitDefaultValue=false)] + public PortDTO Component { get; set; } + + /// + /// The status of the port. + /// + /// The status of the port. + [DataMember(Name="status", EmitDefaultValue=false)] + public PortStatusDTO Status { get; set; } + + /// + /// Gets or Sets PortType + /// + [DataMember(Name="portType", EmitDefaultValue=false)] + public string PortType { get; set; } + + /// + /// The permissions for this component operations. + /// + /// The permissions for this component operations. + [DataMember(Name="operatePermissions", EmitDefaultValue=false)] + public PermissionsDTO OperatePermissions { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class PortEntity {\n"); + sb.Append(" Revision: ").Append(this.Revision).Append("\n"); + sb.Append(" Id: ").Append(this.Id).Append("\n"); + sb.Append(" Uri: ").Append(this.Uri).Append("\n"); + sb.Append(" Position: ").Append(this.Position).Append("\n"); + sb.Append(" Permissions: ").Append(this.Permissions).Append("\n"); + sb.Append(" Bulletins: ").Append(this.Bulletins).Append("\n"); + sb.Append(" DisconnectedNodeAcknowledged: ").Append(this.DisconnectedNodeAcknowledged).Append("\n"); + sb.Append(" Component: ").Append(this.Component).Append("\n"); + sb.Append(" Status: ").Append(this.Status).Append("\n"); + sb.Append(" PortType: ").Append(this.PortType).Append("\n"); + sb.Append(" OperatePermissions: ").Append(this.OperatePermissions).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as PortEntity); + } + + /// + /// Returns true if PortEntity instances are equal + /// + /// Instance of PortEntity to be compared + /// Boolean + public bool Equals(PortEntity input) + { + if (input == null) + return false; + + return + ( + this.Revision == input.Revision || + (this.Revision != null && + this.Revision.Equals(input.Revision)) + ) && + ( + this.Id == input.Id || + (this.Id != null && + this.Id.Equals(input.Id)) + ) && + ( + this.Uri == input.Uri || + (this.Uri != null && + this.Uri.Equals(input.Uri)) + ) && + ( + this.Position == input.Position || + (this.Position != null && + this.Position.Equals(input.Position)) + ) && + ( + this.Permissions == input.Permissions || + (this.Permissions != null && + this.Permissions.Equals(input.Permissions)) + ) && + ( + this.Bulletins == input.Bulletins || + this.Bulletins != null && + this.Bulletins.SequenceEqual(input.Bulletins) + ) && + ( + this.DisconnectedNodeAcknowledged == input.DisconnectedNodeAcknowledged || + (this.DisconnectedNodeAcknowledged != null && + this.DisconnectedNodeAcknowledged.Equals(input.DisconnectedNodeAcknowledged)) + ) && + ( + this.Component == input.Component || + (this.Component != null && + this.Component.Equals(input.Component)) + ) && + ( + this.Status == input.Status || + (this.Status != null && + this.Status.Equals(input.Status)) + ) && + ( + this.PortType == input.PortType || + (this.PortType != null && + this.PortType.Equals(input.PortType)) + ) && + ( + this.OperatePermissions == input.OperatePermissions || + (this.OperatePermissions != null && + this.OperatePermissions.Equals(input.OperatePermissions)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Revision != null) + hashCode = hashCode * 59 + this.Revision.GetHashCode(); + if (this.Id != null) + hashCode = hashCode * 59 + this.Id.GetHashCode(); + if (this.Uri != null) + hashCode = hashCode * 59 + this.Uri.GetHashCode(); + if (this.Position != null) + hashCode = hashCode * 59 + this.Position.GetHashCode(); + if (this.Permissions != null) + hashCode = hashCode * 59 + this.Permissions.GetHashCode(); + if (this.Bulletins != null) + hashCode = hashCode * 59 + this.Bulletins.GetHashCode(); + if (this.DisconnectedNodeAcknowledged != null) + hashCode = hashCode * 59 + this.DisconnectedNodeAcknowledged.GetHashCode(); + if (this.Component != null) + hashCode = hashCode * 59 + this.Component.GetHashCode(); + if (this.Status != null) + hashCode = hashCode * 59 + this.Status.GetHashCode(); + if (this.PortType != null) + hashCode = hashCode * 59 + this.PortType.GetHashCode(); + if (this.OperatePermissions != null) + hashCode = hashCode * 59 + this.OperatePermissions.GetHashCode(); + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/NiFi.Swagger/Model/PortRunStatusEntity.cs b/NiFi.Swagger/Model/PortRunStatusEntity.cs new file mode 100644 index 0000000..8b09afe --- /dev/null +++ b/NiFi.Swagger/Model/PortRunStatusEntity.cs @@ -0,0 +1,181 @@ +/* + * NiFi Rest Api + * + * The Rest Api provides programmatic access to command and control a NiFi instance in real time. Start and stop processors, monitor queues, query provenance data, and more. Each endpoint below includes a description, definitions of the expected input and output, potential response codes, and the authorizations required to invoke each service. + * + * OpenAPI spec version: 1.9.1 + * Contact: dev@nifi.apache.org + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +namespace NiFi.Swagger.Model +{ + using System; + using System.Collections.Generic; + using System.ComponentModel.DataAnnotations; + using System.Runtime.Serialization; + using System.Text; + + using Newtonsoft.Json; + using Newtonsoft.Json.Converters; + + /// + /// PortRunStatusEntity + /// + [DataContract] + public partial class PortRunStatusEntity : IEquatable, IValidatableObject + { + /// + /// The run status of the Port. + /// + /// The run status of the Port. + [JsonConverter(typeof(StringEnumConverter))] + public enum StateEnum + { + + /// + /// Enum RUNNING for value: RUNNING + /// + [EnumMember(Value = "RUNNING")] + RUNNING = 1, + + /// + /// Enum STOPPED for value: STOPPED + /// + [EnumMember(Value = "STOPPED")] + STOPPED = 2, + + /// + /// Enum DISABLED for value: DISABLED + /// + [EnumMember(Value = "DISABLED")] + DISABLED = 3 + } + + /// + /// The run status of the Port. + /// + /// The run status of the Port. + [DataMember(Name="state", EmitDefaultValue=false)] + public StateEnum? State { get; set; } + /// + /// Initializes a new instance of the class. + /// + /// The revision for this request/response. The revision is required for any mutable flow requests and is included in all responses.. + /// The run status of the Port.. + /// Acknowledges that this node is disconnected to allow for mutable requests to proceed.. + public PortRunStatusEntity(RevisionDTO revision = default(RevisionDTO), StateEnum? state = default(StateEnum?), bool? disconnectedNodeAcknowledged = default(bool?)) + { + this.Revision = revision; + this.State = state; + this.DisconnectedNodeAcknowledged = disconnectedNodeAcknowledged; + } + + /// + /// The revision for this request/response. The revision is required for any mutable flow requests and is included in all responses. + /// + /// The revision for this request/response. The revision is required for any mutable flow requests and is included in all responses. + [DataMember(Name="revision", EmitDefaultValue=false)] + public RevisionDTO Revision { get; set; } + + + /// + /// Acknowledges that this node is disconnected to allow for mutable requests to proceed. + /// + /// Acknowledges that this node is disconnected to allow for mutable requests to proceed. + [DataMember(Name="disconnectedNodeAcknowledged", EmitDefaultValue=false)] + public bool? DisconnectedNodeAcknowledged { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class PortRunStatusEntity {\n"); + sb.Append(" Revision: ").Append(this.Revision).Append("\n"); + sb.Append(" State: ").Append(this.State).Append("\n"); + sb.Append(" DisconnectedNodeAcknowledged: ").Append(this.DisconnectedNodeAcknowledged).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as PortRunStatusEntity); + } + + /// + /// Returns true if PortRunStatusEntity instances are equal + /// + /// Instance of PortRunStatusEntity to be compared + /// Boolean + public bool Equals(PortRunStatusEntity input) + { + if (input == null) + return false; + + return + ( + this.Revision == input.Revision || + (this.Revision != null && + this.Revision.Equals(input.Revision)) + ) && + ( + this.State == input.State || + (this.State != null && + this.State.Equals(input.State)) + ) && + ( + this.DisconnectedNodeAcknowledged == input.DisconnectedNodeAcknowledged || + (this.DisconnectedNodeAcknowledged != null && + this.DisconnectedNodeAcknowledged.Equals(input.DisconnectedNodeAcknowledged)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Revision != null) + hashCode = hashCode * 59 + this.Revision.GetHashCode(); + if (this.State != null) + hashCode = hashCode * 59 + this.State.GetHashCode(); + if (this.DisconnectedNodeAcknowledged != null) + hashCode = hashCode * 59 + this.DisconnectedNodeAcknowledged.GetHashCode(); + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/NiFi.Swagger/Model/PortStatusDTO.cs b/NiFi.Swagger/Model/PortStatusDTO.cs new file mode 100644 index 0000000..be5037c --- /dev/null +++ b/NiFi.Swagger/Model/PortStatusDTO.cs @@ -0,0 +1,279 @@ +/* + * NiFi Rest Api + * + * The Rest Api provides programmatic access to command and control a NiFi instance in real time. Start and stop processors, monitor queues, query provenance data, and more. Each endpoint below includes a description, definitions of the expected input and output, potential response codes, and the authorizations required to invoke each service. + * + * OpenAPI spec version: 1.9.1 + * Contact: dev@nifi.apache.org + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +namespace NiFi.Swagger.Model +{ + using System; + using System.Collections.Generic; + using System.ComponentModel.DataAnnotations; + using System.Linq; + using System.Runtime.Serialization; + using System.Text; + + using Newtonsoft.Json; + using Newtonsoft.Json.Converters; + + /// + /// PortStatusDTO + /// + [DataContract] + public partial class PortStatusDTO : IEquatable, IValidatableObject + { + /// + /// The run status of the port. + /// + /// The run status of the port. + [JsonConverter(typeof(StringEnumConverter))] + public enum RunStatusEnum + { + + /// + /// Enum Running for value: Running + /// + [EnumMember(Value = "Running")] + Running = 1, + + /// + /// Enum Stopped for value: Stopped + /// + [EnumMember(Value = "Stopped")] + Stopped = 2, + + /// + /// Enum Validating for value: Validating + /// + [EnumMember(Value = "Validating")] + Validating = 3, + + /// + /// Enum Disabled for value: Disabled + /// + [EnumMember(Value = "Disabled")] + Disabled = 4, + + /// + /// Enum Invalid for value: Invalid + /// + [EnumMember(Value = "Invalid")] + Invalid = 5 + } + + /// + /// The run status of the port. + /// + /// The run status of the port. + [DataMember(Name="runStatus", EmitDefaultValue=false)] + public RunStatusEnum? RunStatus { get; set; } + /// + /// Initializes a new instance of the class. + /// + /// The id of the port.. + /// The id of the parent process group of the port.. + /// The name of the port.. + /// Whether the port has incoming or outgoing connections to a remote NiFi.. + /// The run status of the port.. + /// The time the status for the process group was last refreshed.. + /// A status snapshot that represents the aggregate stats of all nodes in the cluster. If the NiFi instance is a standalone instance, rather than a cluster, this represents the stats of the single instance.. + /// A status snapshot for each node in the cluster. If the NiFi instance is a standalone instance, rather than a cluster, this may be null.. + public PortStatusDTO(string id = default(string), string groupId = default(string), string name = default(string), bool? transmitting = default(bool?), RunStatusEnum? runStatus = default(RunStatusEnum?), string statsLastRefreshed = default(string), PortStatusSnapshotDTO aggregateSnapshot = default(PortStatusSnapshotDTO), List nodeSnapshots = default(List)) + { + this.Id = id; + this.GroupId = groupId; + this.Name = name; + this.Transmitting = transmitting; + this.RunStatus = runStatus; + this.StatsLastRefreshed = statsLastRefreshed; + this.AggregateSnapshot = aggregateSnapshot; + this.NodeSnapshots = nodeSnapshots; + } + + /// + /// The id of the port. + /// + /// The id of the port. + [DataMember(Name="id", EmitDefaultValue=false)] + public string Id { get; set; } + + /// + /// The id of the parent process group of the port. + /// + /// The id of the parent process group of the port. + [DataMember(Name="groupId", EmitDefaultValue=false)] + public string GroupId { get; set; } + + /// + /// The name of the port. + /// + /// The name of the port. + [DataMember(Name="name", EmitDefaultValue=false)] + public string Name { get; set; } + + /// + /// Whether the port has incoming or outgoing connections to a remote NiFi. + /// + /// Whether the port has incoming or outgoing connections to a remote NiFi. + [DataMember(Name="transmitting", EmitDefaultValue=false)] + public bool? Transmitting { get; set; } + + + /// + /// The time the status for the process group was last refreshed. + /// + /// The time the status for the process group was last refreshed. + [DataMember(Name="statsLastRefreshed", EmitDefaultValue=false)] + public string StatsLastRefreshed { get; set; } + + /// + /// A status snapshot that represents the aggregate stats of all nodes in the cluster. If the NiFi instance is a standalone instance, rather than a cluster, this represents the stats of the single instance. + /// + /// A status snapshot that represents the aggregate stats of all nodes in the cluster. If the NiFi instance is a standalone instance, rather than a cluster, this represents the stats of the single instance. + [DataMember(Name="aggregateSnapshot", EmitDefaultValue=false)] + public PortStatusSnapshotDTO AggregateSnapshot { get; set; } + + /// + /// A status snapshot for each node in the cluster. If the NiFi instance is a standalone instance, rather than a cluster, this may be null. + /// + /// A status snapshot for each node in the cluster. If the NiFi instance is a standalone instance, rather than a cluster, this may be null. + [DataMember(Name="nodeSnapshots", EmitDefaultValue=false)] + public List NodeSnapshots { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class PortStatusDTO {\n"); + sb.Append(" Id: ").Append(this.Id).Append("\n"); + sb.Append(" GroupId: ").Append(this.GroupId).Append("\n"); + sb.Append(" Name: ").Append(this.Name).Append("\n"); + sb.Append(" Transmitting: ").Append(this.Transmitting).Append("\n"); + sb.Append(" RunStatus: ").Append(this.RunStatus).Append("\n"); + sb.Append(" StatsLastRefreshed: ").Append(this.StatsLastRefreshed).Append("\n"); + sb.Append(" AggregateSnapshot: ").Append(this.AggregateSnapshot).Append("\n"); + sb.Append(" NodeSnapshots: ").Append(this.NodeSnapshots).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as PortStatusDTO); + } + + /// + /// Returns true if PortStatusDTO instances are equal + /// + /// Instance of PortStatusDTO to be compared + /// Boolean + public bool Equals(PortStatusDTO input) + { + if (input == null) + return false; + + return + ( + this.Id == input.Id || + (this.Id != null && + this.Id.Equals(input.Id)) + ) && + ( + this.GroupId == input.GroupId || + (this.GroupId != null && + this.GroupId.Equals(input.GroupId)) + ) && + ( + this.Name == input.Name || + (this.Name != null && + this.Name.Equals(input.Name)) + ) && + ( + this.Transmitting == input.Transmitting || + (this.Transmitting != null && + this.Transmitting.Equals(input.Transmitting)) + ) && + ( + this.RunStatus == input.RunStatus || + (this.RunStatus != null && + this.RunStatus.Equals(input.RunStatus)) + ) && + ( + this.StatsLastRefreshed == input.StatsLastRefreshed || + (this.StatsLastRefreshed != null && + this.StatsLastRefreshed.Equals(input.StatsLastRefreshed)) + ) && + ( + this.AggregateSnapshot == input.AggregateSnapshot || + (this.AggregateSnapshot != null && + this.AggregateSnapshot.Equals(input.AggregateSnapshot)) + ) && + ( + this.NodeSnapshots == input.NodeSnapshots || + this.NodeSnapshots != null && + this.NodeSnapshots.SequenceEqual(input.NodeSnapshots) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Id != null) + hashCode = hashCode * 59 + this.Id.GetHashCode(); + if (this.GroupId != null) + hashCode = hashCode * 59 + this.GroupId.GetHashCode(); + if (this.Name != null) + hashCode = hashCode * 59 + this.Name.GetHashCode(); + if (this.Transmitting != null) + hashCode = hashCode * 59 + this.Transmitting.GetHashCode(); + if (this.RunStatus != null) + hashCode = hashCode * 59 + this.RunStatus.GetHashCode(); + if (this.StatsLastRefreshed != null) + hashCode = hashCode * 59 + this.StatsLastRefreshed.GetHashCode(); + if (this.AggregateSnapshot != null) + hashCode = hashCode * 59 + this.AggregateSnapshot.GetHashCode(); + if (this.NodeSnapshots != null) + hashCode = hashCode * 59 + this.NodeSnapshots.GetHashCode(); + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/NiFi.Swagger/Model/PortStatusEntity.cs b/NiFi.Swagger/Model/PortStatusEntity.cs new file mode 100644 index 0000000..910807b --- /dev/null +++ b/NiFi.Swagger/Model/PortStatusEntity.cs @@ -0,0 +1,133 @@ +/* + * NiFi Rest Api + * + * The Rest Api provides programmatic access to command and control a NiFi instance in real time. Start and stop processors, monitor queues, query provenance data, and more. Each endpoint below includes a description, definitions of the expected input and output, potential response codes, and the authorizations required to invoke each service. + * + * OpenAPI spec version: 1.9.1 + * Contact: dev@nifi.apache.org + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +namespace NiFi.Swagger.Model +{ + using System; + using System.Collections.Generic; + using System.ComponentModel.DataAnnotations; + using System.Runtime.Serialization; + using System.Text; + + using Newtonsoft.Json; + + /// + /// PortStatusEntity + /// + [DataContract] + public partial class PortStatusEntity : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// portStatus. + public PortStatusEntity(PortStatusDTO portStatus = default(PortStatusDTO)) + { + this.PortStatus = portStatus; + } + + /// + /// Gets or Sets PortStatus + /// + [DataMember(Name="portStatus", EmitDefaultValue=false)] + public PortStatusDTO PortStatus { get; set; } + + /// + /// Indicates whether the user can read a given resource. + /// + /// Indicates whether the user can read a given resource. + [DataMember(Name="canRead", EmitDefaultValue=false)] + public bool? CanRead { get; private set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class PortStatusEntity {\n"); + sb.Append(" PortStatus: ").Append(this.PortStatus).Append("\n"); + sb.Append(" CanRead: ").Append(this.CanRead).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as PortStatusEntity); + } + + /// + /// Returns true if PortStatusEntity instances are equal + /// + /// Instance of PortStatusEntity to be compared + /// Boolean + public bool Equals(PortStatusEntity input) + { + if (input == null) + return false; + + return + ( + this.PortStatus == input.PortStatus || + (this.PortStatus != null && + this.PortStatus.Equals(input.PortStatus)) + ) && + ( + this.CanRead == input.CanRead || + (this.CanRead != null && + this.CanRead.Equals(input.CanRead)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.PortStatus != null) + hashCode = hashCode * 59 + this.PortStatus.GetHashCode(); + if (this.CanRead != null) + hashCode = hashCode * 59 + this.CanRead.GetHashCode(); + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/NiFi.Swagger/Model/PortStatusSnapshotDTO.cs b/NiFi.Swagger/Model/PortStatusSnapshotDTO.cs new file mode 100644 index 0000000..94b2240 --- /dev/null +++ b/NiFi.Swagger/Model/PortStatusSnapshotDTO.cs @@ -0,0 +1,346 @@ +/* + * NiFi Rest Api + * + * The Rest Api provides programmatic access to command and control a NiFi instance in real time. Start and stop processors, monitor queues, query provenance data, and more. Each endpoint below includes a description, definitions of the expected input and output, potential response codes, and the authorizations required to invoke each service. + * + * OpenAPI spec version: 1.9.1 + * Contact: dev@nifi.apache.org + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +namespace NiFi.Swagger.Model +{ + using System; + using System.Collections.Generic; + using System.ComponentModel.DataAnnotations; + using System.Runtime.Serialization; + using System.Text; + + using Newtonsoft.Json; + using Newtonsoft.Json.Converters; + + /// + /// PortStatusSnapshotDTO + /// + [DataContract] + public partial class PortStatusSnapshotDTO : IEquatable, IValidatableObject + { + /// + /// The run status of the port. + /// + /// The run status of the port. + [JsonConverter(typeof(StringEnumConverter))] + public enum RunStatusEnum + { + + /// + /// Enum Running for value: Running + /// + [EnumMember(Value = "Running")] + Running = 1, + + /// + /// Enum Stopped for value: Stopped + /// + [EnumMember(Value = "Stopped")] + Stopped = 2, + + /// + /// Enum Validating for value: Validating + /// + [EnumMember(Value = "Validating")] + Validating = 3, + + /// + /// Enum Disabled for value: Disabled + /// + [EnumMember(Value = "Disabled")] + Disabled = 4, + + /// + /// Enum Invalid for value: Invalid + /// + [EnumMember(Value = "Invalid")] + Invalid = 5 + } + + /// + /// The run status of the port. + /// + /// The run status of the port. + [DataMember(Name="runStatus", EmitDefaultValue=false)] + public RunStatusEnum? RunStatus { get; set; } + /// + /// Initializes a new instance of the class. + /// + /// The id of the port.. + /// The id of the parent process group of the port.. + /// The name of the port.. + /// The active thread count for the port.. + /// The number of FlowFiles that have been accepted in the last 5 minutes.. + /// The size of hte FlowFiles that have been accepted in the last 5 minutes.. + /// The count/size of flowfiles that have been accepted in the last 5 minutes.. + /// The number of FlowFiles that have been processed in the last 5 minutes.. + /// The number of bytes that have been processed in the last 5 minutes.. + /// The count/size of flowfiles that have been processed in the last 5 minutes.. + /// Whether the port has incoming or outgoing connections to a remote NiFi.. + /// The run status of the port.. + public PortStatusSnapshotDTO(string id = default(string), string groupId = default(string), string name = default(string), int? activeThreadCount = default(int?), int? flowFilesIn = default(int?), long? bytesIn = default(long?), string input = default(string), int? flowFilesOut = default(int?), long? bytesOut = default(long?), string output = default(string), bool? transmitting = default(bool?), RunStatusEnum? runStatus = default(RunStatusEnum?)) + { + this.Id = id; + this.GroupId = groupId; + this.Name = name; + this.ActiveThreadCount = activeThreadCount; + this.FlowFilesIn = flowFilesIn; + this.BytesIn = bytesIn; + this.Input = input; + this.FlowFilesOut = flowFilesOut; + this.BytesOut = bytesOut; + this.Output = output; + this.Transmitting = transmitting; + this.RunStatus = runStatus; + } + + /// + /// The id of the port. + /// + /// The id of the port. + [DataMember(Name="id", EmitDefaultValue=false)] + public string Id { get; set; } + + /// + /// The id of the parent process group of the port. + /// + /// The id of the parent process group of the port. + [DataMember(Name="groupId", EmitDefaultValue=false)] + public string GroupId { get; set; } + + /// + /// The name of the port. + /// + /// The name of the port. + [DataMember(Name="name", EmitDefaultValue=false)] + public string Name { get; set; } + + /// + /// The active thread count for the port. + /// + /// The active thread count for the port. + [DataMember(Name="activeThreadCount", EmitDefaultValue=false)] + public int? ActiveThreadCount { get; set; } + + /// + /// The number of FlowFiles that have been accepted in the last 5 minutes. + /// + /// The number of FlowFiles that have been accepted in the last 5 minutes. + [DataMember(Name="flowFilesIn", EmitDefaultValue=false)] + public int? FlowFilesIn { get; set; } + + /// + /// The size of hte FlowFiles that have been accepted in the last 5 minutes. + /// + /// The size of hte FlowFiles that have been accepted in the last 5 minutes. + [DataMember(Name="bytesIn", EmitDefaultValue=false)] + public long? BytesIn { get; set; } + + /// + /// The count/size of flowfiles that have been accepted in the last 5 minutes. + /// + /// The count/size of flowfiles that have been accepted in the last 5 minutes. + [DataMember(Name="input", EmitDefaultValue=false)] + public string Input { get; set; } + + /// + /// The number of FlowFiles that have been processed in the last 5 minutes. + /// + /// The number of FlowFiles that have been processed in the last 5 minutes. + [DataMember(Name="flowFilesOut", EmitDefaultValue=false)] + public int? FlowFilesOut { get; set; } + + /// + /// The number of bytes that have been processed in the last 5 minutes. + /// + /// The number of bytes that have been processed in the last 5 minutes. + [DataMember(Name="bytesOut", EmitDefaultValue=false)] + public long? BytesOut { get; set; } + + /// + /// The count/size of flowfiles that have been processed in the last 5 minutes. + /// + /// The count/size of flowfiles that have been processed in the last 5 minutes. + [DataMember(Name="output", EmitDefaultValue=false)] + public string Output { get; set; } + + /// + /// Whether the port has incoming or outgoing connections to a remote NiFi. + /// + /// Whether the port has incoming or outgoing connections to a remote NiFi. + [DataMember(Name="transmitting", EmitDefaultValue=false)] + public bool? Transmitting { get; set; } + + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class PortStatusSnapshotDTO {\n"); + sb.Append(" Id: ").Append(this.Id).Append("\n"); + sb.Append(" GroupId: ").Append(this.GroupId).Append("\n"); + sb.Append(" Name: ").Append(this.Name).Append("\n"); + sb.Append(" ActiveThreadCount: ").Append(this.ActiveThreadCount).Append("\n"); + sb.Append(" FlowFilesIn: ").Append(this.FlowFilesIn).Append("\n"); + sb.Append(" BytesIn: ").Append(this.BytesIn).Append("\n"); + sb.Append(" Input: ").Append(this.Input).Append("\n"); + sb.Append(" FlowFilesOut: ").Append(this.FlowFilesOut).Append("\n"); + sb.Append(" BytesOut: ").Append(this.BytesOut).Append("\n"); + sb.Append(" Output: ").Append(this.Output).Append("\n"); + sb.Append(" Transmitting: ").Append(this.Transmitting).Append("\n"); + sb.Append(" RunStatus: ").Append(this.RunStatus).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as PortStatusSnapshotDTO); + } + + /// + /// Returns true if PortStatusSnapshotDTO instances are equal + /// + /// Instance of PortStatusSnapshotDTO to be compared + /// Boolean + public bool Equals(PortStatusSnapshotDTO input) + { + if (input == null) + return false; + + return + ( + this.Id == input.Id || + (this.Id != null && + this.Id.Equals(input.Id)) + ) && + ( + this.GroupId == input.GroupId || + (this.GroupId != null && + this.GroupId.Equals(input.GroupId)) + ) && + ( + this.Name == input.Name || + (this.Name != null && + this.Name.Equals(input.Name)) + ) && + ( + this.ActiveThreadCount == input.ActiveThreadCount || + (this.ActiveThreadCount != null && + this.ActiveThreadCount.Equals(input.ActiveThreadCount)) + ) && + ( + this.FlowFilesIn == input.FlowFilesIn || + (this.FlowFilesIn != null && + this.FlowFilesIn.Equals(input.FlowFilesIn)) + ) && + ( + this.BytesIn == input.BytesIn || + (this.BytesIn != null && + this.BytesIn.Equals(input.BytesIn)) + ) && + ( + this.Input == input.Input || + (this.Input != null && + this.Input.Equals(input.Input)) + ) && + ( + this.FlowFilesOut == input.FlowFilesOut || + (this.FlowFilesOut != null && + this.FlowFilesOut.Equals(input.FlowFilesOut)) + ) && + ( + this.BytesOut == input.BytesOut || + (this.BytesOut != null && + this.BytesOut.Equals(input.BytesOut)) + ) && + ( + this.Output == input.Output || + (this.Output != null && + this.Output.Equals(input.Output)) + ) && + ( + this.Transmitting == input.Transmitting || + (this.Transmitting != null && + this.Transmitting.Equals(input.Transmitting)) + ) && + ( + this.RunStatus == input.RunStatus || + (this.RunStatus != null && + this.RunStatus.Equals(input.RunStatus)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Id != null) + hashCode = hashCode * 59 + this.Id.GetHashCode(); + if (this.GroupId != null) + hashCode = hashCode * 59 + this.GroupId.GetHashCode(); + if (this.Name != null) + hashCode = hashCode * 59 + this.Name.GetHashCode(); + if (this.ActiveThreadCount != null) + hashCode = hashCode * 59 + this.ActiveThreadCount.GetHashCode(); + if (this.FlowFilesIn != null) + hashCode = hashCode * 59 + this.FlowFilesIn.GetHashCode(); + if (this.BytesIn != null) + hashCode = hashCode * 59 + this.BytesIn.GetHashCode(); + if (this.Input != null) + hashCode = hashCode * 59 + this.Input.GetHashCode(); + if (this.FlowFilesOut != null) + hashCode = hashCode * 59 + this.FlowFilesOut.GetHashCode(); + if (this.BytesOut != null) + hashCode = hashCode * 59 + this.BytesOut.GetHashCode(); + if (this.Output != null) + hashCode = hashCode * 59 + this.Output.GetHashCode(); + if (this.Transmitting != null) + hashCode = hashCode * 59 + this.Transmitting.GetHashCode(); + if (this.RunStatus != null) + hashCode = hashCode * 59 + this.RunStatus.GetHashCode(); + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/NiFi.Swagger/Model/PortStatusSnapshotEntity.cs b/NiFi.Swagger/Model/PortStatusSnapshotEntity.cs new file mode 100644 index 0000000..e5d7960 --- /dev/null +++ b/NiFi.Swagger/Model/PortStatusSnapshotEntity.cs @@ -0,0 +1,150 @@ +/* + * NiFi Rest Api + * + * The Rest Api provides programmatic access to command and control a NiFi instance in real time. Start and stop processors, monitor queues, query provenance data, and more. Each endpoint below includes a description, definitions of the expected input and output, potential response codes, and the authorizations required to invoke each service. + * + * OpenAPI spec version: 1.9.1 + * Contact: dev@nifi.apache.org + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +namespace NiFi.Swagger.Model +{ + using System; + using System.Collections.Generic; + using System.ComponentModel.DataAnnotations; + using System.Runtime.Serialization; + using System.Text; + + using Newtonsoft.Json; + + /// + /// PortStatusSnapshotEntity + /// + [DataContract] + public partial class PortStatusSnapshotEntity : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// The id of the port.. + /// portStatusSnapshot. + public PortStatusSnapshotEntity(string id = default(string), PortStatusSnapshotDTO portStatusSnapshot = default(PortStatusSnapshotDTO)) + { + this.Id = id; + this.PortStatusSnapshot = portStatusSnapshot; + } + + /// + /// The id of the port. + /// + /// The id of the port. + [DataMember(Name="id", EmitDefaultValue=false)] + public string Id { get; set; } + + /// + /// Gets or Sets PortStatusSnapshot + /// + [DataMember(Name="portStatusSnapshot", EmitDefaultValue=false)] + public PortStatusSnapshotDTO PortStatusSnapshot { get; set; } + + /// + /// Indicates whether the user can read a given resource. + /// + /// Indicates whether the user can read a given resource. + [DataMember(Name="canRead", EmitDefaultValue=false)] + public bool? CanRead { get; private set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class PortStatusSnapshotEntity {\n"); + sb.Append(" Id: ").Append(this.Id).Append("\n"); + sb.Append(" PortStatusSnapshot: ").Append(this.PortStatusSnapshot).Append("\n"); + sb.Append(" CanRead: ").Append(this.CanRead).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as PortStatusSnapshotEntity); + } + + /// + /// Returns true if PortStatusSnapshotEntity instances are equal + /// + /// Instance of PortStatusSnapshotEntity to be compared + /// Boolean + public bool Equals(PortStatusSnapshotEntity input) + { + if (input == null) + return false; + + return + ( + this.Id == input.Id || + (this.Id != null && + this.Id.Equals(input.Id)) + ) && + ( + this.PortStatusSnapshot == input.PortStatusSnapshot || + (this.PortStatusSnapshot != null && + this.PortStatusSnapshot.Equals(input.PortStatusSnapshot)) + ) && + ( + this.CanRead == input.CanRead || + (this.CanRead != null && + this.CanRead.Equals(input.CanRead)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Id != null) + hashCode = hashCode * 59 + this.Id.GetHashCode(); + if (this.PortStatusSnapshot != null) + hashCode = hashCode * 59 + this.PortStatusSnapshot.GetHashCode(); + if (this.CanRead != null) + hashCode = hashCode * 59 + this.CanRead.GetHashCode(); + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/NiFi.Swagger/Model/Position.cs b/NiFi.Swagger/Model/Position.cs new file mode 100644 index 0000000..389004f --- /dev/null +++ b/NiFi.Swagger/Model/Position.cs @@ -0,0 +1,136 @@ +/* + * NiFi Rest Api + * + * The Rest Api provides programmatic access to command and control a NiFi instance in real time. Start and stop processors, monitor queues, query provenance data, and more. Each endpoint below includes a description, definitions of the expected input and output, potential response codes, and the authorizations required to invoke each service. + * + * OpenAPI spec version: 1.9.1 + * Contact: dev@nifi.apache.org + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +namespace NiFi.Swagger.Model +{ + using System; + using System.Collections.Generic; + using System.ComponentModel.DataAnnotations; + using System.Runtime.Serialization; + using System.Text; + + using Newtonsoft.Json; + + /// + /// The position of a component on the graph + /// + [DataContract] + public partial class Position : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// The x coordinate.. + /// The y coordinate.. + public Position(double? x = default(double?), double? y = default(double?)) + { + this.X = x; + this.Y = y; + } + + /// + /// The x coordinate. + /// + /// The x coordinate. + [DataMember(Name="x", EmitDefaultValue=false)] + public double? X { get; set; } + + /// + /// The y coordinate. + /// + /// The y coordinate. + [DataMember(Name="y", EmitDefaultValue=false)] + public double? Y { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class Position {\n"); + sb.Append(" X: ").Append(this.X).Append("\n"); + sb.Append(" Y: ").Append(this.Y).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as Position); + } + + /// + /// Returns true if Position instances are equal + /// + /// Instance of Position to be compared + /// Boolean + public bool Equals(Position input) + { + if (input == null) + return false; + + return + ( + this.X == input.X || + (this.X != null && + this.X.Equals(input.X)) + ) && + ( + this.Y == input.Y || + (this.Y != null && + this.Y.Equals(input.Y)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.X != null) + hashCode = hashCode * 59 + this.X.GetHashCode(); + if (this.Y != null) + hashCode = hashCode * 59 + this.Y.GetHashCode(); + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/NiFi.Swagger/Model/PositionDTO.cs b/NiFi.Swagger/Model/PositionDTO.cs new file mode 100644 index 0000000..c79e0ed --- /dev/null +++ b/NiFi.Swagger/Model/PositionDTO.cs @@ -0,0 +1,136 @@ +/* + * NiFi Rest Api + * + * The Rest Api provides programmatic access to command and control a NiFi instance in real time. Start and stop processors, monitor queues, query provenance data, and more. Each endpoint below includes a description, definitions of the expected input and output, potential response codes, and the authorizations required to invoke each service. + * + * OpenAPI spec version: 1.9.1 + * Contact: dev@nifi.apache.org + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +namespace NiFi.Swagger.Model +{ + using System; + using System.Collections.Generic; + using System.ComponentModel.DataAnnotations; + using System.Runtime.Serialization; + using System.Text; + + using Newtonsoft.Json; + + /// + /// PositionDTO + /// + [DataContract] + public partial class PositionDTO : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// The x coordinate.. + /// The y coordinate.. + public PositionDTO(double? x = default(double?), double? y = default(double?)) + { + this.X = x; + this.Y = y; + } + + /// + /// The x coordinate. + /// + /// The x coordinate. + [DataMember(Name="x", EmitDefaultValue=false)] + public double? X { get; set; } + + /// + /// The y coordinate. + /// + /// The y coordinate. + [DataMember(Name="y", EmitDefaultValue=false)] + public double? Y { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class PositionDTO {\n"); + sb.Append(" X: ").Append(this.X).Append("\n"); + sb.Append(" Y: ").Append(this.Y).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as PositionDTO); + } + + /// + /// Returns true if PositionDTO instances are equal + /// + /// Instance of PositionDTO to be compared + /// Boolean + public bool Equals(PositionDTO input) + { + if (input == null) + return false; + + return + ( + this.X == input.X || + (this.X != null && + this.X.Equals(input.X)) + ) && + ( + this.Y == input.Y || + (this.Y != null && + this.Y.Equals(input.Y)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.X != null) + hashCode = hashCode * 59 + this.X.GetHashCode(); + if (this.Y != null) + hashCode = hashCode * 59 + this.Y.GetHashCode(); + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/NiFi.Swagger/Model/PreviousValueDTO.cs b/NiFi.Swagger/Model/PreviousValueDTO.cs new file mode 100644 index 0000000..da80f0c --- /dev/null +++ b/NiFi.Swagger/Model/PreviousValueDTO.cs @@ -0,0 +1,153 @@ +/* + * NiFi Rest Api + * + * The Rest Api provides programmatic access to command and control a NiFi instance in real time. Start and stop processors, monitor queues, query provenance data, and more. Each endpoint below includes a description, definitions of the expected input and output, potential response codes, and the authorizations required to invoke each service. + * + * OpenAPI spec version: 1.9.1 + * Contact: dev@nifi.apache.org + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +namespace NiFi.Swagger.Model +{ + using System; + using System.Collections.Generic; + using System.ComponentModel.DataAnnotations; + using System.Runtime.Serialization; + using System.Text; + + using Newtonsoft.Json; + + /// + /// PreviousValueDTO + /// + [DataContract] + public partial class PreviousValueDTO : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// The previous value.. + /// The timestamp when the value was modified.. + /// The user who changed the previous value.. + public PreviousValueDTO(string previousValue = default(string), string timestamp = default(string), string userIdentity = default(string)) + { + this.PreviousValue = previousValue; + this.Timestamp = timestamp; + this.UserIdentity = userIdentity; + } + + /// + /// The previous value. + /// + /// The previous value. + [DataMember(Name="previousValue", EmitDefaultValue=false)] + public string PreviousValue { get; set; } + + /// + /// The timestamp when the value was modified. + /// + /// The timestamp when the value was modified. + [DataMember(Name="timestamp", EmitDefaultValue=false)] + public string Timestamp { get; set; } + + /// + /// The user who changed the previous value. + /// + /// The user who changed the previous value. + [DataMember(Name="userIdentity", EmitDefaultValue=false)] + public string UserIdentity { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class PreviousValueDTO {\n"); + sb.Append(" PreviousValue: ").Append(this.PreviousValue).Append("\n"); + sb.Append(" Timestamp: ").Append(this.Timestamp).Append("\n"); + sb.Append(" UserIdentity: ").Append(this.UserIdentity).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as PreviousValueDTO); + } + + /// + /// Returns true if PreviousValueDTO instances are equal + /// + /// Instance of PreviousValueDTO to be compared + /// Boolean + public bool Equals(PreviousValueDTO input) + { + if (input == null) + return false; + + return + ( + this.PreviousValue == input.PreviousValue || + (this.PreviousValue != null && + this.PreviousValue.Equals(input.PreviousValue)) + ) && + ( + this.Timestamp == input.Timestamp || + (this.Timestamp != null && + this.Timestamp.Equals(input.Timestamp)) + ) && + ( + this.UserIdentity == input.UserIdentity || + (this.UserIdentity != null && + this.UserIdentity.Equals(input.UserIdentity)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.PreviousValue != null) + hashCode = hashCode * 59 + this.PreviousValue.GetHashCode(); + if (this.Timestamp != null) + hashCode = hashCode * 59 + this.Timestamp.GetHashCode(); + if (this.UserIdentity != null) + hashCode = hashCode * 59 + this.UserIdentity.GetHashCode(); + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/NiFi.Swagger/Model/PrioritizerTypesEntity.cs b/NiFi.Swagger/Model/PrioritizerTypesEntity.cs new file mode 100644 index 0000000..01e671f --- /dev/null +++ b/NiFi.Swagger/Model/PrioritizerTypesEntity.cs @@ -0,0 +1,119 @@ +/* + * NiFi Rest Api + * + * The Rest Api provides programmatic access to command and control a NiFi instance in real time. Start and stop processors, monitor queues, query provenance data, and more. Each endpoint below includes a description, definitions of the expected input and output, potential response codes, and the authorizations required to invoke each service. + * + * OpenAPI spec version: 1.9.1 + * Contact: dev@nifi.apache.org + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +namespace NiFi.Swagger.Model +{ + using System; + using System.Collections.Generic; + using System.ComponentModel.DataAnnotations; + using System.Linq; + using System.Runtime.Serialization; + using System.Text; + + using Newtonsoft.Json; + + /// + /// PrioritizerTypesEntity + /// + [DataContract] + public partial class PrioritizerTypesEntity : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// prioritizerTypes. + public PrioritizerTypesEntity(List prioritizerTypes = default(List)) + { + this.PrioritizerTypes = prioritizerTypes; + } + + /// + /// Gets or Sets PrioritizerTypes + /// + [DataMember(Name="prioritizerTypes", EmitDefaultValue=false)] + public List PrioritizerTypes { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class PrioritizerTypesEntity {\n"); + sb.Append(" PrioritizerTypes: ").Append(this.PrioritizerTypes).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as PrioritizerTypesEntity); + } + + /// + /// Returns true if PrioritizerTypesEntity instances are equal + /// + /// Instance of PrioritizerTypesEntity to be compared + /// Boolean + public bool Equals(PrioritizerTypesEntity input) + { + if (input == null) + return false; + + return + ( + this.PrioritizerTypes == input.PrioritizerTypes || + this.PrioritizerTypes != null && + this.PrioritizerTypes.SequenceEqual(input.PrioritizerTypes) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.PrioritizerTypes != null) + hashCode = hashCode * 59 + this.PrioritizerTypes.GetHashCode(); + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/NiFi.Swagger/Model/ProcessGroupDTO.cs b/NiFi.Swagger/Model/ProcessGroupDTO.cs new file mode 100644 index 0000000..f8e0ad5 --- /dev/null +++ b/NiFi.Swagger/Model/ProcessGroupDTO.cs @@ -0,0 +1,475 @@ +/* + * NiFi Rest Api + * + * The Rest Api provides programmatic access to command and control a NiFi instance in real time. Start and stop processors, monitor queues, query provenance data, and more. Each endpoint below includes a description, definitions of the expected input and output, potential response codes, and the authorizations required to invoke each service. + * + * OpenAPI spec version: 1.9.1 + * Contact: dev@nifi.apache.org + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +namespace NiFi.Swagger.Model +{ + using System; + using System.Collections.Generic; + using System.ComponentModel.DataAnnotations; + using System.Linq; + using System.Runtime.Serialization; + using System.Text; + + using Newtonsoft.Json; + + /// + /// ProcessGroupDTO + /// + [DataContract] + public partial class ProcessGroupDTO : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// The id of the component.. + /// The ID of the corresponding component that is under version control. + /// The id of parent process group of this component if applicable.. + /// The position of this component in the UI if applicable.. + /// The name of the process group.. + /// The comments for the process group.. + /// The Version Control information that indicates which Flow Registry, and where in the Flow Registry, this Process Group is tracking to; or null if this Process Group is not under version control. + /// The number of running components in this process group.. + /// The number of stopped components in the process group.. + /// The number of invalid components in the process group.. + /// The number of disabled components in the process group.. + /// The number of active remote ports in the process group.. + /// The number of inactive remote ports in the process group.. + /// The number of up to date versioned process groups in the process group.. + /// The number of locally modified versioned process groups in the process group.. + /// The number of stale versioned process groups in the process group.. + /// The number of locally modified and stale versioned process groups in the process group.. + /// The number of versioned process groups in the process group that are unable to sync to a registry.. + /// The number of input ports in the process group.. + /// The number of output ports in the process group.. + /// The contents of this process group.. + public ProcessGroupDTO(string id = default(string), string versionedComponentId = default(string), string parentGroupId = default(string), PositionDTO position = default(PositionDTO), string name = default(string), string comments = default(string), VersionControlInformationDTO versionControlInformation = default(VersionControlInformationDTO), int? runningCount = default(int?), int? stoppedCount = default(int?), int? invalidCount = default(int?), int? disabledCount = default(int?), int? activeRemotePortCount = default(int?), int? inactiveRemotePortCount = default(int?), int? upToDateCount = default(int?), int? locallyModifiedCount = default(int?), int? staleCount = default(int?), int? locallyModifiedAndStaleCount = default(int?), int? syncFailureCount = default(int?), int? inputPortCount = default(int?), int? outputPortCount = default(int?), FlowSnippetDTO contents = default(FlowSnippetDTO)) + { + this.Id = id; + this.VersionedComponentId = versionedComponentId; + this.ParentGroupId = parentGroupId; + this.Position = position; + this.Name = name; + this.Comments = comments; + this.VersionControlInformation = versionControlInformation; + this.RunningCount = runningCount; + this.StoppedCount = stoppedCount; + this.InvalidCount = invalidCount; + this.DisabledCount = disabledCount; + this.ActiveRemotePortCount = activeRemotePortCount; + this.InactiveRemotePortCount = inactiveRemotePortCount; + this.UpToDateCount = upToDateCount; + this.LocallyModifiedCount = locallyModifiedCount; + this.StaleCount = staleCount; + this.LocallyModifiedAndStaleCount = locallyModifiedAndStaleCount; + this.SyncFailureCount = syncFailureCount; + this.InputPortCount = inputPortCount; + this.OutputPortCount = outputPortCount; + this.Contents = contents; + } + + /// + /// The id of the component. + /// + /// The id of the component. + [DataMember(Name="id", EmitDefaultValue=false)] + public string Id { get; set; } + + /// + /// The ID of the corresponding component that is under version control + /// + /// The ID of the corresponding component that is under version control + [DataMember(Name="versionedComponentId", EmitDefaultValue=false)] + public string VersionedComponentId { get; set; } + + /// + /// The id of parent process group of this component if applicable. + /// + /// The id of parent process group of this component if applicable. + [DataMember(Name="parentGroupId", EmitDefaultValue=false)] + public string ParentGroupId { get; set; } + + /// + /// The position of this component in the UI if applicable. + /// + /// The position of this component in the UI if applicable. + [DataMember(Name="position", EmitDefaultValue=false)] + public PositionDTO Position { get; set; } + + /// + /// The name of the process group. + /// + /// The name of the process group. + [DataMember(Name="name", EmitDefaultValue=false)] + public string Name { get; set; } + + /// + /// The comments for the process group. + /// + /// The comments for the process group. + [DataMember(Name="comments", EmitDefaultValue=false)] + public string Comments { get; set; } + + /// + /// The variables that are configured for the Process Group. Note that this map contains only those variables that are defined on this Process Group and not any variables that are defined in the parent Process Group, etc. I.e., this Map will not contain all variables that are accessible by components in this Process Group by rather only the variables that are defined for this Process Group itself. + /// + /// The variables that are configured for the Process Group. Note that this map contains only those variables that are defined on this Process Group and not any variables that are defined in the parent Process Group, etc. I.e., this Map will not contain all variables that are accessible by components in this Process Group by rather only the variables that are defined for this Process Group itself. + [DataMember(Name="variables", EmitDefaultValue=false)] + public Dictionary Variables { get; private set; } + + /// + /// The Version Control information that indicates which Flow Registry, and where in the Flow Registry, this Process Group is tracking to; or null if this Process Group is not under version control + /// + /// The Version Control information that indicates which Flow Registry, and where in the Flow Registry, this Process Group is tracking to; or null if this Process Group is not under version control + [DataMember(Name="versionControlInformation", EmitDefaultValue=false)] + public VersionControlInformationDTO VersionControlInformation { get; set; } + + /// + /// The number of running components in this process group. + /// + /// The number of running components in this process group. + [DataMember(Name="runningCount", EmitDefaultValue=false)] + public int? RunningCount { get; set; } + + /// + /// The number of stopped components in the process group. + /// + /// The number of stopped components in the process group. + [DataMember(Name="stoppedCount", EmitDefaultValue=false)] + public int? StoppedCount { get; set; } + + /// + /// The number of invalid components in the process group. + /// + /// The number of invalid components in the process group. + [DataMember(Name="invalidCount", EmitDefaultValue=false)] + public int? InvalidCount { get; set; } + + /// + /// The number of disabled components in the process group. + /// + /// The number of disabled components in the process group. + [DataMember(Name="disabledCount", EmitDefaultValue=false)] + public int? DisabledCount { get; set; } + + /// + /// The number of active remote ports in the process group. + /// + /// The number of active remote ports in the process group. + [DataMember(Name="activeRemotePortCount", EmitDefaultValue=false)] + public int? ActiveRemotePortCount { get; set; } + + /// + /// The number of inactive remote ports in the process group. + /// + /// The number of inactive remote ports in the process group. + [DataMember(Name="inactiveRemotePortCount", EmitDefaultValue=false)] + public int? InactiveRemotePortCount { get; set; } + + /// + /// The number of up to date versioned process groups in the process group. + /// + /// The number of up to date versioned process groups in the process group. + [DataMember(Name="upToDateCount", EmitDefaultValue=false)] + public int? UpToDateCount { get; set; } + + /// + /// The number of locally modified versioned process groups in the process group. + /// + /// The number of locally modified versioned process groups in the process group. + [DataMember(Name="locallyModifiedCount", EmitDefaultValue=false)] + public int? LocallyModifiedCount { get; set; } + + /// + /// The number of stale versioned process groups in the process group. + /// + /// The number of stale versioned process groups in the process group. + [DataMember(Name="staleCount", EmitDefaultValue=false)] + public int? StaleCount { get; set; } + + /// + /// The number of locally modified and stale versioned process groups in the process group. + /// + /// The number of locally modified and stale versioned process groups in the process group. + [DataMember(Name="locallyModifiedAndStaleCount", EmitDefaultValue=false)] + public int? LocallyModifiedAndStaleCount { get; set; } + + /// + /// The number of versioned process groups in the process group that are unable to sync to a registry. + /// + /// The number of versioned process groups in the process group that are unable to sync to a registry. + [DataMember(Name="syncFailureCount", EmitDefaultValue=false)] + public int? SyncFailureCount { get; set; } + + /// + /// The number of input ports in the process group. + /// + /// The number of input ports in the process group. + [DataMember(Name="inputPortCount", EmitDefaultValue=false)] + public int? InputPortCount { get; set; } + + /// + /// The number of output ports in the process group. + /// + /// The number of output ports in the process group. + [DataMember(Name="outputPortCount", EmitDefaultValue=false)] + public int? OutputPortCount { get; set; } + + /// + /// The contents of this process group. + /// + /// The contents of this process group. + [DataMember(Name="contents", EmitDefaultValue=false)] + public FlowSnippetDTO Contents { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class ProcessGroupDTO {\n"); + sb.Append(" Id: ").Append(this.Id).Append("\n"); + sb.Append(" VersionedComponentId: ").Append(this.VersionedComponentId).Append("\n"); + sb.Append(" ParentGroupId: ").Append(this.ParentGroupId).Append("\n"); + sb.Append(" Position: ").Append(this.Position).Append("\n"); + sb.Append(" Name: ").Append(this.Name).Append("\n"); + sb.Append(" Comments: ").Append(this.Comments).Append("\n"); + sb.Append(" Variables: ").Append(this.Variables).Append("\n"); + sb.Append(" VersionControlInformation: ").Append(this.VersionControlInformation).Append("\n"); + sb.Append(" RunningCount: ").Append(this.RunningCount).Append("\n"); + sb.Append(" StoppedCount: ").Append(this.StoppedCount).Append("\n"); + sb.Append(" InvalidCount: ").Append(this.InvalidCount).Append("\n"); + sb.Append(" DisabledCount: ").Append(this.DisabledCount).Append("\n"); + sb.Append(" ActiveRemotePortCount: ").Append(this.ActiveRemotePortCount).Append("\n"); + sb.Append(" InactiveRemotePortCount: ").Append(this.InactiveRemotePortCount).Append("\n"); + sb.Append(" UpToDateCount: ").Append(this.UpToDateCount).Append("\n"); + sb.Append(" LocallyModifiedCount: ").Append(this.LocallyModifiedCount).Append("\n"); + sb.Append(" StaleCount: ").Append(this.StaleCount).Append("\n"); + sb.Append(" LocallyModifiedAndStaleCount: ").Append(this.LocallyModifiedAndStaleCount).Append("\n"); + sb.Append(" SyncFailureCount: ").Append(this.SyncFailureCount).Append("\n"); + sb.Append(" InputPortCount: ").Append(this.InputPortCount).Append("\n"); + sb.Append(" OutputPortCount: ").Append(this.OutputPortCount).Append("\n"); + sb.Append(" Contents: ").Append(this.Contents).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as ProcessGroupDTO); + } + + /// + /// Returns true if ProcessGroupDTO instances are equal + /// + /// Instance of ProcessGroupDTO to be compared + /// Boolean + public bool Equals(ProcessGroupDTO input) + { + if (input == null) + return false; + + return + ( + this.Id == input.Id || + (this.Id != null && + this.Id.Equals(input.Id)) + ) && + ( + this.VersionedComponentId == input.VersionedComponentId || + (this.VersionedComponentId != null && + this.VersionedComponentId.Equals(input.VersionedComponentId)) + ) && + ( + this.ParentGroupId == input.ParentGroupId || + (this.ParentGroupId != null && + this.ParentGroupId.Equals(input.ParentGroupId)) + ) && + ( + this.Position == input.Position || + (this.Position != null && + this.Position.Equals(input.Position)) + ) && + ( + this.Name == input.Name || + (this.Name != null && + this.Name.Equals(input.Name)) + ) && + ( + this.Comments == input.Comments || + (this.Comments != null && + this.Comments.Equals(input.Comments)) + ) && + ( + this.Variables == input.Variables || + this.Variables != null && + this.Variables.SequenceEqual(input.Variables) + ) && + ( + this.VersionControlInformation == input.VersionControlInformation || + (this.VersionControlInformation != null && + this.VersionControlInformation.Equals(input.VersionControlInformation)) + ) && + ( + this.RunningCount == input.RunningCount || + (this.RunningCount != null && + this.RunningCount.Equals(input.RunningCount)) + ) && + ( + this.StoppedCount == input.StoppedCount || + (this.StoppedCount != null && + this.StoppedCount.Equals(input.StoppedCount)) + ) && + ( + this.InvalidCount == input.InvalidCount || + (this.InvalidCount != null && + this.InvalidCount.Equals(input.InvalidCount)) + ) && + ( + this.DisabledCount == input.DisabledCount || + (this.DisabledCount != null && + this.DisabledCount.Equals(input.DisabledCount)) + ) && + ( + this.ActiveRemotePortCount == input.ActiveRemotePortCount || + (this.ActiveRemotePortCount != null && + this.ActiveRemotePortCount.Equals(input.ActiveRemotePortCount)) + ) && + ( + this.InactiveRemotePortCount == input.InactiveRemotePortCount || + (this.InactiveRemotePortCount != null && + this.InactiveRemotePortCount.Equals(input.InactiveRemotePortCount)) + ) && + ( + this.UpToDateCount == input.UpToDateCount || + (this.UpToDateCount != null && + this.UpToDateCount.Equals(input.UpToDateCount)) + ) && + ( + this.LocallyModifiedCount == input.LocallyModifiedCount || + (this.LocallyModifiedCount != null && + this.LocallyModifiedCount.Equals(input.LocallyModifiedCount)) + ) && + ( + this.StaleCount == input.StaleCount || + (this.StaleCount != null && + this.StaleCount.Equals(input.StaleCount)) + ) && + ( + this.LocallyModifiedAndStaleCount == input.LocallyModifiedAndStaleCount || + (this.LocallyModifiedAndStaleCount != null && + this.LocallyModifiedAndStaleCount.Equals(input.LocallyModifiedAndStaleCount)) + ) && + ( + this.SyncFailureCount == input.SyncFailureCount || + (this.SyncFailureCount != null && + this.SyncFailureCount.Equals(input.SyncFailureCount)) + ) && + ( + this.InputPortCount == input.InputPortCount || + (this.InputPortCount != null && + this.InputPortCount.Equals(input.InputPortCount)) + ) && + ( + this.OutputPortCount == input.OutputPortCount || + (this.OutputPortCount != null && + this.OutputPortCount.Equals(input.OutputPortCount)) + ) && + ( + this.Contents == input.Contents || + (this.Contents != null && + this.Contents.Equals(input.Contents)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Id != null) + hashCode = hashCode * 59 + this.Id.GetHashCode(); + if (this.VersionedComponentId != null) + hashCode = hashCode * 59 + this.VersionedComponentId.GetHashCode(); + if (this.ParentGroupId != null) + hashCode = hashCode * 59 + this.ParentGroupId.GetHashCode(); + if (this.Position != null) + hashCode = hashCode * 59 + this.Position.GetHashCode(); + if (this.Name != null) + hashCode = hashCode * 59 + this.Name.GetHashCode(); + if (this.Comments != null) + hashCode = hashCode * 59 + this.Comments.GetHashCode(); + if (this.Variables != null) + hashCode = hashCode * 59 + this.Variables.GetHashCode(); + if (this.VersionControlInformation != null) + hashCode = hashCode * 59 + this.VersionControlInformation.GetHashCode(); + if (this.RunningCount != null) + hashCode = hashCode * 59 + this.RunningCount.GetHashCode(); + if (this.StoppedCount != null) + hashCode = hashCode * 59 + this.StoppedCount.GetHashCode(); + if (this.InvalidCount != null) + hashCode = hashCode * 59 + this.InvalidCount.GetHashCode(); + if (this.DisabledCount != null) + hashCode = hashCode * 59 + this.DisabledCount.GetHashCode(); + if (this.ActiveRemotePortCount != null) + hashCode = hashCode * 59 + this.ActiveRemotePortCount.GetHashCode(); + if (this.InactiveRemotePortCount != null) + hashCode = hashCode * 59 + this.InactiveRemotePortCount.GetHashCode(); + if (this.UpToDateCount != null) + hashCode = hashCode * 59 + this.UpToDateCount.GetHashCode(); + if (this.LocallyModifiedCount != null) + hashCode = hashCode * 59 + this.LocallyModifiedCount.GetHashCode(); + if (this.StaleCount != null) + hashCode = hashCode * 59 + this.StaleCount.GetHashCode(); + if (this.LocallyModifiedAndStaleCount != null) + hashCode = hashCode * 59 + this.LocallyModifiedAndStaleCount.GetHashCode(); + if (this.SyncFailureCount != null) + hashCode = hashCode * 59 + this.SyncFailureCount.GetHashCode(); + if (this.InputPortCount != null) + hashCode = hashCode * 59 + this.InputPortCount.GetHashCode(); + if (this.OutputPortCount != null) + hashCode = hashCode * 59 + this.OutputPortCount.GetHashCode(); + if (this.Contents != null) + hashCode = hashCode * 59 + this.Contents.GetHashCode(); + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/NiFi.Swagger/Model/ProcessGroupEntity.cs b/NiFi.Swagger/Model/ProcessGroupEntity.cs new file mode 100644 index 0000000..aa1f5fd --- /dev/null +++ b/NiFi.Swagger/Model/ProcessGroupEntity.cs @@ -0,0 +1,546 @@ +/* + * NiFi Rest Api + * + * The Rest Api provides programmatic access to command and control a NiFi instance in real time. Start and stop processors, monitor queues, query provenance data, and more. Each endpoint below includes a description, definitions of the expected input and output, potential response codes, and the authorizations required to invoke each service. + * + * OpenAPI spec version: 1.9.1 + * Contact: dev@nifi.apache.org + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +namespace NiFi.Swagger.Model +{ + using System; + using System.Collections.Generic; + using System.ComponentModel.DataAnnotations; + using System.Linq; + using System.Runtime.Serialization; + using System.Text; + + using Newtonsoft.Json; + using Newtonsoft.Json.Converters; + + /// + /// ProcessGroupEntity + /// + [DataContract] + public partial class ProcessGroupEntity : IEquatable, IValidatableObject + { + /// + /// The current state of the Process Group, as it relates to the Versioned Flow + /// + /// The current state of the Process Group, as it relates to the Versioned Flow + [JsonConverter(typeof(StringEnumConverter))] + public enum VersionedFlowStateEnum + { + + /// + /// Enum LOCALLYMODIFIED for value: LOCALLY_MODIFIED + /// + [EnumMember(Value = "LOCALLY_MODIFIED")] + LOCALLYMODIFIED = 1, + + /// + /// Enum STALE for value: STALE + /// + [EnumMember(Value = "STALE")] + STALE = 2, + + /// + /// Enum LOCALLYMODIFIEDANDSTALE for value: LOCALLY_MODIFIED_AND_STALE + /// + [EnumMember(Value = "LOCALLY_MODIFIED_AND_STALE")] + LOCALLYMODIFIEDANDSTALE = 3, + + /// + /// Enum UPTODATE for value: UP_TO_DATE + /// + [EnumMember(Value = "UP_TO_DATE")] + UPTODATE = 4, + + /// + /// Enum SYNCFAILURE for value: SYNC_FAILURE + /// + [EnumMember(Value = "SYNC_FAILURE")] + SYNCFAILURE = 5 + } + + /// + /// The current state of the Process Group, as it relates to the Versioned Flow + /// + /// The current state of the Process Group, as it relates to the Versioned Flow + [DataMember(Name="versionedFlowState", EmitDefaultValue=false)] + public VersionedFlowStateEnum? VersionedFlowState { get; set; } + /// + /// Initializes a new instance of the class. + /// + /// The revision for this request/response. The revision is required for any mutable flow requests and is included in all responses.. + /// The id of the component.. + /// The URI for futures requests to the component.. + /// The position of this component in the UI if applicable.. + /// The permissions for this component.. + /// The bulletins for this component.. + /// Acknowledges that this node is disconnected to allow for mutable requests to proceed.. + /// component. + /// The status of the process group.. + /// The number of running components in this process group.. + /// The number of stopped components in the process group.. + /// The number of invalid components in the process group.. + /// The number of disabled components in the process group.. + /// The number of active remote ports in the process group.. + /// The number of inactive remote ports in the process group.. + /// The number of up to date versioned process groups in the process group.. + /// The number of locally modified versioned process groups in the process group.. + /// The number of stale versioned process groups in the process group.. + /// The number of locally modified and stale versioned process groups in the process group.. + /// The number of versioned process groups in the process group that are unable to sync to a registry.. + /// The number of input ports in the process group.. + /// The number of output ports in the process group.. + public ProcessGroupEntity(RevisionDTO revision = default(RevisionDTO), string id = default(string), string uri = default(string), PositionDTO position = default(PositionDTO), PermissionsDTO permissions = default(PermissionsDTO), List bulletins = default(List), bool? disconnectedNodeAcknowledged = default(bool?), ProcessGroupDTO component = default(ProcessGroupDTO), ProcessGroupStatusDTO status = default(ProcessGroupStatusDTO), int? runningCount = default(int?), int? stoppedCount = default(int?), int? invalidCount = default(int?), int? disabledCount = default(int?), int? activeRemotePortCount = default(int?), int? inactiveRemotePortCount = default(int?), int? upToDateCount = default(int?), int? locallyModifiedCount = default(int?), int? staleCount = default(int?), int? locallyModifiedAndStaleCount = default(int?), int? syncFailureCount = default(int?), int? inputPortCount = default(int?), int? outputPortCount = default(int?)) + { + this.Revision = revision; + this.Id = id; + this.Uri = uri; + this.Position = position; + this.Permissions = permissions; + this.Bulletins = bulletins; + this.DisconnectedNodeAcknowledged = disconnectedNodeAcknowledged; + this.Component = component; + this.Status = status; + this.RunningCount = runningCount; + this.StoppedCount = stoppedCount; + this.InvalidCount = invalidCount; + this.DisabledCount = disabledCount; + this.ActiveRemotePortCount = activeRemotePortCount; + this.InactiveRemotePortCount = inactiveRemotePortCount; + this.UpToDateCount = upToDateCount; + this.LocallyModifiedCount = locallyModifiedCount; + this.StaleCount = staleCount; + this.LocallyModifiedAndStaleCount = locallyModifiedAndStaleCount; + this.SyncFailureCount = syncFailureCount; + this.InputPortCount = inputPortCount; + this.OutputPortCount = outputPortCount; + } + + /// + /// The revision for this request/response. The revision is required for any mutable flow requests and is included in all responses. + /// + /// The revision for this request/response. The revision is required for any mutable flow requests and is included in all responses. + [DataMember(Name="revision", EmitDefaultValue=false)] + public RevisionDTO Revision { get; set; } + + /// + /// The id of the component. + /// + /// The id of the component. + [DataMember(Name="id", EmitDefaultValue=false)] + public string Id { get; set; } + + /// + /// The URI for futures requests to the component. + /// + /// The URI for futures requests to the component. + [DataMember(Name="uri", EmitDefaultValue=false)] + public string Uri { get; set; } + + /// + /// The position of this component in the UI if applicable. + /// + /// The position of this component in the UI if applicable. + [DataMember(Name="position", EmitDefaultValue=false)] + public PositionDTO Position { get; set; } + + /// + /// The permissions for this component. + /// + /// The permissions for this component. + [DataMember(Name="permissions", EmitDefaultValue=false)] + public PermissionsDTO Permissions { get; set; } + + /// + /// The bulletins for this component. + /// + /// The bulletins for this component. + [DataMember(Name="bulletins", EmitDefaultValue=false)] + public List Bulletins { get; set; } + + /// + /// Acknowledges that this node is disconnected to allow for mutable requests to proceed. + /// + /// Acknowledges that this node is disconnected to allow for mutable requests to proceed. + [DataMember(Name="disconnectedNodeAcknowledged", EmitDefaultValue=false)] + public bool? DisconnectedNodeAcknowledged { get; set; } + + /// + /// Gets or Sets Component + /// + [DataMember(Name="component", EmitDefaultValue=false)] + public ProcessGroupDTO Component { get; set; } + + /// + /// The status of the process group. + /// + /// The status of the process group. + [DataMember(Name="status", EmitDefaultValue=false)] + public ProcessGroupStatusDTO Status { get; set; } + + /// + /// Returns the Versioned Flow that describes the contents of the Versioned Flow to be imported + /// + /// Returns the Versioned Flow that describes the contents of the Versioned Flow to be imported + [DataMember(Name="versionedFlowSnapshot", EmitDefaultValue=false)] + public VersionedFlowSnapshot VersionedFlowSnapshot { get; private set; } + + /// + /// The number of running components in this process group. + /// + /// The number of running components in this process group. + [DataMember(Name="runningCount", EmitDefaultValue=false)] + public int? RunningCount { get; set; } + + /// + /// The number of stopped components in the process group. + /// + /// The number of stopped components in the process group. + [DataMember(Name="stoppedCount", EmitDefaultValue=false)] + public int? StoppedCount { get; set; } + + /// + /// The number of invalid components in the process group. + /// + /// The number of invalid components in the process group. + [DataMember(Name="invalidCount", EmitDefaultValue=false)] + public int? InvalidCount { get; set; } + + /// + /// The number of disabled components in the process group. + /// + /// The number of disabled components in the process group. + [DataMember(Name="disabledCount", EmitDefaultValue=false)] + public int? DisabledCount { get; set; } + + /// + /// The number of active remote ports in the process group. + /// + /// The number of active remote ports in the process group. + [DataMember(Name="activeRemotePortCount", EmitDefaultValue=false)] + public int? ActiveRemotePortCount { get; set; } + + /// + /// The number of inactive remote ports in the process group. + /// + /// The number of inactive remote ports in the process group. + [DataMember(Name="inactiveRemotePortCount", EmitDefaultValue=false)] + public int? InactiveRemotePortCount { get; set; } + + + /// + /// The number of up to date versioned process groups in the process group. + /// + /// The number of up to date versioned process groups in the process group. + [DataMember(Name="upToDateCount", EmitDefaultValue=false)] + public int? UpToDateCount { get; set; } + + /// + /// The number of locally modified versioned process groups in the process group. + /// + /// The number of locally modified versioned process groups in the process group. + [DataMember(Name="locallyModifiedCount", EmitDefaultValue=false)] + public int? LocallyModifiedCount { get; set; } + + /// + /// The number of stale versioned process groups in the process group. + /// + /// The number of stale versioned process groups in the process group. + [DataMember(Name="staleCount", EmitDefaultValue=false)] + public int? StaleCount { get; set; } + + /// + /// The number of locally modified and stale versioned process groups in the process group. + /// + /// The number of locally modified and stale versioned process groups in the process group. + [DataMember(Name="locallyModifiedAndStaleCount", EmitDefaultValue=false)] + public int? LocallyModifiedAndStaleCount { get; set; } + + /// + /// The number of versioned process groups in the process group that are unable to sync to a registry. + /// + /// The number of versioned process groups in the process group that are unable to sync to a registry. + [DataMember(Name="syncFailureCount", EmitDefaultValue=false)] + public int? SyncFailureCount { get; set; } + + /// + /// The number of input ports in the process group. + /// + /// The number of input ports in the process group. + [DataMember(Name="inputPortCount", EmitDefaultValue=false)] + public int? InputPortCount { get; set; } + + /// + /// The number of output ports in the process group. + /// + /// The number of output ports in the process group. + [DataMember(Name="outputPortCount", EmitDefaultValue=false)] + public int? OutputPortCount { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class ProcessGroupEntity {\n"); + sb.Append(" Revision: ").Append(this.Revision).Append("\n"); + sb.Append(" Id: ").Append(this.Id).Append("\n"); + sb.Append(" Uri: ").Append(this.Uri).Append("\n"); + sb.Append(" Position: ").Append(this.Position).Append("\n"); + sb.Append(" Permissions: ").Append(this.Permissions).Append("\n"); + sb.Append(" Bulletins: ").Append(this.Bulletins).Append("\n"); + sb.Append(" DisconnectedNodeAcknowledged: ").Append(this.DisconnectedNodeAcknowledged).Append("\n"); + sb.Append(" Component: ").Append(this.Component).Append("\n"); + sb.Append(" Status: ").Append(this.Status).Append("\n"); + sb.Append(" VersionedFlowSnapshot: ").Append(this.VersionedFlowSnapshot).Append("\n"); + sb.Append(" RunningCount: ").Append(this.RunningCount).Append("\n"); + sb.Append(" StoppedCount: ").Append(this.StoppedCount).Append("\n"); + sb.Append(" InvalidCount: ").Append(this.InvalidCount).Append("\n"); + sb.Append(" DisabledCount: ").Append(this.DisabledCount).Append("\n"); + sb.Append(" ActiveRemotePortCount: ").Append(this.ActiveRemotePortCount).Append("\n"); + sb.Append(" InactiveRemotePortCount: ").Append(this.InactiveRemotePortCount).Append("\n"); + sb.Append(" VersionedFlowState: ").Append(this.VersionedFlowState).Append("\n"); + sb.Append(" UpToDateCount: ").Append(this.UpToDateCount).Append("\n"); + sb.Append(" LocallyModifiedCount: ").Append(this.LocallyModifiedCount).Append("\n"); + sb.Append(" StaleCount: ").Append(this.StaleCount).Append("\n"); + sb.Append(" LocallyModifiedAndStaleCount: ").Append(this.LocallyModifiedAndStaleCount).Append("\n"); + sb.Append(" SyncFailureCount: ").Append(this.SyncFailureCount).Append("\n"); + sb.Append(" InputPortCount: ").Append(this.InputPortCount).Append("\n"); + sb.Append(" OutputPortCount: ").Append(this.OutputPortCount).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as ProcessGroupEntity); + } + + /// + /// Returns true if ProcessGroupEntity instances are equal + /// + /// Instance of ProcessGroupEntity to be compared + /// Boolean + public bool Equals(ProcessGroupEntity input) + { + if (input == null) + return false; + + return + ( + this.Revision == input.Revision || + (this.Revision != null && + this.Revision.Equals(input.Revision)) + ) && + ( + this.Id == input.Id || + (this.Id != null && + this.Id.Equals(input.Id)) + ) && + ( + this.Uri == input.Uri || + (this.Uri != null && + this.Uri.Equals(input.Uri)) + ) && + ( + this.Position == input.Position || + (this.Position != null && + this.Position.Equals(input.Position)) + ) && + ( + this.Permissions == input.Permissions || + (this.Permissions != null && + this.Permissions.Equals(input.Permissions)) + ) && + ( + this.Bulletins == input.Bulletins || + this.Bulletins != null && + this.Bulletins.SequenceEqual(input.Bulletins) + ) && + ( + this.DisconnectedNodeAcknowledged == input.DisconnectedNodeAcknowledged || + (this.DisconnectedNodeAcknowledged != null && + this.DisconnectedNodeAcknowledged.Equals(input.DisconnectedNodeAcknowledged)) + ) && + ( + this.Component == input.Component || + (this.Component != null && + this.Component.Equals(input.Component)) + ) && + ( + this.Status == input.Status || + (this.Status != null && + this.Status.Equals(input.Status)) + ) && + ( + this.VersionedFlowSnapshot == input.VersionedFlowSnapshot || + (this.VersionedFlowSnapshot != null && + this.VersionedFlowSnapshot.Equals(input.VersionedFlowSnapshot)) + ) && + ( + this.RunningCount == input.RunningCount || + (this.RunningCount != null && + this.RunningCount.Equals(input.RunningCount)) + ) && + ( + this.StoppedCount == input.StoppedCount || + (this.StoppedCount != null && + this.StoppedCount.Equals(input.StoppedCount)) + ) && + ( + this.InvalidCount == input.InvalidCount || + (this.InvalidCount != null && + this.InvalidCount.Equals(input.InvalidCount)) + ) && + ( + this.DisabledCount == input.DisabledCount || + (this.DisabledCount != null && + this.DisabledCount.Equals(input.DisabledCount)) + ) && + ( + this.ActiveRemotePortCount == input.ActiveRemotePortCount || + (this.ActiveRemotePortCount != null && + this.ActiveRemotePortCount.Equals(input.ActiveRemotePortCount)) + ) && + ( + this.InactiveRemotePortCount == input.InactiveRemotePortCount || + (this.InactiveRemotePortCount != null && + this.InactiveRemotePortCount.Equals(input.InactiveRemotePortCount)) + ) && + ( + this.VersionedFlowState == input.VersionedFlowState || + (this.VersionedFlowState != null && + this.VersionedFlowState.Equals(input.VersionedFlowState)) + ) && + ( + this.UpToDateCount == input.UpToDateCount || + (this.UpToDateCount != null && + this.UpToDateCount.Equals(input.UpToDateCount)) + ) && + ( + this.LocallyModifiedCount == input.LocallyModifiedCount || + (this.LocallyModifiedCount != null && + this.LocallyModifiedCount.Equals(input.LocallyModifiedCount)) + ) && + ( + this.StaleCount == input.StaleCount || + (this.StaleCount != null && + this.StaleCount.Equals(input.StaleCount)) + ) && + ( + this.LocallyModifiedAndStaleCount == input.LocallyModifiedAndStaleCount || + (this.LocallyModifiedAndStaleCount != null && + this.LocallyModifiedAndStaleCount.Equals(input.LocallyModifiedAndStaleCount)) + ) && + ( + this.SyncFailureCount == input.SyncFailureCount || + (this.SyncFailureCount != null && + this.SyncFailureCount.Equals(input.SyncFailureCount)) + ) && + ( + this.InputPortCount == input.InputPortCount || + (this.InputPortCount != null && + this.InputPortCount.Equals(input.InputPortCount)) + ) && + ( + this.OutputPortCount == input.OutputPortCount || + (this.OutputPortCount != null && + this.OutputPortCount.Equals(input.OutputPortCount)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Revision != null) + hashCode = hashCode * 59 + this.Revision.GetHashCode(); + if (this.Id != null) + hashCode = hashCode * 59 + this.Id.GetHashCode(); + if (this.Uri != null) + hashCode = hashCode * 59 + this.Uri.GetHashCode(); + if (this.Position != null) + hashCode = hashCode * 59 + this.Position.GetHashCode(); + if (this.Permissions != null) + hashCode = hashCode * 59 + this.Permissions.GetHashCode(); + if (this.Bulletins != null) + hashCode = hashCode * 59 + this.Bulletins.GetHashCode(); + if (this.DisconnectedNodeAcknowledged != null) + hashCode = hashCode * 59 + this.DisconnectedNodeAcknowledged.GetHashCode(); + if (this.Component != null) + hashCode = hashCode * 59 + this.Component.GetHashCode(); + if (this.Status != null) + hashCode = hashCode * 59 + this.Status.GetHashCode(); + if (this.VersionedFlowSnapshot != null) + hashCode = hashCode * 59 + this.VersionedFlowSnapshot.GetHashCode(); + if (this.RunningCount != null) + hashCode = hashCode * 59 + this.RunningCount.GetHashCode(); + if (this.StoppedCount != null) + hashCode = hashCode * 59 + this.StoppedCount.GetHashCode(); + if (this.InvalidCount != null) + hashCode = hashCode * 59 + this.InvalidCount.GetHashCode(); + if (this.DisabledCount != null) + hashCode = hashCode * 59 + this.DisabledCount.GetHashCode(); + if (this.ActiveRemotePortCount != null) + hashCode = hashCode * 59 + this.ActiveRemotePortCount.GetHashCode(); + if (this.InactiveRemotePortCount != null) + hashCode = hashCode * 59 + this.InactiveRemotePortCount.GetHashCode(); + if (this.VersionedFlowState != null) + hashCode = hashCode * 59 + this.VersionedFlowState.GetHashCode(); + if (this.UpToDateCount != null) + hashCode = hashCode * 59 + this.UpToDateCount.GetHashCode(); + if (this.LocallyModifiedCount != null) + hashCode = hashCode * 59 + this.LocallyModifiedCount.GetHashCode(); + if (this.StaleCount != null) + hashCode = hashCode * 59 + this.StaleCount.GetHashCode(); + if (this.LocallyModifiedAndStaleCount != null) + hashCode = hashCode * 59 + this.LocallyModifiedAndStaleCount.GetHashCode(); + if (this.SyncFailureCount != null) + hashCode = hashCode * 59 + this.SyncFailureCount.GetHashCode(); + if (this.InputPortCount != null) + hashCode = hashCode * 59 + this.InputPortCount.GetHashCode(); + if (this.OutputPortCount != null) + hashCode = hashCode * 59 + this.OutputPortCount.GetHashCode(); + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/NiFi.Swagger/Model/ProcessGroupFlowDTO.cs b/NiFi.Swagger/Model/ProcessGroupFlowDTO.cs new file mode 100644 index 0000000..d2ba3ff --- /dev/null +++ b/NiFi.Swagger/Model/ProcessGroupFlowDTO.cs @@ -0,0 +1,204 @@ +/* + * NiFi Rest Api + * + * The Rest Api provides programmatic access to command and control a NiFi instance in real time. Start and stop processors, monitor queues, query provenance data, and more. Each endpoint below includes a description, definitions of the expected input and output, potential response codes, and the authorizations required to invoke each service. + * + * OpenAPI spec version: 1.9.1 + * Contact: dev@nifi.apache.org + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +namespace NiFi.Swagger.Model +{ + using System; + using System.Collections.Generic; + using System.ComponentModel.DataAnnotations; + using System.Runtime.Serialization; + using System.Text; + + using Newtonsoft.Json; + + /// + /// ProcessGroupFlowDTO + /// + [DataContract] + public partial class ProcessGroupFlowDTO : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// The id of the component.. + /// The URI for futures requests to the component.. + /// The id of parent process group of this component if applicable.. + /// The breadcrumb of the process group.. + /// The flow structure starting at this Process Group.. + /// The time the flow for the process group was last refreshed.. + public ProcessGroupFlowDTO(string id = default(string), string uri = default(string), string parentGroupId = default(string), FlowBreadcrumbEntity breadcrumb = default(FlowBreadcrumbEntity), FlowDTO flow = default(FlowDTO), string lastRefreshed = default(string)) + { + this.Id = id; + this.Uri = uri; + this.ParentGroupId = parentGroupId; + this.Breadcrumb = breadcrumb; + this.Flow = flow; + this.LastRefreshed = lastRefreshed; + } + + /// + /// The id of the component. + /// + /// The id of the component. + [DataMember(Name="id", EmitDefaultValue=false)] + public string Id { get; set; } + + /// + /// The URI for futures requests to the component. + /// + /// The URI for futures requests to the component. + [DataMember(Name="uri", EmitDefaultValue=false)] + public string Uri { get; set; } + + /// + /// The id of parent process group of this component if applicable. + /// + /// The id of parent process group of this component if applicable. + [DataMember(Name="parentGroupId", EmitDefaultValue=false)] + public string ParentGroupId { get; set; } + + /// + /// The breadcrumb of the process group. + /// + /// The breadcrumb of the process group. + [DataMember(Name="breadcrumb", EmitDefaultValue=false)] + public FlowBreadcrumbEntity Breadcrumb { get; set; } + + /// + /// The flow structure starting at this Process Group. + /// + /// The flow structure starting at this Process Group. + [DataMember(Name="flow", EmitDefaultValue=false)] + public FlowDTO Flow { get; set; } + + /// + /// The time the flow for the process group was last refreshed. + /// + /// The time the flow for the process group was last refreshed. + [DataMember(Name="lastRefreshed", EmitDefaultValue=false)] + public string LastRefreshed { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class ProcessGroupFlowDTO {\n"); + sb.Append(" Id: ").Append(this.Id).Append("\n"); + sb.Append(" Uri: ").Append(this.Uri).Append("\n"); + sb.Append(" ParentGroupId: ").Append(this.ParentGroupId).Append("\n"); + sb.Append(" Breadcrumb: ").Append(this.Breadcrumb).Append("\n"); + sb.Append(" Flow: ").Append(this.Flow).Append("\n"); + sb.Append(" LastRefreshed: ").Append(this.LastRefreshed).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as ProcessGroupFlowDTO); + } + + /// + /// Returns true if ProcessGroupFlowDTO instances are equal + /// + /// Instance of ProcessGroupFlowDTO to be compared + /// Boolean + public bool Equals(ProcessGroupFlowDTO input) + { + if (input == null) + return false; + + return + ( + this.Id == input.Id || + (this.Id != null && + this.Id.Equals(input.Id)) + ) && + ( + this.Uri == input.Uri || + (this.Uri != null && + this.Uri.Equals(input.Uri)) + ) && + ( + this.ParentGroupId == input.ParentGroupId || + (this.ParentGroupId != null && + this.ParentGroupId.Equals(input.ParentGroupId)) + ) && + ( + this.Breadcrumb == input.Breadcrumb || + (this.Breadcrumb != null && + this.Breadcrumb.Equals(input.Breadcrumb)) + ) && + ( + this.Flow == input.Flow || + (this.Flow != null && + this.Flow.Equals(input.Flow)) + ) && + ( + this.LastRefreshed == input.LastRefreshed || + (this.LastRefreshed != null && + this.LastRefreshed.Equals(input.LastRefreshed)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Id != null) + hashCode = hashCode * 59 + this.Id.GetHashCode(); + if (this.Uri != null) + hashCode = hashCode * 59 + this.Uri.GetHashCode(); + if (this.ParentGroupId != null) + hashCode = hashCode * 59 + this.ParentGroupId.GetHashCode(); + if (this.Breadcrumb != null) + hashCode = hashCode * 59 + this.Breadcrumb.GetHashCode(); + if (this.Flow != null) + hashCode = hashCode * 59 + this.Flow.GetHashCode(); + if (this.LastRefreshed != null) + hashCode = hashCode * 59 + this.LastRefreshed.GetHashCode(); + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/NiFi.Swagger/Model/ProcessGroupFlowEntity.cs b/NiFi.Swagger/Model/ProcessGroupFlowEntity.cs new file mode 100644 index 0000000..d235977 --- /dev/null +++ b/NiFi.Swagger/Model/ProcessGroupFlowEntity.cs @@ -0,0 +1,135 @@ +/* + * NiFi Rest Api + * + * The Rest Api provides programmatic access to command and control a NiFi instance in real time. Start and stop processors, monitor queues, query provenance data, and more. Each endpoint below includes a description, definitions of the expected input and output, potential response codes, and the authorizations required to invoke each service. + * + * OpenAPI spec version: 1.9.1 + * Contact: dev@nifi.apache.org + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +namespace NiFi.Swagger.Model +{ + using System; + using System.Collections.Generic; + using System.ComponentModel.DataAnnotations; + using System.Runtime.Serialization; + using System.Text; + + using Newtonsoft.Json; + + /// + /// ProcessGroupFlowEntity + /// + [DataContract] + public partial class ProcessGroupFlowEntity : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// The access policy for this process group.. + /// processGroupFlow. + public ProcessGroupFlowEntity(PermissionsDTO permissions = default(PermissionsDTO), ProcessGroupFlowDTO processGroupFlow = default(ProcessGroupFlowDTO)) + { + this.Permissions = permissions; + this.ProcessGroupFlow = processGroupFlow; + } + + /// + /// The access policy for this process group. + /// + /// The access policy for this process group. + [DataMember(Name="permissions", EmitDefaultValue=false)] + public PermissionsDTO Permissions { get; set; } + + /// + /// Gets or Sets ProcessGroupFlow + /// + [DataMember(Name="processGroupFlow", EmitDefaultValue=false)] + public ProcessGroupFlowDTO ProcessGroupFlow { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class ProcessGroupFlowEntity {\n"); + sb.Append(" Permissions: ").Append(this.Permissions).Append("\n"); + sb.Append(" ProcessGroupFlow: ").Append(this.ProcessGroupFlow).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as ProcessGroupFlowEntity); + } + + /// + /// Returns true if ProcessGroupFlowEntity instances are equal + /// + /// Instance of ProcessGroupFlowEntity to be compared + /// Boolean + public bool Equals(ProcessGroupFlowEntity input) + { + if (input == null) + return false; + + return + ( + this.Permissions == input.Permissions || + (this.Permissions != null && + this.Permissions.Equals(input.Permissions)) + ) && + ( + this.ProcessGroupFlow == input.ProcessGroupFlow || + (this.ProcessGroupFlow != null && + this.ProcessGroupFlow.Equals(input.ProcessGroupFlow)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Permissions != null) + hashCode = hashCode * 59 + this.Permissions.GetHashCode(); + if (this.ProcessGroupFlow != null) + hashCode = hashCode * 59 + this.ProcessGroupFlow.GetHashCode(); + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/NiFi.Swagger/Model/ProcessGroupStatusDTO.cs b/NiFi.Swagger/Model/ProcessGroupStatusDTO.cs new file mode 100644 index 0000000..a58dab8 --- /dev/null +++ b/NiFi.Swagger/Model/ProcessGroupStatusDTO.cs @@ -0,0 +1,188 @@ +/* + * NiFi Rest Api + * + * The Rest Api provides programmatic access to command and control a NiFi instance in real time. Start and stop processors, monitor queues, query provenance data, and more. Each endpoint below includes a description, definitions of the expected input and output, potential response codes, and the authorizations required to invoke each service. + * + * OpenAPI spec version: 1.9.1 + * Contact: dev@nifi.apache.org + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +namespace NiFi.Swagger.Model +{ + using System; + using System.Collections.Generic; + using System.ComponentModel.DataAnnotations; + using System.Linq; + using System.Runtime.Serialization; + using System.Text; + + using Newtonsoft.Json; + + /// + /// ProcessGroupStatusDTO + /// + [DataContract] + public partial class ProcessGroupStatusDTO : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// The ID of the Process Group. + /// The name of the Process Group. + /// The time the status for the process group was last refreshed.. + /// The aggregate status of all nodes in the cluster. + /// The status reported by each node in the cluster. If the NiFi instance is a standalone instance, rather than a clustered instance, this value may be null.. + public ProcessGroupStatusDTO(string id = default(string), string name = default(string), string statsLastRefreshed = default(string), ProcessGroupStatusSnapshotDTO aggregateSnapshot = default(ProcessGroupStatusSnapshotDTO), List nodeSnapshots = default(List)) + { + this.Id = id; + this.Name = name; + this.StatsLastRefreshed = statsLastRefreshed; + this.AggregateSnapshot = aggregateSnapshot; + this.NodeSnapshots = nodeSnapshots; + } + + /// + /// The ID of the Process Group + /// + /// The ID of the Process Group + [DataMember(Name="id", EmitDefaultValue=false)] + public string Id { get; set; } + + /// + /// The name of the Process Group + /// + /// The name of the Process Group + [DataMember(Name="name", EmitDefaultValue=false)] + public string Name { get; set; } + + /// + /// The time the status for the process group was last refreshed. + /// + /// The time the status for the process group was last refreshed. + [DataMember(Name="statsLastRefreshed", EmitDefaultValue=false)] + public string StatsLastRefreshed { get; set; } + + /// + /// The aggregate status of all nodes in the cluster + /// + /// The aggregate status of all nodes in the cluster + [DataMember(Name="aggregateSnapshot", EmitDefaultValue=false)] + public ProcessGroupStatusSnapshotDTO AggregateSnapshot { get; set; } + + /// + /// The status reported by each node in the cluster. If the NiFi instance is a standalone instance, rather than a clustered instance, this value may be null. + /// + /// The status reported by each node in the cluster. If the NiFi instance is a standalone instance, rather than a clustered instance, this value may be null. + [DataMember(Name="nodeSnapshots", EmitDefaultValue=false)] + public List NodeSnapshots { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class ProcessGroupStatusDTO {\n"); + sb.Append(" Id: ").Append(this.Id).Append("\n"); + sb.Append(" Name: ").Append(this.Name).Append("\n"); + sb.Append(" StatsLastRefreshed: ").Append(this.StatsLastRefreshed).Append("\n"); + sb.Append(" AggregateSnapshot: ").Append(this.AggregateSnapshot).Append("\n"); + sb.Append(" NodeSnapshots: ").Append(this.NodeSnapshots).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as ProcessGroupStatusDTO); + } + + /// + /// Returns true if ProcessGroupStatusDTO instances are equal + /// + /// Instance of ProcessGroupStatusDTO to be compared + /// Boolean + public bool Equals(ProcessGroupStatusDTO input) + { + if (input == null) + return false; + + return + ( + this.Id == input.Id || + (this.Id != null && + this.Id.Equals(input.Id)) + ) && + ( + this.Name == input.Name || + (this.Name != null && + this.Name.Equals(input.Name)) + ) && + ( + this.StatsLastRefreshed == input.StatsLastRefreshed || + (this.StatsLastRefreshed != null && + this.StatsLastRefreshed.Equals(input.StatsLastRefreshed)) + ) && + ( + this.AggregateSnapshot == input.AggregateSnapshot || + (this.AggregateSnapshot != null && + this.AggregateSnapshot.Equals(input.AggregateSnapshot)) + ) && + ( + this.NodeSnapshots == input.NodeSnapshots || + this.NodeSnapshots != null && + this.NodeSnapshots.SequenceEqual(input.NodeSnapshots) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Id != null) + hashCode = hashCode * 59 + this.Id.GetHashCode(); + if (this.Name != null) + hashCode = hashCode * 59 + this.Name.GetHashCode(); + if (this.StatsLastRefreshed != null) + hashCode = hashCode * 59 + this.StatsLastRefreshed.GetHashCode(); + if (this.AggregateSnapshot != null) + hashCode = hashCode * 59 + this.AggregateSnapshot.GetHashCode(); + if (this.NodeSnapshots != null) + hashCode = hashCode * 59 + this.NodeSnapshots.GetHashCode(); + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/NiFi.Swagger/Model/ProcessGroupStatusEntity.cs b/NiFi.Swagger/Model/ProcessGroupStatusEntity.cs new file mode 100644 index 0000000..af0fb59 --- /dev/null +++ b/NiFi.Swagger/Model/ProcessGroupStatusEntity.cs @@ -0,0 +1,133 @@ +/* + * NiFi Rest Api + * + * The Rest Api provides programmatic access to command and control a NiFi instance in real time. Start and stop processors, monitor queues, query provenance data, and more. Each endpoint below includes a description, definitions of the expected input and output, potential response codes, and the authorizations required to invoke each service. + * + * OpenAPI spec version: 1.9.1 + * Contact: dev@nifi.apache.org + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +namespace NiFi.Swagger.Model +{ + using System; + using System.Collections.Generic; + using System.ComponentModel.DataAnnotations; + using System.Runtime.Serialization; + using System.Text; + + using Newtonsoft.Json; + + /// + /// ProcessGroupStatusEntity + /// + [DataContract] + public partial class ProcessGroupStatusEntity : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// processGroupStatus. + public ProcessGroupStatusEntity(ProcessGroupStatusDTO processGroupStatus = default(ProcessGroupStatusDTO)) + { + this.ProcessGroupStatus = processGroupStatus; + } + + /// + /// Gets or Sets ProcessGroupStatus + /// + [DataMember(Name="processGroupStatus", EmitDefaultValue=false)] + public ProcessGroupStatusDTO ProcessGroupStatus { get; set; } + + /// + /// Indicates whether the user can read a given resource. + /// + /// Indicates whether the user can read a given resource. + [DataMember(Name="canRead", EmitDefaultValue=false)] + public bool? CanRead { get; private set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class ProcessGroupStatusEntity {\n"); + sb.Append(" ProcessGroupStatus: ").Append(this.ProcessGroupStatus).Append("\n"); + sb.Append(" CanRead: ").Append(this.CanRead).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as ProcessGroupStatusEntity); + } + + /// + /// Returns true if ProcessGroupStatusEntity instances are equal + /// + /// Instance of ProcessGroupStatusEntity to be compared + /// Boolean + public bool Equals(ProcessGroupStatusEntity input) + { + if (input == null) + return false; + + return + ( + this.ProcessGroupStatus == input.ProcessGroupStatus || + (this.ProcessGroupStatus != null && + this.ProcessGroupStatus.Equals(input.ProcessGroupStatus)) + ) && + ( + this.CanRead == input.CanRead || + (this.CanRead != null && + this.CanRead.Equals(input.CanRead)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.ProcessGroupStatus != null) + hashCode = hashCode * 59 + this.ProcessGroupStatus.GetHashCode(); + if (this.CanRead != null) + hashCode = hashCode * 59 + this.CanRead.GetHashCode(); + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/NiFi.Swagger/Model/ProcessGroupStatusSnapshotDTO.cs b/NiFi.Swagger/Model/ProcessGroupStatusSnapshotDTO.cs new file mode 100644 index 0000000..89b4c0c --- /dev/null +++ b/NiFi.Swagger/Model/ProcessGroupStatusSnapshotDTO.cs @@ -0,0 +1,736 @@ +/* + * NiFi Rest Api + * + * The Rest Api provides programmatic access to command and control a NiFi instance in real time. Start and stop processors, monitor queues, query provenance data, and more. Each endpoint below includes a description, definitions of the expected input and output, potential response codes, and the authorizations required to invoke each service. + * + * OpenAPI spec version: 1.9.1 + * Contact: dev@nifi.apache.org + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +namespace NiFi.Swagger.Model +{ + using System; + using System.Collections.Generic; + using System.ComponentModel.DataAnnotations; + using System.Linq; + using System.Runtime.Serialization; + using System.Text; + + using Newtonsoft.Json; + using Newtonsoft.Json.Converters; + + /// + /// ProcessGroupStatusSnapshotDTO + /// + [DataContract] + public partial class ProcessGroupStatusSnapshotDTO : IEquatable, IValidatableObject + { + /// + /// The current state of the Process Group, as it relates to the Versioned Flow + /// + /// The current state of the Process Group, as it relates to the Versioned Flow + [JsonConverter(typeof(StringEnumConverter))] + public enum VersionedFlowStateEnum + { + + /// + /// Enum LOCALLYMODIFIED for value: LOCALLY_MODIFIED + /// + [EnumMember(Value = "LOCALLY_MODIFIED")] + LOCALLYMODIFIED = 1, + + /// + /// Enum STALE for value: STALE + /// + [EnumMember(Value = "STALE")] + STALE = 2, + + /// + /// Enum LOCALLYMODIFIEDANDSTALE for value: LOCALLY_MODIFIED_AND_STALE + /// + [EnumMember(Value = "LOCALLY_MODIFIED_AND_STALE")] + LOCALLYMODIFIEDANDSTALE = 3, + + /// + /// Enum UPTODATE for value: UP_TO_DATE + /// + [EnumMember(Value = "UP_TO_DATE")] + UPTODATE = 4, + + /// + /// Enum SYNCFAILURE for value: SYNC_FAILURE + /// + [EnumMember(Value = "SYNC_FAILURE")] + SYNCFAILURE = 5 + } + + /// + /// The current state of the Process Group, as it relates to the Versioned Flow + /// + /// The current state of the Process Group, as it relates to the Versioned Flow + [DataMember(Name="versionedFlowState", EmitDefaultValue=false)] + public VersionedFlowStateEnum? VersionedFlowState { get; set; } + /// + /// Initializes a new instance of the class. + /// + /// The id of the process group.. + /// The name of this process group.. + /// The status of all connections in the process group.. + /// The status of all processors in the process group.. + /// The status of all process groups in the process group.. + /// The status of all remote process groups in the process group.. + /// The status of all input ports in the process group.. + /// The status of all output ports in the process group.. + /// The number of FlowFiles that have come into this ProcessGroup in the last 5 minutes. + /// The number of bytes that have come into this ProcessGroup in the last 5 minutes. + /// The input count/size for the process group in the last 5 minutes (pretty printed).. + /// The number of FlowFiles that are queued up in this ProcessGroup right now. + /// The number of bytes that are queued up in this ProcessGroup right now. + /// The count/size that is queued in the the process group.. + /// The count that is queued for the process group.. + /// The size that is queued for the process group.. + /// The number of bytes read by components in this ProcessGroup in the last 5 minutes. + /// The number of bytes read in the last 5 minutes.. + /// The number of bytes written by components in this ProcessGroup in the last 5 minutes. + /// The number of bytes written in the last 5 minutes.. + /// The number of FlowFiles transferred out of this ProcessGroup in the last 5 minutes. + /// The number of bytes transferred out of this ProcessGroup in the last 5 minutes. + /// The output count/size for the process group in the last 5 minutes.. + /// The number of FlowFiles transferred in this ProcessGroup in the last 5 minutes. + /// The number of bytes transferred in this ProcessGroup in the last 5 minutes. + /// The count/size transferred to/from queues in the process group in the last 5 minutes.. + /// The number of bytes received from external sources by components within this ProcessGroup in the last 5 minutes. + /// The number of FlowFiles received from external sources by components within this ProcessGroup in the last 5 minutes. + /// The count/size sent to the process group in the last 5 minutes.. + /// The number of bytes sent to an external sink by components within this ProcessGroup in the last 5 minutes. + /// The number of FlowFiles sent to an external sink by components within this ProcessGroup in the last 5 minutes. + /// The count/size sent from this process group in the last 5 minutes.. + /// The active thread count for this process group.. + /// The number of threads currently terminated for the process group.. + public ProcessGroupStatusSnapshotDTO(string id = default(string), string name = default(string), List connectionStatusSnapshots = default(List), List processorStatusSnapshots = default(List), List processGroupStatusSnapshots = default(List), List remoteProcessGroupStatusSnapshots = default(List), List inputPortStatusSnapshots = default(List), List outputPortStatusSnapshots = default(List), int? flowFilesIn = default(int?), long? bytesIn = default(long?), string input = default(string), int? flowFilesQueued = default(int?), long? bytesQueued = default(long?), string queued = default(string), string queuedCount = default(string), string queuedSize = default(string), long? bytesRead = default(long?), string read = default(string), long? bytesWritten = default(long?), string written = default(string), int? flowFilesOut = default(int?), long? bytesOut = default(long?), string output = default(string), int? flowFilesTransferred = default(int?), long? bytesTransferred = default(long?), string transferred = default(string), long? bytesReceived = default(long?), int? flowFilesReceived = default(int?), string received = default(string), long? bytesSent = default(long?), int? flowFilesSent = default(int?), string sent = default(string), int? activeThreadCount = default(int?), int? terminatedThreadCount = default(int?)) + { + this.Id = id; + this.Name = name; + this.ConnectionStatusSnapshots = connectionStatusSnapshots; + this.ProcessorStatusSnapshots = processorStatusSnapshots; + this.ProcessGroupStatusSnapshots = processGroupStatusSnapshots; + this.RemoteProcessGroupStatusSnapshots = remoteProcessGroupStatusSnapshots; + this.InputPortStatusSnapshots = inputPortStatusSnapshots; + this.OutputPortStatusSnapshots = outputPortStatusSnapshots; + this.FlowFilesIn = flowFilesIn; + this.BytesIn = bytesIn; + this.Input = input; + this.FlowFilesQueued = flowFilesQueued; + this.BytesQueued = bytesQueued; + this.Queued = queued; + this.QueuedCount = queuedCount; + this.QueuedSize = queuedSize; + this.BytesRead = bytesRead; + this.Read = read; + this.BytesWritten = bytesWritten; + this.Written = written; + this.FlowFilesOut = flowFilesOut; + this.BytesOut = bytesOut; + this.Output = output; + this.FlowFilesTransferred = flowFilesTransferred; + this.BytesTransferred = bytesTransferred; + this.Transferred = transferred; + this.BytesReceived = bytesReceived; + this.FlowFilesReceived = flowFilesReceived; + this.Received = received; + this.BytesSent = bytesSent; + this.FlowFilesSent = flowFilesSent; + this.Sent = sent; + this.ActiveThreadCount = activeThreadCount; + this.TerminatedThreadCount = terminatedThreadCount; + } + + /// + /// The id of the process group. + /// + /// The id of the process group. + [DataMember(Name="id", EmitDefaultValue=false)] + public string Id { get; set; } + + /// + /// The name of this process group. + /// + /// The name of this process group. + [DataMember(Name="name", EmitDefaultValue=false)] + public string Name { get; set; } + + /// + /// The status of all connections in the process group. + /// + /// The status of all connections in the process group. + [DataMember(Name="connectionStatusSnapshots", EmitDefaultValue=false)] + public List ConnectionStatusSnapshots { get; set; } + + /// + /// The status of all processors in the process group. + /// + /// The status of all processors in the process group. + [DataMember(Name="processorStatusSnapshots", EmitDefaultValue=false)] + public List ProcessorStatusSnapshots { get; set; } + + /// + /// The status of all process groups in the process group. + /// + /// The status of all process groups in the process group. + [DataMember(Name="processGroupStatusSnapshots", EmitDefaultValue=false)] + public List ProcessGroupStatusSnapshots { get; set; } + + /// + /// The status of all remote process groups in the process group. + /// + /// The status of all remote process groups in the process group. + [DataMember(Name="remoteProcessGroupStatusSnapshots", EmitDefaultValue=false)] + public List RemoteProcessGroupStatusSnapshots { get; set; } + + /// + /// The status of all input ports in the process group. + /// + /// The status of all input ports in the process group. + [DataMember(Name="inputPortStatusSnapshots", EmitDefaultValue=false)] + public List InputPortStatusSnapshots { get; set; } + + /// + /// The status of all output ports in the process group. + /// + /// The status of all output ports in the process group. + [DataMember(Name="outputPortStatusSnapshots", EmitDefaultValue=false)] + public List OutputPortStatusSnapshots { get; set; } + + + /// + /// The number of FlowFiles that have come into this ProcessGroup in the last 5 minutes + /// + /// The number of FlowFiles that have come into this ProcessGroup in the last 5 minutes + [DataMember(Name="flowFilesIn", EmitDefaultValue=false)] + public int? FlowFilesIn { get; set; } + + /// + /// The number of bytes that have come into this ProcessGroup in the last 5 minutes + /// + /// The number of bytes that have come into this ProcessGroup in the last 5 minutes + [DataMember(Name="bytesIn", EmitDefaultValue=false)] + public long? BytesIn { get; set; } + + /// + /// The input count/size for the process group in the last 5 minutes (pretty printed). + /// + /// The input count/size for the process group in the last 5 minutes (pretty printed). + [DataMember(Name="input", EmitDefaultValue=false)] + public string Input { get; set; } + + /// + /// The number of FlowFiles that are queued up in this ProcessGroup right now + /// + /// The number of FlowFiles that are queued up in this ProcessGroup right now + [DataMember(Name="flowFilesQueued", EmitDefaultValue=false)] + public int? FlowFilesQueued { get; set; } + + /// + /// The number of bytes that are queued up in this ProcessGroup right now + /// + /// The number of bytes that are queued up in this ProcessGroup right now + [DataMember(Name="bytesQueued", EmitDefaultValue=false)] + public long? BytesQueued { get; set; } + + /// + /// The count/size that is queued in the the process group. + /// + /// The count/size that is queued in the the process group. + [DataMember(Name="queued", EmitDefaultValue=false)] + public string Queued { get; set; } + + /// + /// The count that is queued for the process group. + /// + /// The count that is queued for the process group. + [DataMember(Name="queuedCount", EmitDefaultValue=false)] + public string QueuedCount { get; set; } + + /// + /// The size that is queued for the process group. + /// + /// The size that is queued for the process group. + [DataMember(Name="queuedSize", EmitDefaultValue=false)] + public string QueuedSize { get; set; } + + /// + /// The number of bytes read by components in this ProcessGroup in the last 5 minutes + /// + /// The number of bytes read by components in this ProcessGroup in the last 5 minutes + [DataMember(Name="bytesRead", EmitDefaultValue=false)] + public long? BytesRead { get; set; } + + /// + /// The number of bytes read in the last 5 minutes. + /// + /// The number of bytes read in the last 5 minutes. + [DataMember(Name="read", EmitDefaultValue=false)] + public string Read { get; set; } + + /// + /// The number of bytes written by components in this ProcessGroup in the last 5 minutes + /// + /// The number of bytes written by components in this ProcessGroup in the last 5 minutes + [DataMember(Name="bytesWritten", EmitDefaultValue=false)] + public long? BytesWritten { get; set; } + + /// + /// The number of bytes written in the last 5 minutes. + /// + /// The number of bytes written in the last 5 minutes. + [DataMember(Name="written", EmitDefaultValue=false)] + public string Written { get; set; } + + /// + /// The number of FlowFiles transferred out of this ProcessGroup in the last 5 minutes + /// + /// The number of FlowFiles transferred out of this ProcessGroup in the last 5 minutes + [DataMember(Name="flowFilesOut", EmitDefaultValue=false)] + public int? FlowFilesOut { get; set; } + + /// + /// The number of bytes transferred out of this ProcessGroup in the last 5 minutes + /// + /// The number of bytes transferred out of this ProcessGroup in the last 5 minutes + [DataMember(Name="bytesOut", EmitDefaultValue=false)] + public long? BytesOut { get; set; } + + /// + /// The output count/size for the process group in the last 5 minutes. + /// + /// The output count/size for the process group in the last 5 minutes. + [DataMember(Name="output", EmitDefaultValue=false)] + public string Output { get; set; } + + /// + /// The number of FlowFiles transferred in this ProcessGroup in the last 5 minutes + /// + /// The number of FlowFiles transferred in this ProcessGroup in the last 5 minutes + [DataMember(Name="flowFilesTransferred", EmitDefaultValue=false)] + public int? FlowFilesTransferred { get; set; } + + /// + /// The number of bytes transferred in this ProcessGroup in the last 5 minutes + /// + /// The number of bytes transferred in this ProcessGroup in the last 5 minutes + [DataMember(Name="bytesTransferred", EmitDefaultValue=false)] + public long? BytesTransferred { get; set; } + + /// + /// The count/size transferred to/from queues in the process group in the last 5 minutes. + /// + /// The count/size transferred to/from queues in the process group in the last 5 minutes. + [DataMember(Name="transferred", EmitDefaultValue=false)] + public string Transferred { get; set; } + + /// + /// The number of bytes received from external sources by components within this ProcessGroup in the last 5 minutes + /// + /// The number of bytes received from external sources by components within this ProcessGroup in the last 5 minutes + [DataMember(Name="bytesReceived", EmitDefaultValue=false)] + public long? BytesReceived { get; set; } + + /// + /// The number of FlowFiles received from external sources by components within this ProcessGroup in the last 5 minutes + /// + /// The number of FlowFiles received from external sources by components within this ProcessGroup in the last 5 minutes + [DataMember(Name="flowFilesReceived", EmitDefaultValue=false)] + public int? FlowFilesReceived { get; set; } + + /// + /// The count/size sent to the process group in the last 5 minutes. + /// + /// The count/size sent to the process group in the last 5 minutes. + [DataMember(Name="received", EmitDefaultValue=false)] + public string Received { get; set; } + + /// + /// The number of bytes sent to an external sink by components within this ProcessGroup in the last 5 minutes + /// + /// The number of bytes sent to an external sink by components within this ProcessGroup in the last 5 minutes + [DataMember(Name="bytesSent", EmitDefaultValue=false)] + public long? BytesSent { get; set; } + + /// + /// The number of FlowFiles sent to an external sink by components within this ProcessGroup in the last 5 minutes + /// + /// The number of FlowFiles sent to an external sink by components within this ProcessGroup in the last 5 minutes + [DataMember(Name="flowFilesSent", EmitDefaultValue=false)] + public int? FlowFilesSent { get; set; } + + /// + /// The count/size sent from this process group in the last 5 minutes. + /// + /// The count/size sent from this process group in the last 5 minutes. + [DataMember(Name="sent", EmitDefaultValue=false)] + public string Sent { get; set; } + + /// + /// The active thread count for this process group. + /// + /// The active thread count for this process group. + [DataMember(Name="activeThreadCount", EmitDefaultValue=false)] + public int? ActiveThreadCount { get; set; } + + /// + /// The number of threads currently terminated for the process group. + /// + /// The number of threads currently terminated for the process group. + [DataMember(Name="terminatedThreadCount", EmitDefaultValue=false)] + public int? TerminatedThreadCount { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class ProcessGroupStatusSnapshotDTO {\n"); + sb.Append(" Id: ").Append(this.Id).Append("\n"); + sb.Append(" Name: ").Append(this.Name).Append("\n"); + sb.Append(" ConnectionStatusSnapshots: ").Append(this.ConnectionStatusSnapshots).Append("\n"); + sb.Append(" ProcessorStatusSnapshots: ").Append(this.ProcessorStatusSnapshots).Append("\n"); + sb.Append(" ProcessGroupStatusSnapshots: ").Append(this.ProcessGroupStatusSnapshots).Append("\n"); + sb.Append(" RemoteProcessGroupStatusSnapshots: ").Append(this.RemoteProcessGroupStatusSnapshots).Append("\n"); + sb.Append(" InputPortStatusSnapshots: ").Append(this.InputPortStatusSnapshots).Append("\n"); + sb.Append(" OutputPortStatusSnapshots: ").Append(this.OutputPortStatusSnapshots).Append("\n"); + sb.Append(" VersionedFlowState: ").Append(this.VersionedFlowState).Append("\n"); + sb.Append(" FlowFilesIn: ").Append(this.FlowFilesIn).Append("\n"); + sb.Append(" BytesIn: ").Append(this.BytesIn).Append("\n"); + sb.Append(" Input: ").Append(this.Input).Append("\n"); + sb.Append(" FlowFilesQueued: ").Append(this.FlowFilesQueued).Append("\n"); + sb.Append(" BytesQueued: ").Append(this.BytesQueued).Append("\n"); + sb.Append(" Queued: ").Append(this.Queued).Append("\n"); + sb.Append(" QueuedCount: ").Append(this.QueuedCount).Append("\n"); + sb.Append(" QueuedSize: ").Append(this.QueuedSize).Append("\n"); + sb.Append(" BytesRead: ").Append(this.BytesRead).Append("\n"); + sb.Append(" Read: ").Append(this.Read).Append("\n"); + sb.Append(" BytesWritten: ").Append(this.BytesWritten).Append("\n"); + sb.Append(" Written: ").Append(this.Written).Append("\n"); + sb.Append(" FlowFilesOut: ").Append(this.FlowFilesOut).Append("\n"); + sb.Append(" BytesOut: ").Append(this.BytesOut).Append("\n"); + sb.Append(" Output: ").Append(this.Output).Append("\n"); + sb.Append(" FlowFilesTransferred: ").Append(this.FlowFilesTransferred).Append("\n"); + sb.Append(" BytesTransferred: ").Append(this.BytesTransferred).Append("\n"); + sb.Append(" Transferred: ").Append(this.Transferred).Append("\n"); + sb.Append(" BytesReceived: ").Append(this.BytesReceived).Append("\n"); + sb.Append(" FlowFilesReceived: ").Append(this.FlowFilesReceived).Append("\n"); + sb.Append(" Received: ").Append(this.Received).Append("\n"); + sb.Append(" BytesSent: ").Append(this.BytesSent).Append("\n"); + sb.Append(" FlowFilesSent: ").Append(this.FlowFilesSent).Append("\n"); + sb.Append(" Sent: ").Append(this.Sent).Append("\n"); + sb.Append(" ActiveThreadCount: ").Append(this.ActiveThreadCount).Append("\n"); + sb.Append(" TerminatedThreadCount: ").Append(this.TerminatedThreadCount).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as ProcessGroupStatusSnapshotDTO); + } + + /// + /// Returns true if ProcessGroupStatusSnapshotDTO instances are equal + /// + /// Instance of ProcessGroupStatusSnapshotDTO to be compared + /// Boolean + public bool Equals(ProcessGroupStatusSnapshotDTO input) + { + if (input == null) + return false; + + return + ( + this.Id == input.Id || + (this.Id != null && + this.Id.Equals(input.Id)) + ) && + ( + this.Name == input.Name || + (this.Name != null && + this.Name.Equals(input.Name)) + ) && + ( + this.ConnectionStatusSnapshots == input.ConnectionStatusSnapshots || + this.ConnectionStatusSnapshots != null && + this.ConnectionStatusSnapshots.SequenceEqual(input.ConnectionStatusSnapshots) + ) && + ( + this.ProcessorStatusSnapshots == input.ProcessorStatusSnapshots || + this.ProcessorStatusSnapshots != null && + this.ProcessorStatusSnapshots.SequenceEqual(input.ProcessorStatusSnapshots) + ) && + ( + this.ProcessGroupStatusSnapshots == input.ProcessGroupStatusSnapshots || + this.ProcessGroupStatusSnapshots != null && + this.ProcessGroupStatusSnapshots.SequenceEqual(input.ProcessGroupStatusSnapshots) + ) && + ( + this.RemoteProcessGroupStatusSnapshots == input.RemoteProcessGroupStatusSnapshots || + this.RemoteProcessGroupStatusSnapshots != null && + this.RemoteProcessGroupStatusSnapshots.SequenceEqual(input.RemoteProcessGroupStatusSnapshots) + ) && + ( + this.InputPortStatusSnapshots == input.InputPortStatusSnapshots || + this.InputPortStatusSnapshots != null && + this.InputPortStatusSnapshots.SequenceEqual(input.InputPortStatusSnapshots) + ) && + ( + this.OutputPortStatusSnapshots == input.OutputPortStatusSnapshots || + this.OutputPortStatusSnapshots != null && + this.OutputPortStatusSnapshots.SequenceEqual(input.OutputPortStatusSnapshots) + ) && + ( + this.VersionedFlowState == input.VersionedFlowState || + (this.VersionedFlowState != null && + this.VersionedFlowState.Equals(input.VersionedFlowState)) + ) && + ( + this.FlowFilesIn == input.FlowFilesIn || + (this.FlowFilesIn != null && + this.FlowFilesIn.Equals(input.FlowFilesIn)) + ) && + ( + this.BytesIn == input.BytesIn || + (this.BytesIn != null && + this.BytesIn.Equals(input.BytesIn)) + ) && + ( + this.Input == input.Input || + (this.Input != null && + this.Input.Equals(input.Input)) + ) && + ( + this.FlowFilesQueued == input.FlowFilesQueued || + (this.FlowFilesQueued != null && + this.FlowFilesQueued.Equals(input.FlowFilesQueued)) + ) && + ( + this.BytesQueued == input.BytesQueued || + (this.BytesQueued != null && + this.BytesQueued.Equals(input.BytesQueued)) + ) && + ( + this.Queued == input.Queued || + (this.Queued != null && + this.Queued.Equals(input.Queued)) + ) && + ( + this.QueuedCount == input.QueuedCount || + (this.QueuedCount != null && + this.QueuedCount.Equals(input.QueuedCount)) + ) && + ( + this.QueuedSize == input.QueuedSize || + (this.QueuedSize != null && + this.QueuedSize.Equals(input.QueuedSize)) + ) && + ( + this.BytesRead == input.BytesRead || + (this.BytesRead != null && + this.BytesRead.Equals(input.BytesRead)) + ) && + ( + this.Read == input.Read || + (this.Read != null && + this.Read.Equals(input.Read)) + ) && + ( + this.BytesWritten == input.BytesWritten || + (this.BytesWritten != null && + this.BytesWritten.Equals(input.BytesWritten)) + ) && + ( + this.Written == input.Written || + (this.Written != null && + this.Written.Equals(input.Written)) + ) && + ( + this.FlowFilesOut == input.FlowFilesOut || + (this.FlowFilesOut != null && + this.FlowFilesOut.Equals(input.FlowFilesOut)) + ) && + ( + this.BytesOut == input.BytesOut || + (this.BytesOut != null && + this.BytesOut.Equals(input.BytesOut)) + ) && + ( + this.Output == input.Output || + (this.Output != null && + this.Output.Equals(input.Output)) + ) && + ( + this.FlowFilesTransferred == input.FlowFilesTransferred || + (this.FlowFilesTransferred != null && + this.FlowFilesTransferred.Equals(input.FlowFilesTransferred)) + ) && + ( + this.BytesTransferred == input.BytesTransferred || + (this.BytesTransferred != null && + this.BytesTransferred.Equals(input.BytesTransferred)) + ) && + ( + this.Transferred == input.Transferred || + (this.Transferred != null && + this.Transferred.Equals(input.Transferred)) + ) && + ( + this.BytesReceived == input.BytesReceived || + (this.BytesReceived != null && + this.BytesReceived.Equals(input.BytesReceived)) + ) && + ( + this.FlowFilesReceived == input.FlowFilesReceived || + (this.FlowFilesReceived != null && + this.FlowFilesReceived.Equals(input.FlowFilesReceived)) + ) && + ( + this.Received == input.Received || + (this.Received != null && + this.Received.Equals(input.Received)) + ) && + ( + this.BytesSent == input.BytesSent || + (this.BytesSent != null && + this.BytesSent.Equals(input.BytesSent)) + ) && + ( + this.FlowFilesSent == input.FlowFilesSent || + (this.FlowFilesSent != null && + this.FlowFilesSent.Equals(input.FlowFilesSent)) + ) && + ( + this.Sent == input.Sent || + (this.Sent != null && + this.Sent.Equals(input.Sent)) + ) && + ( + this.ActiveThreadCount == input.ActiveThreadCount || + (this.ActiveThreadCount != null && + this.ActiveThreadCount.Equals(input.ActiveThreadCount)) + ) && + ( + this.TerminatedThreadCount == input.TerminatedThreadCount || + (this.TerminatedThreadCount != null && + this.TerminatedThreadCount.Equals(input.TerminatedThreadCount)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Id != null) + hashCode = hashCode * 59 + this.Id.GetHashCode(); + if (this.Name != null) + hashCode = hashCode * 59 + this.Name.GetHashCode(); + if (this.ConnectionStatusSnapshots != null) + hashCode = hashCode * 59 + this.ConnectionStatusSnapshots.GetHashCode(); + if (this.ProcessorStatusSnapshots != null) + hashCode = hashCode * 59 + this.ProcessorStatusSnapshots.GetHashCode(); + if (this.ProcessGroupStatusSnapshots != null) + hashCode = hashCode * 59 + this.ProcessGroupStatusSnapshots.GetHashCode(); + if (this.RemoteProcessGroupStatusSnapshots != null) + hashCode = hashCode * 59 + this.RemoteProcessGroupStatusSnapshots.GetHashCode(); + if (this.InputPortStatusSnapshots != null) + hashCode = hashCode * 59 + this.InputPortStatusSnapshots.GetHashCode(); + if (this.OutputPortStatusSnapshots != null) + hashCode = hashCode * 59 + this.OutputPortStatusSnapshots.GetHashCode(); + if (this.VersionedFlowState != null) + hashCode = hashCode * 59 + this.VersionedFlowState.GetHashCode(); + if (this.FlowFilesIn != null) + hashCode = hashCode * 59 + this.FlowFilesIn.GetHashCode(); + if (this.BytesIn != null) + hashCode = hashCode * 59 + this.BytesIn.GetHashCode(); + if (this.Input != null) + hashCode = hashCode * 59 + this.Input.GetHashCode(); + if (this.FlowFilesQueued != null) + hashCode = hashCode * 59 + this.FlowFilesQueued.GetHashCode(); + if (this.BytesQueued != null) + hashCode = hashCode * 59 + this.BytesQueued.GetHashCode(); + if (this.Queued != null) + hashCode = hashCode * 59 + this.Queued.GetHashCode(); + if (this.QueuedCount != null) + hashCode = hashCode * 59 + this.QueuedCount.GetHashCode(); + if (this.QueuedSize != null) + hashCode = hashCode * 59 + this.QueuedSize.GetHashCode(); + if (this.BytesRead != null) + hashCode = hashCode * 59 + this.BytesRead.GetHashCode(); + if (this.Read != null) + hashCode = hashCode * 59 + this.Read.GetHashCode(); + if (this.BytesWritten != null) + hashCode = hashCode * 59 + this.BytesWritten.GetHashCode(); + if (this.Written != null) + hashCode = hashCode * 59 + this.Written.GetHashCode(); + if (this.FlowFilesOut != null) + hashCode = hashCode * 59 + this.FlowFilesOut.GetHashCode(); + if (this.BytesOut != null) + hashCode = hashCode * 59 + this.BytesOut.GetHashCode(); + if (this.Output != null) + hashCode = hashCode * 59 + this.Output.GetHashCode(); + if (this.FlowFilesTransferred != null) + hashCode = hashCode * 59 + this.FlowFilesTransferred.GetHashCode(); + if (this.BytesTransferred != null) + hashCode = hashCode * 59 + this.BytesTransferred.GetHashCode(); + if (this.Transferred != null) + hashCode = hashCode * 59 + this.Transferred.GetHashCode(); + if (this.BytesReceived != null) + hashCode = hashCode * 59 + this.BytesReceived.GetHashCode(); + if (this.FlowFilesReceived != null) + hashCode = hashCode * 59 + this.FlowFilesReceived.GetHashCode(); + if (this.Received != null) + hashCode = hashCode * 59 + this.Received.GetHashCode(); + if (this.BytesSent != null) + hashCode = hashCode * 59 + this.BytesSent.GetHashCode(); + if (this.FlowFilesSent != null) + hashCode = hashCode * 59 + this.FlowFilesSent.GetHashCode(); + if (this.Sent != null) + hashCode = hashCode * 59 + this.Sent.GetHashCode(); + if (this.ActiveThreadCount != null) + hashCode = hashCode * 59 + this.ActiveThreadCount.GetHashCode(); + if (this.TerminatedThreadCount != null) + hashCode = hashCode * 59 + this.TerminatedThreadCount.GetHashCode(); + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/NiFi.Swagger/Model/ProcessGroupStatusSnapshotEntity.cs b/NiFi.Swagger/Model/ProcessGroupStatusSnapshotEntity.cs new file mode 100644 index 0000000..f7433b2 --- /dev/null +++ b/NiFi.Swagger/Model/ProcessGroupStatusSnapshotEntity.cs @@ -0,0 +1,150 @@ +/* + * NiFi Rest Api + * + * The Rest Api provides programmatic access to command and control a NiFi instance in real time. Start and stop processors, monitor queues, query provenance data, and more. Each endpoint below includes a description, definitions of the expected input and output, potential response codes, and the authorizations required to invoke each service. + * + * OpenAPI spec version: 1.9.1 + * Contact: dev@nifi.apache.org + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +namespace NiFi.Swagger.Model +{ + using System; + using System.Collections.Generic; + using System.ComponentModel.DataAnnotations; + using System.Runtime.Serialization; + using System.Text; + + using Newtonsoft.Json; + + /// + /// ProcessGroupStatusSnapshotEntity + /// + [DataContract] + public partial class ProcessGroupStatusSnapshotEntity : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// The id of the process group.. + /// processGroupStatusSnapshot. + public ProcessGroupStatusSnapshotEntity(string id = default(string), ProcessGroupStatusSnapshotDTO processGroupStatusSnapshot = default(ProcessGroupStatusSnapshotDTO)) + { + this.Id = id; + this.ProcessGroupStatusSnapshot = processGroupStatusSnapshot; + } + + /// + /// The id of the process group. + /// + /// The id of the process group. + [DataMember(Name="id", EmitDefaultValue=false)] + public string Id { get; set; } + + /// + /// Gets or Sets ProcessGroupStatusSnapshot + /// + [DataMember(Name="processGroupStatusSnapshot", EmitDefaultValue=false)] + public ProcessGroupStatusSnapshotDTO ProcessGroupStatusSnapshot { get; set; } + + /// + /// Indicates whether the user can read a given resource. + /// + /// Indicates whether the user can read a given resource. + [DataMember(Name="canRead", EmitDefaultValue=false)] + public bool? CanRead { get; private set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class ProcessGroupStatusSnapshotEntity {\n"); + sb.Append(" Id: ").Append(this.Id).Append("\n"); + sb.Append(" ProcessGroupStatusSnapshot: ").Append(this.ProcessGroupStatusSnapshot).Append("\n"); + sb.Append(" CanRead: ").Append(this.CanRead).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as ProcessGroupStatusSnapshotEntity); + } + + /// + /// Returns true if ProcessGroupStatusSnapshotEntity instances are equal + /// + /// Instance of ProcessGroupStatusSnapshotEntity to be compared + /// Boolean + public bool Equals(ProcessGroupStatusSnapshotEntity input) + { + if (input == null) + return false; + + return + ( + this.Id == input.Id || + (this.Id != null && + this.Id.Equals(input.Id)) + ) && + ( + this.ProcessGroupStatusSnapshot == input.ProcessGroupStatusSnapshot || + (this.ProcessGroupStatusSnapshot != null && + this.ProcessGroupStatusSnapshot.Equals(input.ProcessGroupStatusSnapshot)) + ) && + ( + this.CanRead == input.CanRead || + (this.CanRead != null && + this.CanRead.Equals(input.CanRead)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Id != null) + hashCode = hashCode * 59 + this.Id.GetHashCode(); + if (this.ProcessGroupStatusSnapshot != null) + hashCode = hashCode * 59 + this.ProcessGroupStatusSnapshot.GetHashCode(); + if (this.CanRead != null) + hashCode = hashCode * 59 + this.CanRead.GetHashCode(); + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/NiFi.Swagger/Model/ProcessGroupsEntity.cs b/NiFi.Swagger/Model/ProcessGroupsEntity.cs new file mode 100644 index 0000000..9a0f497 --- /dev/null +++ b/NiFi.Swagger/Model/ProcessGroupsEntity.cs @@ -0,0 +1,119 @@ +/* + * NiFi Rest Api + * + * The Rest Api provides programmatic access to command and control a NiFi instance in real time. Start and stop processors, monitor queues, query provenance data, and more. Each endpoint below includes a description, definitions of the expected input and output, potential response codes, and the authorizations required to invoke each service. + * + * OpenAPI spec version: 1.9.1 + * Contact: dev@nifi.apache.org + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +namespace NiFi.Swagger.Model +{ + using System; + using System.Collections.Generic; + using System.ComponentModel.DataAnnotations; + using System.Linq; + using System.Runtime.Serialization; + using System.Text; + + using Newtonsoft.Json; + + /// + /// ProcessGroupsEntity + /// + [DataContract] + public partial class ProcessGroupsEntity : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// processGroups. + public ProcessGroupsEntity(List processGroups = default(List)) + { + this.ProcessGroups = processGroups; + } + + /// + /// Gets or Sets ProcessGroups + /// + [DataMember(Name="processGroups", EmitDefaultValue=false)] + public List ProcessGroups { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class ProcessGroupsEntity {\n"); + sb.Append(" ProcessGroups: ").Append(this.ProcessGroups).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as ProcessGroupsEntity); + } + + /// + /// Returns true if ProcessGroupsEntity instances are equal + /// + /// Instance of ProcessGroupsEntity to be compared + /// Boolean + public bool Equals(ProcessGroupsEntity input) + { + if (input == null) + return false; + + return + ( + this.ProcessGroups == input.ProcessGroups || + this.ProcessGroups != null && + this.ProcessGroups.SequenceEqual(input.ProcessGroups) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.ProcessGroups != null) + hashCode = hashCode * 59 + this.ProcessGroups.GetHashCode(); + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/NiFi.Swagger/Model/ProcessorConfigDTO.cs b/NiFi.Swagger/Model/ProcessorConfigDTO.cs new file mode 100644 index 0000000..a96b907 --- /dev/null +++ b/NiFi.Swagger/Model/ProcessorConfigDTO.cs @@ -0,0 +1,392 @@ +/* + * NiFi Rest Api + * + * The Rest Api provides programmatic access to command and control a NiFi instance in real time. Start and stop processors, monitor queues, query provenance data, and more. Each endpoint below includes a description, definitions of the expected input and output, potential response codes, and the authorizations required to invoke each service. + * + * OpenAPI spec version: 1.9.1 + * Contact: dev@nifi.apache.org + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +namespace NiFi.Swagger.Model +{ + using System; + using System.Collections.Generic; + using System.ComponentModel.DataAnnotations; + using System.Linq; + using System.Runtime.Serialization; + using System.Text; + + using Newtonsoft.Json; + + /// + /// ProcessorConfigDTO + /// + [DataContract] + public partial class ProcessorConfigDTO : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// The properties for the processor. Properties whose value is not set will only contain the property name.. + /// Descriptors for the processor's properties.. + /// The frequency with which to schedule the processor. The format of the value will depend on th value of schedulingStrategy.. + /// Indcates whether the prcessor should be scheduled to run in event or timer driven mode.. + /// Indicates the node where the process will execute.. + /// The amount of time that is used when the process penalizes a flowfile.. + /// The amount of time that must elapse before this processor is scheduled again after yielding.. + /// The level at which the processor will report bulletins.. + /// The run duration for the processor in milliseconds.. + /// The number of tasks that should be concurrently schedule for the processor. If the processor doesn't allow parallol processing then any positive input will be ignored.. + /// The names of all relationships that cause a flow file to be terminated if the relationship is not connected elsewhere. This property differs from the 'isAutoTerminate' property of the RelationshipDTO in that the RelationshipDTO is meant to depict the current configuration, whereas this property can be set in a DTO when updating a Processor in order to change which Relationships should be auto-terminated.. + /// The comments for the processor.. + /// The URL for the processor's custom configuration UI if applicable.. + /// Whether the processor is loss tolerant.. + /// The annotation data for the processor used to relay configuration between a custom UI and the procesosr.. + /// Maps default values for concurrent tasks for each applicable scheduling strategy.. + /// Maps default values for scheduling period for each applicable scheduling strategy.. + public ProcessorConfigDTO(Dictionary properties = default(Dictionary), Dictionary descriptors = default(Dictionary), string schedulingPeriod = default(string), string schedulingStrategy = default(string), string executionNode = default(string), string penaltyDuration = default(string), string yieldDuration = default(string), string bulletinLevel = default(string), long? runDurationMillis = default(long?), int? concurrentlySchedulableTaskCount = default(int?), List autoTerminatedRelationships = default(List), string comments = default(string), string customUiUrl = default(string), bool? lossTolerant = default(bool?), string annotationData = default(string), Dictionary defaultConcurrentTasks = default(Dictionary), Dictionary defaultSchedulingPeriod = default(Dictionary)) + { + this.Properties = properties; + this.Descriptors = descriptors; + this.SchedulingPeriod = schedulingPeriod; + this.SchedulingStrategy = schedulingStrategy; + this.ExecutionNode = executionNode; + this.PenaltyDuration = penaltyDuration; + this.YieldDuration = yieldDuration; + this.BulletinLevel = bulletinLevel; + this.RunDurationMillis = runDurationMillis; + this.ConcurrentlySchedulableTaskCount = concurrentlySchedulableTaskCount; + this.AutoTerminatedRelationships = autoTerminatedRelationships; + this.Comments = comments; + this.CustomUiUrl = customUiUrl; + this.LossTolerant = lossTolerant; + this.AnnotationData = annotationData; + this.DefaultConcurrentTasks = defaultConcurrentTasks; + this.DefaultSchedulingPeriod = defaultSchedulingPeriod; + } + + /// + /// The properties for the processor. Properties whose value is not set will only contain the property name. + /// + /// The properties for the processor. Properties whose value is not set will only contain the property name. + [DataMember(Name="properties", EmitDefaultValue=false)] + public Dictionary Properties { get; set; } + + /// + /// Descriptors for the processor's properties. + /// + /// Descriptors for the processor's properties. + [DataMember(Name="descriptors", EmitDefaultValue=false)] + public Dictionary Descriptors { get; set; } + + /// + /// The frequency with which to schedule the processor. The format of the value will depend on th value of schedulingStrategy. + /// + /// The frequency with which to schedule the processor. The format of the value will depend on th value of schedulingStrategy. + [DataMember(Name="schedulingPeriod", EmitDefaultValue=false)] + public string SchedulingPeriod { get; set; } + + /// + /// Indcates whether the prcessor should be scheduled to run in event or timer driven mode. + /// + /// Indcates whether the prcessor should be scheduled to run in event or timer driven mode. + [DataMember(Name="schedulingStrategy", EmitDefaultValue=false)] + public string SchedulingStrategy { get; set; } + + /// + /// Indicates the node where the process will execute. + /// + /// Indicates the node where the process will execute. + [DataMember(Name="executionNode", EmitDefaultValue=false)] + public string ExecutionNode { get; set; } + + /// + /// The amount of time that is used when the process penalizes a flowfile. + /// + /// The amount of time that is used when the process penalizes a flowfile. + [DataMember(Name="penaltyDuration", EmitDefaultValue=false)] + public string PenaltyDuration { get; set; } + + /// + /// The amount of time that must elapse before this processor is scheduled again after yielding. + /// + /// The amount of time that must elapse before this processor is scheduled again after yielding. + [DataMember(Name="yieldDuration", EmitDefaultValue=false)] + public string YieldDuration { get; set; } + + /// + /// The level at which the processor will report bulletins. + /// + /// The level at which the processor will report bulletins. + [DataMember(Name="bulletinLevel", EmitDefaultValue=false)] + public string BulletinLevel { get; set; } + + /// + /// The run duration for the processor in milliseconds. + /// + /// The run duration for the processor in milliseconds. + [DataMember(Name="runDurationMillis", EmitDefaultValue=false)] + public long? RunDurationMillis { get; set; } + + /// + /// The number of tasks that should be concurrently schedule for the processor. If the processor doesn't allow parallol processing then any positive input will be ignored. + /// + /// The number of tasks that should be concurrently schedule for the processor. If the processor doesn't allow parallol processing then any positive input will be ignored. + [DataMember(Name="concurrentlySchedulableTaskCount", EmitDefaultValue=false)] + public int? ConcurrentlySchedulableTaskCount { get; set; } + + /// + /// The names of all relationships that cause a flow file to be terminated if the relationship is not connected elsewhere. This property differs from the 'isAutoTerminate' property of the RelationshipDTO in that the RelationshipDTO is meant to depict the current configuration, whereas this property can be set in a DTO when updating a Processor in order to change which Relationships should be auto-terminated. + /// + /// The names of all relationships that cause a flow file to be terminated if the relationship is not connected elsewhere. This property differs from the 'isAutoTerminate' property of the RelationshipDTO in that the RelationshipDTO is meant to depict the current configuration, whereas this property can be set in a DTO when updating a Processor in order to change which Relationships should be auto-terminated. + [DataMember(Name="autoTerminatedRelationships", EmitDefaultValue=false)] + public List AutoTerminatedRelationships { get; set; } + + /// + /// The comments for the processor. + /// + /// The comments for the processor. + [DataMember(Name="comments", EmitDefaultValue=false)] + public string Comments { get; set; } + + /// + /// The URL for the processor's custom configuration UI if applicable. + /// + /// The URL for the processor's custom configuration UI if applicable. + [DataMember(Name="customUiUrl", EmitDefaultValue=false)] + public string CustomUiUrl { get; set; } + + /// + /// Whether the processor is loss tolerant. + /// + /// Whether the processor is loss tolerant. + [DataMember(Name="lossTolerant", EmitDefaultValue=false)] + public bool? LossTolerant { get; set; } + + /// + /// The annotation data for the processor used to relay configuration between a custom UI and the procesosr. + /// + /// The annotation data for the processor used to relay configuration between a custom UI and the procesosr. + [DataMember(Name="annotationData", EmitDefaultValue=false)] + public string AnnotationData { get; set; } + + /// + /// Maps default values for concurrent tasks for each applicable scheduling strategy. + /// + /// Maps default values for concurrent tasks for each applicable scheduling strategy. + [DataMember(Name="defaultConcurrentTasks", EmitDefaultValue=false)] + public Dictionary DefaultConcurrentTasks { get; set; } + + /// + /// Maps default values for scheduling period for each applicable scheduling strategy. + /// + /// Maps default values for scheduling period for each applicable scheduling strategy. + [DataMember(Name="defaultSchedulingPeriod", EmitDefaultValue=false)] + public Dictionary DefaultSchedulingPeriod { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class ProcessorConfigDTO {\n"); + sb.Append(" Properties: ").Append(this.Properties).Append("\n"); + sb.Append(" Descriptors: ").Append(this.Descriptors).Append("\n"); + sb.Append(" SchedulingPeriod: ").Append(this.SchedulingPeriod).Append("\n"); + sb.Append(" SchedulingStrategy: ").Append(this.SchedulingStrategy).Append("\n"); + sb.Append(" ExecutionNode: ").Append(this.ExecutionNode).Append("\n"); + sb.Append(" PenaltyDuration: ").Append(this.PenaltyDuration).Append("\n"); + sb.Append(" YieldDuration: ").Append(this.YieldDuration).Append("\n"); + sb.Append(" BulletinLevel: ").Append(this.BulletinLevel).Append("\n"); + sb.Append(" RunDurationMillis: ").Append(this.RunDurationMillis).Append("\n"); + sb.Append(" ConcurrentlySchedulableTaskCount: ").Append(this.ConcurrentlySchedulableTaskCount).Append("\n"); + sb.Append(" AutoTerminatedRelationships: ").Append(this.AutoTerminatedRelationships).Append("\n"); + sb.Append(" Comments: ").Append(this.Comments).Append("\n"); + sb.Append(" CustomUiUrl: ").Append(this.CustomUiUrl).Append("\n"); + sb.Append(" LossTolerant: ").Append(this.LossTolerant).Append("\n"); + sb.Append(" AnnotationData: ").Append(this.AnnotationData).Append("\n"); + sb.Append(" DefaultConcurrentTasks: ").Append(this.DefaultConcurrentTasks).Append("\n"); + sb.Append(" DefaultSchedulingPeriod: ").Append(this.DefaultSchedulingPeriod).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as ProcessorConfigDTO); + } + + /// + /// Returns true if ProcessorConfigDTO instances are equal + /// + /// Instance of ProcessorConfigDTO to be compared + /// Boolean + public bool Equals(ProcessorConfigDTO input) + { + if (input == null) + return false; + + return + ( + this.Properties == input.Properties || + this.Properties != null && + this.Properties.SequenceEqual(input.Properties) + ) && + ( + this.Descriptors == input.Descriptors || + this.Descriptors != null && + this.Descriptors.SequenceEqual(input.Descriptors) + ) && + ( + this.SchedulingPeriod == input.SchedulingPeriod || + (this.SchedulingPeriod != null && + this.SchedulingPeriod.Equals(input.SchedulingPeriod)) + ) && + ( + this.SchedulingStrategy == input.SchedulingStrategy || + (this.SchedulingStrategy != null && + this.SchedulingStrategy.Equals(input.SchedulingStrategy)) + ) && + ( + this.ExecutionNode == input.ExecutionNode || + (this.ExecutionNode != null && + this.ExecutionNode.Equals(input.ExecutionNode)) + ) && + ( + this.PenaltyDuration == input.PenaltyDuration || + (this.PenaltyDuration != null && + this.PenaltyDuration.Equals(input.PenaltyDuration)) + ) && + ( + this.YieldDuration == input.YieldDuration || + (this.YieldDuration != null && + this.YieldDuration.Equals(input.YieldDuration)) + ) && + ( + this.BulletinLevel == input.BulletinLevel || + (this.BulletinLevel != null && + this.BulletinLevel.Equals(input.BulletinLevel)) + ) && + ( + this.RunDurationMillis == input.RunDurationMillis || + (this.RunDurationMillis != null && + this.RunDurationMillis.Equals(input.RunDurationMillis)) + ) && + ( + this.ConcurrentlySchedulableTaskCount == input.ConcurrentlySchedulableTaskCount || + (this.ConcurrentlySchedulableTaskCount != null && + this.ConcurrentlySchedulableTaskCount.Equals(input.ConcurrentlySchedulableTaskCount)) + ) && + ( + this.AutoTerminatedRelationships == input.AutoTerminatedRelationships || + this.AutoTerminatedRelationships != null && + this.AutoTerminatedRelationships.SequenceEqual(input.AutoTerminatedRelationships) + ) && + ( + this.Comments == input.Comments || + (this.Comments != null && + this.Comments.Equals(input.Comments)) + ) && + ( + this.CustomUiUrl == input.CustomUiUrl || + (this.CustomUiUrl != null && + this.CustomUiUrl.Equals(input.CustomUiUrl)) + ) && + ( + this.LossTolerant == input.LossTolerant || + (this.LossTolerant != null && + this.LossTolerant.Equals(input.LossTolerant)) + ) && + ( + this.AnnotationData == input.AnnotationData || + (this.AnnotationData != null && + this.AnnotationData.Equals(input.AnnotationData)) + ) && + ( + this.DefaultConcurrentTasks == input.DefaultConcurrentTasks || + this.DefaultConcurrentTasks != null && + this.DefaultConcurrentTasks.SequenceEqual(input.DefaultConcurrentTasks) + ) && + ( + this.DefaultSchedulingPeriod == input.DefaultSchedulingPeriod || + this.DefaultSchedulingPeriod != null && + this.DefaultSchedulingPeriod.SequenceEqual(input.DefaultSchedulingPeriod) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Properties != null) + hashCode = hashCode * 59 + this.Properties.GetHashCode(); + if (this.Descriptors != null) + hashCode = hashCode * 59 + this.Descriptors.GetHashCode(); + if (this.SchedulingPeriod != null) + hashCode = hashCode * 59 + this.SchedulingPeriod.GetHashCode(); + if (this.SchedulingStrategy != null) + hashCode = hashCode * 59 + this.SchedulingStrategy.GetHashCode(); + if (this.ExecutionNode != null) + hashCode = hashCode * 59 + this.ExecutionNode.GetHashCode(); + if (this.PenaltyDuration != null) + hashCode = hashCode * 59 + this.PenaltyDuration.GetHashCode(); + if (this.YieldDuration != null) + hashCode = hashCode * 59 + this.YieldDuration.GetHashCode(); + if (this.BulletinLevel != null) + hashCode = hashCode * 59 + this.BulletinLevel.GetHashCode(); + if (this.RunDurationMillis != null) + hashCode = hashCode * 59 + this.RunDurationMillis.GetHashCode(); + if (this.ConcurrentlySchedulableTaskCount != null) + hashCode = hashCode * 59 + this.ConcurrentlySchedulableTaskCount.GetHashCode(); + if (this.AutoTerminatedRelationships != null) + hashCode = hashCode * 59 + this.AutoTerminatedRelationships.GetHashCode(); + if (this.Comments != null) + hashCode = hashCode * 59 + this.Comments.GetHashCode(); + if (this.CustomUiUrl != null) + hashCode = hashCode * 59 + this.CustomUiUrl.GetHashCode(); + if (this.LossTolerant != null) + hashCode = hashCode * 59 + this.LossTolerant.GetHashCode(); + if (this.AnnotationData != null) + hashCode = hashCode * 59 + this.AnnotationData.GetHashCode(); + if (this.DefaultConcurrentTasks != null) + hashCode = hashCode * 59 + this.DefaultConcurrentTasks.GetHashCode(); + if (this.DefaultSchedulingPeriod != null) + hashCode = hashCode * 59 + this.DefaultSchedulingPeriod.GetHashCode(); + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/NiFi.Swagger/Model/ProcessorDTO.cs b/NiFi.Swagger/Model/ProcessorDTO.cs new file mode 100644 index 0000000..a306d3b --- /dev/null +++ b/NiFi.Swagger/Model/ProcessorDTO.cs @@ -0,0 +1,562 @@ +/* + * NiFi Rest Api + * + * The Rest Api provides programmatic access to command and control a NiFi instance in real time. Start and stop processors, monitor queues, query provenance data, and more. Each endpoint below includes a description, definitions of the expected input and output, potential response codes, and the authorizations required to invoke each service. + * + * OpenAPI spec version: 1.9.1 + * Contact: dev@nifi.apache.org + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +namespace NiFi.Swagger.Model +{ + using System; + using System.Collections.Generic; + using System.ComponentModel.DataAnnotations; + using System.Linq; + using System.Runtime.Serialization; + using System.Text; + + using Newtonsoft.Json; + using Newtonsoft.Json.Converters; + + /// + /// ProcessorDTO + /// + [DataContract] + public partial class ProcessorDTO : IEquatable, IValidatableObject + { + /// + /// The state of the processor + /// + /// The state of the processor + [JsonConverter(typeof(StringEnumConverter))] + public enum StateEnum + { + + /// + /// Enum RUNNING for value: RUNNING + /// + [EnumMember(Value = "RUNNING")] + RUNNING = 1, + + /// + /// Enum STOPPED for value: STOPPED + /// + [EnumMember(Value = "STOPPED")] + STOPPED = 2, + + /// + /// Enum DISABLED for value: DISABLED + /// + [EnumMember(Value = "DISABLED")] + DISABLED = 3 + } + + /// + /// The state of the processor + /// + /// The state of the processor + [DataMember(Name="state", EmitDefaultValue=false)] + public StateEnum? State { get; set; } + /// + /// Indicates whether the Processor is valid, invalid, or still in the process of validating (i.e., it is unknown whether or not the Processor is valid) + /// + /// Indicates whether the Processor is valid, invalid, or still in the process of validating (i.e., it is unknown whether or not the Processor is valid) + [JsonConverter(typeof(StringEnumConverter))] + public enum ValidationStatusEnum + { + + /// + /// Enum VALID for value: VALID + /// + [EnumMember(Value = "VALID")] + VALID = 1, + + /// + /// Enum INVALID for value: INVALID + /// + [EnumMember(Value = "INVALID")] + INVALID = 2, + + /// + /// Enum VALIDATING for value: VALIDATING + /// + [EnumMember(Value = "VALIDATING")] + VALIDATING = 3 + } + + /// + /// Indicates whether the Processor is valid, invalid, or still in the process of validating (i.e., it is unknown whether or not the Processor is valid) + /// + /// Indicates whether the Processor is valid, invalid, or still in the process of validating (i.e., it is unknown whether or not the Processor is valid) + [DataMember(Name="validationStatus", EmitDefaultValue=false)] + public ValidationStatusEnum? ValidationStatus { get; set; } + /// + /// Initializes a new instance of the class. + /// + /// The id of the component.. + /// The ID of the corresponding component that is under version control. + /// The id of parent process group of this component if applicable.. + /// The position of this component in the UI if applicable.. + /// The name of the processor.. + /// The type of the processor.. + /// The details of the artifact that bundled this processor type.. + /// The state of the processor. + /// Styles for the processor (background-color : #eee).. + /// The description of the processor.. + /// Whether the processor supports parallel processing.. + /// Whether the processor supports event driven scheduling.. + /// Whether the processor supports batching. This makes the run duration settings available.. + /// Whether the processor persists state.. + /// Whether the processor requires elevated privileges.. + /// Whether the processor has been deprecated.. + /// Indicates if the execution node of a processor is restricted to run only on the primary node. + /// Whether the processor has multiple versions available.. + /// The input requirement for this processor.. + /// The configuration details for the processor. These details will be included in a response if the verbose flag is included in a request.. + /// The validation errors for the processor. These validation errors represent the problems with the processor that must be resolved before it can be started.. + /// Whether the underlying extension is missing.. + public ProcessorDTO(string id = default(string), string versionedComponentId = default(string), string parentGroupId = default(string), PositionDTO position = default(PositionDTO), string name = default(string), string type = default(string), BundleDTO bundle = default(BundleDTO), StateEnum? state = default(StateEnum?), Dictionary style = default(Dictionary), string description = default(string), bool? supportsParallelProcessing = default(bool?), bool? supportsEventDriven = default(bool?), bool? supportsBatching = default(bool?), bool? persistsState = default(bool?), bool? restricted = default(bool?), bool? deprecated = default(bool?), bool? executionNodeRestricted = default(bool?), bool? multipleVersionsAvailable = default(bool?), string inputRequirement = default(string), ProcessorConfigDTO config = default(ProcessorConfigDTO), List validationErrors = default(List), bool? extensionMissing = default(bool?)) + { + this.Id = id; + this.VersionedComponentId = versionedComponentId; + this.ParentGroupId = parentGroupId; + this.Position = position; + this.Name = name; + this.Type = type; + this.Bundle = bundle; + this.State = state; + this.Style = style; + this.Description = description; + this.SupportsParallelProcessing = supportsParallelProcessing; + this.SupportsEventDriven = supportsEventDriven; + this.SupportsBatching = supportsBatching; + this.PersistsState = persistsState; + this.Restricted = restricted; + this.Deprecated = deprecated; + this.ExecutionNodeRestricted = executionNodeRestricted; + this.MultipleVersionsAvailable = multipleVersionsAvailable; + this.InputRequirement = inputRequirement; + this.Config = config; + this.ValidationErrors = validationErrors; + this.ExtensionMissing = extensionMissing; + } + + /// + /// The id of the component. + /// + /// The id of the component. + [DataMember(Name="id", EmitDefaultValue=false)] + public string Id { get; set; } + + /// + /// The ID of the corresponding component that is under version control + /// + /// The ID of the corresponding component that is under version control + [DataMember(Name="versionedComponentId", EmitDefaultValue=false)] + public string VersionedComponentId { get; set; } + + /// + /// The id of parent process group of this component if applicable. + /// + /// The id of parent process group of this component if applicable. + [DataMember(Name="parentGroupId", EmitDefaultValue=false)] + public string ParentGroupId { get; set; } + + /// + /// The position of this component in the UI if applicable. + /// + /// The position of this component in the UI if applicable. + [DataMember(Name="position", EmitDefaultValue=false)] + public PositionDTO Position { get; set; } + + /// + /// The name of the processor. + /// + /// The name of the processor. + [DataMember(Name="name", EmitDefaultValue=false)] + public string Name { get; set; } + + /// + /// The type of the processor. + /// + /// The type of the processor. + [DataMember(Name="type", EmitDefaultValue=false)] + public string Type { get; set; } + + /// + /// The details of the artifact that bundled this processor type. + /// + /// The details of the artifact that bundled this processor type. + [DataMember(Name="bundle", EmitDefaultValue=false)] + public BundleDTO Bundle { get; set; } + + + /// + /// Styles for the processor (background-color : #eee). + /// + /// Styles for the processor (background-color : #eee). + [DataMember(Name="style", EmitDefaultValue=false)] + public Dictionary Style { get; set; } + + /// + /// The available relationships that the processor currently supports. + /// + /// The available relationships that the processor currently supports. + [DataMember(Name="relationships", EmitDefaultValue=false)] + public List Relationships { get; private set; } + + /// + /// The description of the processor. + /// + /// The description of the processor. + [DataMember(Name="description", EmitDefaultValue=false)] + public string Description { get; set; } + + /// + /// Whether the processor supports parallel processing. + /// + /// Whether the processor supports parallel processing. + [DataMember(Name="supportsParallelProcessing", EmitDefaultValue=false)] + public bool? SupportsParallelProcessing { get; set; } + + /// + /// Whether the processor supports event driven scheduling. + /// + /// Whether the processor supports event driven scheduling. + [DataMember(Name="supportsEventDriven", EmitDefaultValue=false)] + public bool? SupportsEventDriven { get; set; } + + /// + /// Whether the processor supports batching. This makes the run duration settings available. + /// + /// Whether the processor supports batching. This makes the run duration settings available. + [DataMember(Name="supportsBatching", EmitDefaultValue=false)] + public bool? SupportsBatching { get; set; } + + /// + /// Whether the processor persists state. + /// + /// Whether the processor persists state. + [DataMember(Name="persistsState", EmitDefaultValue=false)] + public bool? PersistsState { get; set; } + + /// + /// Whether the processor requires elevated privileges. + /// + /// Whether the processor requires elevated privileges. + [DataMember(Name="restricted", EmitDefaultValue=false)] + public bool? Restricted { get; set; } + + /// + /// Whether the processor has been deprecated. + /// + /// Whether the processor has been deprecated. + [DataMember(Name="deprecated", EmitDefaultValue=false)] + public bool? Deprecated { get; set; } + + /// + /// Indicates if the execution node of a processor is restricted to run only on the primary node + /// + /// Indicates if the execution node of a processor is restricted to run only on the primary node + [DataMember(Name="executionNodeRestricted", EmitDefaultValue=false)] + public bool? ExecutionNodeRestricted { get; set; } + + /// + /// Whether the processor has multiple versions available. + /// + /// Whether the processor has multiple versions available. + [DataMember(Name="multipleVersionsAvailable", EmitDefaultValue=false)] + public bool? MultipleVersionsAvailable { get; set; } + + /// + /// The input requirement for this processor. + /// + /// The input requirement for this processor. + [DataMember(Name="inputRequirement", EmitDefaultValue=false)] + public string InputRequirement { get; set; } + + /// + /// The configuration details for the processor. These details will be included in a response if the verbose flag is included in a request. + /// + /// The configuration details for the processor. These details will be included in a response if the verbose flag is included in a request. + [DataMember(Name="config", EmitDefaultValue=false)] + public ProcessorConfigDTO Config { get; set; } + + /// + /// The validation errors for the processor. These validation errors represent the problems with the processor that must be resolved before it can be started. + /// + /// The validation errors for the processor. These validation errors represent the problems with the processor that must be resolved before it can be started. + [DataMember(Name="validationErrors", EmitDefaultValue=false)] + public List ValidationErrors { get; set; } + + + /// + /// Whether the underlying extension is missing. + /// + /// Whether the underlying extension is missing. + [DataMember(Name="extensionMissing", EmitDefaultValue=false)] + public bool? ExtensionMissing { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class ProcessorDTO {\n"); + sb.Append(" Id: ").Append(this.Id).Append("\n"); + sb.Append(" VersionedComponentId: ").Append(this.VersionedComponentId).Append("\n"); + sb.Append(" ParentGroupId: ").Append(this.ParentGroupId).Append("\n"); + sb.Append(" Position: ").Append(this.Position).Append("\n"); + sb.Append(" Name: ").Append(this.Name).Append("\n"); + sb.Append(" Type: ").Append(this.Type).Append("\n"); + sb.Append(" Bundle: ").Append(this.Bundle).Append("\n"); + sb.Append(" State: ").Append(this.State).Append("\n"); + sb.Append(" Style: ").Append(this.Style).Append("\n"); + sb.Append(" Relationships: ").Append(this.Relationships).Append("\n"); + sb.Append(" Description: ").Append(this.Description).Append("\n"); + sb.Append(" SupportsParallelProcessing: ").Append(this.SupportsParallelProcessing).Append("\n"); + sb.Append(" SupportsEventDriven: ").Append(this.SupportsEventDriven).Append("\n"); + sb.Append(" SupportsBatching: ").Append(this.SupportsBatching).Append("\n"); + sb.Append(" PersistsState: ").Append(this.PersistsState).Append("\n"); + sb.Append(" Restricted: ").Append(this.Restricted).Append("\n"); + sb.Append(" Deprecated: ").Append(this.Deprecated).Append("\n"); + sb.Append(" ExecutionNodeRestricted: ").Append(this.ExecutionNodeRestricted).Append("\n"); + sb.Append(" MultipleVersionsAvailable: ").Append(this.MultipleVersionsAvailable).Append("\n"); + sb.Append(" InputRequirement: ").Append(this.InputRequirement).Append("\n"); + sb.Append(" Config: ").Append(this.Config).Append("\n"); + sb.Append(" ValidationErrors: ").Append(this.ValidationErrors).Append("\n"); + sb.Append(" ValidationStatus: ").Append(this.ValidationStatus).Append("\n"); + sb.Append(" ExtensionMissing: ").Append(this.ExtensionMissing).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as ProcessorDTO); + } + + /// + /// Returns true if ProcessorDTO instances are equal + /// + /// Instance of ProcessorDTO to be compared + /// Boolean + public bool Equals(ProcessorDTO input) + { + if (input == null) + return false; + + return + ( + this.Id == input.Id || + (this.Id != null && + this.Id.Equals(input.Id)) + ) && + ( + this.VersionedComponentId == input.VersionedComponentId || + (this.VersionedComponentId != null && + this.VersionedComponentId.Equals(input.VersionedComponentId)) + ) && + ( + this.ParentGroupId == input.ParentGroupId || + (this.ParentGroupId != null && + this.ParentGroupId.Equals(input.ParentGroupId)) + ) && + ( + this.Position == input.Position || + (this.Position != null && + this.Position.Equals(input.Position)) + ) && + ( + this.Name == input.Name || + (this.Name != null && + this.Name.Equals(input.Name)) + ) && + ( + this.Type == input.Type || + (this.Type != null && + this.Type.Equals(input.Type)) + ) && + ( + this.Bundle == input.Bundle || + (this.Bundle != null && + this.Bundle.Equals(input.Bundle)) + ) && + ( + this.State == input.State || + (this.State != null && + this.State.Equals(input.State)) + ) && + ( + this.Style == input.Style || + this.Style != null && + this.Style.SequenceEqual(input.Style) + ) && + ( + this.Relationships == input.Relationships || + this.Relationships != null && + this.Relationships.SequenceEqual(input.Relationships) + ) && + ( + this.Description == input.Description || + (this.Description != null && + this.Description.Equals(input.Description)) + ) && + ( + this.SupportsParallelProcessing == input.SupportsParallelProcessing || + (this.SupportsParallelProcessing != null && + this.SupportsParallelProcessing.Equals(input.SupportsParallelProcessing)) + ) && + ( + this.SupportsEventDriven == input.SupportsEventDriven || + (this.SupportsEventDriven != null && + this.SupportsEventDriven.Equals(input.SupportsEventDriven)) + ) && + ( + this.SupportsBatching == input.SupportsBatching || + (this.SupportsBatching != null && + this.SupportsBatching.Equals(input.SupportsBatching)) + ) && + ( + this.PersistsState == input.PersistsState || + (this.PersistsState != null && + this.PersistsState.Equals(input.PersistsState)) + ) && + ( + this.Restricted == input.Restricted || + (this.Restricted != null && + this.Restricted.Equals(input.Restricted)) + ) && + ( + this.Deprecated == input.Deprecated || + (this.Deprecated != null && + this.Deprecated.Equals(input.Deprecated)) + ) && + ( + this.ExecutionNodeRestricted == input.ExecutionNodeRestricted || + (this.ExecutionNodeRestricted != null && + this.ExecutionNodeRestricted.Equals(input.ExecutionNodeRestricted)) + ) && + ( + this.MultipleVersionsAvailable == input.MultipleVersionsAvailable || + (this.MultipleVersionsAvailable != null && + this.MultipleVersionsAvailable.Equals(input.MultipleVersionsAvailable)) + ) && + ( + this.InputRequirement == input.InputRequirement || + (this.InputRequirement != null && + this.InputRequirement.Equals(input.InputRequirement)) + ) && + ( + this.Config == input.Config || + (this.Config != null && + this.Config.Equals(input.Config)) + ) && + ( + this.ValidationErrors == input.ValidationErrors || + this.ValidationErrors != null && + this.ValidationErrors.SequenceEqual(input.ValidationErrors) + ) && + ( + this.ValidationStatus == input.ValidationStatus || + (this.ValidationStatus != null && + this.ValidationStatus.Equals(input.ValidationStatus)) + ) && + ( + this.ExtensionMissing == input.ExtensionMissing || + (this.ExtensionMissing != null && + this.ExtensionMissing.Equals(input.ExtensionMissing)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Id != null) + hashCode = hashCode * 59 + this.Id.GetHashCode(); + if (this.VersionedComponentId != null) + hashCode = hashCode * 59 + this.VersionedComponentId.GetHashCode(); + if (this.ParentGroupId != null) + hashCode = hashCode * 59 + this.ParentGroupId.GetHashCode(); + if (this.Position != null) + hashCode = hashCode * 59 + this.Position.GetHashCode(); + if (this.Name != null) + hashCode = hashCode * 59 + this.Name.GetHashCode(); + if (this.Type != null) + hashCode = hashCode * 59 + this.Type.GetHashCode(); + if (this.Bundle != null) + hashCode = hashCode * 59 + this.Bundle.GetHashCode(); + if (this.State != null) + hashCode = hashCode * 59 + this.State.GetHashCode(); + if (this.Style != null) + hashCode = hashCode * 59 + this.Style.GetHashCode(); + if (this.Relationships != null) + hashCode = hashCode * 59 + this.Relationships.GetHashCode(); + if (this.Description != null) + hashCode = hashCode * 59 + this.Description.GetHashCode(); + if (this.SupportsParallelProcessing != null) + hashCode = hashCode * 59 + this.SupportsParallelProcessing.GetHashCode(); + if (this.SupportsEventDriven != null) + hashCode = hashCode * 59 + this.SupportsEventDriven.GetHashCode(); + if (this.SupportsBatching != null) + hashCode = hashCode * 59 + this.SupportsBatching.GetHashCode(); + if (this.PersistsState != null) + hashCode = hashCode * 59 + this.PersistsState.GetHashCode(); + if (this.Restricted != null) + hashCode = hashCode * 59 + this.Restricted.GetHashCode(); + if (this.Deprecated != null) + hashCode = hashCode * 59 + this.Deprecated.GetHashCode(); + if (this.ExecutionNodeRestricted != null) + hashCode = hashCode * 59 + this.ExecutionNodeRestricted.GetHashCode(); + if (this.MultipleVersionsAvailable != null) + hashCode = hashCode * 59 + this.MultipleVersionsAvailable.GetHashCode(); + if (this.InputRequirement != null) + hashCode = hashCode * 59 + this.InputRequirement.GetHashCode(); + if (this.Config != null) + hashCode = hashCode * 59 + this.Config.GetHashCode(); + if (this.ValidationErrors != null) + hashCode = hashCode * 59 + this.ValidationErrors.GetHashCode(); + if (this.ValidationStatus != null) + hashCode = hashCode * 59 + this.ValidationStatus.GetHashCode(); + if (this.ExtensionMissing != null) + hashCode = hashCode * 59 + this.ExtensionMissing.GetHashCode(); + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/NiFi.Swagger/Model/ProcessorEntity.cs b/NiFi.Swagger/Model/ProcessorEntity.cs new file mode 100644 index 0000000..9247efe --- /dev/null +++ b/NiFi.Swagger/Model/ProcessorEntity.cs @@ -0,0 +1,288 @@ +/* + * NiFi Rest Api + * + * The Rest Api provides programmatic access to command and control a NiFi instance in real time. Start and stop processors, monitor queues, query provenance data, and more. Each endpoint below includes a description, definitions of the expected input and output, potential response codes, and the authorizations required to invoke each service. + * + * OpenAPI spec version: 1.9.1 + * Contact: dev@nifi.apache.org + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +namespace NiFi.Swagger.Model +{ + using System; + using System.Collections.Generic; + using System.ComponentModel.DataAnnotations; + using System.Linq; + using System.Runtime.Serialization; + using System.Text; + + using Newtonsoft.Json; + + /// + /// ProcessorEntity + /// + [DataContract] + public partial class ProcessorEntity : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// The revision for this request/response. The revision is required for any mutable flow requests and is included in all responses.. + /// The id of the component.. + /// The URI for futures requests to the component.. + /// The position of this component in the UI if applicable.. + /// The permissions for this component.. + /// The bulletins for this component.. + /// Acknowledges that this node is disconnected to allow for mutable requests to proceed.. + /// component. + /// The input requirement for this processor.. + /// status. + /// The permissions for this component operations.. + public ProcessorEntity(RevisionDTO revision = default(RevisionDTO), string id = default(string), string uri = default(string), PositionDTO position = default(PositionDTO), PermissionsDTO permissions = default(PermissionsDTO), List bulletins = default(List), bool? disconnectedNodeAcknowledged = default(bool?), ProcessorDTO component = default(ProcessorDTO), string inputRequirement = default(string), ProcessorStatusDTO status = default(ProcessorStatusDTO), PermissionsDTO operatePermissions = default(PermissionsDTO)) + { + this.Revision = revision; + this.Id = id; + this.Uri = uri; + this.Position = position; + this.Permissions = permissions; + this.Bulletins = bulletins; + this.DisconnectedNodeAcknowledged = disconnectedNodeAcknowledged; + this.Component = component; + this.InputRequirement = inputRequirement; + this.Status = status; + this.OperatePermissions = operatePermissions; + } + + /// + /// The revision for this request/response. The revision is required for any mutable flow requests and is included in all responses. + /// + /// The revision for this request/response. The revision is required for any mutable flow requests and is included in all responses. + [DataMember(Name="revision", EmitDefaultValue=false)] + public RevisionDTO Revision { get; set; } + + /// + /// The id of the component. + /// + /// The id of the component. + [DataMember(Name="id", EmitDefaultValue=false)] + public string Id { get; set; } + + /// + /// The URI for futures requests to the component. + /// + /// The URI for futures requests to the component. + [DataMember(Name="uri", EmitDefaultValue=false)] + public string Uri { get; set; } + + /// + /// The position of this component in the UI if applicable. + /// + /// The position of this component in the UI if applicable. + [DataMember(Name="position", EmitDefaultValue=false)] + public PositionDTO Position { get; set; } + + /// + /// The permissions for this component. + /// + /// The permissions for this component. + [DataMember(Name="permissions", EmitDefaultValue=false)] + public PermissionsDTO Permissions { get; set; } + + /// + /// The bulletins for this component. + /// + /// The bulletins for this component. + [DataMember(Name="bulletins", EmitDefaultValue=false)] + public List Bulletins { get; set; } + + /// + /// Acknowledges that this node is disconnected to allow for mutable requests to proceed. + /// + /// Acknowledges that this node is disconnected to allow for mutable requests to proceed. + [DataMember(Name="disconnectedNodeAcknowledged", EmitDefaultValue=false)] + public bool? DisconnectedNodeAcknowledged { get; set; } + + /// + /// Gets or Sets Component + /// + [DataMember(Name="component", EmitDefaultValue=false)] + public ProcessorDTO Component { get; set; } + + /// + /// The input requirement for this processor. + /// + /// The input requirement for this processor. + [DataMember(Name="inputRequirement", EmitDefaultValue=false)] + public string InputRequirement { get; set; } + + /// + /// Gets or Sets Status + /// + [DataMember(Name="status", EmitDefaultValue=false)] + public ProcessorStatusDTO Status { get; set; } + + /// + /// The permissions for this component operations. + /// + /// The permissions for this component operations. + [DataMember(Name="operatePermissions", EmitDefaultValue=false)] + public PermissionsDTO OperatePermissions { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class ProcessorEntity {\n"); + sb.Append(" Revision: ").Append(this.Revision).Append("\n"); + sb.Append(" Id: ").Append(this.Id).Append("\n"); + sb.Append(" Uri: ").Append(this.Uri).Append("\n"); + sb.Append(" Position: ").Append(this.Position).Append("\n"); + sb.Append(" Permissions: ").Append(this.Permissions).Append("\n"); + sb.Append(" Bulletins: ").Append(this.Bulletins).Append("\n"); + sb.Append(" DisconnectedNodeAcknowledged: ").Append(this.DisconnectedNodeAcknowledged).Append("\n"); + sb.Append(" Component: ").Append(this.Component).Append("\n"); + sb.Append(" InputRequirement: ").Append(this.InputRequirement).Append("\n"); + sb.Append(" Status: ").Append(this.Status).Append("\n"); + sb.Append(" OperatePermissions: ").Append(this.OperatePermissions).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as ProcessorEntity); + } + + /// + /// Returns true if ProcessorEntity instances are equal + /// + /// Instance of ProcessorEntity to be compared + /// Boolean + public bool Equals(ProcessorEntity input) + { + if (input == null) + return false; + + return + ( + this.Revision == input.Revision || + (this.Revision != null && + this.Revision.Equals(input.Revision)) + ) && + ( + this.Id == input.Id || + (this.Id != null && + this.Id.Equals(input.Id)) + ) && + ( + this.Uri == input.Uri || + (this.Uri != null && + this.Uri.Equals(input.Uri)) + ) && + ( + this.Position == input.Position || + (this.Position != null && + this.Position.Equals(input.Position)) + ) && + ( + this.Permissions == input.Permissions || + (this.Permissions != null && + this.Permissions.Equals(input.Permissions)) + ) && + ( + this.Bulletins == input.Bulletins || + this.Bulletins != null && + this.Bulletins.SequenceEqual(input.Bulletins) + ) && + ( + this.DisconnectedNodeAcknowledged == input.DisconnectedNodeAcknowledged || + (this.DisconnectedNodeAcknowledged != null && + this.DisconnectedNodeAcknowledged.Equals(input.DisconnectedNodeAcknowledged)) + ) && + ( + this.Component == input.Component || + (this.Component != null && + this.Component.Equals(input.Component)) + ) && + ( + this.InputRequirement == input.InputRequirement || + (this.InputRequirement != null && + this.InputRequirement.Equals(input.InputRequirement)) + ) && + ( + this.Status == input.Status || + (this.Status != null && + this.Status.Equals(input.Status)) + ) && + ( + this.OperatePermissions == input.OperatePermissions || + (this.OperatePermissions != null && + this.OperatePermissions.Equals(input.OperatePermissions)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Revision != null) + hashCode = hashCode * 59 + this.Revision.GetHashCode(); + if (this.Id != null) + hashCode = hashCode * 59 + this.Id.GetHashCode(); + if (this.Uri != null) + hashCode = hashCode * 59 + this.Uri.GetHashCode(); + if (this.Position != null) + hashCode = hashCode * 59 + this.Position.GetHashCode(); + if (this.Permissions != null) + hashCode = hashCode * 59 + this.Permissions.GetHashCode(); + if (this.Bulletins != null) + hashCode = hashCode * 59 + this.Bulletins.GetHashCode(); + if (this.DisconnectedNodeAcknowledged != null) + hashCode = hashCode * 59 + this.DisconnectedNodeAcknowledged.GetHashCode(); + if (this.Component != null) + hashCode = hashCode * 59 + this.Component.GetHashCode(); + if (this.InputRequirement != null) + hashCode = hashCode * 59 + this.InputRequirement.GetHashCode(); + if (this.Status != null) + hashCode = hashCode * 59 + this.Status.GetHashCode(); + if (this.OperatePermissions != null) + hashCode = hashCode * 59 + this.OperatePermissions.GetHashCode(); + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/NiFi.Swagger/Model/ProcessorRunStatusEntity.cs b/NiFi.Swagger/Model/ProcessorRunStatusEntity.cs new file mode 100644 index 0000000..da70b65 --- /dev/null +++ b/NiFi.Swagger/Model/ProcessorRunStatusEntity.cs @@ -0,0 +1,181 @@ +/* + * NiFi Rest Api + * + * The Rest Api provides programmatic access to command and control a NiFi instance in real time. Start and stop processors, monitor queues, query provenance data, and more. Each endpoint below includes a description, definitions of the expected input and output, potential response codes, and the authorizations required to invoke each service. + * + * OpenAPI spec version: 1.9.1 + * Contact: dev@nifi.apache.org + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +namespace NiFi.Swagger.Model +{ + using System; + using System.Collections.Generic; + using System.ComponentModel.DataAnnotations; + using System.Runtime.Serialization; + using System.Text; + + using Newtonsoft.Json; + using Newtonsoft.Json.Converters; + + /// + /// ProcessorRunStatusEntity + /// + [DataContract] + public partial class ProcessorRunStatusEntity : IEquatable, IValidatableObject + { + /// + /// The run status of the Processor. + /// + /// The run status of the Processor. + [JsonConverter(typeof(StringEnumConverter))] + public enum StateEnum + { + + /// + /// Enum RUNNING for value: RUNNING + /// + [EnumMember(Value = "RUNNING")] + RUNNING = 1, + + /// + /// Enum STOPPED for value: STOPPED + /// + [EnumMember(Value = "STOPPED")] + STOPPED = 2, + + /// + /// Enum DISABLED for value: DISABLED + /// + [EnumMember(Value = "DISABLED")] + DISABLED = 3 + } + + /// + /// The run status of the Processor. + /// + /// The run status of the Processor. + [DataMember(Name="state", EmitDefaultValue=false)] + public StateEnum? State { get; set; } + /// + /// Initializes a new instance of the class. + /// + /// The revision for this request/response. The revision is required for any mutable flow requests and is included in all responses.. + /// The run status of the Processor.. + /// Acknowledges that this node is disconnected to allow for mutable requests to proceed.. + public ProcessorRunStatusEntity(RevisionDTO revision = default(RevisionDTO), StateEnum? state = default(StateEnum?), bool? disconnectedNodeAcknowledged = default(bool?)) + { + this.Revision = revision; + this.State = state; + this.DisconnectedNodeAcknowledged = disconnectedNodeAcknowledged; + } + + /// + /// The revision for this request/response. The revision is required for any mutable flow requests and is included in all responses. + /// + /// The revision for this request/response. The revision is required for any mutable flow requests and is included in all responses. + [DataMember(Name="revision", EmitDefaultValue=false)] + public RevisionDTO Revision { get; set; } + + + /// + /// Acknowledges that this node is disconnected to allow for mutable requests to proceed. + /// + /// Acknowledges that this node is disconnected to allow for mutable requests to proceed. + [DataMember(Name="disconnectedNodeAcknowledged", EmitDefaultValue=false)] + public bool? DisconnectedNodeAcknowledged { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class ProcessorRunStatusEntity {\n"); + sb.Append(" Revision: ").Append(this.Revision).Append("\n"); + sb.Append(" State: ").Append(this.State).Append("\n"); + sb.Append(" DisconnectedNodeAcknowledged: ").Append(this.DisconnectedNodeAcknowledged).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as ProcessorRunStatusEntity); + } + + /// + /// Returns true if ProcessorRunStatusEntity instances are equal + /// + /// Instance of ProcessorRunStatusEntity to be compared + /// Boolean + public bool Equals(ProcessorRunStatusEntity input) + { + if (input == null) + return false; + + return + ( + this.Revision == input.Revision || + (this.Revision != null && + this.Revision.Equals(input.Revision)) + ) && + ( + this.State == input.State || + (this.State != null && + this.State.Equals(input.State)) + ) && + ( + this.DisconnectedNodeAcknowledged == input.DisconnectedNodeAcknowledged || + (this.DisconnectedNodeAcknowledged != null && + this.DisconnectedNodeAcknowledged.Equals(input.DisconnectedNodeAcknowledged)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Revision != null) + hashCode = hashCode * 59 + this.Revision.GetHashCode(); + if (this.State != null) + hashCode = hashCode * 59 + this.State.GetHashCode(); + if (this.DisconnectedNodeAcknowledged != null) + hashCode = hashCode * 59 + this.DisconnectedNodeAcknowledged.GetHashCode(); + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/NiFi.Swagger/Model/ProcessorStatusDTO.cs b/NiFi.Swagger/Model/ProcessorStatusDTO.cs new file mode 100644 index 0000000..cbdec1a --- /dev/null +++ b/NiFi.Swagger/Model/ProcessorStatusDTO.cs @@ -0,0 +1,279 @@ +/* + * NiFi Rest Api + * + * The Rest Api provides programmatic access to command and control a NiFi instance in real time. Start and stop processors, monitor queues, query provenance data, and more. Each endpoint below includes a description, definitions of the expected input and output, potential response codes, and the authorizations required to invoke each service. + * + * OpenAPI spec version: 1.9.1 + * Contact: dev@nifi.apache.org + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +namespace NiFi.Swagger.Model +{ + using System; + using System.Collections.Generic; + using System.ComponentModel.DataAnnotations; + using System.Linq; + using System.Runtime.Serialization; + using System.Text; + + using Newtonsoft.Json; + using Newtonsoft.Json.Converters; + + /// + /// ProcessorStatusDTO + /// + [DataContract] + public partial class ProcessorStatusDTO : IEquatable, IValidatableObject + { + /// + /// The run status of the Processor + /// + /// The run status of the Processor + [JsonConverter(typeof(StringEnumConverter))] + public enum RunStatusEnum + { + + /// + /// Enum Running for value: Running + /// + [EnumMember(Value = "Running")] + Running = 1, + + /// + /// Enum Stopped for value: Stopped + /// + [EnumMember(Value = "Stopped")] + Stopped = 2, + + /// + /// Enum Validating for value: Validating + /// + [EnumMember(Value = "Validating")] + Validating = 3, + + /// + /// Enum Disabled for value: Disabled + /// + [EnumMember(Value = "Disabled")] + Disabled = 4, + + /// + /// Enum Invalid for value: Invalid + /// + [EnumMember(Value = "Invalid")] + Invalid = 5 + } + + /// + /// The run status of the Processor + /// + /// The run status of the Processor + [DataMember(Name="runStatus", EmitDefaultValue=false)] + public RunStatusEnum? RunStatus { get; set; } + /// + /// Initializes a new instance of the class. + /// + /// The unique ID of the process group that the Processor belongs to. + /// The unique ID of the Processor. + /// The name of the Processor. + /// The type of the Processor. + /// The run status of the Processor. + /// The timestamp of when the stats were last refreshed. + /// A status snapshot that represents the aggregate stats of all nodes in the cluster. If the NiFi instance is a standalone instance, rather than a cluster, this represents the stats of the single instance.. + /// A status snapshot for each node in the cluster. If the NiFi instance is a standalone instance, rather than a cluster, this may be null.. + public ProcessorStatusDTO(string groupId = default(string), string id = default(string), string name = default(string), string type = default(string), RunStatusEnum? runStatus = default(RunStatusEnum?), string statsLastRefreshed = default(string), ProcessorStatusSnapshotDTO aggregateSnapshot = default(ProcessorStatusSnapshotDTO), List nodeSnapshots = default(List)) + { + this.GroupId = groupId; + this.Id = id; + this.Name = name; + this.Type = type; + this.RunStatus = runStatus; + this.StatsLastRefreshed = statsLastRefreshed; + this.AggregateSnapshot = aggregateSnapshot; + this.NodeSnapshots = nodeSnapshots; + } + + /// + /// The unique ID of the process group that the Processor belongs to + /// + /// The unique ID of the process group that the Processor belongs to + [DataMember(Name="groupId", EmitDefaultValue=false)] + public string GroupId { get; set; } + + /// + /// The unique ID of the Processor + /// + /// The unique ID of the Processor + [DataMember(Name="id", EmitDefaultValue=false)] + public string Id { get; set; } + + /// + /// The name of the Processor + /// + /// The name of the Processor + [DataMember(Name="name", EmitDefaultValue=false)] + public string Name { get; set; } + + /// + /// The type of the Processor + /// + /// The type of the Processor + [DataMember(Name="type", EmitDefaultValue=false)] + public string Type { get; set; } + + + /// + /// The timestamp of when the stats were last refreshed + /// + /// The timestamp of when the stats were last refreshed + [DataMember(Name="statsLastRefreshed", EmitDefaultValue=false)] + public string StatsLastRefreshed { get; set; } + + /// + /// A status snapshot that represents the aggregate stats of all nodes in the cluster. If the NiFi instance is a standalone instance, rather than a cluster, this represents the stats of the single instance. + /// + /// A status snapshot that represents the aggregate stats of all nodes in the cluster. If the NiFi instance is a standalone instance, rather than a cluster, this represents the stats of the single instance. + [DataMember(Name="aggregateSnapshot", EmitDefaultValue=false)] + public ProcessorStatusSnapshotDTO AggregateSnapshot { get; set; } + + /// + /// A status snapshot for each node in the cluster. If the NiFi instance is a standalone instance, rather than a cluster, this may be null. + /// + /// A status snapshot for each node in the cluster. If the NiFi instance is a standalone instance, rather than a cluster, this may be null. + [DataMember(Name="nodeSnapshots", EmitDefaultValue=false)] + public List NodeSnapshots { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class ProcessorStatusDTO {\n"); + sb.Append(" GroupId: ").Append(this.GroupId).Append("\n"); + sb.Append(" Id: ").Append(this.Id).Append("\n"); + sb.Append(" Name: ").Append(this.Name).Append("\n"); + sb.Append(" Type: ").Append(this.Type).Append("\n"); + sb.Append(" RunStatus: ").Append(this.RunStatus).Append("\n"); + sb.Append(" StatsLastRefreshed: ").Append(this.StatsLastRefreshed).Append("\n"); + sb.Append(" AggregateSnapshot: ").Append(this.AggregateSnapshot).Append("\n"); + sb.Append(" NodeSnapshots: ").Append(this.NodeSnapshots).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as ProcessorStatusDTO); + } + + /// + /// Returns true if ProcessorStatusDTO instances are equal + /// + /// Instance of ProcessorStatusDTO to be compared + /// Boolean + public bool Equals(ProcessorStatusDTO input) + { + if (input == null) + return false; + + return + ( + this.GroupId == input.GroupId || + (this.GroupId != null && + this.GroupId.Equals(input.GroupId)) + ) && + ( + this.Id == input.Id || + (this.Id != null && + this.Id.Equals(input.Id)) + ) && + ( + this.Name == input.Name || + (this.Name != null && + this.Name.Equals(input.Name)) + ) && + ( + this.Type == input.Type || + (this.Type != null && + this.Type.Equals(input.Type)) + ) && + ( + this.RunStatus == input.RunStatus || + (this.RunStatus != null && + this.RunStatus.Equals(input.RunStatus)) + ) && + ( + this.StatsLastRefreshed == input.StatsLastRefreshed || + (this.StatsLastRefreshed != null && + this.StatsLastRefreshed.Equals(input.StatsLastRefreshed)) + ) && + ( + this.AggregateSnapshot == input.AggregateSnapshot || + (this.AggregateSnapshot != null && + this.AggregateSnapshot.Equals(input.AggregateSnapshot)) + ) && + ( + this.NodeSnapshots == input.NodeSnapshots || + this.NodeSnapshots != null && + this.NodeSnapshots.SequenceEqual(input.NodeSnapshots) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.GroupId != null) + hashCode = hashCode * 59 + this.GroupId.GetHashCode(); + if (this.Id != null) + hashCode = hashCode * 59 + this.Id.GetHashCode(); + if (this.Name != null) + hashCode = hashCode * 59 + this.Name.GetHashCode(); + if (this.Type != null) + hashCode = hashCode * 59 + this.Type.GetHashCode(); + if (this.RunStatus != null) + hashCode = hashCode * 59 + this.RunStatus.GetHashCode(); + if (this.StatsLastRefreshed != null) + hashCode = hashCode * 59 + this.StatsLastRefreshed.GetHashCode(); + if (this.AggregateSnapshot != null) + hashCode = hashCode * 59 + this.AggregateSnapshot.GetHashCode(); + if (this.NodeSnapshots != null) + hashCode = hashCode * 59 + this.NodeSnapshots.GetHashCode(); + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/NiFi.Swagger/Model/ProcessorStatusEntity.cs b/NiFi.Swagger/Model/ProcessorStatusEntity.cs new file mode 100644 index 0000000..3de7870 --- /dev/null +++ b/NiFi.Swagger/Model/ProcessorStatusEntity.cs @@ -0,0 +1,133 @@ +/* + * NiFi Rest Api + * + * The Rest Api provides programmatic access to command and control a NiFi instance in real time. Start and stop processors, monitor queues, query provenance data, and more. Each endpoint below includes a description, definitions of the expected input and output, potential response codes, and the authorizations required to invoke each service. + * + * OpenAPI spec version: 1.9.1 + * Contact: dev@nifi.apache.org + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +namespace NiFi.Swagger.Model +{ + using System; + using System.Collections.Generic; + using System.ComponentModel.DataAnnotations; + using System.Runtime.Serialization; + using System.Text; + + using Newtonsoft.Json; + + /// + /// ProcessorStatusEntity + /// + [DataContract] + public partial class ProcessorStatusEntity : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// processorStatus. + public ProcessorStatusEntity(ProcessorStatusDTO processorStatus = default(ProcessorStatusDTO)) + { + this.ProcessorStatus = processorStatus; + } + + /// + /// Gets or Sets ProcessorStatus + /// + [DataMember(Name="processorStatus", EmitDefaultValue=false)] + public ProcessorStatusDTO ProcessorStatus { get; set; } + + /// + /// Indicates whether the user can read a given resource. + /// + /// Indicates whether the user can read a given resource. + [DataMember(Name="canRead", EmitDefaultValue=false)] + public bool? CanRead { get; private set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class ProcessorStatusEntity {\n"); + sb.Append(" ProcessorStatus: ").Append(this.ProcessorStatus).Append("\n"); + sb.Append(" CanRead: ").Append(this.CanRead).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as ProcessorStatusEntity); + } + + /// + /// Returns true if ProcessorStatusEntity instances are equal + /// + /// Instance of ProcessorStatusEntity to be compared + /// Boolean + public bool Equals(ProcessorStatusEntity input) + { + if (input == null) + return false; + + return + ( + this.ProcessorStatus == input.ProcessorStatus || + (this.ProcessorStatus != null && + this.ProcessorStatus.Equals(input.ProcessorStatus)) + ) && + ( + this.CanRead == input.CanRead || + (this.CanRead != null && + this.CanRead.Equals(input.CanRead)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.ProcessorStatus != null) + hashCode = hashCode * 59 + this.ProcessorStatus.GetHashCode(); + if (this.CanRead != null) + hashCode = hashCode * 59 + this.CanRead.GetHashCode(); + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/NiFi.Swagger/Model/ProcessorStatusSnapshotDTO.cs b/NiFi.Swagger/Model/ProcessorStatusSnapshotDTO.cs new file mode 100644 index 0000000..9800df3 --- /dev/null +++ b/NiFi.Swagger/Model/ProcessorStatusSnapshotDTO.cs @@ -0,0 +1,537 @@ +/* + * NiFi Rest Api + * + * The Rest Api provides programmatic access to command and control a NiFi instance in real time. Start and stop processors, monitor queues, query provenance data, and more. Each endpoint below includes a description, definitions of the expected input and output, potential response codes, and the authorizations required to invoke each service. + * + * OpenAPI spec version: 1.9.1 + * Contact: dev@nifi.apache.org + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +namespace NiFi.Swagger.Model +{ + using System; + using System.Collections.Generic; + using System.ComponentModel.DataAnnotations; + using System.Runtime.Serialization; + using System.Text; + + using Newtonsoft.Json; + using Newtonsoft.Json.Converters; + + /// + /// ProcessorStatusSnapshotDTO + /// + [DataContract] + public partial class ProcessorStatusSnapshotDTO : IEquatable, IValidatableObject + { + /// + /// The state of the processor. + /// + /// The state of the processor. + [JsonConverter(typeof(StringEnumConverter))] + public enum RunStatusEnum + { + + /// + /// Enum Running for value: Running + /// + [EnumMember(Value = "Running")] + Running = 1, + + /// + /// Enum Stopped for value: Stopped + /// + [EnumMember(Value = "Stopped")] + Stopped = 2, + + /// + /// Enum Validating for value: Validating + /// + [EnumMember(Value = "Validating")] + Validating = 3, + + /// + /// Enum Disabled for value: Disabled + /// + [EnumMember(Value = "Disabled")] + Disabled = 4, + + /// + /// Enum Invalid for value: Invalid + /// + [EnumMember(Value = "Invalid")] + Invalid = 5 + } + + /// + /// The state of the processor. + /// + /// The state of the processor. + [DataMember(Name="runStatus", EmitDefaultValue=false)] + public RunStatusEnum? RunStatus { get; set; } + /// + /// Indicates the node where the process will execute. + /// + /// Indicates the node where the process will execute. + [JsonConverter(typeof(StringEnumConverter))] + public enum ExecutionNodeEnum + { + + /// + /// Enum ALL for value: ALL + /// + [EnumMember(Value = "ALL")] + ALL = 1, + + /// + /// Enum PRIMARY for value: PRIMARY + /// + [EnumMember(Value = "PRIMARY")] + PRIMARY = 2 + } + + /// + /// Indicates the node where the process will execute. + /// + /// Indicates the node where the process will execute. + [DataMember(Name="executionNode", EmitDefaultValue=false)] + public ExecutionNodeEnum? ExecutionNode { get; set; } + /// + /// Initializes a new instance of the class. + /// + /// The id of the processor.. + /// The id of the parent process group to which the processor belongs.. + /// The name of the prcessor.. + /// The type of the processor.. + /// The state of the processor.. + /// Indicates the node where the process will execute.. + /// The number of bytes read by this Processor in the last 5 mintues. + /// The number of bytes written by this Processor in the last 5 minutes. + /// The number of bytes read in the last 5 minutes.. + /// The number of bytes written in the last 5 minutes.. + /// The number of FlowFiles that have been accepted in the last 5 minutes. + /// The size of the FlowFiles that have been accepted in the last 5 minutes. + /// The count/size of flowfiles that have been accepted in the last 5 minutes.. + /// The number of FlowFiles transferred to a Connection in the last 5 minutes. + /// The size of the FlowFiles transferred to a Connection in the last 5 minutes. + /// The count/size of flowfiles that have been processed in the last 5 minutes.. + /// The number of times this Processor has run in the last 5 minutes. + /// The number of nanoseconds that this Processor has spent running in the last 5 minutes. + /// The total number of task this connectable has completed over the last 5 minutes.. + /// The total duration of all tasks for this connectable over the last 5 minutes.. + /// The number of threads currently executing in the processor.. + /// The number of threads currently terminated for the processor.. + public ProcessorStatusSnapshotDTO(string id = default(string), string groupId = default(string), string name = default(string), string type = default(string), RunStatusEnum? runStatus = default(RunStatusEnum?), ExecutionNodeEnum? executionNode = default(ExecutionNodeEnum?), long? bytesRead = default(long?), long? bytesWritten = default(long?), string read = default(string), string written = default(string), int? flowFilesIn = default(int?), long? bytesIn = default(long?), string input = default(string), int? flowFilesOut = default(int?), long? bytesOut = default(long?), string output = default(string), int? taskCount = default(int?), long? tasksDurationNanos = default(long?), string tasks = default(string), string tasksDuration = default(string), int? activeThreadCount = default(int?), int? terminatedThreadCount = default(int?)) + { + this.Id = id; + this.GroupId = groupId; + this.Name = name; + this.Type = type; + this.RunStatus = runStatus; + this.ExecutionNode = executionNode; + this.BytesRead = bytesRead; + this.BytesWritten = bytesWritten; + this.Read = read; + this.Written = written; + this.FlowFilesIn = flowFilesIn; + this.BytesIn = bytesIn; + this.Input = input; + this.FlowFilesOut = flowFilesOut; + this.BytesOut = bytesOut; + this.Output = output; + this.TaskCount = taskCount; + this.TasksDurationNanos = tasksDurationNanos; + this.Tasks = tasks; + this.TasksDuration = tasksDuration; + this.ActiveThreadCount = activeThreadCount; + this.TerminatedThreadCount = terminatedThreadCount; + } + + /// + /// The id of the processor. + /// + /// The id of the processor. + [DataMember(Name="id", EmitDefaultValue=false)] + public string Id { get; set; } + + /// + /// The id of the parent process group to which the processor belongs. + /// + /// The id of the parent process group to which the processor belongs. + [DataMember(Name="groupId", EmitDefaultValue=false)] + public string GroupId { get; set; } + + /// + /// The name of the prcessor. + /// + /// The name of the prcessor. + [DataMember(Name="name", EmitDefaultValue=false)] + public string Name { get; set; } + + /// + /// The type of the processor. + /// + /// The type of the processor. + [DataMember(Name="type", EmitDefaultValue=false)] + public string Type { get; set; } + + + + /// + /// The number of bytes read by this Processor in the last 5 mintues + /// + /// The number of bytes read by this Processor in the last 5 mintues + [DataMember(Name="bytesRead", EmitDefaultValue=false)] + public long? BytesRead { get; set; } + + /// + /// The number of bytes written by this Processor in the last 5 minutes + /// + /// The number of bytes written by this Processor in the last 5 minutes + [DataMember(Name="bytesWritten", EmitDefaultValue=false)] + public long? BytesWritten { get; set; } + + /// + /// The number of bytes read in the last 5 minutes. + /// + /// The number of bytes read in the last 5 minutes. + [DataMember(Name="read", EmitDefaultValue=false)] + public string Read { get; set; } + + /// + /// The number of bytes written in the last 5 minutes. + /// + /// The number of bytes written in the last 5 minutes. + [DataMember(Name="written", EmitDefaultValue=false)] + public string Written { get; set; } + + /// + /// The number of FlowFiles that have been accepted in the last 5 minutes + /// + /// The number of FlowFiles that have been accepted in the last 5 minutes + [DataMember(Name="flowFilesIn", EmitDefaultValue=false)] + public int? FlowFilesIn { get; set; } + + /// + /// The size of the FlowFiles that have been accepted in the last 5 minutes + /// + /// The size of the FlowFiles that have been accepted in the last 5 minutes + [DataMember(Name="bytesIn", EmitDefaultValue=false)] + public long? BytesIn { get; set; } + + /// + /// The count/size of flowfiles that have been accepted in the last 5 minutes. + /// + /// The count/size of flowfiles that have been accepted in the last 5 minutes. + [DataMember(Name="input", EmitDefaultValue=false)] + public string Input { get; set; } + + /// + /// The number of FlowFiles transferred to a Connection in the last 5 minutes + /// + /// The number of FlowFiles transferred to a Connection in the last 5 minutes + [DataMember(Name="flowFilesOut", EmitDefaultValue=false)] + public int? FlowFilesOut { get; set; } + + /// + /// The size of the FlowFiles transferred to a Connection in the last 5 minutes + /// + /// The size of the FlowFiles transferred to a Connection in the last 5 minutes + [DataMember(Name="bytesOut", EmitDefaultValue=false)] + public long? BytesOut { get; set; } + + /// + /// The count/size of flowfiles that have been processed in the last 5 minutes. + /// + /// The count/size of flowfiles that have been processed in the last 5 minutes. + [DataMember(Name="output", EmitDefaultValue=false)] + public string Output { get; set; } + + /// + /// The number of times this Processor has run in the last 5 minutes + /// + /// The number of times this Processor has run in the last 5 minutes + [DataMember(Name="taskCount", EmitDefaultValue=false)] + public int? TaskCount { get; set; } + + /// + /// The number of nanoseconds that this Processor has spent running in the last 5 minutes + /// + /// The number of nanoseconds that this Processor has spent running in the last 5 minutes + [DataMember(Name="tasksDurationNanos", EmitDefaultValue=false)] + public long? TasksDurationNanos { get; set; } + + /// + /// The total number of task this connectable has completed over the last 5 minutes. + /// + /// The total number of task this connectable has completed over the last 5 minutes. + [DataMember(Name="tasks", EmitDefaultValue=false)] + public string Tasks { get; set; } + + /// + /// The total duration of all tasks for this connectable over the last 5 minutes. + /// + /// The total duration of all tasks for this connectable over the last 5 minutes. + [DataMember(Name="tasksDuration", EmitDefaultValue=false)] + public string TasksDuration { get; set; } + + /// + /// The number of threads currently executing in the processor. + /// + /// The number of threads currently executing in the processor. + [DataMember(Name="activeThreadCount", EmitDefaultValue=false)] + public int? ActiveThreadCount { get; set; } + + /// + /// The number of threads currently terminated for the processor. + /// + /// The number of threads currently terminated for the processor. + [DataMember(Name="terminatedThreadCount", EmitDefaultValue=false)] + public int? TerminatedThreadCount { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class ProcessorStatusSnapshotDTO {\n"); + sb.Append(" Id: ").Append(this.Id).Append("\n"); + sb.Append(" GroupId: ").Append(this.GroupId).Append("\n"); + sb.Append(" Name: ").Append(this.Name).Append("\n"); + sb.Append(" Type: ").Append(this.Type).Append("\n"); + sb.Append(" RunStatus: ").Append(this.RunStatus).Append("\n"); + sb.Append(" ExecutionNode: ").Append(this.ExecutionNode).Append("\n"); + sb.Append(" BytesRead: ").Append(this.BytesRead).Append("\n"); + sb.Append(" BytesWritten: ").Append(this.BytesWritten).Append("\n"); + sb.Append(" Read: ").Append(this.Read).Append("\n"); + sb.Append(" Written: ").Append(this.Written).Append("\n"); + sb.Append(" FlowFilesIn: ").Append(this.FlowFilesIn).Append("\n"); + sb.Append(" BytesIn: ").Append(this.BytesIn).Append("\n"); + sb.Append(" Input: ").Append(this.Input).Append("\n"); + sb.Append(" FlowFilesOut: ").Append(this.FlowFilesOut).Append("\n"); + sb.Append(" BytesOut: ").Append(this.BytesOut).Append("\n"); + sb.Append(" Output: ").Append(this.Output).Append("\n"); + sb.Append(" TaskCount: ").Append(this.TaskCount).Append("\n"); + sb.Append(" TasksDurationNanos: ").Append(this.TasksDurationNanos).Append("\n"); + sb.Append(" Tasks: ").Append(this.Tasks).Append("\n"); + sb.Append(" TasksDuration: ").Append(this.TasksDuration).Append("\n"); + sb.Append(" ActiveThreadCount: ").Append(this.ActiveThreadCount).Append("\n"); + sb.Append(" TerminatedThreadCount: ").Append(this.TerminatedThreadCount).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as ProcessorStatusSnapshotDTO); + } + + /// + /// Returns true if ProcessorStatusSnapshotDTO instances are equal + /// + /// Instance of ProcessorStatusSnapshotDTO to be compared + /// Boolean + public bool Equals(ProcessorStatusSnapshotDTO input) + { + if (input == null) + return false; + + return + ( + this.Id == input.Id || + (this.Id != null && + this.Id.Equals(input.Id)) + ) && + ( + this.GroupId == input.GroupId || + (this.GroupId != null && + this.GroupId.Equals(input.GroupId)) + ) && + ( + this.Name == input.Name || + (this.Name != null && + this.Name.Equals(input.Name)) + ) && + ( + this.Type == input.Type || + (this.Type != null && + this.Type.Equals(input.Type)) + ) && + ( + this.RunStatus == input.RunStatus || + (this.RunStatus != null && + this.RunStatus.Equals(input.RunStatus)) + ) && + ( + this.ExecutionNode == input.ExecutionNode || + (this.ExecutionNode != null && + this.ExecutionNode.Equals(input.ExecutionNode)) + ) && + ( + this.BytesRead == input.BytesRead || + (this.BytesRead != null && + this.BytesRead.Equals(input.BytesRead)) + ) && + ( + this.BytesWritten == input.BytesWritten || + (this.BytesWritten != null && + this.BytesWritten.Equals(input.BytesWritten)) + ) && + ( + this.Read == input.Read || + (this.Read != null && + this.Read.Equals(input.Read)) + ) && + ( + this.Written == input.Written || + (this.Written != null && + this.Written.Equals(input.Written)) + ) && + ( + this.FlowFilesIn == input.FlowFilesIn || + (this.FlowFilesIn != null && + this.FlowFilesIn.Equals(input.FlowFilesIn)) + ) && + ( + this.BytesIn == input.BytesIn || + (this.BytesIn != null && + this.BytesIn.Equals(input.BytesIn)) + ) && + ( + this.Input == input.Input || + (this.Input != null && + this.Input.Equals(input.Input)) + ) && + ( + this.FlowFilesOut == input.FlowFilesOut || + (this.FlowFilesOut != null && + this.FlowFilesOut.Equals(input.FlowFilesOut)) + ) && + ( + this.BytesOut == input.BytesOut || + (this.BytesOut != null && + this.BytesOut.Equals(input.BytesOut)) + ) && + ( + this.Output == input.Output || + (this.Output != null && + this.Output.Equals(input.Output)) + ) && + ( + this.TaskCount == input.TaskCount || + (this.TaskCount != null && + this.TaskCount.Equals(input.TaskCount)) + ) && + ( + this.TasksDurationNanos == input.TasksDurationNanos || + (this.TasksDurationNanos != null && + this.TasksDurationNanos.Equals(input.TasksDurationNanos)) + ) && + ( + this.Tasks == input.Tasks || + (this.Tasks != null && + this.Tasks.Equals(input.Tasks)) + ) && + ( + this.TasksDuration == input.TasksDuration || + (this.TasksDuration != null && + this.TasksDuration.Equals(input.TasksDuration)) + ) && + ( + this.ActiveThreadCount == input.ActiveThreadCount || + (this.ActiveThreadCount != null && + this.ActiveThreadCount.Equals(input.ActiveThreadCount)) + ) && + ( + this.TerminatedThreadCount == input.TerminatedThreadCount || + (this.TerminatedThreadCount != null && + this.TerminatedThreadCount.Equals(input.TerminatedThreadCount)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Id != null) + hashCode = hashCode * 59 + this.Id.GetHashCode(); + if (this.GroupId != null) + hashCode = hashCode * 59 + this.GroupId.GetHashCode(); + if (this.Name != null) + hashCode = hashCode * 59 + this.Name.GetHashCode(); + if (this.Type != null) + hashCode = hashCode * 59 + this.Type.GetHashCode(); + if (this.RunStatus != null) + hashCode = hashCode * 59 + this.RunStatus.GetHashCode(); + if (this.ExecutionNode != null) + hashCode = hashCode * 59 + this.ExecutionNode.GetHashCode(); + if (this.BytesRead != null) + hashCode = hashCode * 59 + this.BytesRead.GetHashCode(); + if (this.BytesWritten != null) + hashCode = hashCode * 59 + this.BytesWritten.GetHashCode(); + if (this.Read != null) + hashCode = hashCode * 59 + this.Read.GetHashCode(); + if (this.Written != null) + hashCode = hashCode * 59 + this.Written.GetHashCode(); + if (this.FlowFilesIn != null) + hashCode = hashCode * 59 + this.FlowFilesIn.GetHashCode(); + if (this.BytesIn != null) + hashCode = hashCode * 59 + this.BytesIn.GetHashCode(); + if (this.Input != null) + hashCode = hashCode * 59 + this.Input.GetHashCode(); + if (this.FlowFilesOut != null) + hashCode = hashCode * 59 + this.FlowFilesOut.GetHashCode(); + if (this.BytesOut != null) + hashCode = hashCode * 59 + this.BytesOut.GetHashCode(); + if (this.Output != null) + hashCode = hashCode * 59 + this.Output.GetHashCode(); + if (this.TaskCount != null) + hashCode = hashCode * 59 + this.TaskCount.GetHashCode(); + if (this.TasksDurationNanos != null) + hashCode = hashCode * 59 + this.TasksDurationNanos.GetHashCode(); + if (this.Tasks != null) + hashCode = hashCode * 59 + this.Tasks.GetHashCode(); + if (this.TasksDuration != null) + hashCode = hashCode * 59 + this.TasksDuration.GetHashCode(); + if (this.ActiveThreadCount != null) + hashCode = hashCode * 59 + this.ActiveThreadCount.GetHashCode(); + if (this.TerminatedThreadCount != null) + hashCode = hashCode * 59 + this.TerminatedThreadCount.GetHashCode(); + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/NiFi.Swagger/Model/ProcessorStatusSnapshotEntity.cs b/NiFi.Swagger/Model/ProcessorStatusSnapshotEntity.cs new file mode 100644 index 0000000..f103536 --- /dev/null +++ b/NiFi.Swagger/Model/ProcessorStatusSnapshotEntity.cs @@ -0,0 +1,150 @@ +/* + * NiFi Rest Api + * + * The Rest Api provides programmatic access to command and control a NiFi instance in real time. Start and stop processors, monitor queues, query provenance data, and more. Each endpoint below includes a description, definitions of the expected input and output, potential response codes, and the authorizations required to invoke each service. + * + * OpenAPI spec version: 1.9.1 + * Contact: dev@nifi.apache.org + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +namespace NiFi.Swagger.Model +{ + using System; + using System.Collections.Generic; + using System.ComponentModel.DataAnnotations; + using System.Runtime.Serialization; + using System.Text; + + using Newtonsoft.Json; + + /// + /// ProcessorStatusSnapshotEntity + /// + [DataContract] + public partial class ProcessorStatusSnapshotEntity : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// The id of the processor.. + /// processorStatusSnapshot. + public ProcessorStatusSnapshotEntity(string id = default(string), ProcessorStatusSnapshotDTO processorStatusSnapshot = default(ProcessorStatusSnapshotDTO)) + { + this.Id = id; + this.ProcessorStatusSnapshot = processorStatusSnapshot; + } + + /// + /// The id of the processor. + /// + /// The id of the processor. + [DataMember(Name="id", EmitDefaultValue=false)] + public string Id { get; set; } + + /// + /// Gets or Sets ProcessorStatusSnapshot + /// + [DataMember(Name="processorStatusSnapshot", EmitDefaultValue=false)] + public ProcessorStatusSnapshotDTO ProcessorStatusSnapshot { get; set; } + + /// + /// Indicates whether the user can read a given resource. + /// + /// Indicates whether the user can read a given resource. + [DataMember(Name="canRead", EmitDefaultValue=false)] + public bool? CanRead { get; private set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class ProcessorStatusSnapshotEntity {\n"); + sb.Append(" Id: ").Append(this.Id).Append("\n"); + sb.Append(" ProcessorStatusSnapshot: ").Append(this.ProcessorStatusSnapshot).Append("\n"); + sb.Append(" CanRead: ").Append(this.CanRead).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as ProcessorStatusSnapshotEntity); + } + + /// + /// Returns true if ProcessorStatusSnapshotEntity instances are equal + /// + /// Instance of ProcessorStatusSnapshotEntity to be compared + /// Boolean + public bool Equals(ProcessorStatusSnapshotEntity input) + { + if (input == null) + return false; + + return + ( + this.Id == input.Id || + (this.Id != null && + this.Id.Equals(input.Id)) + ) && + ( + this.ProcessorStatusSnapshot == input.ProcessorStatusSnapshot || + (this.ProcessorStatusSnapshot != null && + this.ProcessorStatusSnapshot.Equals(input.ProcessorStatusSnapshot)) + ) && + ( + this.CanRead == input.CanRead || + (this.CanRead != null && + this.CanRead.Equals(input.CanRead)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Id != null) + hashCode = hashCode * 59 + this.Id.GetHashCode(); + if (this.ProcessorStatusSnapshot != null) + hashCode = hashCode * 59 + this.ProcessorStatusSnapshot.GetHashCode(); + if (this.CanRead != null) + hashCode = hashCode * 59 + this.CanRead.GetHashCode(); + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/NiFi.Swagger/Model/ProcessorTypesEntity.cs b/NiFi.Swagger/Model/ProcessorTypesEntity.cs new file mode 100644 index 0000000..5e3b8f9 --- /dev/null +++ b/NiFi.Swagger/Model/ProcessorTypesEntity.cs @@ -0,0 +1,119 @@ +/* + * NiFi Rest Api + * + * The Rest Api provides programmatic access to command and control a NiFi instance in real time. Start and stop processors, monitor queues, query provenance data, and more. Each endpoint below includes a description, definitions of the expected input and output, potential response codes, and the authorizations required to invoke each service. + * + * OpenAPI spec version: 1.9.1 + * Contact: dev@nifi.apache.org + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +namespace NiFi.Swagger.Model +{ + using System; + using System.Collections.Generic; + using System.ComponentModel.DataAnnotations; + using System.Linq; + using System.Runtime.Serialization; + using System.Text; + + using Newtonsoft.Json; + + /// + /// ProcessorTypesEntity + /// + [DataContract] + public partial class ProcessorTypesEntity : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// processorTypes. + public ProcessorTypesEntity(List processorTypes = default(List)) + { + this.ProcessorTypes = processorTypes; + } + + /// + /// Gets or Sets ProcessorTypes + /// + [DataMember(Name="processorTypes", EmitDefaultValue=false)] + public List ProcessorTypes { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class ProcessorTypesEntity {\n"); + sb.Append(" ProcessorTypes: ").Append(this.ProcessorTypes).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as ProcessorTypesEntity); + } + + /// + /// Returns true if ProcessorTypesEntity instances are equal + /// + /// Instance of ProcessorTypesEntity to be compared + /// Boolean + public bool Equals(ProcessorTypesEntity input) + { + if (input == null) + return false; + + return + ( + this.ProcessorTypes == input.ProcessorTypes || + this.ProcessorTypes != null && + this.ProcessorTypes.SequenceEqual(input.ProcessorTypes) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.ProcessorTypes != null) + hashCode = hashCode * 59 + this.ProcessorTypes.GetHashCode(); + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/NiFi.Swagger/Model/ProcessorsEntity.cs b/NiFi.Swagger/Model/ProcessorsEntity.cs new file mode 100644 index 0000000..d7e3d4d --- /dev/null +++ b/NiFi.Swagger/Model/ProcessorsEntity.cs @@ -0,0 +1,119 @@ +/* + * NiFi Rest Api + * + * The Rest Api provides programmatic access to command and control a NiFi instance in real time. Start and stop processors, monitor queues, query provenance data, and more. Each endpoint below includes a description, definitions of the expected input and output, potential response codes, and the authorizations required to invoke each service. + * + * OpenAPI spec version: 1.9.1 + * Contact: dev@nifi.apache.org + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +namespace NiFi.Swagger.Model +{ + using System; + using System.Collections.Generic; + using System.ComponentModel.DataAnnotations; + using System.Linq; + using System.Runtime.Serialization; + using System.Text; + + using Newtonsoft.Json; + + /// + /// ProcessorsEntity + /// + [DataContract] + public partial class ProcessorsEntity : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// processors. + public ProcessorsEntity(List processors = default(List)) + { + this.Processors = processors; + } + + /// + /// Gets or Sets Processors + /// + [DataMember(Name="processors", EmitDefaultValue=false)] + public List Processors { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class ProcessorsEntity {\n"); + sb.Append(" Processors: ").Append(this.Processors).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as ProcessorsEntity); + } + + /// + /// Returns true if ProcessorsEntity instances are equal + /// + /// Instance of ProcessorsEntity to be compared + /// Boolean + public bool Equals(ProcessorsEntity input) + { + if (input == null) + return false; + + return + ( + this.Processors == input.Processors || + this.Processors != null && + this.Processors.SequenceEqual(input.Processors) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Processors != null) + hashCode = hashCode * 59 + this.Processors.GetHashCode(); + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/NiFi.Swagger/Model/PropertyDescriptorDTO.cs b/NiFi.Swagger/Model/PropertyDescriptorDTO.cs new file mode 100644 index 0000000..65ceee0 --- /dev/null +++ b/NiFi.Swagger/Model/PropertyDescriptorDTO.cs @@ -0,0 +1,307 @@ +/* + * NiFi Rest Api + * + * The Rest Api provides programmatic access to command and control a NiFi instance in real time. Start and stop processors, monitor queues, query provenance data, and more. Each endpoint below includes a description, definitions of the expected input and output, potential response codes, and the authorizations required to invoke each service. + * + * OpenAPI spec version: 1.9.1 + * Contact: dev@nifi.apache.org + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +namespace NiFi.Swagger.Model +{ + using System; + using System.Collections.Generic; + using System.ComponentModel.DataAnnotations; + using System.Linq; + using System.Runtime.Serialization; + using System.Text; + + using Newtonsoft.Json; + + /// + /// PropertyDescriptorDTO + /// + [DataContract] + public partial class PropertyDescriptorDTO : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// The name for the property.. + /// The human readable name for the property.. + /// The description for the property. Used to relay additional details to a user or provide a mechanism of documenting intent.. + /// The default value for the property.. + /// Allowable values for the property. If empty then the allowed values are not constrained.. + /// Whether the property is required.. + /// Whether the property is sensitive and protected whenever stored or represented.. + /// Whether the property is dynamic (user-defined).. + /// Whether the property supports expression language.. + /// Scope of the Expression Language evaluation for the property.. + /// If the property identifies a controller service this returns the fully qualified type.. + /// If the property identifies a controller service this returns the bundle of the type, null otherwise.. + public PropertyDescriptorDTO(string name = default(string), string displayName = default(string), string description = default(string), string defaultValue = default(string), List allowableValues = default(List), bool? required = default(bool?), bool? sensitive = default(bool?), bool? dynamic = default(bool?), bool? supportsEl = default(bool?), string expressionLanguageScope = default(string), string identifiesControllerService = default(string), BundleDTO identifiesControllerServiceBundle = default(BundleDTO)) + { + this.Name = name; + this.DisplayName = displayName; + this.Description = description; + this.DefaultValue = defaultValue; + this.AllowableValues = allowableValues; + this.Required = required; + this.Sensitive = sensitive; + this.Dynamic = dynamic; + this.SupportsEl = supportsEl; + this.ExpressionLanguageScope = expressionLanguageScope; + this.IdentifiesControllerService = identifiesControllerService; + this.IdentifiesControllerServiceBundle = identifiesControllerServiceBundle; + } + + /// + /// The name for the property. + /// + /// The name for the property. + [DataMember(Name="name", EmitDefaultValue=false)] + public string Name { get; set; } + + /// + /// The human readable name for the property. + /// + /// The human readable name for the property. + [DataMember(Name="displayName", EmitDefaultValue=false)] + public string DisplayName { get; set; } + + /// + /// The description for the property. Used to relay additional details to a user or provide a mechanism of documenting intent. + /// + /// The description for the property. Used to relay additional details to a user or provide a mechanism of documenting intent. + [DataMember(Name="description", EmitDefaultValue=false)] + public string Description { get; set; } + + /// + /// The default value for the property. + /// + /// The default value for the property. + [DataMember(Name="defaultValue", EmitDefaultValue=false)] + public string DefaultValue { get; set; } + + /// + /// Allowable values for the property. If empty then the allowed values are not constrained. + /// + /// Allowable values for the property. If empty then the allowed values are not constrained. + [DataMember(Name="allowableValues", EmitDefaultValue=false)] + public List AllowableValues { get; set; } + + /// + /// Whether the property is required. + /// + /// Whether the property is required. + [DataMember(Name="required", EmitDefaultValue=false)] + public bool? Required { get; set; } + + /// + /// Whether the property is sensitive and protected whenever stored or represented. + /// + /// Whether the property is sensitive and protected whenever stored or represented. + [DataMember(Name="sensitive", EmitDefaultValue=false)] + public bool? Sensitive { get; set; } + + /// + /// Whether the property is dynamic (user-defined). + /// + /// Whether the property is dynamic (user-defined). + [DataMember(Name="dynamic", EmitDefaultValue=false)] + public bool? Dynamic { get; set; } + + /// + /// Whether the property supports expression language. + /// + /// Whether the property supports expression language. + [DataMember(Name="supportsEl", EmitDefaultValue=false)] + public bool? SupportsEl { get; set; } + + /// + /// Scope of the Expression Language evaluation for the property. + /// + /// Scope of the Expression Language evaluation for the property. + [DataMember(Name="expressionLanguageScope", EmitDefaultValue=false)] + public string ExpressionLanguageScope { get; set; } + + /// + /// If the property identifies a controller service this returns the fully qualified type. + /// + /// If the property identifies a controller service this returns the fully qualified type. + [DataMember(Name="identifiesControllerService", EmitDefaultValue=false)] + public string IdentifiesControllerService { get; set; } + + /// + /// If the property identifies a controller service this returns the bundle of the type, null otherwise. + /// + /// If the property identifies a controller service this returns the bundle of the type, null otherwise. + [DataMember(Name="identifiesControllerServiceBundle", EmitDefaultValue=false)] + public BundleDTO IdentifiesControllerServiceBundle { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class PropertyDescriptorDTO {\n"); + sb.Append(" Name: ").Append(this.Name).Append("\n"); + sb.Append(" DisplayName: ").Append(this.DisplayName).Append("\n"); + sb.Append(" Description: ").Append(this.Description).Append("\n"); + sb.Append(" DefaultValue: ").Append(this.DefaultValue).Append("\n"); + sb.Append(" AllowableValues: ").Append(this.AllowableValues).Append("\n"); + sb.Append(" Required: ").Append(this.Required).Append("\n"); + sb.Append(" Sensitive: ").Append(this.Sensitive).Append("\n"); + sb.Append(" Dynamic: ").Append(this.Dynamic).Append("\n"); + sb.Append(" SupportsEl: ").Append(this.SupportsEl).Append("\n"); + sb.Append(" ExpressionLanguageScope: ").Append(this.ExpressionLanguageScope).Append("\n"); + sb.Append(" IdentifiesControllerService: ").Append(this.IdentifiesControllerService).Append("\n"); + sb.Append(" IdentifiesControllerServiceBundle: ").Append(this.IdentifiesControllerServiceBundle).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as PropertyDescriptorDTO); + } + + /// + /// Returns true if PropertyDescriptorDTO instances are equal + /// + /// Instance of PropertyDescriptorDTO to be compared + /// Boolean + public bool Equals(PropertyDescriptorDTO input) + { + if (input == null) + return false; + + return + ( + this.Name == input.Name || + (this.Name != null && + this.Name.Equals(input.Name)) + ) && + ( + this.DisplayName == input.DisplayName || + (this.DisplayName != null && + this.DisplayName.Equals(input.DisplayName)) + ) && + ( + this.Description == input.Description || + (this.Description != null && + this.Description.Equals(input.Description)) + ) && + ( + this.DefaultValue == input.DefaultValue || + (this.DefaultValue != null && + this.DefaultValue.Equals(input.DefaultValue)) + ) && + ( + this.AllowableValues == input.AllowableValues || + this.AllowableValues != null && + this.AllowableValues.SequenceEqual(input.AllowableValues) + ) && + ( + this.Required == input.Required || + (this.Required != null && + this.Required.Equals(input.Required)) + ) && + ( + this.Sensitive == input.Sensitive || + (this.Sensitive != null && + this.Sensitive.Equals(input.Sensitive)) + ) && + ( + this.Dynamic == input.Dynamic || + (this.Dynamic != null && + this.Dynamic.Equals(input.Dynamic)) + ) && + ( + this.SupportsEl == input.SupportsEl || + (this.SupportsEl != null && + this.SupportsEl.Equals(input.SupportsEl)) + ) && + ( + this.ExpressionLanguageScope == input.ExpressionLanguageScope || + (this.ExpressionLanguageScope != null && + this.ExpressionLanguageScope.Equals(input.ExpressionLanguageScope)) + ) && + ( + this.IdentifiesControllerService == input.IdentifiesControllerService || + (this.IdentifiesControllerService != null && + this.IdentifiesControllerService.Equals(input.IdentifiesControllerService)) + ) && + ( + this.IdentifiesControllerServiceBundle == input.IdentifiesControllerServiceBundle || + (this.IdentifiesControllerServiceBundle != null && + this.IdentifiesControllerServiceBundle.Equals(input.IdentifiesControllerServiceBundle)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Name != null) + hashCode = hashCode * 59 + this.Name.GetHashCode(); + if (this.DisplayName != null) + hashCode = hashCode * 59 + this.DisplayName.GetHashCode(); + if (this.Description != null) + hashCode = hashCode * 59 + this.Description.GetHashCode(); + if (this.DefaultValue != null) + hashCode = hashCode * 59 + this.DefaultValue.GetHashCode(); + if (this.AllowableValues != null) + hashCode = hashCode * 59 + this.AllowableValues.GetHashCode(); + if (this.Required != null) + hashCode = hashCode * 59 + this.Required.GetHashCode(); + if (this.Sensitive != null) + hashCode = hashCode * 59 + this.Sensitive.GetHashCode(); + if (this.Dynamic != null) + hashCode = hashCode * 59 + this.Dynamic.GetHashCode(); + if (this.SupportsEl != null) + hashCode = hashCode * 59 + this.SupportsEl.GetHashCode(); + if (this.ExpressionLanguageScope != null) + hashCode = hashCode * 59 + this.ExpressionLanguageScope.GetHashCode(); + if (this.IdentifiesControllerService != null) + hashCode = hashCode * 59 + this.IdentifiesControllerService.GetHashCode(); + if (this.IdentifiesControllerServiceBundle != null) + hashCode = hashCode * 59 + this.IdentifiesControllerServiceBundle.GetHashCode(); + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/NiFi.Swagger/Model/PropertyDescriptorEntity.cs b/NiFi.Swagger/Model/PropertyDescriptorEntity.cs new file mode 100644 index 0000000..8c5a1bf --- /dev/null +++ b/NiFi.Swagger/Model/PropertyDescriptorEntity.cs @@ -0,0 +1,118 @@ +/* + * NiFi Rest Api + * + * The Rest Api provides programmatic access to command and control a NiFi instance in real time. Start and stop processors, monitor queues, query provenance data, and more. Each endpoint below includes a description, definitions of the expected input and output, potential response codes, and the authorizations required to invoke each service. + * + * OpenAPI spec version: 1.9.1 + * Contact: dev@nifi.apache.org + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +namespace NiFi.Swagger.Model +{ + using System; + using System.Collections.Generic; + using System.ComponentModel.DataAnnotations; + using System.Runtime.Serialization; + using System.Text; + + using Newtonsoft.Json; + + /// + /// PropertyDescriptorEntity + /// + [DataContract] + public partial class PropertyDescriptorEntity : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// propertyDescriptor. + public PropertyDescriptorEntity(PropertyDescriptorDTO propertyDescriptor = default(PropertyDescriptorDTO)) + { + this.PropertyDescriptor = propertyDescriptor; + } + + /// + /// Gets or Sets PropertyDescriptor + /// + [DataMember(Name="propertyDescriptor", EmitDefaultValue=false)] + public PropertyDescriptorDTO PropertyDescriptor { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class PropertyDescriptorEntity {\n"); + sb.Append(" PropertyDescriptor: ").Append(this.PropertyDescriptor).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as PropertyDescriptorEntity); + } + + /// + /// Returns true if PropertyDescriptorEntity instances are equal + /// + /// Instance of PropertyDescriptorEntity to be compared + /// Boolean + public bool Equals(PropertyDescriptorEntity input) + { + if (input == null) + return false; + + return + ( + this.PropertyDescriptor == input.PropertyDescriptor || + (this.PropertyDescriptor != null && + this.PropertyDescriptor.Equals(input.PropertyDescriptor)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.PropertyDescriptor != null) + hashCode = hashCode * 59 + this.PropertyDescriptor.GetHashCode(); + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/NiFi.Swagger/Model/PropertyHistoryDTO.cs b/NiFi.Swagger/Model/PropertyHistoryDTO.cs new file mode 100644 index 0000000..f7dbb73 --- /dev/null +++ b/NiFi.Swagger/Model/PropertyHistoryDTO.cs @@ -0,0 +1,120 @@ +/* + * NiFi Rest Api + * + * The Rest Api provides programmatic access to command and control a NiFi instance in real time. Start and stop processors, monitor queues, query provenance data, and more. Each endpoint below includes a description, definitions of the expected input and output, potential response codes, and the authorizations required to invoke each service. + * + * OpenAPI spec version: 1.9.1 + * Contact: dev@nifi.apache.org + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +namespace NiFi.Swagger.Model +{ + using System; + using System.Collections.Generic; + using System.ComponentModel.DataAnnotations; + using System.Linq; + using System.Runtime.Serialization; + using System.Text; + + using Newtonsoft.Json; + + /// + /// PropertyHistoryDTO + /// + [DataContract] + public partial class PropertyHistoryDTO : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// Previous values for a given property.. + public PropertyHistoryDTO(List previousValues = default(List)) + { + this.PreviousValues = previousValues; + } + + /// + /// Previous values for a given property. + /// + /// Previous values for a given property. + [DataMember(Name="previousValues", EmitDefaultValue=false)] + public List PreviousValues { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class PropertyHistoryDTO {\n"); + sb.Append(" PreviousValues: ").Append(this.PreviousValues).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as PropertyHistoryDTO); + } + + /// + /// Returns true if PropertyHistoryDTO instances are equal + /// + /// Instance of PropertyHistoryDTO to be compared + /// Boolean + public bool Equals(PropertyHistoryDTO input) + { + if (input == null) + return false; + + return + ( + this.PreviousValues == input.PreviousValues || + this.PreviousValues != null && + this.PreviousValues.SequenceEqual(input.PreviousValues) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.PreviousValues != null) + hashCode = hashCode * 59 + this.PreviousValues.GetHashCode(); + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/NiFi.Swagger/Model/ProvenanceDTO.cs b/NiFi.Swagger/Model/ProvenanceDTO.cs new file mode 100644 index 0000000..5674418 --- /dev/null +++ b/NiFi.Swagger/Model/ProvenanceDTO.cs @@ -0,0 +1,238 @@ +/* + * NiFi Rest Api + * + * The Rest Api provides programmatic access to command and control a NiFi instance in real time. Start and stop processors, monitor queues, query provenance data, and more. Each endpoint below includes a description, definitions of the expected input and output, potential response codes, and the authorizations required to invoke each service. + * + * OpenAPI spec version: 1.9.1 + * Contact: dev@nifi.apache.org + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +namespace NiFi.Swagger.Model +{ + using System; + using System.Collections.Generic; + using System.ComponentModel.DataAnnotations; + using System.Runtime.Serialization; + using System.Text; + + using Newtonsoft.Json; + + /// + /// ProvenanceDTO + /// + [DataContract] + public partial class ProvenanceDTO : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// The id of the provenance query.. + /// The URI for this query. Used for obtaining/deleting the request at a later time. + /// The timestamp when the query was submitted.. + /// The timestamp when the query will expire.. + /// The current percent complete.. + /// Whether the query has finished.. + /// The provenance request.. + /// The provenance results.. + public ProvenanceDTO(string id = default(string), string uri = default(string), string submissionTime = default(string), string expiration = default(string), int? percentCompleted = default(int?), bool? finished = default(bool?), ProvenanceRequestDTO request = default(ProvenanceRequestDTO), ProvenanceResultsDTO results = default(ProvenanceResultsDTO)) + { + this.Id = id; + this.Uri = uri; + this.SubmissionTime = submissionTime; + this.Expiration = expiration; + this.PercentCompleted = percentCompleted; + this.Finished = finished; + this.Request = request; + this.Results = results; + } + + /// + /// The id of the provenance query. + /// + /// The id of the provenance query. + [DataMember(Name="id", EmitDefaultValue=false)] + public string Id { get; set; } + + /// + /// The URI for this query. Used for obtaining/deleting the request at a later time + /// + /// The URI for this query. Used for obtaining/deleting the request at a later time + [DataMember(Name="uri", EmitDefaultValue=false)] + public string Uri { get; set; } + + /// + /// The timestamp when the query was submitted. + /// + /// The timestamp when the query was submitted. + [DataMember(Name="submissionTime", EmitDefaultValue=false)] + public string SubmissionTime { get; set; } + + /// + /// The timestamp when the query will expire. + /// + /// The timestamp when the query will expire. + [DataMember(Name="expiration", EmitDefaultValue=false)] + public string Expiration { get; set; } + + /// + /// The current percent complete. + /// + /// The current percent complete. + [DataMember(Name="percentCompleted", EmitDefaultValue=false)] + public int? PercentCompleted { get; set; } + + /// + /// Whether the query has finished. + /// + /// Whether the query has finished. + [DataMember(Name="finished", EmitDefaultValue=false)] + public bool? Finished { get; set; } + + /// + /// The provenance request. + /// + /// The provenance request. + [DataMember(Name="request", EmitDefaultValue=false)] + public ProvenanceRequestDTO Request { get; set; } + + /// + /// The provenance results. + /// + /// The provenance results. + [DataMember(Name="results", EmitDefaultValue=false)] + public ProvenanceResultsDTO Results { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class ProvenanceDTO {\n"); + sb.Append(" Id: ").Append(this.Id).Append("\n"); + sb.Append(" Uri: ").Append(this.Uri).Append("\n"); + sb.Append(" SubmissionTime: ").Append(this.SubmissionTime).Append("\n"); + sb.Append(" Expiration: ").Append(this.Expiration).Append("\n"); + sb.Append(" PercentCompleted: ").Append(this.PercentCompleted).Append("\n"); + sb.Append(" Finished: ").Append(this.Finished).Append("\n"); + sb.Append(" Request: ").Append(this.Request).Append("\n"); + sb.Append(" Results: ").Append(this.Results).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as ProvenanceDTO); + } + + /// + /// Returns true if ProvenanceDTO instances are equal + /// + /// Instance of ProvenanceDTO to be compared + /// Boolean + public bool Equals(ProvenanceDTO input) + { + if (input == null) + return false; + + return + ( + this.Id == input.Id || + (this.Id != null && + this.Id.Equals(input.Id)) + ) && + ( + this.Uri == input.Uri || + (this.Uri != null && + this.Uri.Equals(input.Uri)) + ) && + ( + this.SubmissionTime == input.SubmissionTime || + (this.SubmissionTime != null && + this.SubmissionTime.Equals(input.SubmissionTime)) + ) && + ( + this.Expiration == input.Expiration || + (this.Expiration != null && + this.Expiration.Equals(input.Expiration)) + ) && + ( + this.PercentCompleted == input.PercentCompleted || + (this.PercentCompleted != null && + this.PercentCompleted.Equals(input.PercentCompleted)) + ) && + ( + this.Finished == input.Finished || + (this.Finished != null && + this.Finished.Equals(input.Finished)) + ) && + ( + this.Request == input.Request || + (this.Request != null && + this.Request.Equals(input.Request)) + ) && + ( + this.Results == input.Results || + (this.Results != null && + this.Results.Equals(input.Results)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Id != null) + hashCode = hashCode * 59 + this.Id.GetHashCode(); + if (this.Uri != null) + hashCode = hashCode * 59 + this.Uri.GetHashCode(); + if (this.SubmissionTime != null) + hashCode = hashCode * 59 + this.SubmissionTime.GetHashCode(); + if (this.Expiration != null) + hashCode = hashCode * 59 + this.Expiration.GetHashCode(); + if (this.PercentCompleted != null) + hashCode = hashCode * 59 + this.PercentCompleted.GetHashCode(); + if (this.Finished != null) + hashCode = hashCode * 59 + this.Finished.GetHashCode(); + if (this.Request != null) + hashCode = hashCode * 59 + this.Request.GetHashCode(); + if (this.Results != null) + hashCode = hashCode * 59 + this.Results.GetHashCode(); + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/NiFi.Swagger/Model/ProvenanceEntity.cs b/NiFi.Swagger/Model/ProvenanceEntity.cs new file mode 100644 index 0000000..30aaf19 --- /dev/null +++ b/NiFi.Swagger/Model/ProvenanceEntity.cs @@ -0,0 +1,118 @@ +/* + * NiFi Rest Api + * + * The Rest Api provides programmatic access to command and control a NiFi instance in real time. Start and stop processors, monitor queues, query provenance data, and more. Each endpoint below includes a description, definitions of the expected input and output, potential response codes, and the authorizations required to invoke each service. + * + * OpenAPI spec version: 1.9.1 + * Contact: dev@nifi.apache.org + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +namespace NiFi.Swagger.Model +{ + using System; + using System.Collections.Generic; + using System.ComponentModel.DataAnnotations; + using System.Runtime.Serialization; + using System.Text; + + using Newtonsoft.Json; + + /// + /// ProvenanceEntity + /// + [DataContract] + public partial class ProvenanceEntity : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// provenance. + public ProvenanceEntity(ProvenanceDTO provenance = default(ProvenanceDTO)) + { + this.Provenance = provenance; + } + + /// + /// Gets or Sets Provenance + /// + [DataMember(Name="provenance", EmitDefaultValue=false)] + public ProvenanceDTO Provenance { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class ProvenanceEntity {\n"); + sb.Append(" Provenance: ").Append(this.Provenance).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as ProvenanceEntity); + } + + /// + /// Returns true if ProvenanceEntity instances are equal + /// + /// Instance of ProvenanceEntity to be compared + /// Boolean + public bool Equals(ProvenanceEntity input) + { + if (input == null) + return false; + + return + ( + this.Provenance == input.Provenance || + (this.Provenance != null && + this.Provenance.Equals(input.Provenance)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Provenance != null) + hashCode = hashCode * 59 + this.Provenance.GetHashCode(); + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/NiFi.Swagger/Model/ProvenanceEventDTO.cs b/NiFi.Swagger/Model/ProvenanceEventDTO.cs new file mode 100644 index 0000000..f3dc011 --- /dev/null +++ b/NiFi.Swagger/Model/ProvenanceEventDTO.cs @@ -0,0 +1,800 @@ +/* + * NiFi Rest Api + * + * The Rest Api provides programmatic access to command and control a NiFi instance in real time. Start and stop processors, monitor queues, query provenance data, and more. Each endpoint below includes a description, definitions of the expected input and output, potential response codes, and the authorizations required to invoke each service. + * + * OpenAPI spec version: 1.9.1 + * Contact: dev@nifi.apache.org + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +namespace NiFi.Swagger.Model +{ + using System; + using System.Collections.Generic; + using System.ComponentModel.DataAnnotations; + using System.Linq; + using System.Runtime.Serialization; + using System.Text; + + using Newtonsoft.Json; + + /// + /// ProvenanceEventDTO + /// + [DataContract] + public partial class ProvenanceEventDTO : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// The event uuid.. + /// The event id. This is a one up number thats unique per node.. + /// The timestamp of the event.. + /// The event duration in milliseconds.. + /// The duration since the lineage began, in milliseconds.. + /// The type of the event.. + /// The uuid of the flowfile for the event.. + /// The size of the flowfile for the event.. + /// The size of the flowfile in bytes for the event.. + /// The identifier for the node where the event originated.. + /// The label for the node where the event originated.. + /// The id of the group that the component resides in. If the component is no longer in the flow, the group id will not be set.. + /// The id of the component that generated the event.. + /// The type of the component that generated the event.. + /// The name of the component that generated the event.. + /// The source system flowfile id.. + /// The alternate identifier uri for the fileflow for the event.. + /// The attributes of the flowfile for the event.. + /// The parent uuids for the event.. + /// The child uuids for the event.. + /// The source/destination system uri if the event was a RECEIVE/SEND.. + /// The relationship to which the flowfile was routed if the event is of type ROUTE.. + /// The event details.. + /// Whether the input and output content claim is the same.. + /// Whether the input content is still available.. + /// The section in which the input content claim lives.. + /// The container in which the input content claim lives.. + /// The identifier of the input content claim.. + /// The offset into the input content claim where the flowfiles content begins.. + /// The file size of the input content claim formatted.. + /// The file size of the intput content claim in bytes.. + /// Whether the output content is still available.. + /// The section in which the output content claim lives.. + /// The container in which the output content claim lives.. + /// The identifier of the output content claim.. + /// The offset into the output content claim where the flowfiles content begins.. + /// The file size of the output content claim formatted.. + /// The file size of the output content claim in bytes.. + /// Whether or not replay is available.. + /// Explanation as to why replay is unavailable.. + /// The identifier of the queue/connection from which the flowfile was pulled to genereate this event. May be null if the queue/connection is unknown or the flowfile was generated from this event.. + public ProvenanceEventDTO(string id = default(string), long? eventId = default(long?), string eventTime = default(string), long? eventDuration = default(long?), long? lineageDuration = default(long?), string eventType = default(string), string flowFileUuid = default(string), string fileSize = default(string), long? fileSizeBytes = default(long?), string clusterNodeId = default(string), string clusterNodeAddress = default(string), string groupId = default(string), string componentId = default(string), string componentType = default(string), string componentName = default(string), string sourceSystemFlowFileId = default(string), string alternateIdentifierUri = default(string), List attributes = default(List), List parentUuids = default(List), List childUuids = default(List), string transitUri = default(string), string relationship = default(string), string details = default(string), bool? contentEqual = default(bool?), bool? inputContentAvailable = default(bool?), string inputContentClaimSection = default(string), string inputContentClaimContainer = default(string), string inputContentClaimIdentifier = default(string), long? inputContentClaimOffset = default(long?), string inputContentClaimFileSize = default(string), long? inputContentClaimFileSizeBytes = default(long?), bool? outputContentAvailable = default(bool?), string outputContentClaimSection = default(string), string outputContentClaimContainer = default(string), string outputContentClaimIdentifier = default(string), long? outputContentClaimOffset = default(long?), string outputContentClaimFileSize = default(string), long? outputContentClaimFileSizeBytes = default(long?), bool? replayAvailable = default(bool?), string replayExplanation = default(string), string sourceConnectionIdentifier = default(string)) + { + this.Id = id; + this.EventId = eventId; + this.EventTime = eventTime; + this.EventDuration = eventDuration; + this.LineageDuration = lineageDuration; + this.EventType = eventType; + this.FlowFileUuid = flowFileUuid; + this.FileSize = fileSize; + this.FileSizeBytes = fileSizeBytes; + this.ClusterNodeId = clusterNodeId; + this.ClusterNodeAddress = clusterNodeAddress; + this.GroupId = groupId; + this.ComponentId = componentId; + this.ComponentType = componentType; + this.ComponentName = componentName; + this.SourceSystemFlowFileId = sourceSystemFlowFileId; + this.AlternateIdentifierUri = alternateIdentifierUri; + this.Attributes = attributes; + this.ParentUuids = parentUuids; + this.ChildUuids = childUuids; + this.TransitUri = transitUri; + this.Relationship = relationship; + this.Details = details; + this.ContentEqual = contentEqual; + this.InputContentAvailable = inputContentAvailable; + this.InputContentClaimSection = inputContentClaimSection; + this.InputContentClaimContainer = inputContentClaimContainer; + this.InputContentClaimIdentifier = inputContentClaimIdentifier; + this.InputContentClaimOffset = inputContentClaimOffset; + this.InputContentClaimFileSize = inputContentClaimFileSize; + this.InputContentClaimFileSizeBytes = inputContentClaimFileSizeBytes; + this.OutputContentAvailable = outputContentAvailable; + this.OutputContentClaimSection = outputContentClaimSection; + this.OutputContentClaimContainer = outputContentClaimContainer; + this.OutputContentClaimIdentifier = outputContentClaimIdentifier; + this.OutputContentClaimOffset = outputContentClaimOffset; + this.OutputContentClaimFileSize = outputContentClaimFileSize; + this.OutputContentClaimFileSizeBytes = outputContentClaimFileSizeBytes; + this.ReplayAvailable = replayAvailable; + this.ReplayExplanation = replayExplanation; + this.SourceConnectionIdentifier = sourceConnectionIdentifier; + } + + /// + /// The event uuid. + /// + /// The event uuid. + [DataMember(Name="id", EmitDefaultValue=false)] + public string Id { get; set; } + + /// + /// The event id. This is a one up number thats unique per node. + /// + /// The event id. This is a one up number thats unique per node. + [DataMember(Name="eventId", EmitDefaultValue=false)] + public long? EventId { get; set; } + + /// + /// The timestamp of the event. + /// + /// The timestamp of the event. + [DataMember(Name="eventTime", EmitDefaultValue=false)] + public string EventTime { get; set; } + + /// + /// The event duration in milliseconds. + /// + /// The event duration in milliseconds. + [DataMember(Name="eventDuration", EmitDefaultValue=false)] + public long? EventDuration { get; set; } + + /// + /// The duration since the lineage began, in milliseconds. + /// + /// The duration since the lineage began, in milliseconds. + [DataMember(Name="lineageDuration", EmitDefaultValue=false)] + public long? LineageDuration { get; set; } + + /// + /// The type of the event. + /// + /// The type of the event. + [DataMember(Name="eventType", EmitDefaultValue=false)] + public string EventType { get; set; } + + /// + /// The uuid of the flowfile for the event. + /// + /// The uuid of the flowfile for the event. + [DataMember(Name="flowFileUuid", EmitDefaultValue=false)] + public string FlowFileUuid { get; set; } + + /// + /// The size of the flowfile for the event. + /// + /// The size of the flowfile for the event. + [DataMember(Name="fileSize", EmitDefaultValue=false)] + public string FileSize { get; set; } + + /// + /// The size of the flowfile in bytes for the event. + /// + /// The size of the flowfile in bytes for the event. + [DataMember(Name="fileSizeBytes", EmitDefaultValue=false)] + public long? FileSizeBytes { get; set; } + + /// + /// The identifier for the node where the event originated. + /// + /// The identifier for the node where the event originated. + [DataMember(Name="clusterNodeId", EmitDefaultValue=false)] + public string ClusterNodeId { get; set; } + + /// + /// The label for the node where the event originated. + /// + /// The label for the node where the event originated. + [DataMember(Name="clusterNodeAddress", EmitDefaultValue=false)] + public string ClusterNodeAddress { get; set; } + + /// + /// The id of the group that the component resides in. If the component is no longer in the flow, the group id will not be set. + /// + /// The id of the group that the component resides in. If the component is no longer in the flow, the group id will not be set. + [DataMember(Name="groupId", EmitDefaultValue=false)] + public string GroupId { get; set; } + + /// + /// The id of the component that generated the event. + /// + /// The id of the component that generated the event. + [DataMember(Name="componentId", EmitDefaultValue=false)] + public string ComponentId { get; set; } + + /// + /// The type of the component that generated the event. + /// + /// The type of the component that generated the event. + [DataMember(Name="componentType", EmitDefaultValue=false)] + public string ComponentType { get; set; } + + /// + /// The name of the component that generated the event. + /// + /// The name of the component that generated the event. + [DataMember(Name="componentName", EmitDefaultValue=false)] + public string ComponentName { get; set; } + + /// + /// The source system flowfile id. + /// + /// The source system flowfile id. + [DataMember(Name="sourceSystemFlowFileId", EmitDefaultValue=false)] + public string SourceSystemFlowFileId { get; set; } + + /// + /// The alternate identifier uri for the fileflow for the event. + /// + /// The alternate identifier uri for the fileflow for the event. + [DataMember(Name="alternateIdentifierUri", EmitDefaultValue=false)] + public string AlternateIdentifierUri { get; set; } + + /// + /// The attributes of the flowfile for the event. + /// + /// The attributes of the flowfile for the event. + [DataMember(Name="attributes", EmitDefaultValue=false)] + public List Attributes { get; set; } + + /// + /// The parent uuids for the event. + /// + /// The parent uuids for the event. + [DataMember(Name="parentUuids", EmitDefaultValue=false)] + public List ParentUuids { get; set; } + + /// + /// The child uuids for the event. + /// + /// The child uuids for the event. + [DataMember(Name="childUuids", EmitDefaultValue=false)] + public List ChildUuids { get; set; } + + /// + /// The source/destination system uri if the event was a RECEIVE/SEND. + /// + /// The source/destination system uri if the event was a RECEIVE/SEND. + [DataMember(Name="transitUri", EmitDefaultValue=false)] + public string TransitUri { get; set; } + + /// + /// The relationship to which the flowfile was routed if the event is of type ROUTE. + /// + /// The relationship to which the flowfile was routed if the event is of type ROUTE. + [DataMember(Name="relationship", EmitDefaultValue=false)] + public string Relationship { get; set; } + + /// + /// The event details. + /// + /// The event details. + [DataMember(Name="details", EmitDefaultValue=false)] + public string Details { get; set; } + + /// + /// Whether the input and output content claim is the same. + /// + /// Whether the input and output content claim is the same. + [DataMember(Name="contentEqual", EmitDefaultValue=false)] + public bool? ContentEqual { get; set; } + + /// + /// Whether the input content is still available. + /// + /// Whether the input content is still available. + [DataMember(Name="inputContentAvailable", EmitDefaultValue=false)] + public bool? InputContentAvailable { get; set; } + + /// + /// The section in which the input content claim lives. + /// + /// The section in which the input content claim lives. + [DataMember(Name="inputContentClaimSection", EmitDefaultValue=false)] + public string InputContentClaimSection { get; set; } + + /// + /// The container in which the input content claim lives. + /// + /// The container in which the input content claim lives. + [DataMember(Name="inputContentClaimContainer", EmitDefaultValue=false)] + public string InputContentClaimContainer { get; set; } + + /// + /// The identifier of the input content claim. + /// + /// The identifier of the input content claim. + [DataMember(Name="inputContentClaimIdentifier", EmitDefaultValue=false)] + public string InputContentClaimIdentifier { get; set; } + + /// + /// The offset into the input content claim where the flowfiles content begins. + /// + /// The offset into the input content claim where the flowfiles content begins. + [DataMember(Name="inputContentClaimOffset", EmitDefaultValue=false)] + public long? InputContentClaimOffset { get; set; } + + /// + /// The file size of the input content claim formatted. + /// + /// The file size of the input content claim formatted. + [DataMember(Name="inputContentClaimFileSize", EmitDefaultValue=false)] + public string InputContentClaimFileSize { get; set; } + + /// + /// The file size of the intput content claim in bytes. + /// + /// The file size of the intput content claim in bytes. + [DataMember(Name="inputContentClaimFileSizeBytes", EmitDefaultValue=false)] + public long? InputContentClaimFileSizeBytes { get; set; } + + /// + /// Whether the output content is still available. + /// + /// Whether the output content is still available. + [DataMember(Name="outputContentAvailable", EmitDefaultValue=false)] + public bool? OutputContentAvailable { get; set; } + + /// + /// The section in which the output content claim lives. + /// + /// The section in which the output content claim lives. + [DataMember(Name="outputContentClaimSection", EmitDefaultValue=false)] + public string OutputContentClaimSection { get; set; } + + /// + /// The container in which the output content claim lives. + /// + /// The container in which the output content claim lives. + [DataMember(Name="outputContentClaimContainer", EmitDefaultValue=false)] + public string OutputContentClaimContainer { get; set; } + + /// + /// The identifier of the output content claim. + /// + /// The identifier of the output content claim. + [DataMember(Name="outputContentClaimIdentifier", EmitDefaultValue=false)] + public string OutputContentClaimIdentifier { get; set; } + + /// + /// The offset into the output content claim where the flowfiles content begins. + /// + /// The offset into the output content claim where the flowfiles content begins. + [DataMember(Name="outputContentClaimOffset", EmitDefaultValue=false)] + public long? OutputContentClaimOffset { get; set; } + + /// + /// The file size of the output content claim formatted. + /// + /// The file size of the output content claim formatted. + [DataMember(Name="outputContentClaimFileSize", EmitDefaultValue=false)] + public string OutputContentClaimFileSize { get; set; } + + /// + /// The file size of the output content claim in bytes. + /// + /// The file size of the output content claim in bytes. + [DataMember(Name="outputContentClaimFileSizeBytes", EmitDefaultValue=false)] + public long? OutputContentClaimFileSizeBytes { get; set; } + + /// + /// Whether or not replay is available. + /// + /// Whether or not replay is available. + [DataMember(Name="replayAvailable", EmitDefaultValue=false)] + public bool? ReplayAvailable { get; set; } + + /// + /// Explanation as to why replay is unavailable. + /// + /// Explanation as to why replay is unavailable. + [DataMember(Name="replayExplanation", EmitDefaultValue=false)] + public string ReplayExplanation { get; set; } + + /// + /// The identifier of the queue/connection from which the flowfile was pulled to genereate this event. May be null if the queue/connection is unknown or the flowfile was generated from this event. + /// + /// The identifier of the queue/connection from which the flowfile was pulled to genereate this event. May be null if the queue/connection is unknown or the flowfile was generated from this event. + [DataMember(Name="sourceConnectionIdentifier", EmitDefaultValue=false)] + public string SourceConnectionIdentifier { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class ProvenanceEventDTO {\n"); + sb.Append(" Id: ").Append(this.Id).Append("\n"); + sb.Append(" EventId: ").Append(this.EventId).Append("\n"); + sb.Append(" EventTime: ").Append(this.EventTime).Append("\n"); + sb.Append(" EventDuration: ").Append(this.EventDuration).Append("\n"); + sb.Append(" LineageDuration: ").Append(this.LineageDuration).Append("\n"); + sb.Append(" EventType: ").Append(this.EventType).Append("\n"); + sb.Append(" FlowFileUuid: ").Append(this.FlowFileUuid).Append("\n"); + sb.Append(" FileSize: ").Append(this.FileSize).Append("\n"); + sb.Append(" FileSizeBytes: ").Append(this.FileSizeBytes).Append("\n"); + sb.Append(" ClusterNodeId: ").Append(this.ClusterNodeId).Append("\n"); + sb.Append(" ClusterNodeAddress: ").Append(this.ClusterNodeAddress).Append("\n"); + sb.Append(" GroupId: ").Append(this.GroupId).Append("\n"); + sb.Append(" ComponentId: ").Append(this.ComponentId).Append("\n"); + sb.Append(" ComponentType: ").Append(this.ComponentType).Append("\n"); + sb.Append(" ComponentName: ").Append(this.ComponentName).Append("\n"); + sb.Append(" SourceSystemFlowFileId: ").Append(this.SourceSystemFlowFileId).Append("\n"); + sb.Append(" AlternateIdentifierUri: ").Append(this.AlternateIdentifierUri).Append("\n"); + sb.Append(" Attributes: ").Append(this.Attributes).Append("\n"); + sb.Append(" ParentUuids: ").Append(this.ParentUuids).Append("\n"); + sb.Append(" ChildUuids: ").Append(this.ChildUuids).Append("\n"); + sb.Append(" TransitUri: ").Append(this.TransitUri).Append("\n"); + sb.Append(" Relationship: ").Append(this.Relationship).Append("\n"); + sb.Append(" Details: ").Append(this.Details).Append("\n"); + sb.Append(" ContentEqual: ").Append(this.ContentEqual).Append("\n"); + sb.Append(" InputContentAvailable: ").Append(this.InputContentAvailable).Append("\n"); + sb.Append(" InputContentClaimSection: ").Append(this.InputContentClaimSection).Append("\n"); + sb.Append(" InputContentClaimContainer: ").Append(this.InputContentClaimContainer).Append("\n"); + sb.Append(" InputContentClaimIdentifier: ").Append(this.InputContentClaimIdentifier).Append("\n"); + sb.Append(" InputContentClaimOffset: ").Append(this.InputContentClaimOffset).Append("\n"); + sb.Append(" InputContentClaimFileSize: ").Append(this.InputContentClaimFileSize).Append("\n"); + sb.Append(" InputContentClaimFileSizeBytes: ").Append(this.InputContentClaimFileSizeBytes).Append("\n"); + sb.Append(" OutputContentAvailable: ").Append(this.OutputContentAvailable).Append("\n"); + sb.Append(" OutputContentClaimSection: ").Append(this.OutputContentClaimSection).Append("\n"); + sb.Append(" OutputContentClaimContainer: ").Append(this.OutputContentClaimContainer).Append("\n"); + sb.Append(" OutputContentClaimIdentifier: ").Append(this.OutputContentClaimIdentifier).Append("\n"); + sb.Append(" OutputContentClaimOffset: ").Append(this.OutputContentClaimOffset).Append("\n"); + sb.Append(" OutputContentClaimFileSize: ").Append(this.OutputContentClaimFileSize).Append("\n"); + sb.Append(" OutputContentClaimFileSizeBytes: ").Append(this.OutputContentClaimFileSizeBytes).Append("\n"); + sb.Append(" ReplayAvailable: ").Append(this.ReplayAvailable).Append("\n"); + sb.Append(" ReplayExplanation: ").Append(this.ReplayExplanation).Append("\n"); + sb.Append(" SourceConnectionIdentifier: ").Append(this.SourceConnectionIdentifier).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as ProvenanceEventDTO); + } + + /// + /// Returns true if ProvenanceEventDTO instances are equal + /// + /// Instance of ProvenanceEventDTO to be compared + /// Boolean + public bool Equals(ProvenanceEventDTO input) + { + if (input == null) + return false; + + return + ( + this.Id == input.Id || + (this.Id != null && + this.Id.Equals(input.Id)) + ) && + ( + this.EventId == input.EventId || + (this.EventId != null && + this.EventId.Equals(input.EventId)) + ) && + ( + this.EventTime == input.EventTime || + (this.EventTime != null && + this.EventTime.Equals(input.EventTime)) + ) && + ( + this.EventDuration == input.EventDuration || + (this.EventDuration != null && + this.EventDuration.Equals(input.EventDuration)) + ) && + ( + this.LineageDuration == input.LineageDuration || + (this.LineageDuration != null && + this.LineageDuration.Equals(input.LineageDuration)) + ) && + ( + this.EventType == input.EventType || + (this.EventType != null && + this.EventType.Equals(input.EventType)) + ) && + ( + this.FlowFileUuid == input.FlowFileUuid || + (this.FlowFileUuid != null && + this.FlowFileUuid.Equals(input.FlowFileUuid)) + ) && + ( + this.FileSize == input.FileSize || + (this.FileSize != null && + this.FileSize.Equals(input.FileSize)) + ) && + ( + this.FileSizeBytes == input.FileSizeBytes || + (this.FileSizeBytes != null && + this.FileSizeBytes.Equals(input.FileSizeBytes)) + ) && + ( + this.ClusterNodeId == input.ClusterNodeId || + (this.ClusterNodeId != null && + this.ClusterNodeId.Equals(input.ClusterNodeId)) + ) && + ( + this.ClusterNodeAddress == input.ClusterNodeAddress || + (this.ClusterNodeAddress != null && + this.ClusterNodeAddress.Equals(input.ClusterNodeAddress)) + ) && + ( + this.GroupId == input.GroupId || + (this.GroupId != null && + this.GroupId.Equals(input.GroupId)) + ) && + ( + this.ComponentId == input.ComponentId || + (this.ComponentId != null && + this.ComponentId.Equals(input.ComponentId)) + ) && + ( + this.ComponentType == input.ComponentType || + (this.ComponentType != null && + this.ComponentType.Equals(input.ComponentType)) + ) && + ( + this.ComponentName == input.ComponentName || + (this.ComponentName != null && + this.ComponentName.Equals(input.ComponentName)) + ) && + ( + this.SourceSystemFlowFileId == input.SourceSystemFlowFileId || + (this.SourceSystemFlowFileId != null && + this.SourceSystemFlowFileId.Equals(input.SourceSystemFlowFileId)) + ) && + ( + this.AlternateIdentifierUri == input.AlternateIdentifierUri || + (this.AlternateIdentifierUri != null && + this.AlternateIdentifierUri.Equals(input.AlternateIdentifierUri)) + ) && + ( + this.Attributes == input.Attributes || + this.Attributes != null && + this.Attributes.SequenceEqual(input.Attributes) + ) && + ( + this.ParentUuids == input.ParentUuids || + this.ParentUuids != null && + this.ParentUuids.SequenceEqual(input.ParentUuids) + ) && + ( + this.ChildUuids == input.ChildUuids || + this.ChildUuids != null && + this.ChildUuids.SequenceEqual(input.ChildUuids) + ) && + ( + this.TransitUri == input.TransitUri || + (this.TransitUri != null && + this.TransitUri.Equals(input.TransitUri)) + ) && + ( + this.Relationship == input.Relationship || + (this.Relationship != null && + this.Relationship.Equals(input.Relationship)) + ) && + ( + this.Details == input.Details || + (this.Details != null && + this.Details.Equals(input.Details)) + ) && + ( + this.ContentEqual == input.ContentEqual || + (this.ContentEqual != null && + this.ContentEqual.Equals(input.ContentEqual)) + ) && + ( + this.InputContentAvailable == input.InputContentAvailable || + (this.InputContentAvailable != null && + this.InputContentAvailable.Equals(input.InputContentAvailable)) + ) && + ( + this.InputContentClaimSection == input.InputContentClaimSection || + (this.InputContentClaimSection != null && + this.InputContentClaimSection.Equals(input.InputContentClaimSection)) + ) && + ( + this.InputContentClaimContainer == input.InputContentClaimContainer || + (this.InputContentClaimContainer != null && + this.InputContentClaimContainer.Equals(input.InputContentClaimContainer)) + ) && + ( + this.InputContentClaimIdentifier == input.InputContentClaimIdentifier || + (this.InputContentClaimIdentifier != null && + this.InputContentClaimIdentifier.Equals(input.InputContentClaimIdentifier)) + ) && + ( + this.InputContentClaimOffset == input.InputContentClaimOffset || + (this.InputContentClaimOffset != null && + this.InputContentClaimOffset.Equals(input.InputContentClaimOffset)) + ) && + ( + this.InputContentClaimFileSize == input.InputContentClaimFileSize || + (this.InputContentClaimFileSize != null && + this.InputContentClaimFileSize.Equals(input.InputContentClaimFileSize)) + ) && + ( + this.InputContentClaimFileSizeBytes == input.InputContentClaimFileSizeBytes || + (this.InputContentClaimFileSizeBytes != null && + this.InputContentClaimFileSizeBytes.Equals(input.InputContentClaimFileSizeBytes)) + ) && + ( + this.OutputContentAvailable == input.OutputContentAvailable || + (this.OutputContentAvailable != null && + this.OutputContentAvailable.Equals(input.OutputContentAvailable)) + ) && + ( + this.OutputContentClaimSection == input.OutputContentClaimSection || + (this.OutputContentClaimSection != null && + this.OutputContentClaimSection.Equals(input.OutputContentClaimSection)) + ) && + ( + this.OutputContentClaimContainer == input.OutputContentClaimContainer || + (this.OutputContentClaimContainer != null && + this.OutputContentClaimContainer.Equals(input.OutputContentClaimContainer)) + ) && + ( + this.OutputContentClaimIdentifier == input.OutputContentClaimIdentifier || + (this.OutputContentClaimIdentifier != null && + this.OutputContentClaimIdentifier.Equals(input.OutputContentClaimIdentifier)) + ) && + ( + this.OutputContentClaimOffset == input.OutputContentClaimOffset || + (this.OutputContentClaimOffset != null && + this.OutputContentClaimOffset.Equals(input.OutputContentClaimOffset)) + ) && + ( + this.OutputContentClaimFileSize == input.OutputContentClaimFileSize || + (this.OutputContentClaimFileSize != null && + this.OutputContentClaimFileSize.Equals(input.OutputContentClaimFileSize)) + ) && + ( + this.OutputContentClaimFileSizeBytes == input.OutputContentClaimFileSizeBytes || + (this.OutputContentClaimFileSizeBytes != null && + this.OutputContentClaimFileSizeBytes.Equals(input.OutputContentClaimFileSizeBytes)) + ) && + ( + this.ReplayAvailable == input.ReplayAvailable || + (this.ReplayAvailable != null && + this.ReplayAvailable.Equals(input.ReplayAvailable)) + ) && + ( + this.ReplayExplanation == input.ReplayExplanation || + (this.ReplayExplanation != null && + this.ReplayExplanation.Equals(input.ReplayExplanation)) + ) && + ( + this.SourceConnectionIdentifier == input.SourceConnectionIdentifier || + (this.SourceConnectionIdentifier != null && + this.SourceConnectionIdentifier.Equals(input.SourceConnectionIdentifier)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Id != null) + hashCode = hashCode * 59 + this.Id.GetHashCode(); + if (this.EventId != null) + hashCode = hashCode * 59 + this.EventId.GetHashCode(); + if (this.EventTime != null) + hashCode = hashCode * 59 + this.EventTime.GetHashCode(); + if (this.EventDuration != null) + hashCode = hashCode * 59 + this.EventDuration.GetHashCode(); + if (this.LineageDuration != null) + hashCode = hashCode * 59 + this.LineageDuration.GetHashCode(); + if (this.EventType != null) + hashCode = hashCode * 59 + this.EventType.GetHashCode(); + if (this.FlowFileUuid != null) + hashCode = hashCode * 59 + this.FlowFileUuid.GetHashCode(); + if (this.FileSize != null) + hashCode = hashCode * 59 + this.FileSize.GetHashCode(); + if (this.FileSizeBytes != null) + hashCode = hashCode * 59 + this.FileSizeBytes.GetHashCode(); + if (this.ClusterNodeId != null) + hashCode = hashCode * 59 + this.ClusterNodeId.GetHashCode(); + if (this.ClusterNodeAddress != null) + hashCode = hashCode * 59 + this.ClusterNodeAddress.GetHashCode(); + if (this.GroupId != null) + hashCode = hashCode * 59 + this.GroupId.GetHashCode(); + if (this.ComponentId != null) + hashCode = hashCode * 59 + this.ComponentId.GetHashCode(); + if (this.ComponentType != null) + hashCode = hashCode * 59 + this.ComponentType.GetHashCode(); + if (this.ComponentName != null) + hashCode = hashCode * 59 + this.ComponentName.GetHashCode(); + if (this.SourceSystemFlowFileId != null) + hashCode = hashCode * 59 + this.SourceSystemFlowFileId.GetHashCode(); + if (this.AlternateIdentifierUri != null) + hashCode = hashCode * 59 + this.AlternateIdentifierUri.GetHashCode(); + if (this.Attributes != null) + hashCode = hashCode * 59 + this.Attributes.GetHashCode(); + if (this.ParentUuids != null) + hashCode = hashCode * 59 + this.ParentUuids.GetHashCode(); + if (this.ChildUuids != null) + hashCode = hashCode * 59 + this.ChildUuids.GetHashCode(); + if (this.TransitUri != null) + hashCode = hashCode * 59 + this.TransitUri.GetHashCode(); + if (this.Relationship != null) + hashCode = hashCode * 59 + this.Relationship.GetHashCode(); + if (this.Details != null) + hashCode = hashCode * 59 + this.Details.GetHashCode(); + if (this.ContentEqual != null) + hashCode = hashCode * 59 + this.ContentEqual.GetHashCode(); + if (this.InputContentAvailable != null) + hashCode = hashCode * 59 + this.InputContentAvailable.GetHashCode(); + if (this.InputContentClaimSection != null) + hashCode = hashCode * 59 + this.InputContentClaimSection.GetHashCode(); + if (this.InputContentClaimContainer != null) + hashCode = hashCode * 59 + this.InputContentClaimContainer.GetHashCode(); + if (this.InputContentClaimIdentifier != null) + hashCode = hashCode * 59 + this.InputContentClaimIdentifier.GetHashCode(); + if (this.InputContentClaimOffset != null) + hashCode = hashCode * 59 + this.InputContentClaimOffset.GetHashCode(); + if (this.InputContentClaimFileSize != null) + hashCode = hashCode * 59 + this.InputContentClaimFileSize.GetHashCode(); + if (this.InputContentClaimFileSizeBytes != null) + hashCode = hashCode * 59 + this.InputContentClaimFileSizeBytes.GetHashCode(); + if (this.OutputContentAvailable != null) + hashCode = hashCode * 59 + this.OutputContentAvailable.GetHashCode(); + if (this.OutputContentClaimSection != null) + hashCode = hashCode * 59 + this.OutputContentClaimSection.GetHashCode(); + if (this.OutputContentClaimContainer != null) + hashCode = hashCode * 59 + this.OutputContentClaimContainer.GetHashCode(); + if (this.OutputContentClaimIdentifier != null) + hashCode = hashCode * 59 + this.OutputContentClaimIdentifier.GetHashCode(); + if (this.OutputContentClaimOffset != null) + hashCode = hashCode * 59 + this.OutputContentClaimOffset.GetHashCode(); + if (this.OutputContentClaimFileSize != null) + hashCode = hashCode * 59 + this.OutputContentClaimFileSize.GetHashCode(); + if (this.OutputContentClaimFileSizeBytes != null) + hashCode = hashCode * 59 + this.OutputContentClaimFileSizeBytes.GetHashCode(); + if (this.ReplayAvailable != null) + hashCode = hashCode * 59 + this.ReplayAvailable.GetHashCode(); + if (this.ReplayExplanation != null) + hashCode = hashCode * 59 + this.ReplayExplanation.GetHashCode(); + if (this.SourceConnectionIdentifier != null) + hashCode = hashCode * 59 + this.SourceConnectionIdentifier.GetHashCode(); + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/NiFi.Swagger/Model/ProvenanceEventEntity.cs b/NiFi.Swagger/Model/ProvenanceEventEntity.cs new file mode 100644 index 0000000..b06273b --- /dev/null +++ b/NiFi.Swagger/Model/ProvenanceEventEntity.cs @@ -0,0 +1,118 @@ +/* + * NiFi Rest Api + * + * The Rest Api provides programmatic access to command and control a NiFi instance in real time. Start and stop processors, monitor queues, query provenance data, and more. Each endpoint below includes a description, definitions of the expected input and output, potential response codes, and the authorizations required to invoke each service. + * + * OpenAPI spec version: 1.9.1 + * Contact: dev@nifi.apache.org + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +namespace NiFi.Swagger.Model +{ + using System; + using System.Collections.Generic; + using System.ComponentModel.DataAnnotations; + using System.Runtime.Serialization; + using System.Text; + + using Newtonsoft.Json; + + /// + /// ProvenanceEventEntity + /// + [DataContract] + public partial class ProvenanceEventEntity : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// provenanceEvent. + public ProvenanceEventEntity(ProvenanceEventDTO provenanceEvent = default(ProvenanceEventDTO)) + { + this.ProvenanceEvent = provenanceEvent; + } + + /// + /// Gets or Sets ProvenanceEvent + /// + [DataMember(Name="provenanceEvent", EmitDefaultValue=false)] + public ProvenanceEventDTO ProvenanceEvent { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class ProvenanceEventEntity {\n"); + sb.Append(" ProvenanceEvent: ").Append(this.ProvenanceEvent).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as ProvenanceEventEntity); + } + + /// + /// Returns true if ProvenanceEventEntity instances are equal + /// + /// Instance of ProvenanceEventEntity to be compared + /// Boolean + public bool Equals(ProvenanceEventEntity input) + { + if (input == null) + return false; + + return + ( + this.ProvenanceEvent == input.ProvenanceEvent || + (this.ProvenanceEvent != null && + this.ProvenanceEvent.Equals(input.ProvenanceEvent)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.ProvenanceEvent != null) + hashCode = hashCode * 59 + this.ProvenanceEvent.GetHashCode(); + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/NiFi.Swagger/Model/ProvenanceLinkDTO.cs b/NiFi.Swagger/Model/ProvenanceLinkDTO.cs new file mode 100644 index 0000000..dabd9c8 --- /dev/null +++ b/NiFi.Swagger/Model/ProvenanceLinkDTO.cs @@ -0,0 +1,187 @@ +/* + * NiFi Rest Api + * + * The Rest Api provides programmatic access to command and control a NiFi instance in real time. Start and stop processors, monitor queues, query provenance data, and more. Each endpoint below includes a description, definitions of the expected input and output, potential response codes, and the authorizations required to invoke each service. + * + * OpenAPI spec version: 1.9.1 + * Contact: dev@nifi.apache.org + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +namespace NiFi.Swagger.Model +{ + using System; + using System.Collections.Generic; + using System.ComponentModel.DataAnnotations; + using System.Runtime.Serialization; + using System.Text; + + using Newtonsoft.Json; + + /// + /// ProvenanceLinkDTO + /// + [DataContract] + public partial class ProvenanceLinkDTO : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// The source node id of the link.. + /// The target node id of the link.. + /// The flowfile uuid that traversed the link.. + /// The timestamp of the link (based on the destination).. + /// The timestamp of this link in milliseconds.. + public ProvenanceLinkDTO(string sourceId = default(string), string targetId = default(string), string flowFileUuid = default(string), string timestamp = default(string), long? millis = default(long?)) + { + this.SourceId = sourceId; + this.TargetId = targetId; + this.FlowFileUuid = flowFileUuid; + this.Timestamp = timestamp; + this.Millis = millis; + } + + /// + /// The source node id of the link. + /// + /// The source node id of the link. + [DataMember(Name="sourceId", EmitDefaultValue=false)] + public string SourceId { get; set; } + + /// + /// The target node id of the link. + /// + /// The target node id of the link. + [DataMember(Name="targetId", EmitDefaultValue=false)] + public string TargetId { get; set; } + + /// + /// The flowfile uuid that traversed the link. + /// + /// The flowfile uuid that traversed the link. + [DataMember(Name="flowFileUuid", EmitDefaultValue=false)] + public string FlowFileUuid { get; set; } + + /// + /// The timestamp of the link (based on the destination). + /// + /// The timestamp of the link (based on the destination). + [DataMember(Name="timestamp", EmitDefaultValue=false)] + public string Timestamp { get; set; } + + /// + /// The timestamp of this link in milliseconds. + /// + /// The timestamp of this link in milliseconds. + [DataMember(Name="millis", EmitDefaultValue=false)] + public long? Millis { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class ProvenanceLinkDTO {\n"); + sb.Append(" SourceId: ").Append(this.SourceId).Append("\n"); + sb.Append(" TargetId: ").Append(this.TargetId).Append("\n"); + sb.Append(" FlowFileUuid: ").Append(this.FlowFileUuid).Append("\n"); + sb.Append(" Timestamp: ").Append(this.Timestamp).Append("\n"); + sb.Append(" Millis: ").Append(this.Millis).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as ProvenanceLinkDTO); + } + + /// + /// Returns true if ProvenanceLinkDTO instances are equal + /// + /// Instance of ProvenanceLinkDTO to be compared + /// Boolean + public bool Equals(ProvenanceLinkDTO input) + { + if (input == null) + return false; + + return + ( + this.SourceId == input.SourceId || + (this.SourceId != null && + this.SourceId.Equals(input.SourceId)) + ) && + ( + this.TargetId == input.TargetId || + (this.TargetId != null && + this.TargetId.Equals(input.TargetId)) + ) && + ( + this.FlowFileUuid == input.FlowFileUuid || + (this.FlowFileUuid != null && + this.FlowFileUuid.Equals(input.FlowFileUuid)) + ) && + ( + this.Timestamp == input.Timestamp || + (this.Timestamp != null && + this.Timestamp.Equals(input.Timestamp)) + ) && + ( + this.Millis == input.Millis || + (this.Millis != null && + this.Millis.Equals(input.Millis)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.SourceId != null) + hashCode = hashCode * 59 + this.SourceId.GetHashCode(); + if (this.TargetId != null) + hashCode = hashCode * 59 + this.TargetId.GetHashCode(); + if (this.FlowFileUuid != null) + hashCode = hashCode * 59 + this.FlowFileUuid.GetHashCode(); + if (this.Timestamp != null) + hashCode = hashCode * 59 + this.Timestamp.GetHashCode(); + if (this.Millis != null) + hashCode = hashCode * 59 + this.Millis.GetHashCode(); + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/NiFi.Swagger/Model/ProvenanceNodeDTO.cs b/NiFi.Swagger/Model/ProvenanceNodeDTO.cs new file mode 100644 index 0000000..1ed10a9 --- /dev/null +++ b/NiFi.Swagger/Model/ProvenanceNodeDTO.cs @@ -0,0 +1,278 @@ +/* + * NiFi Rest Api + * + * The Rest Api provides programmatic access to command and control a NiFi instance in real time. Start and stop processors, monitor queues, query provenance data, and more. Each endpoint below includes a description, definitions of the expected input and output, potential response codes, and the authorizations required to invoke each service. + * + * OpenAPI spec version: 1.9.1 + * Contact: dev@nifi.apache.org + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +namespace NiFi.Swagger.Model +{ + using System; + using System.Collections.Generic; + using System.ComponentModel.DataAnnotations; + using System.Linq; + using System.Runtime.Serialization; + using System.Text; + + using Newtonsoft.Json; + using Newtonsoft.Json.Converters; + + /// + /// ProvenanceNodeDTO + /// + [DataContract] + public partial class ProvenanceNodeDTO : IEquatable, IValidatableObject + { + /// + /// The type of the node. + /// + /// The type of the node. + [JsonConverter(typeof(StringEnumConverter))] + public enum TypeEnum + { + + /// + /// Enum FLOWFILE for value: FLOWFILE + /// + [EnumMember(Value = "FLOWFILE")] + FLOWFILE = 1, + + /// + /// Enum EVENT for value: EVENT + /// + [EnumMember(Value = "EVENT")] + EVENT = 2 + } + + /// + /// The type of the node. + /// + /// The type of the node. + [DataMember(Name="type", EmitDefaultValue=false)] + public TypeEnum? Type { get; set; } + /// + /// Initializes a new instance of the class. + /// + /// The id of the node.. + /// The uuid of the flowfile associated with the provenance event.. + /// The uuid of the parent flowfiles of the provenance event.. + /// The uuid of the childrent flowfiles of the provenance event.. + /// The identifier of the node that this event/flowfile originated from.. + /// The type of the node.. + /// If the type is EVENT, this is the type of event.. + /// The timestamp of the node in milliseconds.. + /// The timestamp of the node formatted.. + public ProvenanceNodeDTO(string id = default(string), string flowFileUuid = default(string), List parentUuids = default(List), List childUuids = default(List), string clusterNodeIdentifier = default(string), TypeEnum? type = default(TypeEnum?), string eventType = default(string), long? millis = default(long?), string timestamp = default(string)) + { + this.Id = id; + this.FlowFileUuid = flowFileUuid; + this.ParentUuids = parentUuids; + this.ChildUuids = childUuids; + this.ClusterNodeIdentifier = clusterNodeIdentifier; + this.Type = type; + this.EventType = eventType; + this.Millis = millis; + this.Timestamp = timestamp; + } + + /// + /// The id of the node. + /// + /// The id of the node. + [DataMember(Name="id", EmitDefaultValue=false)] + public string Id { get; set; } + + /// + /// The uuid of the flowfile associated with the provenance event. + /// + /// The uuid of the flowfile associated with the provenance event. + [DataMember(Name="flowFileUuid", EmitDefaultValue=false)] + public string FlowFileUuid { get; set; } + + /// + /// The uuid of the parent flowfiles of the provenance event. + /// + /// The uuid of the parent flowfiles of the provenance event. + [DataMember(Name="parentUuids", EmitDefaultValue=false)] + public List ParentUuids { get; set; } + + /// + /// The uuid of the childrent flowfiles of the provenance event. + /// + /// The uuid of the childrent flowfiles of the provenance event. + [DataMember(Name="childUuids", EmitDefaultValue=false)] + public List ChildUuids { get; set; } + + /// + /// The identifier of the node that this event/flowfile originated from. + /// + /// The identifier of the node that this event/flowfile originated from. + [DataMember(Name="clusterNodeIdentifier", EmitDefaultValue=false)] + public string ClusterNodeIdentifier { get; set; } + + + /// + /// If the type is EVENT, this is the type of event. + /// + /// If the type is EVENT, this is the type of event. + [DataMember(Name="eventType", EmitDefaultValue=false)] + public string EventType { get; set; } + + /// + /// The timestamp of the node in milliseconds. + /// + /// The timestamp of the node in milliseconds. + [DataMember(Name="millis", EmitDefaultValue=false)] + public long? Millis { get; set; } + + /// + /// The timestamp of the node formatted. + /// + /// The timestamp of the node formatted. + [DataMember(Name="timestamp", EmitDefaultValue=false)] + public string Timestamp { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class ProvenanceNodeDTO {\n"); + sb.Append(" Id: ").Append(this.Id).Append("\n"); + sb.Append(" FlowFileUuid: ").Append(this.FlowFileUuid).Append("\n"); + sb.Append(" ParentUuids: ").Append(this.ParentUuids).Append("\n"); + sb.Append(" ChildUuids: ").Append(this.ChildUuids).Append("\n"); + sb.Append(" ClusterNodeIdentifier: ").Append(this.ClusterNodeIdentifier).Append("\n"); + sb.Append(" Type: ").Append(this.Type).Append("\n"); + sb.Append(" EventType: ").Append(this.EventType).Append("\n"); + sb.Append(" Millis: ").Append(this.Millis).Append("\n"); + sb.Append(" Timestamp: ").Append(this.Timestamp).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as ProvenanceNodeDTO); + } + + /// + /// Returns true if ProvenanceNodeDTO instances are equal + /// + /// Instance of ProvenanceNodeDTO to be compared + /// Boolean + public bool Equals(ProvenanceNodeDTO input) + { + if (input == null) + return false; + + return + ( + this.Id == input.Id || + (this.Id != null && + this.Id.Equals(input.Id)) + ) && + ( + this.FlowFileUuid == input.FlowFileUuid || + (this.FlowFileUuid != null && + this.FlowFileUuid.Equals(input.FlowFileUuid)) + ) && + ( + this.ParentUuids == input.ParentUuids || + this.ParentUuids != null && + this.ParentUuids.SequenceEqual(input.ParentUuids) + ) && + ( + this.ChildUuids == input.ChildUuids || + this.ChildUuids != null && + this.ChildUuids.SequenceEqual(input.ChildUuids) + ) && + ( + this.ClusterNodeIdentifier == input.ClusterNodeIdentifier || + (this.ClusterNodeIdentifier != null && + this.ClusterNodeIdentifier.Equals(input.ClusterNodeIdentifier)) + ) && + ( + this.Type == input.Type || + (this.Type != null && + this.Type.Equals(input.Type)) + ) && + ( + this.EventType == input.EventType || + (this.EventType != null && + this.EventType.Equals(input.EventType)) + ) && + ( + this.Millis == input.Millis || + (this.Millis != null && + this.Millis.Equals(input.Millis)) + ) && + ( + this.Timestamp == input.Timestamp || + (this.Timestamp != null && + this.Timestamp.Equals(input.Timestamp)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Id != null) + hashCode = hashCode * 59 + this.Id.GetHashCode(); + if (this.FlowFileUuid != null) + hashCode = hashCode * 59 + this.FlowFileUuid.GetHashCode(); + if (this.ParentUuids != null) + hashCode = hashCode * 59 + this.ParentUuids.GetHashCode(); + if (this.ChildUuids != null) + hashCode = hashCode * 59 + this.ChildUuids.GetHashCode(); + if (this.ClusterNodeIdentifier != null) + hashCode = hashCode * 59 + this.ClusterNodeIdentifier.GetHashCode(); + if (this.Type != null) + hashCode = hashCode * 59 + this.Type.GetHashCode(); + if (this.EventType != null) + hashCode = hashCode * 59 + this.EventType.GetHashCode(); + if (this.Millis != null) + hashCode = hashCode * 59 + this.Millis.GetHashCode(); + if (this.Timestamp != null) + hashCode = hashCode * 59 + this.Timestamp.GetHashCode(); + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/NiFi.Swagger/Model/ProvenanceOptionsDTO.cs b/NiFi.Swagger/Model/ProvenanceOptionsDTO.cs new file mode 100644 index 0000000..0c34f52 --- /dev/null +++ b/NiFi.Swagger/Model/ProvenanceOptionsDTO.cs @@ -0,0 +1,120 @@ +/* + * NiFi Rest Api + * + * The Rest Api provides programmatic access to command and control a NiFi instance in real time. Start and stop processors, monitor queues, query provenance data, and more. Each endpoint below includes a description, definitions of the expected input and output, potential response codes, and the authorizations required to invoke each service. + * + * OpenAPI spec version: 1.9.1 + * Contact: dev@nifi.apache.org + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +namespace NiFi.Swagger.Model +{ + using System; + using System.Collections.Generic; + using System.ComponentModel.DataAnnotations; + using System.Linq; + using System.Runtime.Serialization; + using System.Text; + + using Newtonsoft.Json; + + /// + /// ProvenanceOptionsDTO + /// + [DataContract] + public partial class ProvenanceOptionsDTO : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// The available searchable field for the NiFi.. + public ProvenanceOptionsDTO(List searchableFields = default(List)) + { + this.SearchableFields = searchableFields; + } + + /// + /// The available searchable field for the NiFi. + /// + /// The available searchable field for the NiFi. + [DataMember(Name="searchableFields", EmitDefaultValue=false)] + public List SearchableFields { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class ProvenanceOptionsDTO {\n"); + sb.Append(" SearchableFields: ").Append(this.SearchableFields).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as ProvenanceOptionsDTO); + } + + /// + /// Returns true if ProvenanceOptionsDTO instances are equal + /// + /// Instance of ProvenanceOptionsDTO to be compared + /// Boolean + public bool Equals(ProvenanceOptionsDTO input) + { + if (input == null) + return false; + + return + ( + this.SearchableFields == input.SearchableFields || + this.SearchableFields != null && + this.SearchableFields.SequenceEqual(input.SearchableFields) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.SearchableFields != null) + hashCode = hashCode * 59 + this.SearchableFields.GetHashCode(); + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/NiFi.Swagger/Model/ProvenanceOptionsEntity.cs b/NiFi.Swagger/Model/ProvenanceOptionsEntity.cs new file mode 100644 index 0000000..9a0c053 --- /dev/null +++ b/NiFi.Swagger/Model/ProvenanceOptionsEntity.cs @@ -0,0 +1,118 @@ +/* + * NiFi Rest Api + * + * The Rest Api provides programmatic access to command and control a NiFi instance in real time. Start and stop processors, monitor queues, query provenance data, and more. Each endpoint below includes a description, definitions of the expected input and output, potential response codes, and the authorizations required to invoke each service. + * + * OpenAPI spec version: 1.9.1 + * Contact: dev@nifi.apache.org + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +namespace NiFi.Swagger.Model +{ + using System; + using System.Collections.Generic; + using System.ComponentModel.DataAnnotations; + using System.Runtime.Serialization; + using System.Text; + + using Newtonsoft.Json; + + /// + /// ProvenanceOptionsEntity + /// + [DataContract] + public partial class ProvenanceOptionsEntity : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// provenanceOptions. + public ProvenanceOptionsEntity(ProvenanceOptionsDTO provenanceOptions = default(ProvenanceOptionsDTO)) + { + this.ProvenanceOptions = provenanceOptions; + } + + /// + /// Gets or Sets ProvenanceOptions + /// + [DataMember(Name="provenanceOptions", EmitDefaultValue=false)] + public ProvenanceOptionsDTO ProvenanceOptions { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class ProvenanceOptionsEntity {\n"); + sb.Append(" ProvenanceOptions: ").Append(this.ProvenanceOptions).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as ProvenanceOptionsEntity); + } + + /// + /// Returns true if ProvenanceOptionsEntity instances are equal + /// + /// Instance of ProvenanceOptionsEntity to be compared + /// Boolean + public bool Equals(ProvenanceOptionsEntity input) + { + if (input == null) + return false; + + return + ( + this.ProvenanceOptions == input.ProvenanceOptions || + (this.ProvenanceOptions != null && + this.ProvenanceOptions.Equals(input.ProvenanceOptions)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.ProvenanceOptions != null) + hashCode = hashCode * 59 + this.ProvenanceOptions.GetHashCode(); + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/NiFi.Swagger/Model/ProvenanceRequestDTO.cs b/NiFi.Swagger/Model/ProvenanceRequestDTO.cs new file mode 100644 index 0000000..9e6d67a --- /dev/null +++ b/NiFi.Swagger/Model/ProvenanceRequestDTO.cs @@ -0,0 +1,256 @@ +/* + * NiFi Rest Api + * + * The Rest Api provides programmatic access to command and control a NiFi instance in real time. Start and stop processors, monitor queues, query provenance data, and more. Each endpoint below includes a description, definitions of the expected input and output, potential response codes, and the authorizations required to invoke each service. + * + * OpenAPI spec version: 1.9.1 + * Contact: dev@nifi.apache.org + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +namespace NiFi.Swagger.Model +{ + using System; + using System.Collections.Generic; + using System.ComponentModel.DataAnnotations; + using System.Linq; + using System.Runtime.Serialization; + using System.Text; + + using Newtonsoft.Json; + + /// + /// ProvenanceRequestDTO + /// + [DataContract] + public partial class ProvenanceRequestDTO : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// The search terms used to perform the search.. + /// The id of the node in the cluster where this provenance originated.. + /// The earliest event time to include in the query.. + /// The latest event time to include in the query.. + /// The minimum file size to include in the query.. + /// The maximum file size to include in the query.. + /// The maximum number of results to include.. + /// Whether or not to summarize provenance events returned. This property is false by default.. + /// Whether or not incremental results are returned. If false, provenance events are only returned once the query completes. This property is true by default.. + public ProvenanceRequestDTO(Dictionary searchTerms = default(Dictionary), string clusterNodeId = default(string), string startDate = default(string), string endDate = default(string), string minimumFileSize = default(string), string maximumFileSize = default(string), int? maxResults = default(int?), bool? summarize = default(bool?), bool? incrementalResults = default(bool?)) + { + this.SearchTerms = searchTerms; + this.ClusterNodeId = clusterNodeId; + this.StartDate = startDate; + this.EndDate = endDate; + this.MinimumFileSize = minimumFileSize; + this.MaximumFileSize = maximumFileSize; + this.MaxResults = maxResults; + this.Summarize = summarize; + this.IncrementalResults = incrementalResults; + } + + /// + /// The search terms used to perform the search. + /// + /// The search terms used to perform the search. + [DataMember(Name="searchTerms", EmitDefaultValue=false)] + public Dictionary SearchTerms { get; set; } + + /// + /// The id of the node in the cluster where this provenance originated. + /// + /// The id of the node in the cluster where this provenance originated. + [DataMember(Name="clusterNodeId", EmitDefaultValue=false)] + public string ClusterNodeId { get; set; } + + /// + /// The earliest event time to include in the query. + /// + /// The earliest event time to include in the query. + [DataMember(Name="startDate", EmitDefaultValue=false)] + public string StartDate { get; set; } + + /// + /// The latest event time to include in the query. + /// + /// The latest event time to include in the query. + [DataMember(Name="endDate", EmitDefaultValue=false)] + public string EndDate { get; set; } + + /// + /// The minimum file size to include in the query. + /// + /// The minimum file size to include in the query. + [DataMember(Name="minimumFileSize", EmitDefaultValue=false)] + public string MinimumFileSize { get; set; } + + /// + /// The maximum file size to include in the query. + /// + /// The maximum file size to include in the query. + [DataMember(Name="maximumFileSize", EmitDefaultValue=false)] + public string MaximumFileSize { get; set; } + + /// + /// The maximum number of results to include. + /// + /// The maximum number of results to include. + [DataMember(Name="maxResults", EmitDefaultValue=false)] + public int? MaxResults { get; set; } + + /// + /// Whether or not to summarize provenance events returned. This property is false by default. + /// + /// Whether or not to summarize provenance events returned. This property is false by default. + [DataMember(Name="summarize", EmitDefaultValue=false)] + public bool? Summarize { get; set; } + + /// + /// Whether or not incremental results are returned. If false, provenance events are only returned once the query completes. This property is true by default. + /// + /// Whether or not incremental results are returned. If false, provenance events are only returned once the query completes. This property is true by default. + [DataMember(Name="incrementalResults", EmitDefaultValue=false)] + public bool? IncrementalResults { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class ProvenanceRequestDTO {\n"); + sb.Append(" SearchTerms: ").Append(this.SearchTerms).Append("\n"); + sb.Append(" ClusterNodeId: ").Append(this.ClusterNodeId).Append("\n"); + sb.Append(" StartDate: ").Append(this.StartDate).Append("\n"); + sb.Append(" EndDate: ").Append(this.EndDate).Append("\n"); + sb.Append(" MinimumFileSize: ").Append(this.MinimumFileSize).Append("\n"); + sb.Append(" MaximumFileSize: ").Append(this.MaximumFileSize).Append("\n"); + sb.Append(" MaxResults: ").Append(this.MaxResults).Append("\n"); + sb.Append(" Summarize: ").Append(this.Summarize).Append("\n"); + sb.Append(" IncrementalResults: ").Append(this.IncrementalResults).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as ProvenanceRequestDTO); + } + + /// + /// Returns true if ProvenanceRequestDTO instances are equal + /// + /// Instance of ProvenanceRequestDTO to be compared + /// Boolean + public bool Equals(ProvenanceRequestDTO input) + { + if (input == null) + return false; + + return + ( + this.SearchTerms == input.SearchTerms || + this.SearchTerms != null && + this.SearchTerms.SequenceEqual(input.SearchTerms) + ) && + ( + this.ClusterNodeId == input.ClusterNodeId || + (this.ClusterNodeId != null && + this.ClusterNodeId.Equals(input.ClusterNodeId)) + ) && + ( + this.StartDate == input.StartDate || + (this.StartDate != null && + this.StartDate.Equals(input.StartDate)) + ) && + ( + this.EndDate == input.EndDate || + (this.EndDate != null && + this.EndDate.Equals(input.EndDate)) + ) && + ( + this.MinimumFileSize == input.MinimumFileSize || + (this.MinimumFileSize != null && + this.MinimumFileSize.Equals(input.MinimumFileSize)) + ) && + ( + this.MaximumFileSize == input.MaximumFileSize || + (this.MaximumFileSize != null && + this.MaximumFileSize.Equals(input.MaximumFileSize)) + ) && + ( + this.MaxResults == input.MaxResults || + (this.MaxResults != null && + this.MaxResults.Equals(input.MaxResults)) + ) && + ( + this.Summarize == input.Summarize || + (this.Summarize != null && + this.Summarize.Equals(input.Summarize)) + ) && + ( + this.IncrementalResults == input.IncrementalResults || + (this.IncrementalResults != null && + this.IncrementalResults.Equals(input.IncrementalResults)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.SearchTerms != null) + hashCode = hashCode * 59 + this.SearchTerms.GetHashCode(); + if (this.ClusterNodeId != null) + hashCode = hashCode * 59 + this.ClusterNodeId.GetHashCode(); + if (this.StartDate != null) + hashCode = hashCode * 59 + this.StartDate.GetHashCode(); + if (this.EndDate != null) + hashCode = hashCode * 59 + this.EndDate.GetHashCode(); + if (this.MinimumFileSize != null) + hashCode = hashCode * 59 + this.MinimumFileSize.GetHashCode(); + if (this.MaximumFileSize != null) + hashCode = hashCode * 59 + this.MaximumFileSize.GetHashCode(); + if (this.MaxResults != null) + hashCode = hashCode * 59 + this.MaxResults.GetHashCode(); + if (this.Summarize != null) + hashCode = hashCode * 59 + this.Summarize.GetHashCode(); + if (this.IncrementalResults != null) + hashCode = hashCode * 59 + this.IncrementalResults.GetHashCode(); + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/NiFi.Swagger/Model/ProvenanceResultsDTO.cs b/NiFi.Swagger/Model/ProvenanceResultsDTO.cs new file mode 100644 index 0000000..ebdd453 --- /dev/null +++ b/NiFi.Swagger/Model/ProvenanceResultsDTO.cs @@ -0,0 +1,222 @@ +/* + * NiFi Rest Api + * + * The Rest Api provides programmatic access to command and control a NiFi instance in real time. Start and stop processors, monitor queues, query provenance data, and more. Each endpoint below includes a description, definitions of the expected input and output, potential response codes, and the authorizations required to invoke each service. + * + * OpenAPI spec version: 1.9.1 + * Contact: dev@nifi.apache.org + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +namespace NiFi.Swagger.Model +{ + using System; + using System.Collections.Generic; + using System.ComponentModel.DataAnnotations; + using System.Linq; + using System.Runtime.Serialization; + using System.Text; + + using Newtonsoft.Json; + + /// + /// ProvenanceResultsDTO + /// + [DataContract] + public partial class ProvenanceResultsDTO : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// The provenance events that matched the search criteria.. + /// The total number of results formatted.. + /// The total number of results.. + /// Then the search was performed.. + /// The oldest event available in the provenance repository.. + /// The time offset of the server that's used for event time.. + /// Any errors that occurred while performing the provenance request.. + public ProvenanceResultsDTO(List provenanceEvents = default(List), string total = default(string), long? totalCount = default(long?), string generated = default(string), string oldestEvent = default(string), int? timeOffset = default(int?), List errors = default(List)) + { + this.ProvenanceEvents = provenanceEvents; + this.Total = total; + this.TotalCount = totalCount; + this.Generated = generated; + this.OldestEvent = oldestEvent; + this.TimeOffset = timeOffset; + this.Errors = errors; + } + + /// + /// The provenance events that matched the search criteria. + /// + /// The provenance events that matched the search criteria. + [DataMember(Name="provenanceEvents", EmitDefaultValue=false)] + public List ProvenanceEvents { get; set; } + + /// + /// The total number of results formatted. + /// + /// The total number of results formatted. + [DataMember(Name="total", EmitDefaultValue=false)] + public string Total { get; set; } + + /// + /// The total number of results. + /// + /// The total number of results. + [DataMember(Name="totalCount", EmitDefaultValue=false)] + public long? TotalCount { get; set; } + + /// + /// Then the search was performed. + /// + /// Then the search was performed. + [DataMember(Name="generated", EmitDefaultValue=false)] + public string Generated { get; set; } + + /// + /// The oldest event available in the provenance repository. + /// + /// The oldest event available in the provenance repository. + [DataMember(Name="oldestEvent", EmitDefaultValue=false)] + public string OldestEvent { get; set; } + + /// + /// The time offset of the server that's used for event time. + /// + /// The time offset of the server that's used for event time. + [DataMember(Name="timeOffset", EmitDefaultValue=false)] + public int? TimeOffset { get; set; } + + /// + /// Any errors that occurred while performing the provenance request. + /// + /// Any errors that occurred while performing the provenance request. + [DataMember(Name="errors", EmitDefaultValue=false)] + public List Errors { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class ProvenanceResultsDTO {\n"); + sb.Append(" ProvenanceEvents: ").Append(this.ProvenanceEvents).Append("\n"); + sb.Append(" Total: ").Append(this.Total).Append("\n"); + sb.Append(" TotalCount: ").Append(this.TotalCount).Append("\n"); + sb.Append(" Generated: ").Append(this.Generated).Append("\n"); + sb.Append(" OldestEvent: ").Append(this.OldestEvent).Append("\n"); + sb.Append(" TimeOffset: ").Append(this.TimeOffset).Append("\n"); + sb.Append(" Errors: ").Append(this.Errors).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as ProvenanceResultsDTO); + } + + /// + /// Returns true if ProvenanceResultsDTO instances are equal + /// + /// Instance of ProvenanceResultsDTO to be compared + /// Boolean + public bool Equals(ProvenanceResultsDTO input) + { + if (input == null) + return false; + + return + ( + this.ProvenanceEvents == input.ProvenanceEvents || + this.ProvenanceEvents != null && + this.ProvenanceEvents.SequenceEqual(input.ProvenanceEvents) + ) && + ( + this.Total == input.Total || + (this.Total != null && + this.Total.Equals(input.Total)) + ) && + ( + this.TotalCount == input.TotalCount || + (this.TotalCount != null && + this.TotalCount.Equals(input.TotalCount)) + ) && + ( + this.Generated == input.Generated || + (this.Generated != null && + this.Generated.Equals(input.Generated)) + ) && + ( + this.OldestEvent == input.OldestEvent || + (this.OldestEvent != null && + this.OldestEvent.Equals(input.OldestEvent)) + ) && + ( + this.TimeOffset == input.TimeOffset || + (this.TimeOffset != null && + this.TimeOffset.Equals(input.TimeOffset)) + ) && + ( + this.Errors == input.Errors || + this.Errors != null && + this.Errors.SequenceEqual(input.Errors) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.ProvenanceEvents != null) + hashCode = hashCode * 59 + this.ProvenanceEvents.GetHashCode(); + if (this.Total != null) + hashCode = hashCode * 59 + this.Total.GetHashCode(); + if (this.TotalCount != null) + hashCode = hashCode * 59 + this.TotalCount.GetHashCode(); + if (this.Generated != null) + hashCode = hashCode * 59 + this.Generated.GetHashCode(); + if (this.OldestEvent != null) + hashCode = hashCode * 59 + this.OldestEvent.GetHashCode(); + if (this.TimeOffset != null) + hashCode = hashCode * 59 + this.TimeOffset.GetHashCode(); + if (this.Errors != null) + hashCode = hashCode * 59 + this.Errors.GetHashCode(); + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/NiFi.Swagger/Model/ProvenanceSearchableFieldDTO.cs b/NiFi.Swagger/Model/ProvenanceSearchableFieldDTO.cs new file mode 100644 index 0000000..faed929 --- /dev/null +++ b/NiFi.Swagger/Model/ProvenanceSearchableFieldDTO.cs @@ -0,0 +1,170 @@ +/* + * NiFi Rest Api + * + * The Rest Api provides programmatic access to command and control a NiFi instance in real time. Start and stop processors, monitor queues, query provenance data, and more. Each endpoint below includes a description, definitions of the expected input and output, potential response codes, and the authorizations required to invoke each service. + * + * OpenAPI spec version: 1.9.1 + * Contact: dev@nifi.apache.org + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +namespace NiFi.Swagger.Model +{ + using System; + using System.Collections.Generic; + using System.ComponentModel.DataAnnotations; + using System.Runtime.Serialization; + using System.Text; + + using Newtonsoft.Json; + + /// + /// ProvenanceSearchableFieldDTO + /// + [DataContract] + public partial class ProvenanceSearchableFieldDTO : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// The id of the searchable field.. + /// The searchable field.. + /// The label for the searchable field.. + /// The type of the searchable field.. + public ProvenanceSearchableFieldDTO(string id = default(string), string field = default(string), string label = default(string), string type = default(string)) + { + this.Id = id; + this.Field = field; + this.Label = label; + this.Type = type; + } + + /// + /// The id of the searchable field. + /// + /// The id of the searchable field. + [DataMember(Name="id", EmitDefaultValue=false)] + public string Id { get; set; } + + /// + /// The searchable field. + /// + /// The searchable field. + [DataMember(Name="field", EmitDefaultValue=false)] + public string Field { get; set; } + + /// + /// The label for the searchable field. + /// + /// The label for the searchable field. + [DataMember(Name="label", EmitDefaultValue=false)] + public string Label { get; set; } + + /// + /// The type of the searchable field. + /// + /// The type of the searchable field. + [DataMember(Name="type", EmitDefaultValue=false)] + public string Type { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class ProvenanceSearchableFieldDTO {\n"); + sb.Append(" Id: ").Append(this.Id).Append("\n"); + sb.Append(" Field: ").Append(this.Field).Append("\n"); + sb.Append(" Label: ").Append(this.Label).Append("\n"); + sb.Append(" Type: ").Append(this.Type).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as ProvenanceSearchableFieldDTO); + } + + /// + /// Returns true if ProvenanceSearchableFieldDTO instances are equal + /// + /// Instance of ProvenanceSearchableFieldDTO to be compared + /// Boolean + public bool Equals(ProvenanceSearchableFieldDTO input) + { + if (input == null) + return false; + + return + ( + this.Id == input.Id || + (this.Id != null && + this.Id.Equals(input.Id)) + ) && + ( + this.Field == input.Field || + (this.Field != null && + this.Field.Equals(input.Field)) + ) && + ( + this.Label == input.Label || + (this.Label != null && + this.Label.Equals(input.Label)) + ) && + ( + this.Type == input.Type || + (this.Type != null && + this.Type.Equals(input.Type)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Id != null) + hashCode = hashCode * 59 + this.Id.GetHashCode(); + if (this.Field != null) + hashCode = hashCode * 59 + this.Field.GetHashCode(); + if (this.Label != null) + hashCode = hashCode * 59 + this.Label.GetHashCode(); + if (this.Type != null) + hashCode = hashCode * 59 + this.Type.GetHashCode(); + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/NiFi.Swagger/Model/QueueSizeDTO.cs b/NiFi.Swagger/Model/QueueSizeDTO.cs new file mode 100644 index 0000000..af4e720 --- /dev/null +++ b/NiFi.Swagger/Model/QueueSizeDTO.cs @@ -0,0 +1,136 @@ +/* + * NiFi Rest Api + * + * The Rest Api provides programmatic access to command and control a NiFi instance in real time. Start and stop processors, monitor queues, query provenance data, and more. Each endpoint below includes a description, definitions of the expected input and output, potential response codes, and the authorizations required to invoke each service. + * + * OpenAPI spec version: 1.9.1 + * Contact: dev@nifi.apache.org + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +namespace NiFi.Swagger.Model +{ + using System; + using System.Collections.Generic; + using System.ComponentModel.DataAnnotations; + using System.Runtime.Serialization; + using System.Text; + + using Newtonsoft.Json; + + /// + /// QueueSizeDTO + /// + [DataContract] + public partial class QueueSizeDTO : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// The size of objects in a queue.. + /// The count of objects in a queue.. + public QueueSizeDTO(long? byteCount = default(long?), int? objectCount = default(int?)) + { + this.ByteCount = byteCount; + this.ObjectCount = objectCount; + } + + /// + /// The size of objects in a queue. + /// + /// The size of objects in a queue. + [DataMember(Name="byteCount", EmitDefaultValue=false)] + public long? ByteCount { get; set; } + + /// + /// The count of objects in a queue. + /// + /// The count of objects in a queue. + [DataMember(Name="objectCount", EmitDefaultValue=false)] + public int? ObjectCount { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class QueueSizeDTO {\n"); + sb.Append(" ByteCount: ").Append(this.ByteCount).Append("\n"); + sb.Append(" ObjectCount: ").Append(this.ObjectCount).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as QueueSizeDTO); + } + + /// + /// Returns true if QueueSizeDTO instances are equal + /// + /// Instance of QueueSizeDTO to be compared + /// Boolean + public bool Equals(QueueSizeDTO input) + { + if (input == null) + return false; + + return + ( + this.ByteCount == input.ByteCount || + (this.ByteCount != null && + this.ByteCount.Equals(input.ByteCount)) + ) && + ( + this.ObjectCount == input.ObjectCount || + (this.ObjectCount != null && + this.ObjectCount.Equals(input.ObjectCount)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.ByteCount != null) + hashCode = hashCode * 59 + this.ByteCount.GetHashCode(); + if (this.ObjectCount != null) + hashCode = hashCode * 59 + this.ObjectCount.GetHashCode(); + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/NiFi.Swagger/Model/RegistryClientEntity.cs b/NiFi.Swagger/Model/RegistryClientEntity.cs new file mode 100644 index 0000000..3fcdd6a --- /dev/null +++ b/NiFi.Swagger/Model/RegistryClientEntity.cs @@ -0,0 +1,238 @@ +/* + * NiFi Rest Api + * + * The Rest Api provides programmatic access to command and control a NiFi instance in real time. Start and stop processors, monitor queues, query provenance data, and more. Each endpoint below includes a description, definitions of the expected input and output, potential response codes, and the authorizations required to invoke each service. + * + * OpenAPI spec version: 1.9.1 + * Contact: dev@nifi.apache.org + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +namespace NiFi.Swagger.Model +{ + using System; + using System.Collections.Generic; + using System.ComponentModel.DataAnnotations; + using System.Linq; + using System.Runtime.Serialization; + using System.Text; + + using Newtonsoft.Json; + + /// + /// RegistryClientEntity + /// + [DataContract] + public partial class RegistryClientEntity : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// The revision for this request/response. The revision is required for any mutable flow requests and is included in all responses.. + /// The id of the component.. + /// The URI for futures requests to the component.. + /// The position of this component in the UI if applicable.. + /// The permissions for this component.. + /// The bulletins for this component.. + /// Acknowledges that this node is disconnected to allow for mutable requests to proceed.. + /// component. + public RegistryClientEntity(RevisionDTO revision = default(RevisionDTO), string id = default(string), string uri = default(string), PositionDTO position = default(PositionDTO), PermissionsDTO permissions = default(PermissionsDTO), List bulletins = default(List), bool? disconnectedNodeAcknowledged = default(bool?), RegistryDTO component = default(RegistryDTO)) + { + this.Revision = revision; + this.Id = id; + this.Uri = uri; + this.Position = position; + this.Permissions = permissions; + this.Bulletins = bulletins; + this.DisconnectedNodeAcknowledged = disconnectedNodeAcknowledged; + this.Component = component; + } + + /// + /// The revision for this request/response. The revision is required for any mutable flow requests and is included in all responses. + /// + /// The revision for this request/response. The revision is required for any mutable flow requests and is included in all responses. + [DataMember(Name="revision", EmitDefaultValue=false)] + public RevisionDTO Revision { get; set; } + + /// + /// The id of the component. + /// + /// The id of the component. + [DataMember(Name="id", EmitDefaultValue=false)] + public string Id { get; set; } + + /// + /// The URI for futures requests to the component. + /// + /// The URI for futures requests to the component. + [DataMember(Name="uri", EmitDefaultValue=false)] + public string Uri { get; set; } + + /// + /// The position of this component in the UI if applicable. + /// + /// The position of this component in the UI if applicable. + [DataMember(Name="position", EmitDefaultValue=false)] + public PositionDTO Position { get; set; } + + /// + /// The permissions for this component. + /// + /// The permissions for this component. + [DataMember(Name="permissions", EmitDefaultValue=false)] + public PermissionsDTO Permissions { get; set; } + + /// + /// The bulletins for this component. + /// + /// The bulletins for this component. + [DataMember(Name="bulletins", EmitDefaultValue=false)] + public List Bulletins { get; set; } + + /// + /// Acknowledges that this node is disconnected to allow for mutable requests to proceed. + /// + /// Acknowledges that this node is disconnected to allow for mutable requests to proceed. + [DataMember(Name="disconnectedNodeAcknowledged", EmitDefaultValue=false)] + public bool? DisconnectedNodeAcknowledged { get; set; } + + /// + /// Gets or Sets Component + /// + [DataMember(Name="component", EmitDefaultValue=false)] + public RegistryDTO Component { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class RegistryClientEntity {\n"); + sb.Append(" Revision: ").Append(this.Revision).Append("\n"); + sb.Append(" Id: ").Append(this.Id).Append("\n"); + sb.Append(" Uri: ").Append(this.Uri).Append("\n"); + sb.Append(" Position: ").Append(this.Position).Append("\n"); + sb.Append(" Permissions: ").Append(this.Permissions).Append("\n"); + sb.Append(" Bulletins: ").Append(this.Bulletins).Append("\n"); + sb.Append(" DisconnectedNodeAcknowledged: ").Append(this.DisconnectedNodeAcknowledged).Append("\n"); + sb.Append(" Component: ").Append(this.Component).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as RegistryClientEntity); + } + + /// + /// Returns true if RegistryClientEntity instances are equal + /// + /// Instance of RegistryClientEntity to be compared + /// Boolean + public bool Equals(RegistryClientEntity input) + { + if (input == null) + return false; + + return + ( + this.Revision == input.Revision || + (this.Revision != null && + this.Revision.Equals(input.Revision)) + ) && + ( + this.Id == input.Id || + (this.Id != null && + this.Id.Equals(input.Id)) + ) && + ( + this.Uri == input.Uri || + (this.Uri != null && + this.Uri.Equals(input.Uri)) + ) && + ( + this.Position == input.Position || + (this.Position != null && + this.Position.Equals(input.Position)) + ) && + ( + this.Permissions == input.Permissions || + (this.Permissions != null && + this.Permissions.Equals(input.Permissions)) + ) && + ( + this.Bulletins == input.Bulletins || + this.Bulletins != null && + this.Bulletins.SequenceEqual(input.Bulletins) + ) && + ( + this.DisconnectedNodeAcknowledged == input.DisconnectedNodeAcknowledged || + (this.DisconnectedNodeAcknowledged != null && + this.DisconnectedNodeAcknowledged.Equals(input.DisconnectedNodeAcknowledged)) + ) && + ( + this.Component == input.Component || + (this.Component != null && + this.Component.Equals(input.Component)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Revision != null) + hashCode = hashCode * 59 + this.Revision.GetHashCode(); + if (this.Id != null) + hashCode = hashCode * 59 + this.Id.GetHashCode(); + if (this.Uri != null) + hashCode = hashCode * 59 + this.Uri.GetHashCode(); + if (this.Position != null) + hashCode = hashCode * 59 + this.Position.GetHashCode(); + if (this.Permissions != null) + hashCode = hashCode * 59 + this.Permissions.GetHashCode(); + if (this.Bulletins != null) + hashCode = hashCode * 59 + this.Bulletins.GetHashCode(); + if (this.DisconnectedNodeAcknowledged != null) + hashCode = hashCode * 59 + this.DisconnectedNodeAcknowledged.GetHashCode(); + if (this.Component != null) + hashCode = hashCode * 59 + this.Component.GetHashCode(); + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/NiFi.Swagger/Model/RegistryClientsEntity.cs b/NiFi.Swagger/Model/RegistryClientsEntity.cs new file mode 100644 index 0000000..341c89b --- /dev/null +++ b/NiFi.Swagger/Model/RegistryClientsEntity.cs @@ -0,0 +1,119 @@ +/* + * NiFi Rest Api + * + * The Rest Api provides programmatic access to command and control a NiFi instance in real time. Start and stop processors, monitor queues, query provenance data, and more. Each endpoint below includes a description, definitions of the expected input and output, potential response codes, and the authorizations required to invoke each service. + * + * OpenAPI spec version: 1.9.1 + * Contact: dev@nifi.apache.org + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +namespace NiFi.Swagger.Model +{ + using System; + using System.Collections.Generic; + using System.ComponentModel.DataAnnotations; + using System.Linq; + using System.Runtime.Serialization; + using System.Text; + + using Newtonsoft.Json; + + /// + /// RegistryClientsEntity + /// + [DataContract] + public partial class RegistryClientsEntity : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// registries. + public RegistryClientsEntity(List registries = default(List)) + { + this.Registries = registries; + } + + /// + /// Gets or Sets Registries + /// + [DataMember(Name="registries", EmitDefaultValue=false)] + public List Registries { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class RegistryClientsEntity {\n"); + sb.Append(" Registries: ").Append(this.Registries).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as RegistryClientsEntity); + } + + /// + /// Returns true if RegistryClientsEntity instances are equal + /// + /// Instance of RegistryClientsEntity to be compared + /// Boolean + public bool Equals(RegistryClientsEntity input) + { + if (input == null) + return false; + + return + ( + this.Registries == input.Registries || + this.Registries != null && + this.Registries.SequenceEqual(input.Registries) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Registries != null) + hashCode = hashCode * 59 + this.Registries.GetHashCode(); + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/NiFi.Swagger/Model/RegistryDTO.cs b/NiFi.Swagger/Model/RegistryDTO.cs new file mode 100644 index 0000000..752b32f --- /dev/null +++ b/NiFi.Swagger/Model/RegistryDTO.cs @@ -0,0 +1,170 @@ +/* + * NiFi Rest Api + * + * The Rest Api provides programmatic access to command and control a NiFi instance in real time. Start and stop processors, monitor queues, query provenance data, and more. Each endpoint below includes a description, definitions of the expected input and output, potential response codes, and the authorizations required to invoke each service. + * + * OpenAPI spec version: 1.9.1 + * Contact: dev@nifi.apache.org + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +namespace NiFi.Swagger.Model +{ + using System; + using System.Collections.Generic; + using System.ComponentModel.DataAnnotations; + using System.Runtime.Serialization; + using System.Text; + + using Newtonsoft.Json; + + /// + /// RegistryDTO + /// + [DataContract] + public partial class RegistryDTO : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// The registry identifier. + /// The registry name. + /// The registry description. + /// The registry URI. + public RegistryDTO(string id = default(string), string name = default(string), string description = default(string), string uri = default(string)) + { + this.Id = id; + this.Name = name; + this.Description = description; + this.Uri = uri; + } + + /// + /// The registry identifier + /// + /// The registry identifier + [DataMember(Name="id", EmitDefaultValue=false)] + public string Id { get; set; } + + /// + /// The registry name + /// + /// The registry name + [DataMember(Name="name", EmitDefaultValue=false)] + public string Name { get; set; } + + /// + /// The registry description + /// + /// The registry description + [DataMember(Name="description", EmitDefaultValue=false)] + public string Description { get; set; } + + /// + /// The registry URI + /// + /// The registry URI + [DataMember(Name="uri", EmitDefaultValue=false)] + public string Uri { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class RegistryDTO {\n"); + sb.Append(" Id: ").Append(this.Id).Append("\n"); + sb.Append(" Name: ").Append(this.Name).Append("\n"); + sb.Append(" Description: ").Append(this.Description).Append("\n"); + sb.Append(" Uri: ").Append(this.Uri).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as RegistryDTO); + } + + /// + /// Returns true if RegistryDTO instances are equal + /// + /// Instance of RegistryDTO to be compared + /// Boolean + public bool Equals(RegistryDTO input) + { + if (input == null) + return false; + + return + ( + this.Id == input.Id || + (this.Id != null && + this.Id.Equals(input.Id)) + ) && + ( + this.Name == input.Name || + (this.Name != null && + this.Name.Equals(input.Name)) + ) && + ( + this.Description == input.Description || + (this.Description != null && + this.Description.Equals(input.Description)) + ) && + ( + this.Uri == input.Uri || + (this.Uri != null && + this.Uri.Equals(input.Uri)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Id != null) + hashCode = hashCode * 59 + this.Id.GetHashCode(); + if (this.Name != null) + hashCode = hashCode * 59 + this.Name.GetHashCode(); + if (this.Description != null) + hashCode = hashCode * 59 + this.Description.GetHashCode(); + if (this.Uri != null) + hashCode = hashCode * 59 + this.Uri.GetHashCode(); + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/NiFi.Swagger/Model/RelationshipDTO.cs b/NiFi.Swagger/Model/RelationshipDTO.cs new file mode 100644 index 0000000..08360b5 --- /dev/null +++ b/NiFi.Swagger/Model/RelationshipDTO.cs @@ -0,0 +1,153 @@ +/* + * NiFi Rest Api + * + * The Rest Api provides programmatic access to command and control a NiFi instance in real time. Start and stop processors, monitor queues, query provenance data, and more. Each endpoint below includes a description, definitions of the expected input and output, potential response codes, and the authorizations required to invoke each service. + * + * OpenAPI spec version: 1.9.1 + * Contact: dev@nifi.apache.org + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +namespace NiFi.Swagger.Model +{ + using System; + using System.Collections.Generic; + using System.ComponentModel.DataAnnotations; + using System.Runtime.Serialization; + using System.Text; + + using Newtonsoft.Json; + + /// + /// RelationshipDTO + /// + [DataContract] + public partial class RelationshipDTO : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// The relationship name.. + /// The relationship description.. + /// Whether or not flowfiles sent to this relationship should auto terminate.. + public RelationshipDTO(string name = default(string), string description = default(string), bool? autoTerminate = default(bool?)) + { + this.Name = name; + this.Description = description; + this.AutoTerminate = autoTerminate; + } + + /// + /// The relationship name. + /// + /// The relationship name. + [DataMember(Name="name", EmitDefaultValue=false)] + public string Name { get; set; } + + /// + /// The relationship description. + /// + /// The relationship description. + [DataMember(Name="description", EmitDefaultValue=false)] + public string Description { get; set; } + + /// + /// Whether or not flowfiles sent to this relationship should auto terminate. + /// + /// Whether or not flowfiles sent to this relationship should auto terminate. + [DataMember(Name="autoTerminate", EmitDefaultValue=false)] + public bool? AutoTerminate { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class RelationshipDTO {\n"); + sb.Append(" Name: ").Append(this.Name).Append("\n"); + sb.Append(" Description: ").Append(this.Description).Append("\n"); + sb.Append(" AutoTerminate: ").Append(this.AutoTerminate).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as RelationshipDTO); + } + + /// + /// Returns true if RelationshipDTO instances are equal + /// + /// Instance of RelationshipDTO to be compared + /// Boolean + public bool Equals(RelationshipDTO input) + { + if (input == null) + return false; + + return + ( + this.Name == input.Name || + (this.Name != null && + this.Name.Equals(input.Name)) + ) && + ( + this.Description == input.Description || + (this.Description != null && + this.Description.Equals(input.Description)) + ) && + ( + this.AutoTerminate == input.AutoTerminate || + (this.AutoTerminate != null && + this.AutoTerminate.Equals(input.AutoTerminate)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Name != null) + hashCode = hashCode * 59 + this.Name.GetHashCode(); + if (this.Description != null) + hashCode = hashCode * 59 + this.Description.GetHashCode(); + if (this.AutoTerminate != null) + hashCode = hashCode * 59 + this.AutoTerminate.GetHashCode(); + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/NiFi.Swagger/Model/RemotePortRunStatusEntity.cs b/NiFi.Swagger/Model/RemotePortRunStatusEntity.cs new file mode 100644 index 0000000..7dcf992 --- /dev/null +++ b/NiFi.Swagger/Model/RemotePortRunStatusEntity.cs @@ -0,0 +1,175 @@ +/* + * NiFi Rest Api + * + * The Rest Api provides programmatic access to command and control a NiFi instance in real time. Start and stop processors, monitor queues, query provenance data, and more. Each endpoint below includes a description, definitions of the expected input and output, potential response codes, and the authorizations required to invoke each service. + * + * OpenAPI spec version: 1.9.1 + * Contact: dev@nifi.apache.org + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +namespace NiFi.Swagger.Model +{ + using System; + using System.Collections.Generic; + using System.ComponentModel.DataAnnotations; + using System.Runtime.Serialization; + using System.Text; + + using Newtonsoft.Json; + using Newtonsoft.Json.Converters; + + /// + /// RemotePortRunStatusEntity + /// + [DataContract] + public partial class RemotePortRunStatusEntity : IEquatable, IValidatableObject + { + /// + /// The run status of the RemotePort. + /// + /// The run status of the RemotePort. + [JsonConverter(typeof(StringEnumConverter))] + public enum StateEnum + { + + /// + /// Enum TRANSMITTING for value: TRANSMITTING + /// + [EnumMember(Value = "TRANSMITTING")] + TRANSMITTING = 1, + + /// + /// Enum STOPPED for value: STOPPED + /// + [EnumMember(Value = "STOPPED")] + STOPPED = 2 + } + + /// + /// The run status of the RemotePort. + /// + /// The run status of the RemotePort. + [DataMember(Name="state", EmitDefaultValue=false)] + public StateEnum? State { get; set; } + /// + /// Initializes a new instance of the class. + /// + /// The revision for this request/response. The revision is required for any mutable flow requests and is included in all responses.. + /// The run status of the RemotePort.. + /// Acknowledges that this node is disconnected to allow for mutable requests to proceed.. + public RemotePortRunStatusEntity(RevisionDTO revision = default(RevisionDTO), StateEnum? state = default(StateEnum?), bool? disconnectedNodeAcknowledged = default(bool?)) + { + this.Revision = revision; + this.State = state; + this.DisconnectedNodeAcknowledged = disconnectedNodeAcknowledged; + } + + /// + /// The revision for this request/response. The revision is required for any mutable flow requests and is included in all responses. + /// + /// The revision for this request/response. The revision is required for any mutable flow requests and is included in all responses. + [DataMember(Name="revision", EmitDefaultValue=false)] + public RevisionDTO Revision { get; set; } + + + /// + /// Acknowledges that this node is disconnected to allow for mutable requests to proceed. + /// + /// Acknowledges that this node is disconnected to allow for mutable requests to proceed. + [DataMember(Name="disconnectedNodeAcknowledged", EmitDefaultValue=false)] + public bool? DisconnectedNodeAcknowledged { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class RemotePortRunStatusEntity {\n"); + sb.Append(" Revision: ").Append(this.Revision).Append("\n"); + sb.Append(" State: ").Append(this.State).Append("\n"); + sb.Append(" DisconnectedNodeAcknowledged: ").Append(this.DisconnectedNodeAcknowledged).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as RemotePortRunStatusEntity); + } + + /// + /// Returns true if RemotePortRunStatusEntity instances are equal + /// + /// Instance of RemotePortRunStatusEntity to be compared + /// Boolean + public bool Equals(RemotePortRunStatusEntity input) + { + if (input == null) + return false; + + return + ( + this.Revision == input.Revision || + (this.Revision != null && + this.Revision.Equals(input.Revision)) + ) && + ( + this.State == input.State || + (this.State != null && + this.State.Equals(input.State)) + ) && + ( + this.DisconnectedNodeAcknowledged == input.DisconnectedNodeAcknowledged || + (this.DisconnectedNodeAcknowledged != null && + this.DisconnectedNodeAcknowledged.Equals(input.DisconnectedNodeAcknowledged)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Revision != null) + hashCode = hashCode * 59 + this.Revision.GetHashCode(); + if (this.State != null) + hashCode = hashCode * 59 + this.State.GetHashCode(); + if (this.DisconnectedNodeAcknowledged != null) + hashCode = hashCode * 59 + this.DisconnectedNodeAcknowledged.GetHashCode(); + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/NiFi.Swagger/Model/RemoteProcessGroupContentsDTO.cs b/NiFi.Swagger/Model/RemoteProcessGroupContentsDTO.cs new file mode 100644 index 0000000..0613ad9 --- /dev/null +++ b/NiFi.Swagger/Model/RemoteProcessGroupContentsDTO.cs @@ -0,0 +1,137 @@ +/* + * NiFi Rest Api + * + * The Rest Api provides programmatic access to command and control a NiFi instance in real time. Start and stop processors, monitor queues, query provenance data, and more. Each endpoint below includes a description, definitions of the expected input and output, potential response codes, and the authorizations required to invoke each service. + * + * OpenAPI spec version: 1.9.1 + * Contact: dev@nifi.apache.org + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +namespace NiFi.Swagger.Model +{ + using System; + using System.Collections.Generic; + using System.ComponentModel.DataAnnotations; + using System.Linq; + using System.Runtime.Serialization; + using System.Text; + + using Newtonsoft.Json; + + /// + /// RemoteProcessGroupContentsDTO + /// + [DataContract] + public partial class RemoteProcessGroupContentsDTO : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// The input ports to which data can be sent.. + /// The output ports from which data can be retrieved.. + public RemoteProcessGroupContentsDTO(List inputPorts = default(List), List outputPorts = default(List)) + { + this.InputPorts = inputPorts; + this.OutputPorts = outputPorts; + } + + /// + /// The input ports to which data can be sent. + /// + /// The input ports to which data can be sent. + [DataMember(Name="inputPorts", EmitDefaultValue=false)] + public List InputPorts { get; set; } + + /// + /// The output ports from which data can be retrieved. + /// + /// The output ports from which data can be retrieved. + [DataMember(Name="outputPorts", EmitDefaultValue=false)] + public List OutputPorts { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class RemoteProcessGroupContentsDTO {\n"); + sb.Append(" InputPorts: ").Append(this.InputPorts).Append("\n"); + sb.Append(" OutputPorts: ").Append(this.OutputPorts).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as RemoteProcessGroupContentsDTO); + } + + /// + /// Returns true if RemoteProcessGroupContentsDTO instances are equal + /// + /// Instance of RemoteProcessGroupContentsDTO to be compared + /// Boolean + public bool Equals(RemoteProcessGroupContentsDTO input) + { + if (input == null) + return false; + + return + ( + this.InputPorts == input.InputPorts || + this.InputPorts != null && + this.InputPorts.SequenceEqual(input.InputPorts) + ) && + ( + this.OutputPorts == input.OutputPorts || + this.OutputPorts != null && + this.OutputPorts.SequenceEqual(input.OutputPorts) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.InputPorts != null) + hashCode = hashCode * 59 + this.InputPorts.GetHashCode(); + if (this.OutputPorts != null) + hashCode = hashCode * 59 + this.OutputPorts.GetHashCode(); + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/NiFi.Swagger/Model/RemoteProcessGroupDTO.cs b/NiFi.Swagger/Model/RemoteProcessGroupDTO.cs new file mode 100644 index 0000000..f24d924 --- /dev/null +++ b/NiFi.Swagger/Model/RemoteProcessGroupDTO.cs @@ -0,0 +1,574 @@ +/* + * NiFi Rest Api + * + * The Rest Api provides programmatic access to command and control a NiFi instance in real time. Start and stop processors, monitor queues, query provenance data, and more. Each endpoint below includes a description, definitions of the expected input and output, potential response codes, and the authorizations required to invoke each service. + * + * OpenAPI spec version: 1.9.1 + * Contact: dev@nifi.apache.org + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +namespace NiFi.Swagger.Model +{ + using System; + using System.Collections.Generic; + using System.ComponentModel.DataAnnotations; + using System.Linq; + using System.Runtime.Serialization; + using System.Text; + + using Newtonsoft.Json; + + /// + /// RemoteProcessGroupDTO + /// + [DataContract] + public partial class RemoteProcessGroupDTO : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// The id of the component.. + /// The ID of the corresponding component that is under version control. + /// The id of parent process group of this component if applicable.. + /// The position of this component in the UI if applicable.. + /// The target URI of the remote process group. If target uri is not set, but uris are set, then returns the first url in the urls. If neither target uri nor uris are set, then returns null.. + /// The target URI of the remote process group. If target uris is not set but target uri is set, then returns a collection containing the single target uri. If neither target uris nor uris are set, then returns null.. + /// Whether the target is running securely.. + /// The name of the remote process group.. + /// The comments for the remote process group.. + /// The time period used for the timeout when communicating with the target.. + /// When yielding, this amount of time must elapse before the remote process group is scheduled again.. + /// transportProtocol. + /// The local network interface to send/receive data. If not specified, any local address is used. If clustered, all nodes must have an interface with this identifier.. + /// proxyHost. + /// proxyPort. + /// proxyUser. + /// proxyPassword. + /// Any remote authorization issues for the remote process group.. + /// The validation errors for the remote process group. These validation errors represent the problems with the remote process group that must be resolved before it can transmit.. + /// Whether the remote process group is actively transmitting.. + /// The number of remote input ports currently available on the target.. + /// The number of remote output ports currently available on the target.. + /// The number of active remote input ports.. + /// The number of inactive remote input ports.. + /// The number of active remote output ports.. + /// The number of inactive remote output ports.. + /// The timestamp when this remote process group was last refreshed.. + /// The contents of the remote process group. Will contain available input/output ports.. + public RemoteProcessGroupDTO(string id = default(string), string versionedComponentId = default(string), string parentGroupId = default(string), PositionDTO position = default(PositionDTO), string targetUri = default(string), string targetUris = default(string), bool? targetSecure = default(bool?), string name = default(string), string comments = default(string), string communicationsTimeout = default(string), string yieldDuration = default(string), string transportProtocol = default(string), string localNetworkInterface = default(string), string proxyHost = default(string), int? proxyPort = default(int?), string proxyUser = default(string), string proxyPassword = default(string), List authorizationIssues = default(List), List validationErrors = default(List), bool? transmitting = default(bool?), int? inputPortCount = default(int?), int? outputPortCount = default(int?), int? activeRemoteInputPortCount = default(int?), int? inactiveRemoteInputPortCount = default(int?), int? activeRemoteOutputPortCount = default(int?), int? inactiveRemoteOutputPortCount = default(int?), string flowRefreshed = default(string), RemoteProcessGroupContentsDTO contents = default(RemoteProcessGroupContentsDTO)) + { + this.Id = id; + this.VersionedComponentId = versionedComponentId; + this.ParentGroupId = parentGroupId; + this.Position = position; + this.TargetUri = targetUri; + this.TargetUris = targetUris; + this.TargetSecure = targetSecure; + this.Name = name; + this.Comments = comments; + this.CommunicationsTimeout = communicationsTimeout; + this.YieldDuration = yieldDuration; + this.TransportProtocol = transportProtocol; + this.LocalNetworkInterface = localNetworkInterface; + this.ProxyHost = proxyHost; + this.ProxyPort = proxyPort; + this.ProxyUser = proxyUser; + this.ProxyPassword = proxyPassword; + this.AuthorizationIssues = authorizationIssues; + this.ValidationErrors = validationErrors; + this.Transmitting = transmitting; + this.InputPortCount = inputPortCount; + this.OutputPortCount = outputPortCount; + this.ActiveRemoteInputPortCount = activeRemoteInputPortCount; + this.InactiveRemoteInputPortCount = inactiveRemoteInputPortCount; + this.ActiveRemoteOutputPortCount = activeRemoteOutputPortCount; + this.InactiveRemoteOutputPortCount = inactiveRemoteOutputPortCount; + this.FlowRefreshed = flowRefreshed; + this.Contents = contents; + } + + /// + /// The id of the component. + /// + /// The id of the component. + [DataMember(Name="id", EmitDefaultValue=false)] + public string Id { get; set; } + + /// + /// The ID of the corresponding component that is under version control + /// + /// The ID of the corresponding component that is under version control + [DataMember(Name="versionedComponentId", EmitDefaultValue=false)] + public string VersionedComponentId { get; set; } + + /// + /// The id of parent process group of this component if applicable. + /// + /// The id of parent process group of this component if applicable. + [DataMember(Name="parentGroupId", EmitDefaultValue=false)] + public string ParentGroupId { get; set; } + + /// + /// The position of this component in the UI if applicable. + /// + /// The position of this component in the UI if applicable. + [DataMember(Name="position", EmitDefaultValue=false)] + public PositionDTO Position { get; set; } + + /// + /// The target URI of the remote process group. If target uri is not set, but uris are set, then returns the first url in the urls. If neither target uri nor uris are set, then returns null. + /// + /// The target URI of the remote process group. If target uri is not set, but uris are set, then returns the first url in the urls. If neither target uri nor uris are set, then returns null. + [DataMember(Name="targetUri", EmitDefaultValue=false)] + public string TargetUri { get; set; } + + /// + /// The target URI of the remote process group. If target uris is not set but target uri is set, then returns a collection containing the single target uri. If neither target uris nor uris are set, then returns null. + /// + /// The target URI of the remote process group. If target uris is not set but target uri is set, then returns a collection containing the single target uri. If neither target uris nor uris are set, then returns null. + [DataMember(Name="targetUris", EmitDefaultValue=false)] + public string TargetUris { get; set; } + + /// + /// Whether the target is running securely. + /// + /// Whether the target is running securely. + [DataMember(Name="targetSecure", EmitDefaultValue=false)] + public bool? TargetSecure { get; set; } + + /// + /// The name of the remote process group. + /// + /// The name of the remote process group. + [DataMember(Name="name", EmitDefaultValue=false)] + public string Name { get; set; } + + /// + /// The comments for the remote process group. + /// + /// The comments for the remote process group. + [DataMember(Name="comments", EmitDefaultValue=false)] + public string Comments { get; set; } + + /// + /// The time period used for the timeout when communicating with the target. + /// + /// The time period used for the timeout when communicating with the target. + [DataMember(Name="communicationsTimeout", EmitDefaultValue=false)] + public string CommunicationsTimeout { get; set; } + + /// + /// When yielding, this amount of time must elapse before the remote process group is scheduled again. + /// + /// When yielding, this amount of time must elapse before the remote process group is scheduled again. + [DataMember(Name="yieldDuration", EmitDefaultValue=false)] + public string YieldDuration { get; set; } + + /// + /// Gets or Sets TransportProtocol + /// + [DataMember(Name="transportProtocol", EmitDefaultValue=false)] + public string TransportProtocol { get; set; } + + /// + /// The local network interface to send/receive data. If not specified, any local address is used. If clustered, all nodes must have an interface with this identifier. + /// + /// The local network interface to send/receive data. If not specified, any local address is used. If clustered, all nodes must have an interface with this identifier. + [DataMember(Name="localNetworkInterface", EmitDefaultValue=false)] + public string LocalNetworkInterface { get; set; } + + /// + /// Gets or Sets ProxyHost + /// + [DataMember(Name="proxyHost", EmitDefaultValue=false)] + public string ProxyHost { get; set; } + + /// + /// Gets or Sets ProxyPort + /// + [DataMember(Name="proxyPort", EmitDefaultValue=false)] + public int? ProxyPort { get; set; } + + /// + /// Gets or Sets ProxyUser + /// + [DataMember(Name="proxyUser", EmitDefaultValue=false)] + public string ProxyUser { get; set; } + + /// + /// Gets or Sets ProxyPassword + /// + [DataMember(Name="proxyPassword", EmitDefaultValue=false)] + public string ProxyPassword { get; set; } + + /// + /// Any remote authorization issues for the remote process group. + /// + /// Any remote authorization issues for the remote process group. + [DataMember(Name="authorizationIssues", EmitDefaultValue=false)] + public List AuthorizationIssues { get; set; } + + /// + /// The validation errors for the remote process group. These validation errors represent the problems with the remote process group that must be resolved before it can transmit. + /// + /// The validation errors for the remote process group. These validation errors represent the problems with the remote process group that must be resolved before it can transmit. + [DataMember(Name="validationErrors", EmitDefaultValue=false)] + public List ValidationErrors { get; set; } + + /// + /// Whether the remote process group is actively transmitting. + /// + /// Whether the remote process group is actively transmitting. + [DataMember(Name="transmitting", EmitDefaultValue=false)] + public bool? Transmitting { get; set; } + + /// + /// The number of remote input ports currently available on the target. + /// + /// The number of remote input ports currently available on the target. + [DataMember(Name="inputPortCount", EmitDefaultValue=false)] + public int? InputPortCount { get; set; } + + /// + /// The number of remote output ports currently available on the target. + /// + /// The number of remote output ports currently available on the target. + [DataMember(Name="outputPortCount", EmitDefaultValue=false)] + public int? OutputPortCount { get; set; } + + /// + /// The number of active remote input ports. + /// + /// The number of active remote input ports. + [DataMember(Name="activeRemoteInputPortCount", EmitDefaultValue=false)] + public int? ActiveRemoteInputPortCount { get; set; } + + /// + /// The number of inactive remote input ports. + /// + /// The number of inactive remote input ports. + [DataMember(Name="inactiveRemoteInputPortCount", EmitDefaultValue=false)] + public int? InactiveRemoteInputPortCount { get; set; } + + /// + /// The number of active remote output ports. + /// + /// The number of active remote output ports. + [DataMember(Name="activeRemoteOutputPortCount", EmitDefaultValue=false)] + public int? ActiveRemoteOutputPortCount { get; set; } + + /// + /// The number of inactive remote output ports. + /// + /// The number of inactive remote output ports. + [DataMember(Name="inactiveRemoteOutputPortCount", EmitDefaultValue=false)] + public int? InactiveRemoteOutputPortCount { get; set; } + + /// + /// The timestamp when this remote process group was last refreshed. + /// + /// The timestamp when this remote process group was last refreshed. + [DataMember(Name="flowRefreshed", EmitDefaultValue=false)] + public string FlowRefreshed { get; set; } + + /// + /// The contents of the remote process group. Will contain available input/output ports. + /// + /// The contents of the remote process group. Will contain available input/output ports. + [DataMember(Name="contents", EmitDefaultValue=false)] + public RemoteProcessGroupContentsDTO Contents { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class RemoteProcessGroupDTO {\n"); + sb.Append(" Id: ").Append(this.Id).Append("\n"); + sb.Append(" VersionedComponentId: ").Append(this.VersionedComponentId).Append("\n"); + sb.Append(" ParentGroupId: ").Append(this.ParentGroupId).Append("\n"); + sb.Append(" Position: ").Append(this.Position).Append("\n"); + sb.Append(" TargetUri: ").Append(this.TargetUri).Append("\n"); + sb.Append(" TargetUris: ").Append(this.TargetUris).Append("\n"); + sb.Append(" TargetSecure: ").Append(this.TargetSecure).Append("\n"); + sb.Append(" Name: ").Append(this.Name).Append("\n"); + sb.Append(" Comments: ").Append(this.Comments).Append("\n"); + sb.Append(" CommunicationsTimeout: ").Append(this.CommunicationsTimeout).Append("\n"); + sb.Append(" YieldDuration: ").Append(this.YieldDuration).Append("\n"); + sb.Append(" TransportProtocol: ").Append(this.TransportProtocol).Append("\n"); + sb.Append(" LocalNetworkInterface: ").Append(this.LocalNetworkInterface).Append("\n"); + sb.Append(" ProxyHost: ").Append(this.ProxyHost).Append("\n"); + sb.Append(" ProxyPort: ").Append(this.ProxyPort).Append("\n"); + sb.Append(" ProxyUser: ").Append(this.ProxyUser).Append("\n"); + sb.Append(" ProxyPassword: ").Append(this.ProxyPassword).Append("\n"); + sb.Append(" AuthorizationIssues: ").Append(this.AuthorizationIssues).Append("\n"); + sb.Append(" ValidationErrors: ").Append(this.ValidationErrors).Append("\n"); + sb.Append(" Transmitting: ").Append(this.Transmitting).Append("\n"); + sb.Append(" InputPortCount: ").Append(this.InputPortCount).Append("\n"); + sb.Append(" OutputPortCount: ").Append(this.OutputPortCount).Append("\n"); + sb.Append(" ActiveRemoteInputPortCount: ").Append(this.ActiveRemoteInputPortCount).Append("\n"); + sb.Append(" InactiveRemoteInputPortCount: ").Append(this.InactiveRemoteInputPortCount).Append("\n"); + sb.Append(" ActiveRemoteOutputPortCount: ").Append(this.ActiveRemoteOutputPortCount).Append("\n"); + sb.Append(" InactiveRemoteOutputPortCount: ").Append(this.InactiveRemoteOutputPortCount).Append("\n"); + sb.Append(" FlowRefreshed: ").Append(this.FlowRefreshed).Append("\n"); + sb.Append(" Contents: ").Append(this.Contents).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as RemoteProcessGroupDTO); + } + + /// + /// Returns true if RemoteProcessGroupDTO instances are equal + /// + /// Instance of RemoteProcessGroupDTO to be compared + /// Boolean + public bool Equals(RemoteProcessGroupDTO input) + { + if (input == null) + return false; + + return + ( + this.Id == input.Id || + (this.Id != null && + this.Id.Equals(input.Id)) + ) && + ( + this.VersionedComponentId == input.VersionedComponentId || + (this.VersionedComponentId != null && + this.VersionedComponentId.Equals(input.VersionedComponentId)) + ) && + ( + this.ParentGroupId == input.ParentGroupId || + (this.ParentGroupId != null && + this.ParentGroupId.Equals(input.ParentGroupId)) + ) && + ( + this.Position == input.Position || + (this.Position != null && + this.Position.Equals(input.Position)) + ) && + ( + this.TargetUri == input.TargetUri || + (this.TargetUri != null && + this.TargetUri.Equals(input.TargetUri)) + ) && + ( + this.TargetUris == input.TargetUris || + (this.TargetUris != null && + this.TargetUris.Equals(input.TargetUris)) + ) && + ( + this.TargetSecure == input.TargetSecure || + (this.TargetSecure != null && + this.TargetSecure.Equals(input.TargetSecure)) + ) && + ( + this.Name == input.Name || + (this.Name != null && + this.Name.Equals(input.Name)) + ) && + ( + this.Comments == input.Comments || + (this.Comments != null && + this.Comments.Equals(input.Comments)) + ) && + ( + this.CommunicationsTimeout == input.CommunicationsTimeout || + (this.CommunicationsTimeout != null && + this.CommunicationsTimeout.Equals(input.CommunicationsTimeout)) + ) && + ( + this.YieldDuration == input.YieldDuration || + (this.YieldDuration != null && + this.YieldDuration.Equals(input.YieldDuration)) + ) && + ( + this.TransportProtocol == input.TransportProtocol || + (this.TransportProtocol != null && + this.TransportProtocol.Equals(input.TransportProtocol)) + ) && + ( + this.LocalNetworkInterface == input.LocalNetworkInterface || + (this.LocalNetworkInterface != null && + this.LocalNetworkInterface.Equals(input.LocalNetworkInterface)) + ) && + ( + this.ProxyHost == input.ProxyHost || + (this.ProxyHost != null && + this.ProxyHost.Equals(input.ProxyHost)) + ) && + ( + this.ProxyPort == input.ProxyPort || + (this.ProxyPort != null && + this.ProxyPort.Equals(input.ProxyPort)) + ) && + ( + this.ProxyUser == input.ProxyUser || + (this.ProxyUser != null && + this.ProxyUser.Equals(input.ProxyUser)) + ) && + ( + this.ProxyPassword == input.ProxyPassword || + (this.ProxyPassword != null && + this.ProxyPassword.Equals(input.ProxyPassword)) + ) && + ( + this.AuthorizationIssues == input.AuthorizationIssues || + this.AuthorizationIssues != null && + this.AuthorizationIssues.SequenceEqual(input.AuthorizationIssues) + ) && + ( + this.ValidationErrors == input.ValidationErrors || + this.ValidationErrors != null && + this.ValidationErrors.SequenceEqual(input.ValidationErrors) + ) && + ( + this.Transmitting == input.Transmitting || + (this.Transmitting != null && + this.Transmitting.Equals(input.Transmitting)) + ) && + ( + this.InputPortCount == input.InputPortCount || + (this.InputPortCount != null && + this.InputPortCount.Equals(input.InputPortCount)) + ) && + ( + this.OutputPortCount == input.OutputPortCount || + (this.OutputPortCount != null && + this.OutputPortCount.Equals(input.OutputPortCount)) + ) && + ( + this.ActiveRemoteInputPortCount == input.ActiveRemoteInputPortCount || + (this.ActiveRemoteInputPortCount != null && + this.ActiveRemoteInputPortCount.Equals(input.ActiveRemoteInputPortCount)) + ) && + ( + this.InactiveRemoteInputPortCount == input.InactiveRemoteInputPortCount || + (this.InactiveRemoteInputPortCount != null && + this.InactiveRemoteInputPortCount.Equals(input.InactiveRemoteInputPortCount)) + ) && + ( + this.ActiveRemoteOutputPortCount == input.ActiveRemoteOutputPortCount || + (this.ActiveRemoteOutputPortCount != null && + this.ActiveRemoteOutputPortCount.Equals(input.ActiveRemoteOutputPortCount)) + ) && + ( + this.InactiveRemoteOutputPortCount == input.InactiveRemoteOutputPortCount || + (this.InactiveRemoteOutputPortCount != null && + this.InactiveRemoteOutputPortCount.Equals(input.InactiveRemoteOutputPortCount)) + ) && + ( + this.FlowRefreshed == input.FlowRefreshed || + (this.FlowRefreshed != null && + this.FlowRefreshed.Equals(input.FlowRefreshed)) + ) && + ( + this.Contents == input.Contents || + (this.Contents != null && + this.Contents.Equals(input.Contents)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Id != null) + hashCode = hashCode * 59 + this.Id.GetHashCode(); + if (this.VersionedComponentId != null) + hashCode = hashCode * 59 + this.VersionedComponentId.GetHashCode(); + if (this.ParentGroupId != null) + hashCode = hashCode * 59 + this.ParentGroupId.GetHashCode(); + if (this.Position != null) + hashCode = hashCode * 59 + this.Position.GetHashCode(); + if (this.TargetUri != null) + hashCode = hashCode * 59 + this.TargetUri.GetHashCode(); + if (this.TargetUris != null) + hashCode = hashCode * 59 + this.TargetUris.GetHashCode(); + if (this.TargetSecure != null) + hashCode = hashCode * 59 + this.TargetSecure.GetHashCode(); + if (this.Name != null) + hashCode = hashCode * 59 + this.Name.GetHashCode(); + if (this.Comments != null) + hashCode = hashCode * 59 + this.Comments.GetHashCode(); + if (this.CommunicationsTimeout != null) + hashCode = hashCode * 59 + this.CommunicationsTimeout.GetHashCode(); + if (this.YieldDuration != null) + hashCode = hashCode * 59 + this.YieldDuration.GetHashCode(); + if (this.TransportProtocol != null) + hashCode = hashCode * 59 + this.TransportProtocol.GetHashCode(); + if (this.LocalNetworkInterface != null) + hashCode = hashCode * 59 + this.LocalNetworkInterface.GetHashCode(); + if (this.ProxyHost != null) + hashCode = hashCode * 59 + this.ProxyHost.GetHashCode(); + if (this.ProxyPort != null) + hashCode = hashCode * 59 + this.ProxyPort.GetHashCode(); + if (this.ProxyUser != null) + hashCode = hashCode * 59 + this.ProxyUser.GetHashCode(); + if (this.ProxyPassword != null) + hashCode = hashCode * 59 + this.ProxyPassword.GetHashCode(); + if (this.AuthorizationIssues != null) + hashCode = hashCode * 59 + this.AuthorizationIssues.GetHashCode(); + if (this.ValidationErrors != null) + hashCode = hashCode * 59 + this.ValidationErrors.GetHashCode(); + if (this.Transmitting != null) + hashCode = hashCode * 59 + this.Transmitting.GetHashCode(); + if (this.InputPortCount != null) + hashCode = hashCode * 59 + this.InputPortCount.GetHashCode(); + if (this.OutputPortCount != null) + hashCode = hashCode * 59 + this.OutputPortCount.GetHashCode(); + if (this.ActiveRemoteInputPortCount != null) + hashCode = hashCode * 59 + this.ActiveRemoteInputPortCount.GetHashCode(); + if (this.InactiveRemoteInputPortCount != null) + hashCode = hashCode * 59 + this.InactiveRemoteInputPortCount.GetHashCode(); + if (this.ActiveRemoteOutputPortCount != null) + hashCode = hashCode * 59 + this.ActiveRemoteOutputPortCount.GetHashCode(); + if (this.InactiveRemoteOutputPortCount != null) + hashCode = hashCode * 59 + this.InactiveRemoteOutputPortCount.GetHashCode(); + if (this.FlowRefreshed != null) + hashCode = hashCode * 59 + this.FlowRefreshed.GetHashCode(); + if (this.Contents != null) + hashCode = hashCode * 59 + this.Contents.GetHashCode(); + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/NiFi.Swagger/Model/RemoteProcessGroupEntity.cs b/NiFi.Swagger/Model/RemoteProcessGroupEntity.cs new file mode 100644 index 0000000..ad6754d --- /dev/null +++ b/NiFi.Swagger/Model/RemoteProcessGroupEntity.cs @@ -0,0 +1,306 @@ +/* + * NiFi Rest Api + * + * The Rest Api provides programmatic access to command and control a NiFi instance in real time. Start and stop processors, monitor queues, query provenance data, and more. Each endpoint below includes a description, definitions of the expected input and output, potential response codes, and the authorizations required to invoke each service. + * + * OpenAPI spec version: 1.9.1 + * Contact: dev@nifi.apache.org + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +namespace NiFi.Swagger.Model +{ + using System; + using System.Collections.Generic; + using System.ComponentModel.DataAnnotations; + using System.Linq; + using System.Runtime.Serialization; + using System.Text; + + using Newtonsoft.Json; + + /// + /// RemoteProcessGroupEntity + /// + [DataContract] + public partial class RemoteProcessGroupEntity : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// The revision for this request/response. The revision is required for any mutable flow requests and is included in all responses.. + /// The id of the component.. + /// The URI for futures requests to the component.. + /// The position of this component in the UI if applicable.. + /// The permissions for this component.. + /// The bulletins for this component.. + /// Acknowledges that this node is disconnected to allow for mutable requests to proceed.. + /// component. + /// The status of the remote process group.. + /// The number of remote input ports currently available on the target.. + /// The number of remote output ports currently available on the target.. + /// The permissions for this component operations.. + public RemoteProcessGroupEntity(RevisionDTO revision = default(RevisionDTO), string id = default(string), string uri = default(string), PositionDTO position = default(PositionDTO), PermissionsDTO permissions = default(PermissionsDTO), List bulletins = default(List), bool? disconnectedNodeAcknowledged = default(bool?), RemoteProcessGroupDTO component = default(RemoteProcessGroupDTO), RemoteProcessGroupStatusDTO status = default(RemoteProcessGroupStatusDTO), int? inputPortCount = default(int?), int? outputPortCount = default(int?), PermissionsDTO operatePermissions = default(PermissionsDTO)) + { + this.Revision = revision; + this.Id = id; + this.Uri = uri; + this.Position = position; + this.Permissions = permissions; + this.Bulletins = bulletins; + this.DisconnectedNodeAcknowledged = disconnectedNodeAcknowledged; + this.Component = component; + this.Status = status; + this.InputPortCount = inputPortCount; + this.OutputPortCount = outputPortCount; + this.OperatePermissions = operatePermissions; + } + + /// + /// The revision for this request/response. The revision is required for any mutable flow requests and is included in all responses. + /// + /// The revision for this request/response. The revision is required for any mutable flow requests and is included in all responses. + [DataMember(Name="revision", EmitDefaultValue=false)] + public RevisionDTO Revision { get; set; } + + /// + /// The id of the component. + /// + /// The id of the component. + [DataMember(Name="id", EmitDefaultValue=false)] + public string Id { get; set; } + + /// + /// The URI for futures requests to the component. + /// + /// The URI for futures requests to the component. + [DataMember(Name="uri", EmitDefaultValue=false)] + public string Uri { get; set; } + + /// + /// The position of this component in the UI if applicable. + /// + /// The position of this component in the UI if applicable. + [DataMember(Name="position", EmitDefaultValue=false)] + public PositionDTO Position { get; set; } + + /// + /// The permissions for this component. + /// + /// The permissions for this component. + [DataMember(Name="permissions", EmitDefaultValue=false)] + public PermissionsDTO Permissions { get; set; } + + /// + /// The bulletins for this component. + /// + /// The bulletins for this component. + [DataMember(Name="bulletins", EmitDefaultValue=false)] + public List Bulletins { get; set; } + + /// + /// Acknowledges that this node is disconnected to allow for mutable requests to proceed. + /// + /// Acknowledges that this node is disconnected to allow for mutable requests to proceed. + [DataMember(Name="disconnectedNodeAcknowledged", EmitDefaultValue=false)] + public bool? DisconnectedNodeAcknowledged { get; set; } + + /// + /// Gets or Sets Component + /// + [DataMember(Name="component", EmitDefaultValue=false)] + public RemoteProcessGroupDTO Component { get; set; } + + /// + /// The status of the remote process group. + /// + /// The status of the remote process group. + [DataMember(Name="status", EmitDefaultValue=false)] + public RemoteProcessGroupStatusDTO Status { get; set; } + + /// + /// The number of remote input ports currently available on the target. + /// + /// The number of remote input ports currently available on the target. + [DataMember(Name="inputPortCount", EmitDefaultValue=false)] + public int? InputPortCount { get; set; } + + /// + /// The number of remote output ports currently available on the target. + /// + /// The number of remote output ports currently available on the target. + [DataMember(Name="outputPortCount", EmitDefaultValue=false)] + public int? OutputPortCount { get; set; } + + /// + /// The permissions for this component operations. + /// + /// The permissions for this component operations. + [DataMember(Name="operatePermissions", EmitDefaultValue=false)] + public PermissionsDTO OperatePermissions { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class RemoteProcessGroupEntity {\n"); + sb.Append(" Revision: ").Append(this.Revision).Append("\n"); + sb.Append(" Id: ").Append(this.Id).Append("\n"); + sb.Append(" Uri: ").Append(this.Uri).Append("\n"); + sb.Append(" Position: ").Append(this.Position).Append("\n"); + sb.Append(" Permissions: ").Append(this.Permissions).Append("\n"); + sb.Append(" Bulletins: ").Append(this.Bulletins).Append("\n"); + sb.Append(" DisconnectedNodeAcknowledged: ").Append(this.DisconnectedNodeAcknowledged).Append("\n"); + sb.Append(" Component: ").Append(this.Component).Append("\n"); + sb.Append(" Status: ").Append(this.Status).Append("\n"); + sb.Append(" InputPortCount: ").Append(this.InputPortCount).Append("\n"); + sb.Append(" OutputPortCount: ").Append(this.OutputPortCount).Append("\n"); + sb.Append(" OperatePermissions: ").Append(this.OperatePermissions).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as RemoteProcessGroupEntity); + } + + /// + /// Returns true if RemoteProcessGroupEntity instances are equal + /// + /// Instance of RemoteProcessGroupEntity to be compared + /// Boolean + public bool Equals(RemoteProcessGroupEntity input) + { + if (input == null) + return false; + + return + ( + this.Revision == input.Revision || + (this.Revision != null && + this.Revision.Equals(input.Revision)) + ) && + ( + this.Id == input.Id || + (this.Id != null && + this.Id.Equals(input.Id)) + ) && + ( + this.Uri == input.Uri || + (this.Uri != null && + this.Uri.Equals(input.Uri)) + ) && + ( + this.Position == input.Position || + (this.Position != null && + this.Position.Equals(input.Position)) + ) && + ( + this.Permissions == input.Permissions || + (this.Permissions != null && + this.Permissions.Equals(input.Permissions)) + ) && + ( + this.Bulletins == input.Bulletins || + this.Bulletins != null && + this.Bulletins.SequenceEqual(input.Bulletins) + ) && + ( + this.DisconnectedNodeAcknowledged == input.DisconnectedNodeAcknowledged || + (this.DisconnectedNodeAcknowledged != null && + this.DisconnectedNodeAcknowledged.Equals(input.DisconnectedNodeAcknowledged)) + ) && + ( + this.Component == input.Component || + (this.Component != null && + this.Component.Equals(input.Component)) + ) && + ( + this.Status == input.Status || + (this.Status != null && + this.Status.Equals(input.Status)) + ) && + ( + this.InputPortCount == input.InputPortCount || + (this.InputPortCount != null && + this.InputPortCount.Equals(input.InputPortCount)) + ) && + ( + this.OutputPortCount == input.OutputPortCount || + (this.OutputPortCount != null && + this.OutputPortCount.Equals(input.OutputPortCount)) + ) && + ( + this.OperatePermissions == input.OperatePermissions || + (this.OperatePermissions != null && + this.OperatePermissions.Equals(input.OperatePermissions)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Revision != null) + hashCode = hashCode * 59 + this.Revision.GetHashCode(); + if (this.Id != null) + hashCode = hashCode * 59 + this.Id.GetHashCode(); + if (this.Uri != null) + hashCode = hashCode * 59 + this.Uri.GetHashCode(); + if (this.Position != null) + hashCode = hashCode * 59 + this.Position.GetHashCode(); + if (this.Permissions != null) + hashCode = hashCode * 59 + this.Permissions.GetHashCode(); + if (this.Bulletins != null) + hashCode = hashCode * 59 + this.Bulletins.GetHashCode(); + if (this.DisconnectedNodeAcknowledged != null) + hashCode = hashCode * 59 + this.DisconnectedNodeAcknowledged.GetHashCode(); + if (this.Component != null) + hashCode = hashCode * 59 + this.Component.GetHashCode(); + if (this.Status != null) + hashCode = hashCode * 59 + this.Status.GetHashCode(); + if (this.InputPortCount != null) + hashCode = hashCode * 59 + this.InputPortCount.GetHashCode(); + if (this.OutputPortCount != null) + hashCode = hashCode * 59 + this.OutputPortCount.GetHashCode(); + if (this.OperatePermissions != null) + hashCode = hashCode * 59 + this.OperatePermissions.GetHashCode(); + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/NiFi.Swagger/Model/RemoteProcessGroupPortDTO.cs b/NiFi.Swagger/Model/RemoteProcessGroupPortDTO.cs new file mode 100644 index 0000000..043c428 --- /dev/null +++ b/NiFi.Swagger/Model/RemoteProcessGroupPortDTO.cs @@ -0,0 +1,323 @@ +/* + * NiFi Rest Api + * + * The Rest Api provides programmatic access to command and control a NiFi instance in real time. Start and stop processors, monitor queues, query provenance data, and more. Each endpoint below includes a description, definitions of the expected input and output, potential response codes, and the authorizations required to invoke each service. + * + * OpenAPI spec version: 1.9.1 + * Contact: dev@nifi.apache.org + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +namespace NiFi.Swagger.Model +{ + using System; + using System.Collections.Generic; + using System.ComponentModel.DataAnnotations; + using System.Runtime.Serialization; + using System.Text; + + using Newtonsoft.Json; + + /// + /// RemoteProcessGroupPortDTO + /// + [DataContract] + public partial class RemoteProcessGroupPortDTO : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// The id of the port.. + /// The id of the target port.. + /// The ID of the corresponding component that is under version control. + /// The id of the remote process group that the port resides in.. + /// The name of the target port.. + /// The comments as configured on the target port.. + /// The number of task that may transmit flowfiles to the target port concurrently.. + /// Whether the remote port is configured for transmission.. + /// Whether the flowfiles are compressed when sent to the target port.. + /// Whether the target port exists.. + /// Whether the target port is running.. + /// Whether the port has either an incoming or outgoing connection.. + /// The batch settings for data transmission.. + public RemoteProcessGroupPortDTO(string id = default(string), string targetId = default(string), string versionedComponentId = default(string), string groupId = default(string), string name = default(string), string comments = default(string), int? concurrentlySchedulableTaskCount = default(int?), bool? transmitting = default(bool?), bool? useCompression = default(bool?), bool? exists = default(bool?), bool? targetRunning = default(bool?), bool? connected = default(bool?), BatchSettingsDTO batchSettings = default(BatchSettingsDTO)) + { + this.Id = id; + this.TargetId = targetId; + this.VersionedComponentId = versionedComponentId; + this.GroupId = groupId; + this.Name = name; + this.Comments = comments; + this.ConcurrentlySchedulableTaskCount = concurrentlySchedulableTaskCount; + this.Transmitting = transmitting; + this.UseCompression = useCompression; + this.Exists = exists; + this.TargetRunning = targetRunning; + this.Connected = connected; + this.BatchSettings = batchSettings; + } + + /// + /// The id of the port. + /// + /// The id of the port. + [DataMember(Name="id", EmitDefaultValue=false)] + public string Id { get; set; } + + /// + /// The id of the target port. + /// + /// The id of the target port. + [DataMember(Name="targetId", EmitDefaultValue=false)] + public string TargetId { get; set; } + + /// + /// The ID of the corresponding component that is under version control + /// + /// The ID of the corresponding component that is under version control + [DataMember(Name="versionedComponentId", EmitDefaultValue=false)] + public string VersionedComponentId { get; set; } + + /// + /// The id of the remote process group that the port resides in. + /// + /// The id of the remote process group that the port resides in. + [DataMember(Name="groupId", EmitDefaultValue=false)] + public string GroupId { get; set; } + + /// + /// The name of the target port. + /// + /// The name of the target port. + [DataMember(Name="name", EmitDefaultValue=false)] + public string Name { get; set; } + + /// + /// The comments as configured on the target port. + /// + /// The comments as configured on the target port. + [DataMember(Name="comments", EmitDefaultValue=false)] + public string Comments { get; set; } + + /// + /// The number of task that may transmit flowfiles to the target port concurrently. + /// + /// The number of task that may transmit flowfiles to the target port concurrently. + [DataMember(Name="concurrentlySchedulableTaskCount", EmitDefaultValue=false)] + public int? ConcurrentlySchedulableTaskCount { get; set; } + + /// + /// Whether the remote port is configured for transmission. + /// + /// Whether the remote port is configured for transmission. + [DataMember(Name="transmitting", EmitDefaultValue=false)] + public bool? Transmitting { get; set; } + + /// + /// Whether the flowfiles are compressed when sent to the target port. + /// + /// Whether the flowfiles are compressed when sent to the target port. + [DataMember(Name="useCompression", EmitDefaultValue=false)] + public bool? UseCompression { get; set; } + + /// + /// Whether the target port exists. + /// + /// Whether the target port exists. + [DataMember(Name="exists", EmitDefaultValue=false)] + public bool? Exists { get; set; } + + /// + /// Whether the target port is running. + /// + /// Whether the target port is running. + [DataMember(Name="targetRunning", EmitDefaultValue=false)] + public bool? TargetRunning { get; set; } + + /// + /// Whether the port has either an incoming or outgoing connection. + /// + /// Whether the port has either an incoming or outgoing connection. + [DataMember(Name="connected", EmitDefaultValue=false)] + public bool? Connected { get; set; } + + /// + /// The batch settings for data transmission. + /// + /// The batch settings for data transmission. + [DataMember(Name="batchSettings", EmitDefaultValue=false)] + public BatchSettingsDTO BatchSettings { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class RemoteProcessGroupPortDTO {\n"); + sb.Append(" Id: ").Append(this.Id).Append("\n"); + sb.Append(" TargetId: ").Append(this.TargetId).Append("\n"); + sb.Append(" VersionedComponentId: ").Append(this.VersionedComponentId).Append("\n"); + sb.Append(" GroupId: ").Append(this.GroupId).Append("\n"); + sb.Append(" Name: ").Append(this.Name).Append("\n"); + sb.Append(" Comments: ").Append(this.Comments).Append("\n"); + sb.Append(" ConcurrentlySchedulableTaskCount: ").Append(this.ConcurrentlySchedulableTaskCount).Append("\n"); + sb.Append(" Transmitting: ").Append(this.Transmitting).Append("\n"); + sb.Append(" UseCompression: ").Append(this.UseCompression).Append("\n"); + sb.Append(" Exists: ").Append(this.Exists).Append("\n"); + sb.Append(" TargetRunning: ").Append(this.TargetRunning).Append("\n"); + sb.Append(" Connected: ").Append(this.Connected).Append("\n"); + sb.Append(" BatchSettings: ").Append(this.BatchSettings).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as RemoteProcessGroupPortDTO); + } + + /// + /// Returns true if RemoteProcessGroupPortDTO instances are equal + /// + /// Instance of RemoteProcessGroupPortDTO to be compared + /// Boolean + public bool Equals(RemoteProcessGroupPortDTO input) + { + if (input == null) + return false; + + return + ( + this.Id == input.Id || + (this.Id != null && + this.Id.Equals(input.Id)) + ) && + ( + this.TargetId == input.TargetId || + (this.TargetId != null && + this.TargetId.Equals(input.TargetId)) + ) && + ( + this.VersionedComponentId == input.VersionedComponentId || + (this.VersionedComponentId != null && + this.VersionedComponentId.Equals(input.VersionedComponentId)) + ) && + ( + this.GroupId == input.GroupId || + (this.GroupId != null && + this.GroupId.Equals(input.GroupId)) + ) && + ( + this.Name == input.Name || + (this.Name != null && + this.Name.Equals(input.Name)) + ) && + ( + this.Comments == input.Comments || + (this.Comments != null && + this.Comments.Equals(input.Comments)) + ) && + ( + this.ConcurrentlySchedulableTaskCount == input.ConcurrentlySchedulableTaskCount || + (this.ConcurrentlySchedulableTaskCount != null && + this.ConcurrentlySchedulableTaskCount.Equals(input.ConcurrentlySchedulableTaskCount)) + ) && + ( + this.Transmitting == input.Transmitting || + (this.Transmitting != null && + this.Transmitting.Equals(input.Transmitting)) + ) && + ( + this.UseCompression == input.UseCompression || + (this.UseCompression != null && + this.UseCompression.Equals(input.UseCompression)) + ) && + ( + this.Exists == input.Exists || + (this.Exists != null && + this.Exists.Equals(input.Exists)) + ) && + ( + this.TargetRunning == input.TargetRunning || + (this.TargetRunning != null && + this.TargetRunning.Equals(input.TargetRunning)) + ) && + ( + this.Connected == input.Connected || + (this.Connected != null && + this.Connected.Equals(input.Connected)) + ) && + ( + this.BatchSettings == input.BatchSettings || + (this.BatchSettings != null && + this.BatchSettings.Equals(input.BatchSettings)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Id != null) + hashCode = hashCode * 59 + this.Id.GetHashCode(); + if (this.TargetId != null) + hashCode = hashCode * 59 + this.TargetId.GetHashCode(); + if (this.VersionedComponentId != null) + hashCode = hashCode * 59 + this.VersionedComponentId.GetHashCode(); + if (this.GroupId != null) + hashCode = hashCode * 59 + this.GroupId.GetHashCode(); + if (this.Name != null) + hashCode = hashCode * 59 + this.Name.GetHashCode(); + if (this.Comments != null) + hashCode = hashCode * 59 + this.Comments.GetHashCode(); + if (this.ConcurrentlySchedulableTaskCount != null) + hashCode = hashCode * 59 + this.ConcurrentlySchedulableTaskCount.GetHashCode(); + if (this.Transmitting != null) + hashCode = hashCode * 59 + this.Transmitting.GetHashCode(); + if (this.UseCompression != null) + hashCode = hashCode * 59 + this.UseCompression.GetHashCode(); + if (this.Exists != null) + hashCode = hashCode * 59 + this.Exists.GetHashCode(); + if (this.TargetRunning != null) + hashCode = hashCode * 59 + this.TargetRunning.GetHashCode(); + if (this.Connected != null) + hashCode = hashCode * 59 + this.Connected.GetHashCode(); + if (this.BatchSettings != null) + hashCode = hashCode * 59 + this.BatchSettings.GetHashCode(); + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/NiFi.Swagger/Model/RemoteProcessGroupPortEntity.cs b/NiFi.Swagger/Model/RemoteProcessGroupPortEntity.cs new file mode 100644 index 0000000..747939a --- /dev/null +++ b/NiFi.Swagger/Model/RemoteProcessGroupPortEntity.cs @@ -0,0 +1,255 @@ +/* + * NiFi Rest Api + * + * The Rest Api provides programmatic access to command and control a NiFi instance in real time. Start and stop processors, monitor queues, query provenance data, and more. Each endpoint below includes a description, definitions of the expected input and output, potential response codes, and the authorizations required to invoke each service. + * + * OpenAPI spec version: 1.9.1 + * Contact: dev@nifi.apache.org + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +namespace NiFi.Swagger.Model +{ + using System; + using System.Collections.Generic; + using System.ComponentModel.DataAnnotations; + using System.Linq; + using System.Runtime.Serialization; + using System.Text; + + using Newtonsoft.Json; + + /// + /// RemoteProcessGroupPortEntity + /// + [DataContract] + public partial class RemoteProcessGroupPortEntity : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// The revision for this request/response. The revision is required for any mutable flow requests and is included in all responses.. + /// The id of the component.. + /// The URI for futures requests to the component.. + /// The position of this component in the UI if applicable.. + /// The permissions for this component.. + /// The bulletins for this component.. + /// Acknowledges that this node is disconnected to allow for mutable requests to proceed.. + /// remoteProcessGroupPort. + /// The permissions for this component operations.. + public RemoteProcessGroupPortEntity(RevisionDTO revision = default(RevisionDTO), string id = default(string), string uri = default(string), PositionDTO position = default(PositionDTO), PermissionsDTO permissions = default(PermissionsDTO), List bulletins = default(List), bool? disconnectedNodeAcknowledged = default(bool?), RemoteProcessGroupPortDTO remoteProcessGroupPort = default(RemoteProcessGroupPortDTO), PermissionsDTO operatePermissions = default(PermissionsDTO)) + { + this.Revision = revision; + this.Id = id; + this.Uri = uri; + this.Position = position; + this.Permissions = permissions; + this.Bulletins = bulletins; + this.DisconnectedNodeAcknowledged = disconnectedNodeAcknowledged; + this.RemoteProcessGroupPort = remoteProcessGroupPort; + this.OperatePermissions = operatePermissions; + } + + /// + /// The revision for this request/response. The revision is required for any mutable flow requests and is included in all responses. + /// + /// The revision for this request/response. The revision is required for any mutable flow requests and is included in all responses. + [DataMember(Name="revision", EmitDefaultValue=false)] + public RevisionDTO Revision { get; set; } + + /// + /// The id of the component. + /// + /// The id of the component. + [DataMember(Name="id", EmitDefaultValue=false)] + public string Id { get; set; } + + /// + /// The URI for futures requests to the component. + /// + /// The URI for futures requests to the component. + [DataMember(Name="uri", EmitDefaultValue=false)] + public string Uri { get; set; } + + /// + /// The position of this component in the UI if applicable. + /// + /// The position of this component in the UI if applicable. + [DataMember(Name="position", EmitDefaultValue=false)] + public PositionDTO Position { get; set; } + + /// + /// The permissions for this component. + /// + /// The permissions for this component. + [DataMember(Name="permissions", EmitDefaultValue=false)] + public PermissionsDTO Permissions { get; set; } + + /// + /// The bulletins for this component. + /// + /// The bulletins for this component. + [DataMember(Name="bulletins", EmitDefaultValue=false)] + public List Bulletins { get; set; } + + /// + /// Acknowledges that this node is disconnected to allow for mutable requests to proceed. + /// + /// Acknowledges that this node is disconnected to allow for mutable requests to proceed. + [DataMember(Name="disconnectedNodeAcknowledged", EmitDefaultValue=false)] + public bool? DisconnectedNodeAcknowledged { get; set; } + + /// + /// Gets or Sets RemoteProcessGroupPort + /// + [DataMember(Name="remoteProcessGroupPort", EmitDefaultValue=false)] + public RemoteProcessGroupPortDTO RemoteProcessGroupPort { get; set; } + + /// + /// The permissions for this component operations. + /// + /// The permissions for this component operations. + [DataMember(Name="operatePermissions", EmitDefaultValue=false)] + public PermissionsDTO OperatePermissions { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class RemoteProcessGroupPortEntity {\n"); + sb.Append(" Revision: ").Append(this.Revision).Append("\n"); + sb.Append(" Id: ").Append(this.Id).Append("\n"); + sb.Append(" Uri: ").Append(this.Uri).Append("\n"); + sb.Append(" Position: ").Append(this.Position).Append("\n"); + sb.Append(" Permissions: ").Append(this.Permissions).Append("\n"); + sb.Append(" Bulletins: ").Append(this.Bulletins).Append("\n"); + sb.Append(" DisconnectedNodeAcknowledged: ").Append(this.DisconnectedNodeAcknowledged).Append("\n"); + sb.Append(" RemoteProcessGroupPort: ").Append(this.RemoteProcessGroupPort).Append("\n"); + sb.Append(" OperatePermissions: ").Append(this.OperatePermissions).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as RemoteProcessGroupPortEntity); + } + + /// + /// Returns true if RemoteProcessGroupPortEntity instances are equal + /// + /// Instance of RemoteProcessGroupPortEntity to be compared + /// Boolean + public bool Equals(RemoteProcessGroupPortEntity input) + { + if (input == null) + return false; + + return + ( + this.Revision == input.Revision || + (this.Revision != null && + this.Revision.Equals(input.Revision)) + ) && + ( + this.Id == input.Id || + (this.Id != null && + this.Id.Equals(input.Id)) + ) && + ( + this.Uri == input.Uri || + (this.Uri != null && + this.Uri.Equals(input.Uri)) + ) && + ( + this.Position == input.Position || + (this.Position != null && + this.Position.Equals(input.Position)) + ) && + ( + this.Permissions == input.Permissions || + (this.Permissions != null && + this.Permissions.Equals(input.Permissions)) + ) && + ( + this.Bulletins == input.Bulletins || + this.Bulletins != null && + this.Bulletins.SequenceEqual(input.Bulletins) + ) && + ( + this.DisconnectedNodeAcknowledged == input.DisconnectedNodeAcknowledged || + (this.DisconnectedNodeAcknowledged != null && + this.DisconnectedNodeAcknowledged.Equals(input.DisconnectedNodeAcknowledged)) + ) && + ( + this.RemoteProcessGroupPort == input.RemoteProcessGroupPort || + (this.RemoteProcessGroupPort != null && + this.RemoteProcessGroupPort.Equals(input.RemoteProcessGroupPort)) + ) && + ( + this.OperatePermissions == input.OperatePermissions || + (this.OperatePermissions != null && + this.OperatePermissions.Equals(input.OperatePermissions)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Revision != null) + hashCode = hashCode * 59 + this.Revision.GetHashCode(); + if (this.Id != null) + hashCode = hashCode * 59 + this.Id.GetHashCode(); + if (this.Uri != null) + hashCode = hashCode * 59 + this.Uri.GetHashCode(); + if (this.Position != null) + hashCode = hashCode * 59 + this.Position.GetHashCode(); + if (this.Permissions != null) + hashCode = hashCode * 59 + this.Permissions.GetHashCode(); + if (this.Bulletins != null) + hashCode = hashCode * 59 + this.Bulletins.GetHashCode(); + if (this.DisconnectedNodeAcknowledged != null) + hashCode = hashCode * 59 + this.DisconnectedNodeAcknowledged.GetHashCode(); + if (this.RemoteProcessGroupPort != null) + hashCode = hashCode * 59 + this.RemoteProcessGroupPort.GetHashCode(); + if (this.OperatePermissions != null) + hashCode = hashCode * 59 + this.OperatePermissions.GetHashCode(); + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/NiFi.Swagger/Model/RemoteProcessGroupStatusDTO.cs b/NiFi.Swagger/Model/RemoteProcessGroupStatusDTO.cs new file mode 100644 index 0000000..76a6eea --- /dev/null +++ b/NiFi.Swagger/Model/RemoteProcessGroupStatusDTO.cs @@ -0,0 +1,282 @@ +/* + * NiFi Rest Api + * + * The Rest Api provides programmatic access to command and control a NiFi instance in real time. Start and stop processors, monitor queues, query provenance data, and more. Each endpoint below includes a description, definitions of the expected input and output, potential response codes, and the authorizations required to invoke each service. + * + * OpenAPI spec version: 1.9.1 + * Contact: dev@nifi.apache.org + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +namespace NiFi.Swagger.Model +{ + using System; + using System.Collections.Generic; + using System.ComponentModel.DataAnnotations; + using System.Linq; + using System.Runtime.Serialization; + using System.Text; + + using Newtonsoft.Json; + using Newtonsoft.Json.Converters; + + /// + /// RemoteProcessGroupStatusDTO + /// + [DataContract] + public partial class RemoteProcessGroupStatusDTO : IEquatable, IValidatableObject + { + /// + /// Indicates whether the component is valid, invalid, or still in the process of validating (i.e., it is unknown whether or not the component is valid) + /// + /// Indicates whether the component is valid, invalid, or still in the process of validating (i.e., it is unknown whether or not the component is valid) + [JsonConverter(typeof(StringEnumConverter))] + public enum ValidationStatusEnum + { + + /// + /// Enum VALID for value: VALID + /// + [EnumMember(Value = "VALID")] + VALID = 1, + + /// + /// Enum INVALID for value: INVALID + /// + [EnumMember(Value = "INVALID")] + INVALID = 2, + + /// + /// Enum VALIDATING for value: VALIDATING + /// + [EnumMember(Value = "VALIDATING")] + VALIDATING = 3 + } + + /// + /// Indicates whether the component is valid, invalid, or still in the process of validating (i.e., it is unknown whether or not the component is valid) + /// + /// Indicates whether the component is valid, invalid, or still in the process of validating (i.e., it is unknown whether or not the component is valid) + [DataMember(Name="validationStatus", EmitDefaultValue=false)] + public ValidationStatusEnum? ValidationStatus { get; set; } + /// + /// Initializes a new instance of the class. + /// + /// The unique ID of the process group that the Processor belongs to. + /// The unique ID of the Processor. + /// The name of the remote process group.. + /// The URI of the target system.. + /// The transmission status of the remote process group.. + /// The time the status for the process group was last refreshed.. + /// A status snapshot that represents the aggregate stats of all nodes in the cluster. If the NiFi instance is a standalone instance, rather than a cluster, this represents the stats of the single instance.. + /// A status snapshot for each node in the cluster. If the NiFi instance is a standalone instance, rather than a cluster, this may be null.. + public RemoteProcessGroupStatusDTO(string groupId = default(string), string id = default(string), string name = default(string), string targetUri = default(string), string transmissionStatus = default(string), string statsLastRefreshed = default(string), RemoteProcessGroupStatusSnapshotDTO aggregateSnapshot = default(RemoteProcessGroupStatusSnapshotDTO), List nodeSnapshots = default(List)) + { + this.GroupId = groupId; + this.Id = id; + this.Name = name; + this.TargetUri = targetUri; + this.TransmissionStatus = transmissionStatus; + this.StatsLastRefreshed = statsLastRefreshed; + this.AggregateSnapshot = aggregateSnapshot; + this.NodeSnapshots = nodeSnapshots; + } + + /// + /// The unique ID of the process group that the Processor belongs to + /// + /// The unique ID of the process group that the Processor belongs to + [DataMember(Name="groupId", EmitDefaultValue=false)] + public string GroupId { get; set; } + + /// + /// The unique ID of the Processor + /// + /// The unique ID of the Processor + [DataMember(Name="id", EmitDefaultValue=false)] + public string Id { get; set; } + + /// + /// The name of the remote process group. + /// + /// The name of the remote process group. + [DataMember(Name="name", EmitDefaultValue=false)] + public string Name { get; set; } + + /// + /// The URI of the target system. + /// + /// The URI of the target system. + [DataMember(Name="targetUri", EmitDefaultValue=false)] + public string TargetUri { get; set; } + + /// + /// The transmission status of the remote process group. + /// + /// The transmission status of the remote process group. + [DataMember(Name="transmissionStatus", EmitDefaultValue=false)] + public string TransmissionStatus { get; set; } + + /// + /// The time the status for the process group was last refreshed. + /// + /// The time the status for the process group was last refreshed. + [DataMember(Name="statsLastRefreshed", EmitDefaultValue=false)] + public string StatsLastRefreshed { get; set; } + + + /// + /// A status snapshot that represents the aggregate stats of all nodes in the cluster. If the NiFi instance is a standalone instance, rather than a cluster, this represents the stats of the single instance. + /// + /// A status snapshot that represents the aggregate stats of all nodes in the cluster. If the NiFi instance is a standalone instance, rather than a cluster, this represents the stats of the single instance. + [DataMember(Name="aggregateSnapshot", EmitDefaultValue=false)] + public RemoteProcessGroupStatusSnapshotDTO AggregateSnapshot { get; set; } + + /// + /// A status snapshot for each node in the cluster. If the NiFi instance is a standalone instance, rather than a cluster, this may be null. + /// + /// A status snapshot for each node in the cluster. If the NiFi instance is a standalone instance, rather than a cluster, this may be null. + [DataMember(Name="nodeSnapshots", EmitDefaultValue=false)] + public List NodeSnapshots { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class RemoteProcessGroupStatusDTO {\n"); + sb.Append(" GroupId: ").Append(this.GroupId).Append("\n"); + sb.Append(" Id: ").Append(this.Id).Append("\n"); + sb.Append(" Name: ").Append(this.Name).Append("\n"); + sb.Append(" TargetUri: ").Append(this.TargetUri).Append("\n"); + sb.Append(" TransmissionStatus: ").Append(this.TransmissionStatus).Append("\n"); + sb.Append(" StatsLastRefreshed: ").Append(this.StatsLastRefreshed).Append("\n"); + sb.Append(" ValidationStatus: ").Append(this.ValidationStatus).Append("\n"); + sb.Append(" AggregateSnapshot: ").Append(this.AggregateSnapshot).Append("\n"); + sb.Append(" NodeSnapshots: ").Append(this.NodeSnapshots).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as RemoteProcessGroupStatusDTO); + } + + /// + /// Returns true if RemoteProcessGroupStatusDTO instances are equal + /// + /// Instance of RemoteProcessGroupStatusDTO to be compared + /// Boolean + public bool Equals(RemoteProcessGroupStatusDTO input) + { + if (input == null) + return false; + + return + ( + this.GroupId == input.GroupId || + (this.GroupId != null && + this.GroupId.Equals(input.GroupId)) + ) && + ( + this.Id == input.Id || + (this.Id != null && + this.Id.Equals(input.Id)) + ) && + ( + this.Name == input.Name || + (this.Name != null && + this.Name.Equals(input.Name)) + ) && + ( + this.TargetUri == input.TargetUri || + (this.TargetUri != null && + this.TargetUri.Equals(input.TargetUri)) + ) && + ( + this.TransmissionStatus == input.TransmissionStatus || + (this.TransmissionStatus != null && + this.TransmissionStatus.Equals(input.TransmissionStatus)) + ) && + ( + this.StatsLastRefreshed == input.StatsLastRefreshed || + (this.StatsLastRefreshed != null && + this.StatsLastRefreshed.Equals(input.StatsLastRefreshed)) + ) && + ( + this.ValidationStatus == input.ValidationStatus || + (this.ValidationStatus != null && + this.ValidationStatus.Equals(input.ValidationStatus)) + ) && + ( + this.AggregateSnapshot == input.AggregateSnapshot || + (this.AggregateSnapshot != null && + this.AggregateSnapshot.Equals(input.AggregateSnapshot)) + ) && + ( + this.NodeSnapshots == input.NodeSnapshots || + this.NodeSnapshots != null && + this.NodeSnapshots.SequenceEqual(input.NodeSnapshots) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.GroupId != null) + hashCode = hashCode * 59 + this.GroupId.GetHashCode(); + if (this.Id != null) + hashCode = hashCode * 59 + this.Id.GetHashCode(); + if (this.Name != null) + hashCode = hashCode * 59 + this.Name.GetHashCode(); + if (this.TargetUri != null) + hashCode = hashCode * 59 + this.TargetUri.GetHashCode(); + if (this.TransmissionStatus != null) + hashCode = hashCode * 59 + this.TransmissionStatus.GetHashCode(); + if (this.StatsLastRefreshed != null) + hashCode = hashCode * 59 + this.StatsLastRefreshed.GetHashCode(); + if (this.ValidationStatus != null) + hashCode = hashCode * 59 + this.ValidationStatus.GetHashCode(); + if (this.AggregateSnapshot != null) + hashCode = hashCode * 59 + this.AggregateSnapshot.GetHashCode(); + if (this.NodeSnapshots != null) + hashCode = hashCode * 59 + this.NodeSnapshots.GetHashCode(); + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/NiFi.Swagger/Model/RemoteProcessGroupStatusEntity.cs b/NiFi.Swagger/Model/RemoteProcessGroupStatusEntity.cs new file mode 100644 index 0000000..64f89c7 --- /dev/null +++ b/NiFi.Swagger/Model/RemoteProcessGroupStatusEntity.cs @@ -0,0 +1,133 @@ +/* + * NiFi Rest Api + * + * The Rest Api provides programmatic access to command and control a NiFi instance in real time. Start and stop processors, monitor queues, query provenance data, and more. Each endpoint below includes a description, definitions of the expected input and output, potential response codes, and the authorizations required to invoke each service. + * + * OpenAPI spec version: 1.9.1 + * Contact: dev@nifi.apache.org + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +namespace NiFi.Swagger.Model +{ + using System; + using System.Collections.Generic; + using System.ComponentModel.DataAnnotations; + using System.Runtime.Serialization; + using System.Text; + + using Newtonsoft.Json; + + /// + /// RemoteProcessGroupStatusEntity + /// + [DataContract] + public partial class RemoteProcessGroupStatusEntity : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// remoteProcessGroupStatus. + public RemoteProcessGroupStatusEntity(RemoteProcessGroupStatusDTO remoteProcessGroupStatus = default(RemoteProcessGroupStatusDTO)) + { + this.RemoteProcessGroupStatus = remoteProcessGroupStatus; + } + + /// + /// Gets or Sets RemoteProcessGroupStatus + /// + [DataMember(Name="remoteProcessGroupStatus", EmitDefaultValue=false)] + public RemoteProcessGroupStatusDTO RemoteProcessGroupStatus { get; set; } + + /// + /// Indicates whether the user can read a given resource. + /// + /// Indicates whether the user can read a given resource. + [DataMember(Name="canRead", EmitDefaultValue=false)] + public bool? CanRead { get; private set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class RemoteProcessGroupStatusEntity {\n"); + sb.Append(" RemoteProcessGroupStatus: ").Append(this.RemoteProcessGroupStatus).Append("\n"); + sb.Append(" CanRead: ").Append(this.CanRead).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as RemoteProcessGroupStatusEntity); + } + + /// + /// Returns true if RemoteProcessGroupStatusEntity instances are equal + /// + /// Instance of RemoteProcessGroupStatusEntity to be compared + /// Boolean + public bool Equals(RemoteProcessGroupStatusEntity input) + { + if (input == null) + return false; + + return + ( + this.RemoteProcessGroupStatus == input.RemoteProcessGroupStatus || + (this.RemoteProcessGroupStatus != null && + this.RemoteProcessGroupStatus.Equals(input.RemoteProcessGroupStatus)) + ) && + ( + this.CanRead == input.CanRead || + (this.CanRead != null && + this.CanRead.Equals(input.CanRead)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.RemoteProcessGroupStatus != null) + hashCode = hashCode * 59 + this.RemoteProcessGroupStatus.GetHashCode(); + if (this.CanRead != null) + hashCode = hashCode * 59 + this.CanRead.GetHashCode(); + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/NiFi.Swagger/Model/RemoteProcessGroupStatusSnapshotDTO.cs b/NiFi.Swagger/Model/RemoteProcessGroupStatusSnapshotDTO.cs new file mode 100644 index 0000000..599b2f5 --- /dev/null +++ b/NiFi.Swagger/Model/RemoteProcessGroupStatusSnapshotDTO.cs @@ -0,0 +1,306 @@ +/* + * NiFi Rest Api + * + * The Rest Api provides programmatic access to command and control a NiFi instance in real time. Start and stop processors, monitor queues, query provenance data, and more. Each endpoint below includes a description, definitions of the expected input and output, potential response codes, and the authorizations required to invoke each service. + * + * OpenAPI spec version: 1.9.1 + * Contact: dev@nifi.apache.org + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +namespace NiFi.Swagger.Model +{ + using System; + using System.Collections.Generic; + using System.ComponentModel.DataAnnotations; + using System.Runtime.Serialization; + using System.Text; + + using Newtonsoft.Json; + + /// + /// RemoteProcessGroupStatusSnapshotDTO + /// + [DataContract] + public partial class RemoteProcessGroupStatusSnapshotDTO : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// The id of the remote process group.. + /// The id of the parent process group the remote process group resides in.. + /// The name of the remote process group.. + /// The URI of the target system.. + /// The transmission status of the remote process group.. + /// The number of active threads for the remote process group.. + /// The number of FlowFiles sent to the remote process group in the last 5 minutes.. + /// The size of the FlowFiles sent to the remote process group in the last 5 minutes.. + /// The count/size of the flowfiles sent to the remote process group in the last 5 minutes.. + /// The number of FlowFiles received from the remote process group in the last 5 minutes.. + /// The size of the FlowFiles received from the remote process group in the last 5 minutes.. + /// The count/size of the flowfiles received from the remote process group in the last 5 minutes.. + public RemoteProcessGroupStatusSnapshotDTO(string id = default(string), string groupId = default(string), string name = default(string), string targetUri = default(string), string transmissionStatus = default(string), int? activeThreadCount = default(int?), int? flowFilesSent = default(int?), long? bytesSent = default(long?), string sent = default(string), int? flowFilesReceived = default(int?), long? bytesReceived = default(long?), string received = default(string)) + { + this.Id = id; + this.GroupId = groupId; + this.Name = name; + this.TargetUri = targetUri; + this.TransmissionStatus = transmissionStatus; + this.ActiveThreadCount = activeThreadCount; + this.FlowFilesSent = flowFilesSent; + this.BytesSent = bytesSent; + this.Sent = sent; + this.FlowFilesReceived = flowFilesReceived; + this.BytesReceived = bytesReceived; + this.Received = received; + } + + /// + /// The id of the remote process group. + /// + /// The id of the remote process group. + [DataMember(Name="id", EmitDefaultValue=false)] + public string Id { get; set; } + + /// + /// The id of the parent process group the remote process group resides in. + /// + /// The id of the parent process group the remote process group resides in. + [DataMember(Name="groupId", EmitDefaultValue=false)] + public string GroupId { get; set; } + + /// + /// The name of the remote process group. + /// + /// The name of the remote process group. + [DataMember(Name="name", EmitDefaultValue=false)] + public string Name { get; set; } + + /// + /// The URI of the target system. + /// + /// The URI of the target system. + [DataMember(Name="targetUri", EmitDefaultValue=false)] + public string TargetUri { get; set; } + + /// + /// The transmission status of the remote process group. + /// + /// The transmission status of the remote process group. + [DataMember(Name="transmissionStatus", EmitDefaultValue=false)] + public string TransmissionStatus { get; set; } + + /// + /// The number of active threads for the remote process group. + /// + /// The number of active threads for the remote process group. + [DataMember(Name="activeThreadCount", EmitDefaultValue=false)] + public int? ActiveThreadCount { get; set; } + + /// + /// The number of FlowFiles sent to the remote process group in the last 5 minutes. + /// + /// The number of FlowFiles sent to the remote process group in the last 5 minutes. + [DataMember(Name="flowFilesSent", EmitDefaultValue=false)] + public int? FlowFilesSent { get; set; } + + /// + /// The size of the FlowFiles sent to the remote process group in the last 5 minutes. + /// + /// The size of the FlowFiles sent to the remote process group in the last 5 minutes. + [DataMember(Name="bytesSent", EmitDefaultValue=false)] + public long? BytesSent { get; set; } + + /// + /// The count/size of the flowfiles sent to the remote process group in the last 5 minutes. + /// + /// The count/size of the flowfiles sent to the remote process group in the last 5 minutes. + [DataMember(Name="sent", EmitDefaultValue=false)] + public string Sent { get; set; } + + /// + /// The number of FlowFiles received from the remote process group in the last 5 minutes. + /// + /// The number of FlowFiles received from the remote process group in the last 5 minutes. + [DataMember(Name="flowFilesReceived", EmitDefaultValue=false)] + public int? FlowFilesReceived { get; set; } + + /// + /// The size of the FlowFiles received from the remote process group in the last 5 minutes. + /// + /// The size of the FlowFiles received from the remote process group in the last 5 minutes. + [DataMember(Name="bytesReceived", EmitDefaultValue=false)] + public long? BytesReceived { get; set; } + + /// + /// The count/size of the flowfiles received from the remote process group in the last 5 minutes. + /// + /// The count/size of the flowfiles received from the remote process group in the last 5 minutes. + [DataMember(Name="received", EmitDefaultValue=false)] + public string Received { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class RemoteProcessGroupStatusSnapshotDTO {\n"); + sb.Append(" Id: ").Append(this.Id).Append("\n"); + sb.Append(" GroupId: ").Append(this.GroupId).Append("\n"); + sb.Append(" Name: ").Append(this.Name).Append("\n"); + sb.Append(" TargetUri: ").Append(this.TargetUri).Append("\n"); + sb.Append(" TransmissionStatus: ").Append(this.TransmissionStatus).Append("\n"); + sb.Append(" ActiveThreadCount: ").Append(this.ActiveThreadCount).Append("\n"); + sb.Append(" FlowFilesSent: ").Append(this.FlowFilesSent).Append("\n"); + sb.Append(" BytesSent: ").Append(this.BytesSent).Append("\n"); + sb.Append(" Sent: ").Append(this.Sent).Append("\n"); + sb.Append(" FlowFilesReceived: ").Append(this.FlowFilesReceived).Append("\n"); + sb.Append(" BytesReceived: ").Append(this.BytesReceived).Append("\n"); + sb.Append(" Received: ").Append(this.Received).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as RemoteProcessGroupStatusSnapshotDTO); + } + + /// + /// Returns true if RemoteProcessGroupStatusSnapshotDTO instances are equal + /// + /// Instance of RemoteProcessGroupStatusSnapshotDTO to be compared + /// Boolean + public bool Equals(RemoteProcessGroupStatusSnapshotDTO input) + { + if (input == null) + return false; + + return + ( + this.Id == input.Id || + (this.Id != null && + this.Id.Equals(input.Id)) + ) && + ( + this.GroupId == input.GroupId || + (this.GroupId != null && + this.GroupId.Equals(input.GroupId)) + ) && + ( + this.Name == input.Name || + (this.Name != null && + this.Name.Equals(input.Name)) + ) && + ( + this.TargetUri == input.TargetUri || + (this.TargetUri != null && + this.TargetUri.Equals(input.TargetUri)) + ) && + ( + this.TransmissionStatus == input.TransmissionStatus || + (this.TransmissionStatus != null && + this.TransmissionStatus.Equals(input.TransmissionStatus)) + ) && + ( + this.ActiveThreadCount == input.ActiveThreadCount || + (this.ActiveThreadCount != null && + this.ActiveThreadCount.Equals(input.ActiveThreadCount)) + ) && + ( + this.FlowFilesSent == input.FlowFilesSent || + (this.FlowFilesSent != null && + this.FlowFilesSent.Equals(input.FlowFilesSent)) + ) && + ( + this.BytesSent == input.BytesSent || + (this.BytesSent != null && + this.BytesSent.Equals(input.BytesSent)) + ) && + ( + this.Sent == input.Sent || + (this.Sent != null && + this.Sent.Equals(input.Sent)) + ) && + ( + this.FlowFilesReceived == input.FlowFilesReceived || + (this.FlowFilesReceived != null && + this.FlowFilesReceived.Equals(input.FlowFilesReceived)) + ) && + ( + this.BytesReceived == input.BytesReceived || + (this.BytesReceived != null && + this.BytesReceived.Equals(input.BytesReceived)) + ) && + ( + this.Received == input.Received || + (this.Received != null && + this.Received.Equals(input.Received)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Id != null) + hashCode = hashCode * 59 + this.Id.GetHashCode(); + if (this.GroupId != null) + hashCode = hashCode * 59 + this.GroupId.GetHashCode(); + if (this.Name != null) + hashCode = hashCode * 59 + this.Name.GetHashCode(); + if (this.TargetUri != null) + hashCode = hashCode * 59 + this.TargetUri.GetHashCode(); + if (this.TransmissionStatus != null) + hashCode = hashCode * 59 + this.TransmissionStatus.GetHashCode(); + if (this.ActiveThreadCount != null) + hashCode = hashCode * 59 + this.ActiveThreadCount.GetHashCode(); + if (this.FlowFilesSent != null) + hashCode = hashCode * 59 + this.FlowFilesSent.GetHashCode(); + if (this.BytesSent != null) + hashCode = hashCode * 59 + this.BytesSent.GetHashCode(); + if (this.Sent != null) + hashCode = hashCode * 59 + this.Sent.GetHashCode(); + if (this.FlowFilesReceived != null) + hashCode = hashCode * 59 + this.FlowFilesReceived.GetHashCode(); + if (this.BytesReceived != null) + hashCode = hashCode * 59 + this.BytesReceived.GetHashCode(); + if (this.Received != null) + hashCode = hashCode * 59 + this.Received.GetHashCode(); + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/NiFi.Swagger/Model/RemoteProcessGroupStatusSnapshotEntity.cs b/NiFi.Swagger/Model/RemoteProcessGroupStatusSnapshotEntity.cs new file mode 100644 index 0000000..c8d8001 --- /dev/null +++ b/NiFi.Swagger/Model/RemoteProcessGroupStatusSnapshotEntity.cs @@ -0,0 +1,150 @@ +/* + * NiFi Rest Api + * + * The Rest Api provides programmatic access to command and control a NiFi instance in real time. Start and stop processors, monitor queues, query provenance data, and more. Each endpoint below includes a description, definitions of the expected input and output, potential response codes, and the authorizations required to invoke each service. + * + * OpenAPI spec version: 1.9.1 + * Contact: dev@nifi.apache.org + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +namespace NiFi.Swagger.Model +{ + using System; + using System.Collections.Generic; + using System.ComponentModel.DataAnnotations; + using System.Runtime.Serialization; + using System.Text; + + using Newtonsoft.Json; + + /// + /// RemoteProcessGroupStatusSnapshotEntity + /// + [DataContract] + public partial class RemoteProcessGroupStatusSnapshotEntity : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// The id of the remote process group.. + /// remoteProcessGroupStatusSnapshot. + public RemoteProcessGroupStatusSnapshotEntity(string id = default(string), RemoteProcessGroupStatusSnapshotDTO remoteProcessGroupStatusSnapshot = default(RemoteProcessGroupStatusSnapshotDTO)) + { + this.Id = id; + this.RemoteProcessGroupStatusSnapshot = remoteProcessGroupStatusSnapshot; + } + + /// + /// The id of the remote process group. + /// + /// The id of the remote process group. + [DataMember(Name="id", EmitDefaultValue=false)] + public string Id { get; set; } + + /// + /// Gets or Sets RemoteProcessGroupStatusSnapshot + /// + [DataMember(Name="remoteProcessGroupStatusSnapshot", EmitDefaultValue=false)] + public RemoteProcessGroupStatusSnapshotDTO RemoteProcessGroupStatusSnapshot { get; set; } + + /// + /// Indicates whether the user can read a given resource. + /// + /// Indicates whether the user can read a given resource. + [DataMember(Name="canRead", EmitDefaultValue=false)] + public bool? CanRead { get; private set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class RemoteProcessGroupStatusSnapshotEntity {\n"); + sb.Append(" Id: ").Append(this.Id).Append("\n"); + sb.Append(" RemoteProcessGroupStatusSnapshot: ").Append(this.RemoteProcessGroupStatusSnapshot).Append("\n"); + sb.Append(" CanRead: ").Append(this.CanRead).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as RemoteProcessGroupStatusSnapshotEntity); + } + + /// + /// Returns true if RemoteProcessGroupStatusSnapshotEntity instances are equal + /// + /// Instance of RemoteProcessGroupStatusSnapshotEntity to be compared + /// Boolean + public bool Equals(RemoteProcessGroupStatusSnapshotEntity input) + { + if (input == null) + return false; + + return + ( + this.Id == input.Id || + (this.Id != null && + this.Id.Equals(input.Id)) + ) && + ( + this.RemoteProcessGroupStatusSnapshot == input.RemoteProcessGroupStatusSnapshot || + (this.RemoteProcessGroupStatusSnapshot != null && + this.RemoteProcessGroupStatusSnapshot.Equals(input.RemoteProcessGroupStatusSnapshot)) + ) && + ( + this.CanRead == input.CanRead || + (this.CanRead != null && + this.CanRead.Equals(input.CanRead)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Id != null) + hashCode = hashCode * 59 + this.Id.GetHashCode(); + if (this.RemoteProcessGroupStatusSnapshot != null) + hashCode = hashCode * 59 + this.RemoteProcessGroupStatusSnapshot.GetHashCode(); + if (this.CanRead != null) + hashCode = hashCode * 59 + this.CanRead.GetHashCode(); + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/NiFi.Swagger/Model/RemoteProcessGroupsEntity.cs b/NiFi.Swagger/Model/RemoteProcessGroupsEntity.cs new file mode 100644 index 0000000..95acb1b --- /dev/null +++ b/NiFi.Swagger/Model/RemoteProcessGroupsEntity.cs @@ -0,0 +1,119 @@ +/* + * NiFi Rest Api + * + * The Rest Api provides programmatic access to command and control a NiFi instance in real time. Start and stop processors, monitor queues, query provenance data, and more. Each endpoint below includes a description, definitions of the expected input and output, potential response codes, and the authorizations required to invoke each service. + * + * OpenAPI spec version: 1.9.1 + * Contact: dev@nifi.apache.org + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +namespace NiFi.Swagger.Model +{ + using System; + using System.Collections.Generic; + using System.ComponentModel.DataAnnotations; + using System.Linq; + using System.Runtime.Serialization; + using System.Text; + + using Newtonsoft.Json; + + /// + /// RemoteProcessGroupsEntity + /// + [DataContract] + public partial class RemoteProcessGroupsEntity : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// remoteProcessGroups. + public RemoteProcessGroupsEntity(List remoteProcessGroups = default(List)) + { + this.RemoteProcessGroups = remoteProcessGroups; + } + + /// + /// Gets or Sets RemoteProcessGroups + /// + [DataMember(Name="remoteProcessGroups", EmitDefaultValue=false)] + public List RemoteProcessGroups { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class RemoteProcessGroupsEntity {\n"); + sb.Append(" RemoteProcessGroups: ").Append(this.RemoteProcessGroups).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as RemoteProcessGroupsEntity); + } + + /// + /// Returns true if RemoteProcessGroupsEntity instances are equal + /// + /// Instance of RemoteProcessGroupsEntity to be compared + /// Boolean + public bool Equals(RemoteProcessGroupsEntity input) + { + if (input == null) + return false; + + return + ( + this.RemoteProcessGroups == input.RemoteProcessGroups || + this.RemoteProcessGroups != null && + this.RemoteProcessGroups.SequenceEqual(input.RemoteProcessGroups) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.RemoteProcessGroups != null) + hashCode = hashCode * 59 + this.RemoteProcessGroups.GetHashCode(); + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/NiFi.Swagger/Model/ReportingTaskDTO.cs b/NiFi.Swagger/Model/ReportingTaskDTO.cs new file mode 100644 index 0000000..110925a --- /dev/null +++ b/NiFi.Swagger/Model/ReportingTaskDTO.cs @@ -0,0 +1,564 @@ +/* + * NiFi Rest Api + * + * The Rest Api provides programmatic access to command and control a NiFi instance in real time. Start and stop processors, monitor queues, query provenance data, and more. Each endpoint below includes a description, definitions of the expected input and output, potential response codes, and the authorizations required to invoke each service. + * + * OpenAPI spec version: 1.9.1 + * Contact: dev@nifi.apache.org + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +namespace NiFi.Swagger.Model +{ + using System; + using System.Collections.Generic; + using System.ComponentModel.DataAnnotations; + using System.Linq; + using System.Runtime.Serialization; + using System.Text; + + using Newtonsoft.Json; + using Newtonsoft.Json.Converters; + + /// + /// ReportingTaskDTO + /// + [DataContract] + public partial class ReportingTaskDTO : IEquatable, IValidatableObject + { + /// + /// The state of the reporting task. + /// + /// The state of the reporting task. + [JsonConverter(typeof(StringEnumConverter))] + public enum StateEnum + { + + /// + /// Enum RUNNING for value: RUNNING + /// + [EnumMember(Value = "RUNNING")] + RUNNING = 1, + + /// + /// Enum STOPPED for value: STOPPED + /// + [EnumMember(Value = "STOPPED")] + STOPPED = 2, + + /// + /// Enum DISABLED for value: DISABLED + /// + [EnumMember(Value = "DISABLED")] + DISABLED = 3 + } + + /// + /// The state of the reporting task. + /// + /// The state of the reporting task. + [DataMember(Name="state", EmitDefaultValue=false)] + public StateEnum? State { get; set; } + /// + /// Indicates whether the Processor is valid, invalid, or still in the process of validating (i.e., it is unknown whether or not the Processor is valid) + /// + /// Indicates whether the Processor is valid, invalid, or still in the process of validating (i.e., it is unknown whether or not the Processor is valid) + [JsonConverter(typeof(StringEnumConverter))] + public enum ValidationStatusEnum + { + + /// + /// Enum VALID for value: VALID + /// + [EnumMember(Value = "VALID")] + VALID = 1, + + /// + /// Enum INVALID for value: INVALID + /// + [EnumMember(Value = "INVALID")] + INVALID = 2, + + /// + /// Enum VALIDATING for value: VALIDATING + /// + [EnumMember(Value = "VALIDATING")] + VALIDATING = 3 + } + + /// + /// Indicates whether the Processor is valid, invalid, or still in the process of validating (i.e., it is unknown whether or not the Processor is valid) + /// + /// Indicates whether the Processor is valid, invalid, or still in the process of validating (i.e., it is unknown whether or not the Processor is valid) + [DataMember(Name="validationStatus", EmitDefaultValue=false)] + public ValidationStatusEnum? ValidationStatus { get; set; } + /// + /// Initializes a new instance of the class. + /// + /// The id of the component.. + /// The ID of the corresponding component that is under version control. + /// The id of parent process group of this component if applicable.. + /// The position of this component in the UI if applicable.. + /// The name of the reporting task.. + /// The fully qualified type of the reporting task.. + /// The details of the artifact that bundled this processor type.. + /// The state of the reporting task.. + /// The comments of the reporting task.. + /// Whether the reporting task persists state.. + /// Whether the reporting task requires elevated privileges.. + /// Whether the reporting task has been deprecated.. + /// Whether the reporting task has multiple versions available.. + /// The frequency with which to schedule the reporting task. The format of the value willd epend on the valud of the schedulingStrategy.. + /// The scheduling strategy that determines how the schedulingPeriod value should be interpreted.. + /// The default scheduling period for the different scheduling strategies.. + /// The properties of the reporting task.. + /// The descriptors for the reporting tasks properties.. + /// The URL for the custom configuration UI for the reporting task.. + /// The annotation data for the repoting task. This is how the custom UI relays configuration to the reporting task.. + /// Gets the validation errors from the reporting task. These validation errors represent the problems with the reporting task that must be resolved before it can be scheduled to run.. + /// The number of active threads for the reporting task.. + /// Whether the underlying extension is missing.. + public ReportingTaskDTO(string id = default(string), string versionedComponentId = default(string), string parentGroupId = default(string), PositionDTO position = default(PositionDTO), string name = default(string), string type = default(string), BundleDTO bundle = default(BundleDTO), StateEnum? state = default(StateEnum?), string comments = default(string), bool? persistsState = default(bool?), bool? restricted = default(bool?), bool? deprecated = default(bool?), bool? multipleVersionsAvailable = default(bool?), string schedulingPeriod = default(string), string schedulingStrategy = default(string), Dictionary defaultSchedulingPeriod = default(Dictionary), Dictionary properties = default(Dictionary), Dictionary descriptors = default(Dictionary), string customUiUrl = default(string), string annotationData = default(string), List validationErrors = default(List), int? activeThreadCount = default(int?), bool? extensionMissing = default(bool?)) + { + this.Id = id; + this.VersionedComponentId = versionedComponentId; + this.ParentGroupId = parentGroupId; + this.Position = position; + this.Name = name; + this.Type = type; + this.Bundle = bundle; + this.State = state; + this.Comments = comments; + this.PersistsState = persistsState; + this.Restricted = restricted; + this.Deprecated = deprecated; + this.MultipleVersionsAvailable = multipleVersionsAvailable; + this.SchedulingPeriod = schedulingPeriod; + this.SchedulingStrategy = schedulingStrategy; + this.DefaultSchedulingPeriod = defaultSchedulingPeriod; + this.Properties = properties; + this.Descriptors = descriptors; + this.CustomUiUrl = customUiUrl; + this.AnnotationData = annotationData; + this.ValidationErrors = validationErrors; + this.ActiveThreadCount = activeThreadCount; + this.ExtensionMissing = extensionMissing; + } + + /// + /// The id of the component. + /// + /// The id of the component. + [DataMember(Name="id", EmitDefaultValue=false)] + public string Id { get; set; } + + /// + /// The ID of the corresponding component that is under version control + /// + /// The ID of the corresponding component that is under version control + [DataMember(Name="versionedComponentId", EmitDefaultValue=false)] + public string VersionedComponentId { get; set; } + + /// + /// The id of parent process group of this component if applicable. + /// + /// The id of parent process group of this component if applicable. + [DataMember(Name="parentGroupId", EmitDefaultValue=false)] + public string ParentGroupId { get; set; } + + /// + /// The position of this component in the UI if applicable. + /// + /// The position of this component in the UI if applicable. + [DataMember(Name="position", EmitDefaultValue=false)] + public PositionDTO Position { get; set; } + + /// + /// The name of the reporting task. + /// + /// The name of the reporting task. + [DataMember(Name="name", EmitDefaultValue=false)] + public string Name { get; set; } + + /// + /// The fully qualified type of the reporting task. + /// + /// The fully qualified type of the reporting task. + [DataMember(Name="type", EmitDefaultValue=false)] + public string Type { get; set; } + + /// + /// The details of the artifact that bundled this processor type. + /// + /// The details of the artifact that bundled this processor type. + [DataMember(Name="bundle", EmitDefaultValue=false)] + public BundleDTO Bundle { get; set; } + + + /// + /// The comments of the reporting task. + /// + /// The comments of the reporting task. + [DataMember(Name="comments", EmitDefaultValue=false)] + public string Comments { get; set; } + + /// + /// Whether the reporting task persists state. + /// + /// Whether the reporting task persists state. + [DataMember(Name="persistsState", EmitDefaultValue=false)] + public bool? PersistsState { get; set; } + + /// + /// Whether the reporting task requires elevated privileges. + /// + /// Whether the reporting task requires elevated privileges. + [DataMember(Name="restricted", EmitDefaultValue=false)] + public bool? Restricted { get; set; } + + /// + /// Whether the reporting task has been deprecated. + /// + /// Whether the reporting task has been deprecated. + [DataMember(Name="deprecated", EmitDefaultValue=false)] + public bool? Deprecated { get; set; } + + /// + /// Whether the reporting task has multiple versions available. + /// + /// Whether the reporting task has multiple versions available. + [DataMember(Name="multipleVersionsAvailable", EmitDefaultValue=false)] + public bool? MultipleVersionsAvailable { get; set; } + + /// + /// The frequency with which to schedule the reporting task. The format of the value willd epend on the valud of the schedulingStrategy. + /// + /// The frequency with which to schedule the reporting task. The format of the value willd epend on the valud of the schedulingStrategy. + [DataMember(Name="schedulingPeriod", EmitDefaultValue=false)] + public string SchedulingPeriod { get; set; } + + /// + /// The scheduling strategy that determines how the schedulingPeriod value should be interpreted. + /// + /// The scheduling strategy that determines how the schedulingPeriod value should be interpreted. + [DataMember(Name="schedulingStrategy", EmitDefaultValue=false)] + public string SchedulingStrategy { get; set; } + + /// + /// The default scheduling period for the different scheduling strategies. + /// + /// The default scheduling period for the different scheduling strategies. + [DataMember(Name="defaultSchedulingPeriod", EmitDefaultValue=false)] + public Dictionary DefaultSchedulingPeriod { get; set; } + + /// + /// The properties of the reporting task. + /// + /// The properties of the reporting task. + [DataMember(Name="properties", EmitDefaultValue=false)] + public Dictionary Properties { get; set; } + + /// + /// The descriptors for the reporting tasks properties. + /// + /// The descriptors for the reporting tasks properties. + [DataMember(Name="descriptors", EmitDefaultValue=false)] + public Dictionary Descriptors { get; set; } + + /// + /// The URL for the custom configuration UI for the reporting task. + /// + /// The URL for the custom configuration UI for the reporting task. + [DataMember(Name="customUiUrl", EmitDefaultValue=false)] + public string CustomUiUrl { get; set; } + + /// + /// The annotation data for the repoting task. This is how the custom UI relays configuration to the reporting task. + /// + /// The annotation data for the repoting task. This is how the custom UI relays configuration to the reporting task. + [DataMember(Name="annotationData", EmitDefaultValue=false)] + public string AnnotationData { get; set; } + + /// + /// Gets the validation errors from the reporting task. These validation errors represent the problems with the reporting task that must be resolved before it can be scheduled to run. + /// + /// Gets the validation errors from the reporting task. These validation errors represent the problems with the reporting task that must be resolved before it can be scheduled to run. + [DataMember(Name="validationErrors", EmitDefaultValue=false)] + public List ValidationErrors { get; set; } + + + /// + /// The number of active threads for the reporting task. + /// + /// The number of active threads for the reporting task. + [DataMember(Name="activeThreadCount", EmitDefaultValue=false)] + public int? ActiveThreadCount { get; set; } + + /// + /// Whether the underlying extension is missing. + /// + /// Whether the underlying extension is missing. + [DataMember(Name="extensionMissing", EmitDefaultValue=false)] + public bool? ExtensionMissing { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class ReportingTaskDTO {\n"); + sb.Append(" Id: ").Append(this.Id).Append("\n"); + sb.Append(" VersionedComponentId: ").Append(this.VersionedComponentId).Append("\n"); + sb.Append(" ParentGroupId: ").Append(this.ParentGroupId).Append("\n"); + sb.Append(" Position: ").Append(this.Position).Append("\n"); + sb.Append(" Name: ").Append(this.Name).Append("\n"); + sb.Append(" Type: ").Append(this.Type).Append("\n"); + sb.Append(" Bundle: ").Append(this.Bundle).Append("\n"); + sb.Append(" State: ").Append(this.State).Append("\n"); + sb.Append(" Comments: ").Append(this.Comments).Append("\n"); + sb.Append(" PersistsState: ").Append(this.PersistsState).Append("\n"); + sb.Append(" Restricted: ").Append(this.Restricted).Append("\n"); + sb.Append(" Deprecated: ").Append(this.Deprecated).Append("\n"); + sb.Append(" MultipleVersionsAvailable: ").Append(this.MultipleVersionsAvailable).Append("\n"); + sb.Append(" SchedulingPeriod: ").Append(this.SchedulingPeriod).Append("\n"); + sb.Append(" SchedulingStrategy: ").Append(this.SchedulingStrategy).Append("\n"); + sb.Append(" DefaultSchedulingPeriod: ").Append(this.DefaultSchedulingPeriod).Append("\n"); + sb.Append(" Properties: ").Append(this.Properties).Append("\n"); + sb.Append(" Descriptors: ").Append(this.Descriptors).Append("\n"); + sb.Append(" CustomUiUrl: ").Append(this.CustomUiUrl).Append("\n"); + sb.Append(" AnnotationData: ").Append(this.AnnotationData).Append("\n"); + sb.Append(" ValidationErrors: ").Append(this.ValidationErrors).Append("\n"); + sb.Append(" ValidationStatus: ").Append(this.ValidationStatus).Append("\n"); + sb.Append(" ActiveThreadCount: ").Append(this.ActiveThreadCount).Append("\n"); + sb.Append(" ExtensionMissing: ").Append(this.ExtensionMissing).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as ReportingTaskDTO); + } + + /// + /// Returns true if ReportingTaskDTO instances are equal + /// + /// Instance of ReportingTaskDTO to be compared + /// Boolean + public bool Equals(ReportingTaskDTO input) + { + if (input == null) + return false; + + return + ( + this.Id == input.Id || + (this.Id != null && + this.Id.Equals(input.Id)) + ) && + ( + this.VersionedComponentId == input.VersionedComponentId || + (this.VersionedComponentId != null && + this.VersionedComponentId.Equals(input.VersionedComponentId)) + ) && + ( + this.ParentGroupId == input.ParentGroupId || + (this.ParentGroupId != null && + this.ParentGroupId.Equals(input.ParentGroupId)) + ) && + ( + this.Position == input.Position || + (this.Position != null && + this.Position.Equals(input.Position)) + ) && + ( + this.Name == input.Name || + (this.Name != null && + this.Name.Equals(input.Name)) + ) && + ( + this.Type == input.Type || + (this.Type != null && + this.Type.Equals(input.Type)) + ) && + ( + this.Bundle == input.Bundle || + (this.Bundle != null && + this.Bundle.Equals(input.Bundle)) + ) && + ( + this.State == input.State || + (this.State != null && + this.State.Equals(input.State)) + ) && + ( + this.Comments == input.Comments || + (this.Comments != null && + this.Comments.Equals(input.Comments)) + ) && + ( + this.PersistsState == input.PersistsState || + (this.PersistsState != null && + this.PersistsState.Equals(input.PersistsState)) + ) && + ( + this.Restricted == input.Restricted || + (this.Restricted != null && + this.Restricted.Equals(input.Restricted)) + ) && + ( + this.Deprecated == input.Deprecated || + (this.Deprecated != null && + this.Deprecated.Equals(input.Deprecated)) + ) && + ( + this.MultipleVersionsAvailable == input.MultipleVersionsAvailable || + (this.MultipleVersionsAvailable != null && + this.MultipleVersionsAvailable.Equals(input.MultipleVersionsAvailable)) + ) && + ( + this.SchedulingPeriod == input.SchedulingPeriod || + (this.SchedulingPeriod != null && + this.SchedulingPeriod.Equals(input.SchedulingPeriod)) + ) && + ( + this.SchedulingStrategy == input.SchedulingStrategy || + (this.SchedulingStrategy != null && + this.SchedulingStrategy.Equals(input.SchedulingStrategy)) + ) && + ( + this.DefaultSchedulingPeriod == input.DefaultSchedulingPeriod || + this.DefaultSchedulingPeriod != null && + this.DefaultSchedulingPeriod.SequenceEqual(input.DefaultSchedulingPeriod) + ) && + ( + this.Properties == input.Properties || + this.Properties != null && + this.Properties.SequenceEqual(input.Properties) + ) && + ( + this.Descriptors == input.Descriptors || + this.Descriptors != null && + this.Descriptors.SequenceEqual(input.Descriptors) + ) && + ( + this.CustomUiUrl == input.CustomUiUrl || + (this.CustomUiUrl != null && + this.CustomUiUrl.Equals(input.CustomUiUrl)) + ) && + ( + this.AnnotationData == input.AnnotationData || + (this.AnnotationData != null && + this.AnnotationData.Equals(input.AnnotationData)) + ) && + ( + this.ValidationErrors == input.ValidationErrors || + this.ValidationErrors != null && + this.ValidationErrors.SequenceEqual(input.ValidationErrors) + ) && + ( + this.ValidationStatus == input.ValidationStatus || + (this.ValidationStatus != null && + this.ValidationStatus.Equals(input.ValidationStatus)) + ) && + ( + this.ActiveThreadCount == input.ActiveThreadCount || + (this.ActiveThreadCount != null && + this.ActiveThreadCount.Equals(input.ActiveThreadCount)) + ) && + ( + this.ExtensionMissing == input.ExtensionMissing || + (this.ExtensionMissing != null && + this.ExtensionMissing.Equals(input.ExtensionMissing)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Id != null) + hashCode = hashCode * 59 + this.Id.GetHashCode(); + if (this.VersionedComponentId != null) + hashCode = hashCode * 59 + this.VersionedComponentId.GetHashCode(); + if (this.ParentGroupId != null) + hashCode = hashCode * 59 + this.ParentGroupId.GetHashCode(); + if (this.Position != null) + hashCode = hashCode * 59 + this.Position.GetHashCode(); + if (this.Name != null) + hashCode = hashCode * 59 + this.Name.GetHashCode(); + if (this.Type != null) + hashCode = hashCode * 59 + this.Type.GetHashCode(); + if (this.Bundle != null) + hashCode = hashCode * 59 + this.Bundle.GetHashCode(); + if (this.State != null) + hashCode = hashCode * 59 + this.State.GetHashCode(); + if (this.Comments != null) + hashCode = hashCode * 59 + this.Comments.GetHashCode(); + if (this.PersistsState != null) + hashCode = hashCode * 59 + this.PersistsState.GetHashCode(); + if (this.Restricted != null) + hashCode = hashCode * 59 + this.Restricted.GetHashCode(); + if (this.Deprecated != null) + hashCode = hashCode * 59 + this.Deprecated.GetHashCode(); + if (this.MultipleVersionsAvailable != null) + hashCode = hashCode * 59 + this.MultipleVersionsAvailable.GetHashCode(); + if (this.SchedulingPeriod != null) + hashCode = hashCode * 59 + this.SchedulingPeriod.GetHashCode(); + if (this.SchedulingStrategy != null) + hashCode = hashCode * 59 + this.SchedulingStrategy.GetHashCode(); + if (this.DefaultSchedulingPeriod != null) + hashCode = hashCode * 59 + this.DefaultSchedulingPeriod.GetHashCode(); + if (this.Properties != null) + hashCode = hashCode * 59 + this.Properties.GetHashCode(); + if (this.Descriptors != null) + hashCode = hashCode * 59 + this.Descriptors.GetHashCode(); + if (this.CustomUiUrl != null) + hashCode = hashCode * 59 + this.CustomUiUrl.GetHashCode(); + if (this.AnnotationData != null) + hashCode = hashCode * 59 + this.AnnotationData.GetHashCode(); + if (this.ValidationErrors != null) + hashCode = hashCode * 59 + this.ValidationErrors.GetHashCode(); + if (this.ValidationStatus != null) + hashCode = hashCode * 59 + this.ValidationStatus.GetHashCode(); + if (this.ActiveThreadCount != null) + hashCode = hashCode * 59 + this.ActiveThreadCount.GetHashCode(); + if (this.ExtensionMissing != null) + hashCode = hashCode * 59 + this.ExtensionMissing.GetHashCode(); + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/NiFi.Swagger/Model/ReportingTaskEntity.cs b/NiFi.Swagger/Model/ReportingTaskEntity.cs new file mode 100644 index 0000000..fe4b592 --- /dev/null +++ b/NiFi.Swagger/Model/ReportingTaskEntity.cs @@ -0,0 +1,270 @@ +/* + * NiFi Rest Api + * + * The Rest Api provides programmatic access to command and control a NiFi instance in real time. Start and stop processors, monitor queues, query provenance data, and more. Each endpoint below includes a description, definitions of the expected input and output, potential response codes, and the authorizations required to invoke each service. + * + * OpenAPI spec version: 1.9.1 + * Contact: dev@nifi.apache.org + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +namespace NiFi.Swagger.Model +{ + using System; + using System.Collections.Generic; + using System.ComponentModel.DataAnnotations; + using System.Linq; + using System.Runtime.Serialization; + using System.Text; + + using Newtonsoft.Json; + + /// + /// ReportingTaskEntity + /// + [DataContract] + public partial class ReportingTaskEntity : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// The revision for this request/response. The revision is required for any mutable flow requests and is included in all responses.. + /// The id of the component.. + /// The URI for futures requests to the component.. + /// The position of this component in the UI if applicable.. + /// The permissions for this component.. + /// The bulletins for this component.. + /// Acknowledges that this node is disconnected to allow for mutable requests to proceed.. + /// component. + /// The permissions for this component operations.. + public ReportingTaskEntity(RevisionDTO revision = default(RevisionDTO), string id = default(string), string uri = default(string), PositionDTO position = default(PositionDTO), PermissionsDTO permissions = default(PermissionsDTO), List bulletins = default(List), bool? disconnectedNodeAcknowledged = default(bool?), ReportingTaskDTO component = default(ReportingTaskDTO), PermissionsDTO operatePermissions = default(PermissionsDTO)) + { + this.Revision = revision; + this.Id = id; + this.Uri = uri; + this.Position = position; + this.Permissions = permissions; + this.Bulletins = bulletins; + this.DisconnectedNodeAcknowledged = disconnectedNodeAcknowledged; + this.Component = component; + this.OperatePermissions = operatePermissions; + } + + /// + /// The revision for this request/response. The revision is required for any mutable flow requests and is included in all responses. + /// + /// The revision for this request/response. The revision is required for any mutable flow requests and is included in all responses. + [DataMember(Name="revision", EmitDefaultValue=false)] + public RevisionDTO Revision { get; set; } + + /// + /// The id of the component. + /// + /// The id of the component. + [DataMember(Name="id", EmitDefaultValue=false)] + public string Id { get; set; } + + /// + /// The URI for futures requests to the component. + /// + /// The URI for futures requests to the component. + [DataMember(Name="uri", EmitDefaultValue=false)] + public string Uri { get; set; } + + /// + /// The position of this component in the UI if applicable. + /// + /// The position of this component in the UI if applicable. + [DataMember(Name="position", EmitDefaultValue=false)] + public PositionDTO Position { get; set; } + + /// + /// The permissions for this component. + /// + /// The permissions for this component. + [DataMember(Name="permissions", EmitDefaultValue=false)] + public PermissionsDTO Permissions { get; set; } + + /// + /// The bulletins for this component. + /// + /// The bulletins for this component. + [DataMember(Name="bulletins", EmitDefaultValue=false)] + public List Bulletins { get; set; } + + /// + /// Acknowledges that this node is disconnected to allow for mutable requests to proceed. + /// + /// Acknowledges that this node is disconnected to allow for mutable requests to proceed. + [DataMember(Name="disconnectedNodeAcknowledged", EmitDefaultValue=false)] + public bool? DisconnectedNodeAcknowledged { get; set; } + + /// + /// Gets or Sets Component + /// + [DataMember(Name="component", EmitDefaultValue=false)] + public ReportingTaskDTO Component { get; set; } + + /// + /// The permissions for this component operations. + /// + /// The permissions for this component operations. + [DataMember(Name="operatePermissions", EmitDefaultValue=false)] + public PermissionsDTO OperatePermissions { get; set; } + + /// + /// The status for this ReportingTask. + /// + /// The status for this ReportingTask. + [DataMember(Name="status", EmitDefaultValue=false)] + public ReportingTaskStatusDTO Status { get; private set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class ReportingTaskEntity {\n"); + sb.Append(" Revision: ").Append(this.Revision).Append("\n"); + sb.Append(" Id: ").Append(this.Id).Append("\n"); + sb.Append(" Uri: ").Append(this.Uri).Append("\n"); + sb.Append(" Position: ").Append(this.Position).Append("\n"); + sb.Append(" Permissions: ").Append(this.Permissions).Append("\n"); + sb.Append(" Bulletins: ").Append(this.Bulletins).Append("\n"); + sb.Append(" DisconnectedNodeAcknowledged: ").Append(this.DisconnectedNodeAcknowledged).Append("\n"); + sb.Append(" Component: ").Append(this.Component).Append("\n"); + sb.Append(" OperatePermissions: ").Append(this.OperatePermissions).Append("\n"); + sb.Append(" Status: ").Append(this.Status).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as ReportingTaskEntity); + } + + /// + /// Returns true if ReportingTaskEntity instances are equal + /// + /// Instance of ReportingTaskEntity to be compared + /// Boolean + public bool Equals(ReportingTaskEntity input) + { + if (input == null) + return false; + + return + ( + this.Revision == input.Revision || + (this.Revision != null && + this.Revision.Equals(input.Revision)) + ) && + ( + this.Id == input.Id || + (this.Id != null && + this.Id.Equals(input.Id)) + ) && + ( + this.Uri == input.Uri || + (this.Uri != null && + this.Uri.Equals(input.Uri)) + ) && + ( + this.Position == input.Position || + (this.Position != null && + this.Position.Equals(input.Position)) + ) && + ( + this.Permissions == input.Permissions || + (this.Permissions != null && + this.Permissions.Equals(input.Permissions)) + ) && + ( + this.Bulletins == input.Bulletins || + this.Bulletins != null && + this.Bulletins.SequenceEqual(input.Bulletins) + ) && + ( + this.DisconnectedNodeAcknowledged == input.DisconnectedNodeAcknowledged || + (this.DisconnectedNodeAcknowledged != null && + this.DisconnectedNodeAcknowledged.Equals(input.DisconnectedNodeAcknowledged)) + ) && + ( + this.Component == input.Component || + (this.Component != null && + this.Component.Equals(input.Component)) + ) && + ( + this.OperatePermissions == input.OperatePermissions || + (this.OperatePermissions != null && + this.OperatePermissions.Equals(input.OperatePermissions)) + ) && + ( + this.Status == input.Status || + (this.Status != null && + this.Status.Equals(input.Status)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Revision != null) + hashCode = hashCode * 59 + this.Revision.GetHashCode(); + if (this.Id != null) + hashCode = hashCode * 59 + this.Id.GetHashCode(); + if (this.Uri != null) + hashCode = hashCode * 59 + this.Uri.GetHashCode(); + if (this.Position != null) + hashCode = hashCode * 59 + this.Position.GetHashCode(); + if (this.Permissions != null) + hashCode = hashCode * 59 + this.Permissions.GetHashCode(); + if (this.Bulletins != null) + hashCode = hashCode * 59 + this.Bulletins.GetHashCode(); + if (this.DisconnectedNodeAcknowledged != null) + hashCode = hashCode * 59 + this.DisconnectedNodeAcknowledged.GetHashCode(); + if (this.Component != null) + hashCode = hashCode * 59 + this.Component.GetHashCode(); + if (this.OperatePermissions != null) + hashCode = hashCode * 59 + this.OperatePermissions.GetHashCode(); + if (this.Status != null) + hashCode = hashCode * 59 + this.Status.GetHashCode(); + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/NiFi.Swagger/Model/ReportingTaskRunStatusEntity.cs b/NiFi.Swagger/Model/ReportingTaskRunStatusEntity.cs new file mode 100644 index 0000000..b99c5dd --- /dev/null +++ b/NiFi.Swagger/Model/ReportingTaskRunStatusEntity.cs @@ -0,0 +1,175 @@ +/* + * NiFi Rest Api + * + * The Rest Api provides programmatic access to command and control a NiFi instance in real time. Start and stop processors, monitor queues, query provenance data, and more. Each endpoint below includes a description, definitions of the expected input and output, potential response codes, and the authorizations required to invoke each service. + * + * OpenAPI spec version: 1.9.1 + * Contact: dev@nifi.apache.org + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +namespace NiFi.Swagger.Model +{ + using System; + using System.Collections.Generic; + using System.ComponentModel.DataAnnotations; + using System.Runtime.Serialization; + using System.Text; + + using Newtonsoft.Json; + using Newtonsoft.Json.Converters; + + /// + /// ReportingTaskRunStatusEntity + /// + [DataContract] + public partial class ReportingTaskRunStatusEntity : IEquatable, IValidatableObject + { + /// + /// The run status of the ReportingTask. + /// + /// The run status of the ReportingTask. + [JsonConverter(typeof(StringEnumConverter))] + public enum StateEnum + { + + /// + /// Enum RUNNING for value: RUNNING + /// + [EnumMember(Value = "RUNNING")] + RUNNING = 1, + + /// + /// Enum STOPPED for value: STOPPED + /// + [EnumMember(Value = "STOPPED")] + STOPPED = 2 + } + + /// + /// The run status of the ReportingTask. + /// + /// The run status of the ReportingTask. + [DataMember(Name="state", EmitDefaultValue=false)] + public StateEnum? State { get; set; } + /// + /// Initializes a new instance of the class. + /// + /// The revision for this request/response. The revision is required for any mutable flow requests and is included in all responses.. + /// The run status of the ReportingTask.. + /// Acknowledges that this node is disconnected to allow for mutable requests to proceed.. + public ReportingTaskRunStatusEntity(RevisionDTO revision = default(RevisionDTO), StateEnum? state = default(StateEnum?), bool? disconnectedNodeAcknowledged = default(bool?)) + { + this.Revision = revision; + this.State = state; + this.DisconnectedNodeAcknowledged = disconnectedNodeAcknowledged; + } + + /// + /// The revision for this request/response. The revision is required for any mutable flow requests and is included in all responses. + /// + /// The revision for this request/response. The revision is required for any mutable flow requests and is included in all responses. + [DataMember(Name="revision", EmitDefaultValue=false)] + public RevisionDTO Revision { get; set; } + + + /// + /// Acknowledges that this node is disconnected to allow for mutable requests to proceed. + /// + /// Acknowledges that this node is disconnected to allow for mutable requests to proceed. + [DataMember(Name="disconnectedNodeAcknowledged", EmitDefaultValue=false)] + public bool? DisconnectedNodeAcknowledged { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class ReportingTaskRunStatusEntity {\n"); + sb.Append(" Revision: ").Append(this.Revision).Append("\n"); + sb.Append(" State: ").Append(this.State).Append("\n"); + sb.Append(" DisconnectedNodeAcknowledged: ").Append(this.DisconnectedNodeAcknowledged).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as ReportingTaskRunStatusEntity); + } + + /// + /// Returns true if ReportingTaskRunStatusEntity instances are equal + /// + /// Instance of ReportingTaskRunStatusEntity to be compared + /// Boolean + public bool Equals(ReportingTaskRunStatusEntity input) + { + if (input == null) + return false; + + return + ( + this.Revision == input.Revision || + (this.Revision != null && + this.Revision.Equals(input.Revision)) + ) && + ( + this.State == input.State || + (this.State != null && + this.State.Equals(input.State)) + ) && + ( + this.DisconnectedNodeAcknowledged == input.DisconnectedNodeAcknowledged || + (this.DisconnectedNodeAcknowledged != null && + this.DisconnectedNodeAcknowledged.Equals(input.DisconnectedNodeAcknowledged)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Revision != null) + hashCode = hashCode * 59 + this.Revision.GetHashCode(); + if (this.State != null) + hashCode = hashCode * 59 + this.State.GetHashCode(); + if (this.DisconnectedNodeAcknowledged != null) + hashCode = hashCode * 59 + this.DisconnectedNodeAcknowledged.GetHashCode(); + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/NiFi.Swagger/Model/ReportingTaskStatusDTO.cs b/NiFi.Swagger/Model/ReportingTaskStatusDTO.cs new file mode 100644 index 0000000..218898f --- /dev/null +++ b/NiFi.Swagger/Model/ReportingTaskStatusDTO.cs @@ -0,0 +1,204 @@ +/* + * NiFi Rest Api + * + * The Rest Api provides programmatic access to command and control a NiFi instance in real time. Start and stop processors, monitor queues, query provenance data, and more. Each endpoint below includes a description, definitions of the expected input and output, potential response codes, and the authorizations required to invoke each service. + * + * OpenAPI spec version: 1.9.1 + * Contact: dev@nifi.apache.org + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +namespace NiFi.Swagger.Model +{ + using System; + using System.Collections.Generic; + using System.ComponentModel.DataAnnotations; + using System.Runtime.Serialization; + using System.Text; + + using Newtonsoft.Json; + using Newtonsoft.Json.Converters; + + /// + /// ReportingTaskStatusDTO + /// + [DataContract] + public partial class ReportingTaskStatusDTO : IEquatable, IValidatableObject + { + /// + /// The run status of this ReportingTask + /// + /// The run status of this ReportingTask + [JsonConverter(typeof(StringEnumConverter))] + public enum RunStatusEnum + { + + /// + /// Enum RUNNING for value: RUNNING + /// + [EnumMember(Value = "RUNNING")] + RUNNING = 1, + + /// + /// Enum STOPPED for value: STOPPED + /// + [EnumMember(Value = "STOPPED")] + STOPPED = 2, + + /// + /// Enum DISABLED for value: DISABLED + /// + [EnumMember(Value = "DISABLED")] + DISABLED = 3 + } + + /// + /// The run status of this ReportingTask + /// + /// The run status of this ReportingTask + [DataMember(Name="runStatus", EmitDefaultValue=false)] + public RunStatusEnum? RunStatus { get; set; } + /// + /// Indicates whether the component is valid, invalid, or still in the process of validating (i.e., it is unknown whether or not the component is valid) + /// + /// Indicates whether the component is valid, invalid, or still in the process of validating (i.e., it is unknown whether or not the component is valid) + [JsonConverter(typeof(StringEnumConverter))] + public enum ValidationStatusEnum + { + + /// + /// Enum VALID for value: VALID + /// + [EnumMember(Value = "VALID")] + VALID = 1, + + /// + /// Enum INVALID for value: INVALID + /// + [EnumMember(Value = "INVALID")] + INVALID = 2, + + /// + /// Enum VALIDATING for value: VALIDATING + /// + [EnumMember(Value = "VALIDATING")] + VALIDATING = 3 + } + + /// + /// Indicates whether the component is valid, invalid, or still in the process of validating (i.e., it is unknown whether or not the component is valid) + /// + /// Indicates whether the component is valid, invalid, or still in the process of validating (i.e., it is unknown whether or not the component is valid) + [DataMember(Name="validationStatus", EmitDefaultValue=false)] + public ValidationStatusEnum? ValidationStatus { get; set; } + /// + /// Initializes a new instance of the class. + /// + /// The number of active threads for the component.. + public ReportingTaskStatusDTO(int? activeThreadCount = default(int?)) + { + this.ActiveThreadCount = activeThreadCount; + } + + + + /// + /// The number of active threads for the component. + /// + /// The number of active threads for the component. + [DataMember(Name="activeThreadCount", EmitDefaultValue=false)] + public int? ActiveThreadCount { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class ReportingTaskStatusDTO {\n"); + sb.Append(" RunStatus: ").Append(this.RunStatus).Append("\n"); + sb.Append(" ValidationStatus: ").Append(this.ValidationStatus).Append("\n"); + sb.Append(" ActiveThreadCount: ").Append(this.ActiveThreadCount).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as ReportingTaskStatusDTO); + } + + /// + /// Returns true if ReportingTaskStatusDTO instances are equal + /// + /// Instance of ReportingTaskStatusDTO to be compared + /// Boolean + public bool Equals(ReportingTaskStatusDTO input) + { + if (input == null) + return false; + + return + ( + this.RunStatus == input.RunStatus || + (this.RunStatus != null && + this.RunStatus.Equals(input.RunStatus)) + ) && + ( + this.ValidationStatus == input.ValidationStatus || + (this.ValidationStatus != null && + this.ValidationStatus.Equals(input.ValidationStatus)) + ) && + ( + this.ActiveThreadCount == input.ActiveThreadCount || + (this.ActiveThreadCount != null && + this.ActiveThreadCount.Equals(input.ActiveThreadCount)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.RunStatus != null) + hashCode = hashCode * 59 + this.RunStatus.GetHashCode(); + if (this.ValidationStatus != null) + hashCode = hashCode * 59 + this.ValidationStatus.GetHashCode(); + if (this.ActiveThreadCount != null) + hashCode = hashCode * 59 + this.ActiveThreadCount.GetHashCode(); + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/NiFi.Swagger/Model/ReportingTaskTypesEntity.cs b/NiFi.Swagger/Model/ReportingTaskTypesEntity.cs new file mode 100644 index 0000000..c5ba7c4 --- /dev/null +++ b/NiFi.Swagger/Model/ReportingTaskTypesEntity.cs @@ -0,0 +1,119 @@ +/* + * NiFi Rest Api + * + * The Rest Api provides programmatic access to command and control a NiFi instance in real time. Start and stop processors, monitor queues, query provenance data, and more. Each endpoint below includes a description, definitions of the expected input and output, potential response codes, and the authorizations required to invoke each service. + * + * OpenAPI spec version: 1.9.1 + * Contact: dev@nifi.apache.org + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +namespace NiFi.Swagger.Model +{ + using System; + using System.Collections.Generic; + using System.ComponentModel.DataAnnotations; + using System.Linq; + using System.Runtime.Serialization; + using System.Text; + + using Newtonsoft.Json; + + /// + /// ReportingTaskTypesEntity + /// + [DataContract] + public partial class ReportingTaskTypesEntity : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// reportingTaskTypes. + public ReportingTaskTypesEntity(List reportingTaskTypes = default(List)) + { + this.ReportingTaskTypes = reportingTaskTypes; + } + + /// + /// Gets or Sets ReportingTaskTypes + /// + [DataMember(Name="reportingTaskTypes", EmitDefaultValue=false)] + public List ReportingTaskTypes { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class ReportingTaskTypesEntity {\n"); + sb.Append(" ReportingTaskTypes: ").Append(this.ReportingTaskTypes).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as ReportingTaskTypesEntity); + } + + /// + /// Returns true if ReportingTaskTypesEntity instances are equal + /// + /// Instance of ReportingTaskTypesEntity to be compared + /// Boolean + public bool Equals(ReportingTaskTypesEntity input) + { + if (input == null) + return false; + + return + ( + this.ReportingTaskTypes == input.ReportingTaskTypes || + this.ReportingTaskTypes != null && + this.ReportingTaskTypes.SequenceEqual(input.ReportingTaskTypes) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.ReportingTaskTypes != null) + hashCode = hashCode * 59 + this.ReportingTaskTypes.GetHashCode(); + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/NiFi.Swagger/Model/ReportingTasksEntity.cs b/NiFi.Swagger/Model/ReportingTasksEntity.cs new file mode 100644 index 0000000..fdbcfeb --- /dev/null +++ b/NiFi.Swagger/Model/ReportingTasksEntity.cs @@ -0,0 +1,119 @@ +/* + * NiFi Rest Api + * + * The Rest Api provides programmatic access to command and control a NiFi instance in real time. Start and stop processors, monitor queues, query provenance data, and more. Each endpoint below includes a description, definitions of the expected input and output, potential response codes, and the authorizations required to invoke each service. + * + * OpenAPI spec version: 1.9.1 + * Contact: dev@nifi.apache.org + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +namespace NiFi.Swagger.Model +{ + using System; + using System.Collections.Generic; + using System.ComponentModel.DataAnnotations; + using System.Linq; + using System.Runtime.Serialization; + using System.Text; + + using Newtonsoft.Json; + + /// + /// ReportingTasksEntity + /// + [DataContract] + public partial class ReportingTasksEntity : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// reportingTasks. + public ReportingTasksEntity(List reportingTasks = default(List)) + { + this.ReportingTasks = reportingTasks; + } + + /// + /// Gets or Sets ReportingTasks + /// + [DataMember(Name="reportingTasks", EmitDefaultValue=false)] + public List ReportingTasks { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class ReportingTasksEntity {\n"); + sb.Append(" ReportingTasks: ").Append(this.ReportingTasks).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as ReportingTasksEntity); + } + + /// + /// Returns true if ReportingTasksEntity instances are equal + /// + /// Instance of ReportingTasksEntity to be compared + /// Boolean + public bool Equals(ReportingTasksEntity input) + { + if (input == null) + return false; + + return + ( + this.ReportingTasks == input.ReportingTasks || + this.ReportingTasks != null && + this.ReportingTasks.SequenceEqual(input.ReportingTasks) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.ReportingTasks != null) + hashCode = hashCode * 59 + this.ReportingTasks.GetHashCode(); + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/NiFi.Swagger/Model/RequiredPermissionDTO.cs b/NiFi.Swagger/Model/RequiredPermissionDTO.cs new file mode 100644 index 0000000..6d61435 --- /dev/null +++ b/NiFi.Swagger/Model/RequiredPermissionDTO.cs @@ -0,0 +1,136 @@ +/* + * NiFi Rest Api + * + * The Rest Api provides programmatic access to command and control a NiFi instance in real time. Start and stop processors, monitor queues, query provenance data, and more. Each endpoint below includes a description, definitions of the expected input and output, potential response codes, and the authorizations required to invoke each service. + * + * OpenAPI spec version: 1.9.1 + * Contact: dev@nifi.apache.org + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +namespace NiFi.Swagger.Model +{ + using System; + using System.Collections.Generic; + using System.ComponentModel.DataAnnotations; + using System.Runtime.Serialization; + using System.Text; + + using Newtonsoft.Json; + + /// + /// RequiredPermissionDTO + /// + [DataContract] + public partial class RequiredPermissionDTO : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// The required sub-permission necessary for this restriction.. + /// The label for the required sub-permission necessary for this restriction.. + public RequiredPermissionDTO(string id = default(string), string label = default(string)) + { + this.Id = id; + this.Label = label; + } + + /// + /// The required sub-permission necessary for this restriction. + /// + /// The required sub-permission necessary for this restriction. + [DataMember(Name="id", EmitDefaultValue=false)] + public string Id { get; set; } + + /// + /// The label for the required sub-permission necessary for this restriction. + /// + /// The label for the required sub-permission necessary for this restriction. + [DataMember(Name="label", EmitDefaultValue=false)] + public string Label { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class RequiredPermissionDTO {\n"); + sb.Append(" Id: ").Append(this.Id).Append("\n"); + sb.Append(" Label: ").Append(this.Label).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as RequiredPermissionDTO); + } + + /// + /// Returns true if RequiredPermissionDTO instances are equal + /// + /// Instance of RequiredPermissionDTO to be compared + /// Boolean + public bool Equals(RequiredPermissionDTO input) + { + if (input == null) + return false; + + return + ( + this.Id == input.Id || + (this.Id != null && + this.Id.Equals(input.Id)) + ) && + ( + this.Label == input.Label || + (this.Label != null && + this.Label.Equals(input.Label)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Id != null) + hashCode = hashCode * 59 + this.Id.GetHashCode(); + if (this.Label != null) + hashCode = hashCode * 59 + this.Label.GetHashCode(); + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/NiFi.Swagger/Model/ResourceDTO.cs b/NiFi.Swagger/Model/ResourceDTO.cs new file mode 100644 index 0000000..9f8cef3 --- /dev/null +++ b/NiFi.Swagger/Model/ResourceDTO.cs @@ -0,0 +1,136 @@ +/* + * NiFi Rest Api + * + * The Rest Api provides programmatic access to command and control a NiFi instance in real time. Start and stop processors, monitor queues, query provenance data, and more. Each endpoint below includes a description, definitions of the expected input and output, potential response codes, and the authorizations required to invoke each service. + * + * OpenAPI spec version: 1.9.1 + * Contact: dev@nifi.apache.org + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +namespace NiFi.Swagger.Model +{ + using System; + using System.Collections.Generic; + using System.ComponentModel.DataAnnotations; + using System.Runtime.Serialization; + using System.Text; + + using Newtonsoft.Json; + + /// + /// ResourceDTO + /// + [DataContract] + public partial class ResourceDTO : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// The identifier of the resource.. + /// The name of the resource.. + public ResourceDTO(string identifier = default(string), string name = default(string)) + { + this.Identifier = identifier; + this.Name = name; + } + + /// + /// The identifier of the resource. + /// + /// The identifier of the resource. + [DataMember(Name="identifier", EmitDefaultValue=false)] + public string Identifier { get; set; } + + /// + /// The name of the resource. + /// + /// The name of the resource. + [DataMember(Name="name", EmitDefaultValue=false)] + public string Name { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class ResourceDTO {\n"); + sb.Append(" Identifier: ").Append(this.Identifier).Append("\n"); + sb.Append(" Name: ").Append(this.Name).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as ResourceDTO); + } + + /// + /// Returns true if ResourceDTO instances are equal + /// + /// Instance of ResourceDTO to be compared + /// Boolean + public bool Equals(ResourceDTO input) + { + if (input == null) + return false; + + return + ( + this.Identifier == input.Identifier || + (this.Identifier != null && + this.Identifier.Equals(input.Identifier)) + ) && + ( + this.Name == input.Name || + (this.Name != null && + this.Name.Equals(input.Name)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Identifier != null) + hashCode = hashCode * 59 + this.Identifier.GetHashCode(); + if (this.Name != null) + hashCode = hashCode * 59 + this.Name.GetHashCode(); + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/NiFi.Swagger/Model/ResourcesEntity.cs b/NiFi.Swagger/Model/ResourcesEntity.cs new file mode 100644 index 0000000..066d0e9 --- /dev/null +++ b/NiFi.Swagger/Model/ResourcesEntity.cs @@ -0,0 +1,119 @@ +/* + * NiFi Rest Api + * + * The Rest Api provides programmatic access to command and control a NiFi instance in real time. Start and stop processors, monitor queues, query provenance data, and more. Each endpoint below includes a description, definitions of the expected input and output, potential response codes, and the authorizations required to invoke each service. + * + * OpenAPI spec version: 1.9.1 + * Contact: dev@nifi.apache.org + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +namespace NiFi.Swagger.Model +{ + using System; + using System.Collections.Generic; + using System.ComponentModel.DataAnnotations; + using System.Linq; + using System.Runtime.Serialization; + using System.Text; + + using Newtonsoft.Json; + + /// + /// ResourcesEntity + /// + [DataContract] + public partial class ResourcesEntity : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// resources. + public ResourcesEntity(List resources = default(List)) + { + this.Resources = resources; + } + + /// + /// Gets or Sets Resources + /// + [DataMember(Name="resources", EmitDefaultValue=false)] + public List Resources { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class ResourcesEntity {\n"); + sb.Append(" Resources: ").Append(this.Resources).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as ResourcesEntity); + } + + /// + /// Returns true if ResourcesEntity instances are equal + /// + /// Instance of ResourcesEntity to be compared + /// Boolean + public bool Equals(ResourcesEntity input) + { + if (input == null) + return false; + + return + ( + this.Resources == input.Resources || + this.Resources != null && + this.Resources.SequenceEqual(input.Resources) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Resources != null) + hashCode = hashCode * 59 + this.Resources.GetHashCode(); + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/NiFi.Swagger/Model/RevisionDTO.cs b/NiFi.Swagger/Model/RevisionDTO.cs new file mode 100644 index 0000000..dde46c5 --- /dev/null +++ b/NiFi.Swagger/Model/RevisionDTO.cs @@ -0,0 +1,151 @@ +/* + * NiFi Rest Api + * + * The Rest Api provides programmatic access to command and control a NiFi instance in real time. Start and stop processors, monitor queues, query provenance data, and more. Each endpoint below includes a description, definitions of the expected input and output, potential response codes, and the authorizations required to invoke each service. + * + * OpenAPI spec version: 1.9.1 + * Contact: dev@nifi.apache.org + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +namespace NiFi.Swagger.Model +{ + using System; + using System.Collections.Generic; + using System.ComponentModel.DataAnnotations; + using System.Runtime.Serialization; + using System.Text; + + using Newtonsoft.Json; + + /// + /// RevisionDTO + /// + [DataContract] + public partial class RevisionDTO : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// A client identifier used to make a request. By including a client identifier, the API can allow multiple requests without needing the current revision. Due to the asynchronous nature of requests/responses this was implemented to allow the client to make numerous requests without having to wait for the previous response to come back. + /// NiFi employs an optimistic locking strategy where the client must include a revision in their request when performing an update. In a response to a mutable flow request, this field represents the updated base version.. + public RevisionDTO(string clientId = default(string), long? version = default(long?)) + { + this.ClientId = clientId; + this.Version = version; + } + + /// + /// A client identifier used to make a request. By including a client identifier, the API can allow multiple requests without needing the current revision. Due to the asynchronous nature of requests/responses this was implemented to allow the client to make numerous requests without having to wait for the previous response to come back + /// + /// A client identifier used to make a request. By including a client identifier, the API can allow multiple requests without needing the current revision. Due to the asynchronous nature of requests/responses this was implemented to allow the client to make numerous requests without having to wait for the previous response to come back + [DataMember(Name="clientId", EmitDefaultValue=false)] + public string ClientId { get; set; } + + /// + /// NiFi employs an optimistic locking strategy where the client must include a revision in their request when performing an update. In a response to a mutable flow request, this field represents the updated base version. + /// + /// NiFi employs an optimistic locking strategy where the client must include a revision in their request when performing an update. In a response to a mutable flow request, this field represents the updated base version. + [DataMember(Name="version", EmitDefaultValue=false)] + public long? Version { get; set; } + + /// + /// The user that last modified the flow. + /// + /// The user that last modified the flow. + [DataMember(Name="lastModifier", EmitDefaultValue=false)] + public string LastModifier { get; private set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class RevisionDTO {\n"); + sb.Append(" ClientId: ").Append(this.ClientId).Append("\n"); + sb.Append(" Version: ").Append(this.Version).Append("\n"); + sb.Append(" LastModifier: ").Append(this.LastModifier).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as RevisionDTO); + } + + /// + /// Returns true if RevisionDTO instances are equal + /// + /// Instance of RevisionDTO to be compared + /// Boolean + public bool Equals(RevisionDTO input) + { + if (input == null) + return false; + + return + ( + this.ClientId == input.ClientId || + (this.ClientId != null && + this.ClientId.Equals(input.ClientId)) + ) && + ( + this.Version == input.Version || + (this.Version != null && + this.Version.Equals(input.Version)) + ) && + ( + this.LastModifier == input.LastModifier || + (this.LastModifier != null && + this.LastModifier.Equals(input.LastModifier)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.ClientId != null) + hashCode = hashCode * 59 + this.ClientId.GetHashCode(); + if (this.Version != null) + hashCode = hashCode * 59 + this.Version.GetHashCode(); + if (this.LastModifier != null) + hashCode = hashCode * 59 + this.LastModifier.GetHashCode(); + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/NiFi.Swagger/Model/ScheduleComponentsEntity.cs b/NiFi.Swagger/Model/ScheduleComponentsEntity.cs new file mode 100644 index 0000000..b61a4db --- /dev/null +++ b/NiFi.Swagger/Model/ScheduleComponentsEntity.cs @@ -0,0 +1,205 @@ +/* + * NiFi Rest Api + * + * The Rest Api provides programmatic access to command and control a NiFi instance in real time. Start and stop processors, monitor queues, query provenance data, and more. Each endpoint below includes a description, definitions of the expected input and output, potential response codes, and the authorizations required to invoke each service. + * + * OpenAPI spec version: 1.9.1 + * Contact: dev@nifi.apache.org + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +namespace NiFi.Swagger.Model +{ + using System; + using System.Collections.Generic; + using System.ComponentModel.DataAnnotations; + using System.Linq; + using System.Runtime.Serialization; + using System.Text; + + using Newtonsoft.Json; + using Newtonsoft.Json.Converters; + + /// + /// ScheduleComponentsEntity + /// + [DataContract] + public partial class ScheduleComponentsEntity : IEquatable, IValidatableObject + { + /// + /// The desired state of the descendant components + /// + /// The desired state of the descendant components + [JsonConverter(typeof(StringEnumConverter))] + public enum StateEnum + { + + /// + /// Enum RUNNING for value: RUNNING + /// + [EnumMember(Value = "RUNNING")] + RUNNING = 1, + + /// + /// Enum STOPPED for value: STOPPED + /// + [EnumMember(Value = "STOPPED")] + STOPPED = 2, + + /// + /// Enum ENABLED for value: ENABLED + /// + [EnumMember(Value = "ENABLED")] + ENABLED = 3, + + /// + /// Enum DISABLED for value: DISABLED + /// + [EnumMember(Value = "DISABLED")] + DISABLED = 4 + } + + /// + /// The desired state of the descendant components + /// + /// The desired state of the descendant components + [DataMember(Name="state", EmitDefaultValue=false)] + public StateEnum? State { get; set; } + /// + /// Initializes a new instance of the class. + /// + /// The id of the ProcessGroup. + /// The desired state of the descendant components. + /// Optional components to schedule. If not specified, all authorized descendant components will be used.. + /// Acknowledges that this node is disconnected to allow for mutable requests to proceed.. + public ScheduleComponentsEntity(string id = default(string), StateEnum? state = default(StateEnum?), Dictionary components = default(Dictionary), bool? disconnectedNodeAcknowledged = default(bool?)) + { + this.Id = id; + this.State = state; + this.Components = components; + this.DisconnectedNodeAcknowledged = disconnectedNodeAcknowledged; + } + + /// + /// The id of the ProcessGroup + /// + /// The id of the ProcessGroup + [DataMember(Name="id", EmitDefaultValue=false)] + public string Id { get; set; } + + + /// + /// Optional components to schedule. If not specified, all authorized descendant components will be used. + /// + /// Optional components to schedule. If not specified, all authorized descendant components will be used. + [DataMember(Name="components", EmitDefaultValue=false)] + public Dictionary Components { get; set; } + + /// + /// Acknowledges that this node is disconnected to allow for mutable requests to proceed. + /// + /// Acknowledges that this node is disconnected to allow for mutable requests to proceed. + [DataMember(Name="disconnectedNodeAcknowledged", EmitDefaultValue=false)] + public bool? DisconnectedNodeAcknowledged { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class ScheduleComponentsEntity {\n"); + sb.Append(" Id: ").Append(this.Id).Append("\n"); + sb.Append(" State: ").Append(this.State).Append("\n"); + sb.Append(" Components: ").Append(this.Components).Append("\n"); + sb.Append(" DisconnectedNodeAcknowledged: ").Append(this.DisconnectedNodeAcknowledged).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as ScheduleComponentsEntity); + } + + /// + /// Returns true if ScheduleComponentsEntity instances are equal + /// + /// Instance of ScheduleComponentsEntity to be compared + /// Boolean + public bool Equals(ScheduleComponentsEntity input) + { + if (input == null) + return false; + + return + ( + this.Id == input.Id || + (this.Id != null && + this.Id.Equals(input.Id)) + ) && + ( + this.State == input.State || + (this.State != null && + this.State.Equals(input.State)) + ) && + ( + this.Components == input.Components || + this.Components != null && + this.Components.SequenceEqual(input.Components) + ) && + ( + this.DisconnectedNodeAcknowledged == input.DisconnectedNodeAcknowledged || + (this.DisconnectedNodeAcknowledged != null && + this.DisconnectedNodeAcknowledged.Equals(input.DisconnectedNodeAcknowledged)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Id != null) + hashCode = hashCode * 59 + this.Id.GetHashCode(); + if (this.State != null) + hashCode = hashCode * 59 + this.State.GetHashCode(); + if (this.Components != null) + hashCode = hashCode * 59 + this.Components.GetHashCode(); + if (this.DisconnectedNodeAcknowledged != null) + hashCode = hashCode * 59 + this.DisconnectedNodeAcknowledged.GetHashCode(); + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/NiFi.Swagger/Model/SearchResultGroupDTO.cs b/NiFi.Swagger/Model/SearchResultGroupDTO.cs new file mode 100644 index 0000000..9cc44b2 --- /dev/null +++ b/NiFi.Swagger/Model/SearchResultGroupDTO.cs @@ -0,0 +1,150 @@ +/* + * NiFi Rest Api + * + * The Rest Api provides programmatic access to command and control a NiFi instance in real time. Start and stop processors, monitor queues, query provenance data, and more. Each endpoint below includes a description, definitions of the expected input and output, potential response codes, and the authorizations required to invoke each service. + * + * OpenAPI spec version: 1.9.1 + * Contact: dev@nifi.apache.org + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +namespace NiFi.Swagger.Model +{ + using System; + using System.Collections.Generic; + using System.ComponentModel.DataAnnotations; + using System.IO; + using System.Runtime.Serialization; + using System.Text; + + using Newtonsoft.Json; + + /// + /// SearchResultGroupDTO + /// + [DataContract] + public partial class SearchResultGroupDTO : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructor] + protected SearchResultGroupDTO() { } + /// + /// Initializes a new instance of the class. + /// + /// The id of the group. (required). + /// The name of the group.. + public SearchResultGroupDTO(string id = default(string), string name = default(string)) + { + // to ensure "id" is required (not null) + if (id == null) + { + throw new InvalidDataException("id is a required property for SearchResultGroupDTO and cannot be null"); + } + else + { + this.Id = id; + } + this.Name = name; + } + + /// + /// The id of the group. + /// + /// The id of the group. + [DataMember(Name="id", EmitDefaultValue=false)] + public string Id { get; set; } + + /// + /// The name of the group. + /// + /// The name of the group. + [DataMember(Name="name", EmitDefaultValue=false)] + public string Name { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class SearchResultGroupDTO {\n"); + sb.Append(" Id: ").Append(this.Id).Append("\n"); + sb.Append(" Name: ").Append(this.Name).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as SearchResultGroupDTO); + } + + /// + /// Returns true if SearchResultGroupDTO instances are equal + /// + /// Instance of SearchResultGroupDTO to be compared + /// Boolean + public bool Equals(SearchResultGroupDTO input) + { + if (input == null) + return false; + + return + ( + this.Id == input.Id || + (this.Id != null && + this.Id.Equals(input.Id)) + ) && + ( + this.Name == input.Name || + (this.Name != null && + this.Name.Equals(input.Name)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Id != null) + hashCode = hashCode * 59 + this.Id.GetHashCode(); + if (this.Name != null) + hashCode = hashCode * 59 + this.Name.GetHashCode(); + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/NiFi.Swagger/Model/SearchResultsDTO.cs b/NiFi.Swagger/Model/SearchResultsDTO.cs new file mode 100644 index 0000000..37d1200 --- /dev/null +++ b/NiFi.Swagger/Model/SearchResultsDTO.cs @@ -0,0 +1,222 @@ +/* + * NiFi Rest Api + * + * The Rest Api provides programmatic access to command and control a NiFi instance in real time. Start and stop processors, monitor queues, query provenance data, and more. Each endpoint below includes a description, definitions of the expected input and output, potential response codes, and the authorizations required to invoke each service. + * + * OpenAPI spec version: 1.9.1 + * Contact: dev@nifi.apache.org + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +namespace NiFi.Swagger.Model +{ + using System; + using System.Collections.Generic; + using System.ComponentModel.DataAnnotations; + using System.Linq; + using System.Runtime.Serialization; + using System.Text; + + using Newtonsoft.Json; + + /// + /// SearchResultsDTO + /// + [DataContract] + public partial class SearchResultsDTO : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// The processors that matched the search.. + /// The connections that matched the search.. + /// The process groups that matched the search.. + /// The input ports that matched the search.. + /// The output ports that matched the search.. + /// The remote process groups that matched the search.. + /// The funnels that matched the search.. + public SearchResultsDTO(List processorResults = default(List), List connectionResults = default(List), List processGroupResults = default(List), List inputPortResults = default(List), List outputPortResults = default(List), List remoteProcessGroupResults = default(List), List funnelResults = default(List)) + { + this.ProcessorResults = processorResults; + this.ConnectionResults = connectionResults; + this.ProcessGroupResults = processGroupResults; + this.InputPortResults = inputPortResults; + this.OutputPortResults = outputPortResults; + this.RemoteProcessGroupResults = remoteProcessGroupResults; + this.FunnelResults = funnelResults; + } + + /// + /// The processors that matched the search. + /// + /// The processors that matched the search. + [DataMember(Name="processorResults", EmitDefaultValue=false)] + public List ProcessorResults { get; set; } + + /// + /// The connections that matched the search. + /// + /// The connections that matched the search. + [DataMember(Name="connectionResults", EmitDefaultValue=false)] + public List ConnectionResults { get; set; } + + /// + /// The process groups that matched the search. + /// + /// The process groups that matched the search. + [DataMember(Name="processGroupResults", EmitDefaultValue=false)] + public List ProcessGroupResults { get; set; } + + /// + /// The input ports that matched the search. + /// + /// The input ports that matched the search. + [DataMember(Name="inputPortResults", EmitDefaultValue=false)] + public List InputPortResults { get; set; } + + /// + /// The output ports that matched the search. + /// + /// The output ports that matched the search. + [DataMember(Name="outputPortResults", EmitDefaultValue=false)] + public List OutputPortResults { get; set; } + + /// + /// The remote process groups that matched the search. + /// + /// The remote process groups that matched the search. + [DataMember(Name="remoteProcessGroupResults", EmitDefaultValue=false)] + public List RemoteProcessGroupResults { get; set; } + + /// + /// The funnels that matched the search. + /// + /// The funnels that matched the search. + [DataMember(Name="funnelResults", EmitDefaultValue=false)] + public List FunnelResults { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class SearchResultsDTO {\n"); + sb.Append(" ProcessorResults: ").Append(this.ProcessorResults).Append("\n"); + sb.Append(" ConnectionResults: ").Append(this.ConnectionResults).Append("\n"); + sb.Append(" ProcessGroupResults: ").Append(this.ProcessGroupResults).Append("\n"); + sb.Append(" InputPortResults: ").Append(this.InputPortResults).Append("\n"); + sb.Append(" OutputPortResults: ").Append(this.OutputPortResults).Append("\n"); + sb.Append(" RemoteProcessGroupResults: ").Append(this.RemoteProcessGroupResults).Append("\n"); + sb.Append(" FunnelResults: ").Append(this.FunnelResults).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as SearchResultsDTO); + } + + /// + /// Returns true if SearchResultsDTO instances are equal + /// + /// Instance of SearchResultsDTO to be compared + /// Boolean + public bool Equals(SearchResultsDTO input) + { + if (input == null) + return false; + + return + ( + this.ProcessorResults == input.ProcessorResults || + this.ProcessorResults != null && + this.ProcessorResults.SequenceEqual(input.ProcessorResults) + ) && + ( + this.ConnectionResults == input.ConnectionResults || + this.ConnectionResults != null && + this.ConnectionResults.SequenceEqual(input.ConnectionResults) + ) && + ( + this.ProcessGroupResults == input.ProcessGroupResults || + this.ProcessGroupResults != null && + this.ProcessGroupResults.SequenceEqual(input.ProcessGroupResults) + ) && + ( + this.InputPortResults == input.InputPortResults || + this.InputPortResults != null && + this.InputPortResults.SequenceEqual(input.InputPortResults) + ) && + ( + this.OutputPortResults == input.OutputPortResults || + this.OutputPortResults != null && + this.OutputPortResults.SequenceEqual(input.OutputPortResults) + ) && + ( + this.RemoteProcessGroupResults == input.RemoteProcessGroupResults || + this.RemoteProcessGroupResults != null && + this.RemoteProcessGroupResults.SequenceEqual(input.RemoteProcessGroupResults) + ) && + ( + this.FunnelResults == input.FunnelResults || + this.FunnelResults != null && + this.FunnelResults.SequenceEqual(input.FunnelResults) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.ProcessorResults != null) + hashCode = hashCode * 59 + this.ProcessorResults.GetHashCode(); + if (this.ConnectionResults != null) + hashCode = hashCode * 59 + this.ConnectionResults.GetHashCode(); + if (this.ProcessGroupResults != null) + hashCode = hashCode * 59 + this.ProcessGroupResults.GetHashCode(); + if (this.InputPortResults != null) + hashCode = hashCode * 59 + this.InputPortResults.GetHashCode(); + if (this.OutputPortResults != null) + hashCode = hashCode * 59 + this.OutputPortResults.GetHashCode(); + if (this.RemoteProcessGroupResults != null) + hashCode = hashCode * 59 + this.RemoteProcessGroupResults.GetHashCode(); + if (this.FunnelResults != null) + hashCode = hashCode * 59 + this.FunnelResults.GetHashCode(); + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/NiFi.Swagger/Model/SearchResultsEntity.cs b/NiFi.Swagger/Model/SearchResultsEntity.cs new file mode 100644 index 0000000..6935ddf --- /dev/null +++ b/NiFi.Swagger/Model/SearchResultsEntity.cs @@ -0,0 +1,118 @@ +/* + * NiFi Rest Api + * + * The Rest Api provides programmatic access to command and control a NiFi instance in real time. Start and stop processors, monitor queues, query provenance data, and more. Each endpoint below includes a description, definitions of the expected input and output, potential response codes, and the authorizations required to invoke each service. + * + * OpenAPI spec version: 1.9.1 + * Contact: dev@nifi.apache.org + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +namespace NiFi.Swagger.Model +{ + using System; + using System.Collections.Generic; + using System.ComponentModel.DataAnnotations; + using System.Runtime.Serialization; + using System.Text; + + using Newtonsoft.Json; + + /// + /// SearchResultsEntity + /// + [DataContract] + public partial class SearchResultsEntity : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// searchResultsDTO. + public SearchResultsEntity(SearchResultsDTO searchResultsDTO = default(SearchResultsDTO)) + { + this.SearchResultsDTO = searchResultsDTO; + } + + /// + /// Gets or Sets SearchResultsDTO + /// + [DataMember(Name="searchResultsDTO", EmitDefaultValue=false)] + public SearchResultsDTO SearchResultsDTO { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class SearchResultsEntity {\n"); + sb.Append(" SearchResultsDTO: ").Append(this.SearchResultsDTO).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as SearchResultsEntity); + } + + /// + /// Returns true if SearchResultsEntity instances are equal + /// + /// Instance of SearchResultsEntity to be compared + /// Boolean + public bool Equals(SearchResultsEntity input) + { + if (input == null) + return false; + + return + ( + this.SearchResultsDTO == input.SearchResultsDTO || + (this.SearchResultsDTO != null && + this.SearchResultsDTO.Equals(input.SearchResultsDTO)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.SearchResultsDTO != null) + hashCode = hashCode * 59 + this.SearchResultsDTO.GetHashCode(); + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/NiFi.Swagger/Model/SnippetDTO.cs b/NiFi.Swagger/Model/SnippetDTO.cs new file mode 100644 index 0000000..21be2d8 --- /dev/null +++ b/NiFi.Swagger/Model/SnippetDTO.cs @@ -0,0 +1,290 @@ +/* + * NiFi Rest Api + * + * The Rest Api provides programmatic access to command and control a NiFi instance in real time. Start and stop processors, monitor queues, query provenance data, and more. Each endpoint below includes a description, definitions of the expected input and output, potential response codes, and the authorizations required to invoke each service. + * + * OpenAPI spec version: 1.9.1 + * Contact: dev@nifi.apache.org + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +namespace NiFi.Swagger.Model +{ + using System; + using System.Collections.Generic; + using System.ComponentModel.DataAnnotations; + using System.Linq; + using System.Runtime.Serialization; + using System.Text; + + using Newtonsoft.Json; + + /// + /// SnippetDTO + /// + [DataContract] + public partial class SnippetDTO : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// The id of the snippet.. + /// The URI of the snippet.. + /// The group id for the components in the snippet.. + /// The ids of the process groups in this snippet. These ids will be populated within each response. They can be specified when creating a snippet. However, once a snippet has been created its contents cannot be modified (these ids are ignored during update requests).. + /// The ids of the remote process groups in this snippet. These ids will be populated within each response. They can be specified when creating a snippet. However, once a snippet has been created its contents cannot be modified (these ids are ignored during update requests).. + /// The ids of the processors in this snippet. These ids will be populated within each response. They can be specified when creating a snippet. However, once a snippet has been created its contents cannot be modified (these ids are ignored during update requests).. + /// The ids of the input ports in this snippet. These ids will be populated within each response. They can be specified when creating a snippet. However, once a snippet has been created its contents cannot be modified (these ids are ignored during update requests).. + /// The ids of the output ports in this snippet. These ids will be populated within each response. They can be specified when creating a snippet. However, once a snippet has been created its contents cannot be modified (these ids are ignored during update requests).. + /// The ids of the connections in this snippet. These ids will be populated within each response. They can be specified when creating a snippet. However, once a snippet has been created its contents cannot be modified (these ids are ignored during update requests).. + /// The ids of the labels in this snippet. These ids will be populated within each response. They can be specified when creating a snippet. However, once a snippet has been created its contents cannot be modified (these ids are ignored during update requests).. + /// The ids of the funnels in this snippet. These ids will be populated within each response. They can be specified when creating a snippet. However, once a snippet has been created its contents cannot be modified (these ids are ignored during update requests).. + public SnippetDTO(string id = default(string), string uri = default(string), string parentGroupId = default(string), Dictionary processGroups = default(Dictionary), Dictionary remoteProcessGroups = default(Dictionary), Dictionary processors = default(Dictionary), Dictionary inputPorts = default(Dictionary), Dictionary outputPorts = default(Dictionary), Dictionary connections = default(Dictionary), Dictionary labels = default(Dictionary), Dictionary funnels = default(Dictionary)) + { + this.Id = id; + this.Uri = uri; + this.ParentGroupId = parentGroupId; + this.ProcessGroups = processGroups; + this.RemoteProcessGroups = remoteProcessGroups; + this.Processors = processors; + this.InputPorts = inputPorts; + this.OutputPorts = outputPorts; + this.Connections = connections; + this.Labels = labels; + this.Funnels = funnels; + } + + /// + /// The id of the snippet. + /// + /// The id of the snippet. + [DataMember(Name="id", EmitDefaultValue=false)] + public string Id { get; set; } + + /// + /// The URI of the snippet. + /// + /// The URI of the snippet. + [DataMember(Name="uri", EmitDefaultValue=false)] + public string Uri { get; set; } + + /// + /// The group id for the components in the snippet. + /// + /// The group id for the components in the snippet. + [DataMember(Name="parentGroupId", EmitDefaultValue=false)] + public string ParentGroupId { get; set; } + + /// + /// The ids of the process groups in this snippet. These ids will be populated within each response. They can be specified when creating a snippet. However, once a snippet has been created its contents cannot be modified (these ids are ignored during update requests). + /// + /// The ids of the process groups in this snippet. These ids will be populated within each response. They can be specified when creating a snippet. However, once a snippet has been created its contents cannot be modified (these ids are ignored during update requests). + [DataMember(Name="processGroups", EmitDefaultValue=false)] + public Dictionary ProcessGroups { get; set; } + + /// + /// The ids of the remote process groups in this snippet. These ids will be populated within each response. They can be specified when creating a snippet. However, once a snippet has been created its contents cannot be modified (these ids are ignored during update requests). + /// + /// The ids of the remote process groups in this snippet. These ids will be populated within each response. They can be specified when creating a snippet. However, once a snippet has been created its contents cannot be modified (these ids are ignored during update requests). + [DataMember(Name="remoteProcessGroups", EmitDefaultValue=false)] + public Dictionary RemoteProcessGroups { get; set; } + + /// + /// The ids of the processors in this snippet. These ids will be populated within each response. They can be specified when creating a snippet. However, once a snippet has been created its contents cannot be modified (these ids are ignored during update requests). + /// + /// The ids of the processors in this snippet. These ids will be populated within each response. They can be specified when creating a snippet. However, once a snippet has been created its contents cannot be modified (these ids are ignored during update requests). + [DataMember(Name="processors", EmitDefaultValue=false)] + public Dictionary Processors { get; set; } + + /// + /// The ids of the input ports in this snippet. These ids will be populated within each response. They can be specified when creating a snippet. However, once a snippet has been created its contents cannot be modified (these ids are ignored during update requests). + /// + /// The ids of the input ports in this snippet. These ids will be populated within each response. They can be specified when creating a snippet. However, once a snippet has been created its contents cannot be modified (these ids are ignored during update requests). + [DataMember(Name="inputPorts", EmitDefaultValue=false)] + public Dictionary InputPorts { get; set; } + + /// + /// The ids of the output ports in this snippet. These ids will be populated within each response. They can be specified when creating a snippet. However, once a snippet has been created its contents cannot be modified (these ids are ignored during update requests). + /// + /// The ids of the output ports in this snippet. These ids will be populated within each response. They can be specified when creating a snippet. However, once a snippet has been created its contents cannot be modified (these ids are ignored during update requests). + [DataMember(Name="outputPorts", EmitDefaultValue=false)] + public Dictionary OutputPorts { get; set; } + + /// + /// The ids of the connections in this snippet. These ids will be populated within each response. They can be specified when creating a snippet. However, once a snippet has been created its contents cannot be modified (these ids are ignored during update requests). + /// + /// The ids of the connections in this snippet. These ids will be populated within each response. They can be specified when creating a snippet. However, once a snippet has been created its contents cannot be modified (these ids are ignored during update requests). + [DataMember(Name="connections", EmitDefaultValue=false)] + public Dictionary Connections { get; set; } + + /// + /// The ids of the labels in this snippet. These ids will be populated within each response. They can be specified when creating a snippet. However, once a snippet has been created its contents cannot be modified (these ids are ignored during update requests). + /// + /// The ids of the labels in this snippet. These ids will be populated within each response. They can be specified when creating a snippet. However, once a snippet has been created its contents cannot be modified (these ids are ignored during update requests). + [DataMember(Name="labels", EmitDefaultValue=false)] + public Dictionary Labels { get; set; } + + /// + /// The ids of the funnels in this snippet. These ids will be populated within each response. They can be specified when creating a snippet. However, once a snippet has been created its contents cannot be modified (these ids are ignored during update requests). + /// + /// The ids of the funnels in this snippet. These ids will be populated within each response. They can be specified when creating a snippet. However, once a snippet has been created its contents cannot be modified (these ids are ignored during update requests). + [DataMember(Name="funnels", EmitDefaultValue=false)] + public Dictionary Funnels { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class SnippetDTO {\n"); + sb.Append(" Id: ").Append(this.Id).Append("\n"); + sb.Append(" Uri: ").Append(this.Uri).Append("\n"); + sb.Append(" ParentGroupId: ").Append(this.ParentGroupId).Append("\n"); + sb.Append(" ProcessGroups: ").Append(this.ProcessGroups).Append("\n"); + sb.Append(" RemoteProcessGroups: ").Append(this.RemoteProcessGroups).Append("\n"); + sb.Append(" Processors: ").Append(this.Processors).Append("\n"); + sb.Append(" InputPorts: ").Append(this.InputPorts).Append("\n"); + sb.Append(" OutputPorts: ").Append(this.OutputPorts).Append("\n"); + sb.Append(" Connections: ").Append(this.Connections).Append("\n"); + sb.Append(" Labels: ").Append(this.Labels).Append("\n"); + sb.Append(" Funnels: ").Append(this.Funnels).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as SnippetDTO); + } + + /// + /// Returns true if SnippetDTO instances are equal + /// + /// Instance of SnippetDTO to be compared + /// Boolean + public bool Equals(SnippetDTO input) + { + if (input == null) + return false; + + return + ( + this.Id == input.Id || + (this.Id != null && + this.Id.Equals(input.Id)) + ) && + ( + this.Uri == input.Uri || + (this.Uri != null && + this.Uri.Equals(input.Uri)) + ) && + ( + this.ParentGroupId == input.ParentGroupId || + (this.ParentGroupId != null && + this.ParentGroupId.Equals(input.ParentGroupId)) + ) && + ( + this.ProcessGroups == input.ProcessGroups || + this.ProcessGroups != null && + this.ProcessGroups.SequenceEqual(input.ProcessGroups) + ) && + ( + this.RemoteProcessGroups == input.RemoteProcessGroups || + this.RemoteProcessGroups != null && + this.RemoteProcessGroups.SequenceEqual(input.RemoteProcessGroups) + ) && + ( + this.Processors == input.Processors || + this.Processors != null && + this.Processors.SequenceEqual(input.Processors) + ) && + ( + this.InputPorts == input.InputPorts || + this.InputPorts != null && + this.InputPorts.SequenceEqual(input.InputPorts) + ) && + ( + this.OutputPorts == input.OutputPorts || + this.OutputPorts != null && + this.OutputPorts.SequenceEqual(input.OutputPorts) + ) && + ( + this.Connections == input.Connections || + this.Connections != null && + this.Connections.SequenceEqual(input.Connections) + ) && + ( + this.Labels == input.Labels || + this.Labels != null && + this.Labels.SequenceEqual(input.Labels) + ) && + ( + this.Funnels == input.Funnels || + this.Funnels != null && + this.Funnels.SequenceEqual(input.Funnels) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Id != null) + hashCode = hashCode * 59 + this.Id.GetHashCode(); + if (this.Uri != null) + hashCode = hashCode * 59 + this.Uri.GetHashCode(); + if (this.ParentGroupId != null) + hashCode = hashCode * 59 + this.ParentGroupId.GetHashCode(); + if (this.ProcessGroups != null) + hashCode = hashCode * 59 + this.ProcessGroups.GetHashCode(); + if (this.RemoteProcessGroups != null) + hashCode = hashCode * 59 + this.RemoteProcessGroups.GetHashCode(); + if (this.Processors != null) + hashCode = hashCode * 59 + this.Processors.GetHashCode(); + if (this.InputPorts != null) + hashCode = hashCode * 59 + this.InputPorts.GetHashCode(); + if (this.OutputPorts != null) + hashCode = hashCode * 59 + this.OutputPorts.GetHashCode(); + if (this.Connections != null) + hashCode = hashCode * 59 + this.Connections.GetHashCode(); + if (this.Labels != null) + hashCode = hashCode * 59 + this.Labels.GetHashCode(); + if (this.Funnels != null) + hashCode = hashCode * 59 + this.Funnels.GetHashCode(); + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/NiFi.Swagger/Model/SnippetEntity.cs b/NiFi.Swagger/Model/SnippetEntity.cs new file mode 100644 index 0000000..d4b912f --- /dev/null +++ b/NiFi.Swagger/Model/SnippetEntity.cs @@ -0,0 +1,136 @@ +/* + * NiFi Rest Api + * + * The Rest Api provides programmatic access to command and control a NiFi instance in real time. Start and stop processors, monitor queues, query provenance data, and more. Each endpoint below includes a description, definitions of the expected input and output, potential response codes, and the authorizations required to invoke each service. + * + * OpenAPI spec version: 1.9.1 + * Contact: dev@nifi.apache.org + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +namespace NiFi.Swagger.Model +{ + using System; + using System.Collections.Generic; + using System.ComponentModel.DataAnnotations; + using System.Runtime.Serialization; + using System.Text; + + using Newtonsoft.Json; + + /// + /// SnippetEntity + /// + [DataContract] + public partial class SnippetEntity : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// The snippet.. + /// Acknowledges that this node is disconnected to allow for mutable requests to proceed.. + public SnippetEntity(SnippetDTO snippet = default(SnippetDTO), bool? disconnectedNodeAcknowledged = default(bool?)) + { + this.Snippet = snippet; + this.DisconnectedNodeAcknowledged = disconnectedNodeAcknowledged; + } + + /// + /// The snippet. + /// + /// The snippet. + [DataMember(Name="snippet", EmitDefaultValue=false)] + public SnippetDTO Snippet { get; set; } + + /// + /// Acknowledges that this node is disconnected to allow for mutable requests to proceed. + /// + /// Acknowledges that this node is disconnected to allow for mutable requests to proceed. + [DataMember(Name="disconnectedNodeAcknowledged", EmitDefaultValue=false)] + public bool? DisconnectedNodeAcknowledged { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class SnippetEntity {\n"); + sb.Append(" Snippet: ").Append(this.Snippet).Append("\n"); + sb.Append(" DisconnectedNodeAcknowledged: ").Append(this.DisconnectedNodeAcknowledged).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as SnippetEntity); + } + + /// + /// Returns true if SnippetEntity instances are equal + /// + /// Instance of SnippetEntity to be compared + /// Boolean + public bool Equals(SnippetEntity input) + { + if (input == null) + return false; + + return + ( + this.Snippet == input.Snippet || + (this.Snippet != null && + this.Snippet.Equals(input.Snippet)) + ) && + ( + this.DisconnectedNodeAcknowledged == input.DisconnectedNodeAcknowledged || + (this.DisconnectedNodeAcknowledged != null && + this.DisconnectedNodeAcknowledged.Equals(input.DisconnectedNodeAcknowledged)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Snippet != null) + hashCode = hashCode * 59 + this.Snippet.GetHashCode(); + if (this.DisconnectedNodeAcknowledged != null) + hashCode = hashCode * 59 + this.DisconnectedNodeAcknowledged.GetHashCode(); + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/NiFi.Swagger/Model/StartVersionControlRequestEntity.cs b/NiFi.Swagger/Model/StartVersionControlRequestEntity.cs new file mode 100644 index 0000000..18bdc54 --- /dev/null +++ b/NiFi.Swagger/Model/StartVersionControlRequestEntity.cs @@ -0,0 +1,153 @@ +/* + * NiFi Rest Api + * + * The Rest Api provides programmatic access to command and control a NiFi instance in real time. Start and stop processors, monitor queues, query provenance data, and more. Each endpoint below includes a description, definitions of the expected input and output, potential response codes, and the authorizations required to invoke each service. + * + * OpenAPI spec version: 1.9.1 + * Contact: dev@nifi.apache.org + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +namespace NiFi.Swagger.Model +{ + using System; + using System.Collections.Generic; + using System.ComponentModel.DataAnnotations; + using System.Runtime.Serialization; + using System.Text; + + using Newtonsoft.Json; + + /// + /// StartVersionControlRequestEntity + /// + [DataContract] + public partial class StartVersionControlRequestEntity : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// The versioned flow. + /// The Revision of the Process Group under Version Control. + /// Acknowledges that this node is disconnected to allow for mutable requests to proceed.. + public StartVersionControlRequestEntity(VersionedFlowDTO versionedFlow = default(VersionedFlowDTO), RevisionDTO processGroupRevision = default(RevisionDTO), bool? disconnectedNodeAcknowledged = default(bool?)) + { + this.VersionedFlow = versionedFlow; + this.ProcessGroupRevision = processGroupRevision; + this.DisconnectedNodeAcknowledged = disconnectedNodeAcknowledged; + } + + /// + /// The versioned flow + /// + /// The versioned flow + [DataMember(Name="versionedFlow", EmitDefaultValue=false)] + public VersionedFlowDTO VersionedFlow { get; set; } + + /// + /// The Revision of the Process Group under Version Control + /// + /// The Revision of the Process Group under Version Control + [DataMember(Name="processGroupRevision", EmitDefaultValue=false)] + public RevisionDTO ProcessGroupRevision { get; set; } + + /// + /// Acknowledges that this node is disconnected to allow for mutable requests to proceed. + /// + /// Acknowledges that this node is disconnected to allow for mutable requests to proceed. + [DataMember(Name="disconnectedNodeAcknowledged", EmitDefaultValue=false)] + public bool? DisconnectedNodeAcknowledged { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class StartVersionControlRequestEntity {\n"); + sb.Append(" VersionedFlow: ").Append(this.VersionedFlow).Append("\n"); + sb.Append(" ProcessGroupRevision: ").Append(this.ProcessGroupRevision).Append("\n"); + sb.Append(" DisconnectedNodeAcknowledged: ").Append(this.DisconnectedNodeAcknowledged).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as StartVersionControlRequestEntity); + } + + /// + /// Returns true if StartVersionControlRequestEntity instances are equal + /// + /// Instance of StartVersionControlRequestEntity to be compared + /// Boolean + public bool Equals(StartVersionControlRequestEntity input) + { + if (input == null) + return false; + + return + ( + this.VersionedFlow == input.VersionedFlow || + (this.VersionedFlow != null && + this.VersionedFlow.Equals(input.VersionedFlow)) + ) && + ( + this.ProcessGroupRevision == input.ProcessGroupRevision || + (this.ProcessGroupRevision != null && + this.ProcessGroupRevision.Equals(input.ProcessGroupRevision)) + ) && + ( + this.DisconnectedNodeAcknowledged == input.DisconnectedNodeAcknowledged || + (this.DisconnectedNodeAcknowledged != null && + this.DisconnectedNodeAcknowledged.Equals(input.DisconnectedNodeAcknowledged)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.VersionedFlow != null) + hashCode = hashCode * 59 + this.VersionedFlow.GetHashCode(); + if (this.ProcessGroupRevision != null) + hashCode = hashCode * 59 + this.ProcessGroupRevision.GetHashCode(); + if (this.DisconnectedNodeAcknowledged != null) + hashCode = hashCode * 59 + this.DisconnectedNodeAcknowledged.GetHashCode(); + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/NiFi.Swagger/Model/StateEntryDTO.cs b/NiFi.Swagger/Model/StateEntryDTO.cs new file mode 100644 index 0000000..0235886 --- /dev/null +++ b/NiFi.Swagger/Model/StateEntryDTO.cs @@ -0,0 +1,170 @@ +/* + * NiFi Rest Api + * + * The Rest Api provides programmatic access to command and control a NiFi instance in real time. Start and stop processors, monitor queues, query provenance data, and more. Each endpoint below includes a description, definitions of the expected input and output, potential response codes, and the authorizations required to invoke each service. + * + * OpenAPI spec version: 1.9.1 + * Contact: dev@nifi.apache.org + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +namespace NiFi.Swagger.Model +{ + using System; + using System.Collections.Generic; + using System.ComponentModel.DataAnnotations; + using System.Runtime.Serialization; + using System.Text; + + using Newtonsoft.Json; + + /// + /// StateEntryDTO + /// + [DataContract] + public partial class StateEntryDTO : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// The key for this state.. + /// The value for this state.. + /// The identifier for the node where the state originated.. + /// The label for the node where the state originated.. + public StateEntryDTO(string key = default(string), string value = default(string), string clusterNodeId = default(string), string clusterNodeAddress = default(string)) + { + this.Key = key; + this.Value = value; + this.ClusterNodeId = clusterNodeId; + this.ClusterNodeAddress = clusterNodeAddress; + } + + /// + /// The key for this state. + /// + /// The key for this state. + [DataMember(Name="key", EmitDefaultValue=false)] + public string Key { get; set; } + + /// + /// The value for this state. + /// + /// The value for this state. + [DataMember(Name="value", EmitDefaultValue=false)] + public string Value { get; set; } + + /// + /// The identifier for the node where the state originated. + /// + /// The identifier for the node where the state originated. + [DataMember(Name="clusterNodeId", EmitDefaultValue=false)] + public string ClusterNodeId { get; set; } + + /// + /// The label for the node where the state originated. + /// + /// The label for the node where the state originated. + [DataMember(Name="clusterNodeAddress", EmitDefaultValue=false)] + public string ClusterNodeAddress { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class StateEntryDTO {\n"); + sb.Append(" Key: ").Append(this.Key).Append("\n"); + sb.Append(" Value: ").Append(this.Value).Append("\n"); + sb.Append(" ClusterNodeId: ").Append(this.ClusterNodeId).Append("\n"); + sb.Append(" ClusterNodeAddress: ").Append(this.ClusterNodeAddress).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as StateEntryDTO); + } + + /// + /// Returns true if StateEntryDTO instances are equal + /// + /// Instance of StateEntryDTO to be compared + /// Boolean + public bool Equals(StateEntryDTO input) + { + if (input == null) + return false; + + return + ( + this.Key == input.Key || + (this.Key != null && + this.Key.Equals(input.Key)) + ) && + ( + this.Value == input.Value || + (this.Value != null && + this.Value.Equals(input.Value)) + ) && + ( + this.ClusterNodeId == input.ClusterNodeId || + (this.ClusterNodeId != null && + this.ClusterNodeId.Equals(input.ClusterNodeId)) + ) && + ( + this.ClusterNodeAddress == input.ClusterNodeAddress || + (this.ClusterNodeAddress != null && + this.ClusterNodeAddress.Equals(input.ClusterNodeAddress)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Key != null) + hashCode = hashCode * 59 + this.Key.GetHashCode(); + if (this.Value != null) + hashCode = hashCode * 59 + this.Value.GetHashCode(); + if (this.ClusterNodeId != null) + hashCode = hashCode * 59 + this.ClusterNodeId.GetHashCode(); + if (this.ClusterNodeAddress != null) + hashCode = hashCode * 59 + this.ClusterNodeAddress.GetHashCode(); + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/NiFi.Swagger/Model/StateMapDTO.cs b/NiFi.Swagger/Model/StateMapDTO.cs new file mode 100644 index 0000000..dbb3ea0 --- /dev/null +++ b/NiFi.Swagger/Model/StateMapDTO.cs @@ -0,0 +1,154 @@ +/* + * NiFi Rest Api + * + * The Rest Api provides programmatic access to command and control a NiFi instance in real time. Start and stop processors, monitor queues, query provenance data, and more. Each endpoint below includes a description, definitions of the expected input and output, potential response codes, and the authorizations required to invoke each service. + * + * OpenAPI spec version: 1.9.1 + * Contact: dev@nifi.apache.org + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +namespace NiFi.Swagger.Model +{ + using System; + using System.Collections.Generic; + using System.ComponentModel.DataAnnotations; + using System.Linq; + using System.Runtime.Serialization; + using System.Text; + + using Newtonsoft.Json; + + /// + /// StateMapDTO + /// + [DataContract] + public partial class StateMapDTO : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// The scope of this StateMap.. + /// The total number of state entries. When the state map is lengthy, only of portion of the entries are returned.. + /// The state.. + public StateMapDTO(string scope = default(string), int? totalEntryCount = default(int?), List state = default(List)) + { + this.Scope = scope; + this.TotalEntryCount = totalEntryCount; + this.State = state; + } + + /// + /// The scope of this StateMap. + /// + /// The scope of this StateMap. + [DataMember(Name="scope", EmitDefaultValue=false)] + public string Scope { get; set; } + + /// + /// The total number of state entries. When the state map is lengthy, only of portion of the entries are returned. + /// + /// The total number of state entries. When the state map is lengthy, only of portion of the entries are returned. + [DataMember(Name="totalEntryCount", EmitDefaultValue=false)] + public int? TotalEntryCount { get; set; } + + /// + /// The state. + /// + /// The state. + [DataMember(Name="state", EmitDefaultValue=false)] + public List State { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class StateMapDTO {\n"); + sb.Append(" Scope: ").Append(this.Scope).Append("\n"); + sb.Append(" TotalEntryCount: ").Append(this.TotalEntryCount).Append("\n"); + sb.Append(" State: ").Append(this.State).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as StateMapDTO); + } + + /// + /// Returns true if StateMapDTO instances are equal + /// + /// Instance of StateMapDTO to be compared + /// Boolean + public bool Equals(StateMapDTO input) + { + if (input == null) + return false; + + return + ( + this.Scope == input.Scope || + (this.Scope != null && + this.Scope.Equals(input.Scope)) + ) && + ( + this.TotalEntryCount == input.TotalEntryCount || + (this.TotalEntryCount != null && + this.TotalEntryCount.Equals(input.TotalEntryCount)) + ) && + ( + this.State == input.State || + this.State != null && + this.State.SequenceEqual(input.State) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Scope != null) + hashCode = hashCode * 59 + this.Scope.GetHashCode(); + if (this.TotalEntryCount != null) + hashCode = hashCode * 59 + this.TotalEntryCount.GetHashCode(); + if (this.State != null) + hashCode = hashCode * 59 + this.State.GetHashCode(); + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/NiFi.Swagger/Model/StatusDescriptorDTO.cs b/NiFi.Swagger/Model/StatusDescriptorDTO.cs new file mode 100644 index 0000000..b5bf131 --- /dev/null +++ b/NiFi.Swagger/Model/StatusDescriptorDTO.cs @@ -0,0 +1,170 @@ +/* + * NiFi Rest Api + * + * The Rest Api provides programmatic access to command and control a NiFi instance in real time. Start and stop processors, monitor queues, query provenance data, and more. Each endpoint below includes a description, definitions of the expected input and output, potential response codes, and the authorizations required to invoke each service. + * + * OpenAPI spec version: 1.9.1 + * Contact: dev@nifi.apache.org + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +namespace NiFi.Swagger.Model +{ + using System; + using System.Collections.Generic; + using System.ComponentModel.DataAnnotations; + using System.Runtime.Serialization; + using System.Text; + + using Newtonsoft.Json; + + /// + /// StatusDescriptorDTO + /// + [DataContract] + public partial class StatusDescriptorDTO : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// The name of the status field.. + /// The label for the status field.. + /// The description of the status field.. + /// The formatter for the status descriptor.. + public StatusDescriptorDTO(string field = default(string), string label = default(string), string description = default(string), string formatter = default(string)) + { + this.Field = field; + this.Label = label; + this.Description = description; + this.Formatter = formatter; + } + + /// + /// The name of the status field. + /// + /// The name of the status field. + [DataMember(Name="field", EmitDefaultValue=false)] + public string Field { get; set; } + + /// + /// The label for the status field. + /// + /// The label for the status field. + [DataMember(Name="label", EmitDefaultValue=false)] + public string Label { get; set; } + + /// + /// The description of the status field. + /// + /// The description of the status field. + [DataMember(Name="description", EmitDefaultValue=false)] + public string Description { get; set; } + + /// + /// The formatter for the status descriptor. + /// + /// The formatter for the status descriptor. + [DataMember(Name="formatter", EmitDefaultValue=false)] + public string Formatter { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class StatusDescriptorDTO {\n"); + sb.Append(" Field: ").Append(this.Field).Append("\n"); + sb.Append(" Label: ").Append(this.Label).Append("\n"); + sb.Append(" Description: ").Append(this.Description).Append("\n"); + sb.Append(" Formatter: ").Append(this.Formatter).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as StatusDescriptorDTO); + } + + /// + /// Returns true if StatusDescriptorDTO instances are equal + /// + /// Instance of StatusDescriptorDTO to be compared + /// Boolean + public bool Equals(StatusDescriptorDTO input) + { + if (input == null) + return false; + + return + ( + this.Field == input.Field || + (this.Field != null && + this.Field.Equals(input.Field)) + ) && + ( + this.Label == input.Label || + (this.Label != null && + this.Label.Equals(input.Label)) + ) && + ( + this.Description == input.Description || + (this.Description != null && + this.Description.Equals(input.Description)) + ) && + ( + this.Formatter == input.Formatter || + (this.Formatter != null && + this.Formatter.Equals(input.Formatter)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Field != null) + hashCode = hashCode * 59 + this.Field.GetHashCode(); + if (this.Label != null) + hashCode = hashCode * 59 + this.Label.GetHashCode(); + if (this.Description != null) + hashCode = hashCode * 59 + this.Description.GetHashCode(); + if (this.Formatter != null) + hashCode = hashCode * 59 + this.Formatter.GetHashCode(); + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/NiFi.Swagger/Model/StatusHistoryDTO.cs b/NiFi.Swagger/Model/StatusHistoryDTO.cs new file mode 100644 index 0000000..bb0ad3a --- /dev/null +++ b/NiFi.Swagger/Model/StatusHistoryDTO.cs @@ -0,0 +1,188 @@ +/* + * NiFi Rest Api + * + * The Rest Api provides programmatic access to command and control a NiFi instance in real time. Start and stop processors, monitor queues, query provenance data, and more. Each endpoint below includes a description, definitions of the expected input and output, potential response codes, and the authorizations required to invoke each service. + * + * OpenAPI spec version: 1.9.1 + * Contact: dev@nifi.apache.org + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +namespace NiFi.Swagger.Model +{ + using System; + using System.Collections.Generic; + using System.ComponentModel.DataAnnotations; + using System.Linq; + using System.Runtime.Serialization; + using System.Text; + + using Newtonsoft.Json; + + /// + /// StatusHistoryDTO + /// + [DataContract] + public partial class StatusHistoryDTO : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// When the status history was generated.. + /// A Map of key/value pairs that describe the component that the status history belongs to. + /// The Descriptors that provide information on each of the metrics provided in the status history. + /// A list of StatusSnapshotDTO objects that provide the actual metric values for the component. If the NiFi instance is clustered, this will represent the aggregate status across all nodes. If the NiFi instance is not clustered, this will represent the status of the entire NiFi instance.. + /// The NodeStatusSnapshotsDTO objects that provide the actual metric values for the component, for each node. If the NiFi instance is not clustered, this value will be null.. + public StatusHistoryDTO(string generated = default(string), Dictionary componentDetails = default(Dictionary), List fieldDescriptors = default(List), List aggregateSnapshots = default(List), List nodeSnapshots = default(List)) + { + this.Generated = generated; + this.ComponentDetails = componentDetails; + this.FieldDescriptors = fieldDescriptors; + this.AggregateSnapshots = aggregateSnapshots; + this.NodeSnapshots = nodeSnapshots; + } + + /// + /// When the status history was generated. + /// + /// When the status history was generated. + [DataMember(Name="generated", EmitDefaultValue=false)] + public string Generated { get; set; } + + /// + /// A Map of key/value pairs that describe the component that the status history belongs to + /// + /// A Map of key/value pairs that describe the component that the status history belongs to + [DataMember(Name="componentDetails", EmitDefaultValue=false)] + public Dictionary ComponentDetails { get; set; } + + /// + /// The Descriptors that provide information on each of the metrics provided in the status history + /// + /// The Descriptors that provide information on each of the metrics provided in the status history + [DataMember(Name="fieldDescriptors", EmitDefaultValue=false)] + public List FieldDescriptors { get; set; } + + /// + /// A list of StatusSnapshotDTO objects that provide the actual metric values for the component. If the NiFi instance is clustered, this will represent the aggregate status across all nodes. If the NiFi instance is not clustered, this will represent the status of the entire NiFi instance. + /// + /// A list of StatusSnapshotDTO objects that provide the actual metric values for the component. If the NiFi instance is clustered, this will represent the aggregate status across all nodes. If the NiFi instance is not clustered, this will represent the status of the entire NiFi instance. + [DataMember(Name="aggregateSnapshots", EmitDefaultValue=false)] + public List AggregateSnapshots { get; set; } + + /// + /// The NodeStatusSnapshotsDTO objects that provide the actual metric values for the component, for each node. If the NiFi instance is not clustered, this value will be null. + /// + /// The NodeStatusSnapshotsDTO objects that provide the actual metric values for the component, for each node. If the NiFi instance is not clustered, this value will be null. + [DataMember(Name="nodeSnapshots", EmitDefaultValue=false)] + public List NodeSnapshots { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class StatusHistoryDTO {\n"); + sb.Append(" Generated: ").Append(this.Generated).Append("\n"); + sb.Append(" ComponentDetails: ").Append(this.ComponentDetails).Append("\n"); + sb.Append(" FieldDescriptors: ").Append(this.FieldDescriptors).Append("\n"); + sb.Append(" AggregateSnapshots: ").Append(this.AggregateSnapshots).Append("\n"); + sb.Append(" NodeSnapshots: ").Append(this.NodeSnapshots).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as StatusHistoryDTO); + } + + /// + /// Returns true if StatusHistoryDTO instances are equal + /// + /// Instance of StatusHistoryDTO to be compared + /// Boolean + public bool Equals(StatusHistoryDTO input) + { + if (input == null) + return false; + + return + ( + this.Generated == input.Generated || + (this.Generated != null && + this.Generated.Equals(input.Generated)) + ) && + ( + this.ComponentDetails == input.ComponentDetails || + this.ComponentDetails != null && + this.ComponentDetails.SequenceEqual(input.ComponentDetails) + ) && + ( + this.FieldDescriptors == input.FieldDescriptors || + this.FieldDescriptors != null && + this.FieldDescriptors.SequenceEqual(input.FieldDescriptors) + ) && + ( + this.AggregateSnapshots == input.AggregateSnapshots || + this.AggregateSnapshots != null && + this.AggregateSnapshots.SequenceEqual(input.AggregateSnapshots) + ) && + ( + this.NodeSnapshots == input.NodeSnapshots || + this.NodeSnapshots != null && + this.NodeSnapshots.SequenceEqual(input.NodeSnapshots) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Generated != null) + hashCode = hashCode * 59 + this.Generated.GetHashCode(); + if (this.ComponentDetails != null) + hashCode = hashCode * 59 + this.ComponentDetails.GetHashCode(); + if (this.FieldDescriptors != null) + hashCode = hashCode * 59 + this.FieldDescriptors.GetHashCode(); + if (this.AggregateSnapshots != null) + hashCode = hashCode * 59 + this.AggregateSnapshots.GetHashCode(); + if (this.NodeSnapshots != null) + hashCode = hashCode * 59 + this.NodeSnapshots.GetHashCode(); + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/NiFi.Swagger/Model/StatusHistoryEntity.cs b/NiFi.Swagger/Model/StatusHistoryEntity.cs new file mode 100644 index 0000000..36e8c1b --- /dev/null +++ b/NiFi.Swagger/Model/StatusHistoryEntity.cs @@ -0,0 +1,133 @@ +/* + * NiFi Rest Api + * + * The Rest Api provides programmatic access to command and control a NiFi instance in real time. Start and stop processors, monitor queues, query provenance data, and more. Each endpoint below includes a description, definitions of the expected input and output, potential response codes, and the authorizations required to invoke each service. + * + * OpenAPI spec version: 1.9.1 + * Contact: dev@nifi.apache.org + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +namespace NiFi.Swagger.Model +{ + using System; + using System.Collections.Generic; + using System.ComponentModel.DataAnnotations; + using System.Runtime.Serialization; + using System.Text; + + using Newtonsoft.Json; + + /// + /// StatusHistoryEntity + /// + [DataContract] + public partial class StatusHistoryEntity : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// statusHistory. + public StatusHistoryEntity(StatusHistoryDTO statusHistory = default(StatusHistoryDTO)) + { + this.StatusHistory = statusHistory; + } + + /// + /// Gets or Sets StatusHistory + /// + [DataMember(Name="statusHistory", EmitDefaultValue=false)] + public StatusHistoryDTO StatusHistory { get; set; } + + /// + /// Indicates whether the user can read a given resource. + /// + /// Indicates whether the user can read a given resource. + [DataMember(Name="canRead", EmitDefaultValue=false)] + public bool? CanRead { get; private set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class StatusHistoryEntity {\n"); + sb.Append(" StatusHistory: ").Append(this.StatusHistory).Append("\n"); + sb.Append(" CanRead: ").Append(this.CanRead).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as StatusHistoryEntity); + } + + /// + /// Returns true if StatusHistoryEntity instances are equal + /// + /// Instance of StatusHistoryEntity to be compared + /// Boolean + public bool Equals(StatusHistoryEntity input) + { + if (input == null) + return false; + + return + ( + this.StatusHistory == input.StatusHistory || + (this.StatusHistory != null && + this.StatusHistory.Equals(input.StatusHistory)) + ) && + ( + this.CanRead == input.CanRead || + (this.CanRead != null && + this.CanRead.Equals(input.CanRead)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.StatusHistory != null) + hashCode = hashCode * 59 + this.StatusHistory.GetHashCode(); + if (this.CanRead != null) + hashCode = hashCode * 59 + this.CanRead.GetHashCode(); + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/NiFi.Swagger/Model/StatusSnapshotDTO.cs b/NiFi.Swagger/Model/StatusSnapshotDTO.cs new file mode 100644 index 0000000..9e380fc --- /dev/null +++ b/NiFi.Swagger/Model/StatusSnapshotDTO.cs @@ -0,0 +1,137 @@ +/* + * NiFi Rest Api + * + * The Rest Api provides programmatic access to command and control a NiFi instance in real time. Start and stop processors, monitor queues, query provenance data, and more. Each endpoint below includes a description, definitions of the expected input and output, potential response codes, and the authorizations required to invoke each service. + * + * OpenAPI spec version: 1.9.1 + * Contact: dev@nifi.apache.org + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +namespace NiFi.Swagger.Model +{ + using System; + using System.Collections.Generic; + using System.ComponentModel.DataAnnotations; + using System.Linq; + using System.Runtime.Serialization; + using System.Text; + + using Newtonsoft.Json; + + /// + /// StatusSnapshotDTO + /// + [DataContract] + public partial class StatusSnapshotDTO : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// The timestamp of the snapshot.. + /// The status metrics.. + public StatusSnapshotDTO(DateTime? timestamp = default(DateTime?), Dictionary statusMetrics = default(Dictionary)) + { + this.Timestamp = timestamp; + this.StatusMetrics = statusMetrics; + } + + /// + /// The timestamp of the snapshot. + /// + /// The timestamp of the snapshot. + [DataMember(Name="timestamp", EmitDefaultValue=false)] + public DateTime? Timestamp { get; set; } + + /// + /// The status metrics. + /// + /// The status metrics. + [DataMember(Name="statusMetrics", EmitDefaultValue=false)] + public Dictionary StatusMetrics { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class StatusSnapshotDTO {\n"); + sb.Append(" Timestamp: ").Append(this.Timestamp).Append("\n"); + sb.Append(" StatusMetrics: ").Append(this.StatusMetrics).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as StatusSnapshotDTO); + } + + /// + /// Returns true if StatusSnapshotDTO instances are equal + /// + /// Instance of StatusSnapshotDTO to be compared + /// Boolean + public bool Equals(StatusSnapshotDTO input) + { + if (input == null) + return false; + + return + ( + this.Timestamp == input.Timestamp || + (this.Timestamp != null && + this.Timestamp.Equals(input.Timestamp)) + ) && + ( + this.StatusMetrics == input.StatusMetrics || + this.StatusMetrics != null && + this.StatusMetrics.SequenceEqual(input.StatusMetrics) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Timestamp != null) + hashCode = hashCode * 59 + this.Timestamp.GetHashCode(); + if (this.StatusMetrics != null) + hashCode = hashCode * 59 + this.StatusMetrics.GetHashCode(); + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/NiFi.Swagger/Model/StorageUsageDTO.cs b/NiFi.Swagger/Model/StorageUsageDTO.cs new file mode 100644 index 0000000..ea6b85b --- /dev/null +++ b/NiFi.Swagger/Model/StorageUsageDTO.cs @@ -0,0 +1,238 @@ +/* + * NiFi Rest Api + * + * The Rest Api provides programmatic access to command and control a NiFi instance in real time. Start and stop processors, monitor queues, query provenance data, and more. Each endpoint below includes a description, definitions of the expected input and output, potential response codes, and the authorizations required to invoke each service. + * + * OpenAPI spec version: 1.9.1 + * Contact: dev@nifi.apache.org + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +namespace NiFi.Swagger.Model +{ + using System; + using System.Collections.Generic; + using System.ComponentModel.DataAnnotations; + using System.Runtime.Serialization; + using System.Text; + + using Newtonsoft.Json; + + /// + /// StorageUsageDTO + /// + [DataContract] + public partial class StorageUsageDTO : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// The identifier of this storage location. The identifier will correspond to the identifier keyed in the storage configuration.. + /// Amount of free space.. + /// Amount of total space.. + /// Amount of used space.. + /// The number of bytes of free space.. + /// The number of bytes of total space.. + /// The number of bytes of used space.. + /// Utilization of this storage location.. + public StorageUsageDTO(string identifier = default(string), string freeSpace = default(string), string totalSpace = default(string), string usedSpace = default(string), long? freeSpaceBytes = default(long?), long? totalSpaceBytes = default(long?), long? usedSpaceBytes = default(long?), string utilization = default(string)) + { + this.Identifier = identifier; + this.FreeSpace = freeSpace; + this.TotalSpace = totalSpace; + this.UsedSpace = usedSpace; + this.FreeSpaceBytes = freeSpaceBytes; + this.TotalSpaceBytes = totalSpaceBytes; + this.UsedSpaceBytes = usedSpaceBytes; + this.Utilization = utilization; + } + + /// + /// The identifier of this storage location. The identifier will correspond to the identifier keyed in the storage configuration. + /// + /// The identifier of this storage location. The identifier will correspond to the identifier keyed in the storage configuration. + [DataMember(Name="identifier", EmitDefaultValue=false)] + public string Identifier { get; set; } + + /// + /// Amount of free space. + /// + /// Amount of free space. + [DataMember(Name="freeSpace", EmitDefaultValue=false)] + public string FreeSpace { get; set; } + + /// + /// Amount of total space. + /// + /// Amount of total space. + [DataMember(Name="totalSpace", EmitDefaultValue=false)] + public string TotalSpace { get; set; } + + /// + /// Amount of used space. + /// + /// Amount of used space. + [DataMember(Name="usedSpace", EmitDefaultValue=false)] + public string UsedSpace { get; set; } + + /// + /// The number of bytes of free space. + /// + /// The number of bytes of free space. + [DataMember(Name="freeSpaceBytes", EmitDefaultValue=false)] + public long? FreeSpaceBytes { get; set; } + + /// + /// The number of bytes of total space. + /// + /// The number of bytes of total space. + [DataMember(Name="totalSpaceBytes", EmitDefaultValue=false)] + public long? TotalSpaceBytes { get; set; } + + /// + /// The number of bytes of used space. + /// + /// The number of bytes of used space. + [DataMember(Name="usedSpaceBytes", EmitDefaultValue=false)] + public long? UsedSpaceBytes { get; set; } + + /// + /// Utilization of this storage location. + /// + /// Utilization of this storage location. + [DataMember(Name="utilization", EmitDefaultValue=false)] + public string Utilization { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class StorageUsageDTO {\n"); + sb.Append(" Identifier: ").Append(this.Identifier).Append("\n"); + sb.Append(" FreeSpace: ").Append(this.FreeSpace).Append("\n"); + sb.Append(" TotalSpace: ").Append(this.TotalSpace).Append("\n"); + sb.Append(" UsedSpace: ").Append(this.UsedSpace).Append("\n"); + sb.Append(" FreeSpaceBytes: ").Append(this.FreeSpaceBytes).Append("\n"); + sb.Append(" TotalSpaceBytes: ").Append(this.TotalSpaceBytes).Append("\n"); + sb.Append(" UsedSpaceBytes: ").Append(this.UsedSpaceBytes).Append("\n"); + sb.Append(" Utilization: ").Append(this.Utilization).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as StorageUsageDTO); + } + + /// + /// Returns true if StorageUsageDTO instances are equal + /// + /// Instance of StorageUsageDTO to be compared + /// Boolean + public bool Equals(StorageUsageDTO input) + { + if (input == null) + return false; + + return + ( + this.Identifier == input.Identifier || + (this.Identifier != null && + this.Identifier.Equals(input.Identifier)) + ) && + ( + this.FreeSpace == input.FreeSpace || + (this.FreeSpace != null && + this.FreeSpace.Equals(input.FreeSpace)) + ) && + ( + this.TotalSpace == input.TotalSpace || + (this.TotalSpace != null && + this.TotalSpace.Equals(input.TotalSpace)) + ) && + ( + this.UsedSpace == input.UsedSpace || + (this.UsedSpace != null && + this.UsedSpace.Equals(input.UsedSpace)) + ) && + ( + this.FreeSpaceBytes == input.FreeSpaceBytes || + (this.FreeSpaceBytes != null && + this.FreeSpaceBytes.Equals(input.FreeSpaceBytes)) + ) && + ( + this.TotalSpaceBytes == input.TotalSpaceBytes || + (this.TotalSpaceBytes != null && + this.TotalSpaceBytes.Equals(input.TotalSpaceBytes)) + ) && + ( + this.UsedSpaceBytes == input.UsedSpaceBytes || + (this.UsedSpaceBytes != null && + this.UsedSpaceBytes.Equals(input.UsedSpaceBytes)) + ) && + ( + this.Utilization == input.Utilization || + (this.Utilization != null && + this.Utilization.Equals(input.Utilization)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Identifier != null) + hashCode = hashCode * 59 + this.Identifier.GetHashCode(); + if (this.FreeSpace != null) + hashCode = hashCode * 59 + this.FreeSpace.GetHashCode(); + if (this.TotalSpace != null) + hashCode = hashCode * 59 + this.TotalSpace.GetHashCode(); + if (this.UsedSpace != null) + hashCode = hashCode * 59 + this.UsedSpace.GetHashCode(); + if (this.FreeSpaceBytes != null) + hashCode = hashCode * 59 + this.FreeSpaceBytes.GetHashCode(); + if (this.TotalSpaceBytes != null) + hashCode = hashCode * 59 + this.TotalSpaceBytes.GetHashCode(); + if (this.UsedSpaceBytes != null) + hashCode = hashCode * 59 + this.UsedSpaceBytes.GetHashCode(); + if (this.Utilization != null) + hashCode = hashCode * 59 + this.Utilization.GetHashCode(); + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/NiFi.Swagger/Model/StreamingOutput.cs b/NiFi.Swagger/Model/StreamingOutput.cs new file mode 100644 index 0000000..6004c5f --- /dev/null +++ b/NiFi.Swagger/Model/StreamingOutput.cs @@ -0,0 +1,103 @@ +/* + * NiFi Rest Api + * + * The Rest Api provides programmatic access to command and control a NiFi instance in real time. Start and stop processors, monitor queues, query provenance data, and more. Each endpoint below includes a description, definitions of the expected input and output, potential response codes, and the authorizations required to invoke each service. + * + * OpenAPI spec version: 1.9.1 + * Contact: dev@nifi.apache.org + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +namespace NiFi.Swagger.Model +{ + using System; + using System.Collections.Generic; + using System.ComponentModel.DataAnnotations; + using System.Runtime.Serialization; + using System.Text; + + using Newtonsoft.Json; + + /// + /// StreamingOutput + /// + [DataContract] + public partial class StreamingOutput : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructor] + public StreamingOutput() + { + } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class StreamingOutput {\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as StreamingOutput); + } + + /// + /// Returns true if StreamingOutput instances are equal + /// + /// Instance of StreamingOutput to be compared + /// Boolean + public bool Equals(StreamingOutput input) + { + if (input == null) + return false; + + return false; + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/NiFi.Swagger/Model/SubmitReplayRequestEntity.cs b/NiFi.Swagger/Model/SubmitReplayRequestEntity.cs new file mode 100644 index 0000000..418ff19 --- /dev/null +++ b/NiFi.Swagger/Model/SubmitReplayRequestEntity.cs @@ -0,0 +1,136 @@ +/* + * NiFi Rest Api + * + * The Rest Api provides programmatic access to command and control a NiFi instance in real time. Start and stop processors, monitor queues, query provenance data, and more. Each endpoint below includes a description, definitions of the expected input and output, potential response codes, and the authorizations required to invoke each service. + * + * OpenAPI spec version: 1.9.1 + * Contact: dev@nifi.apache.org + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +namespace NiFi.Swagger.Model +{ + using System; + using System.Collections.Generic; + using System.ComponentModel.DataAnnotations; + using System.Runtime.Serialization; + using System.Text; + + using Newtonsoft.Json; + + /// + /// SubmitReplayRequestEntity + /// + [DataContract] + public partial class SubmitReplayRequestEntity : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// The event identifier. + /// The identifier of the node where to submit the replay request.. + public SubmitReplayRequestEntity(long? eventId = default(long?), string clusterNodeId = default(string)) + { + this.EventId = eventId; + this.ClusterNodeId = clusterNodeId; + } + + /// + /// The event identifier + /// + /// The event identifier + [DataMember(Name="eventId", EmitDefaultValue=false)] + public long? EventId { get; set; } + + /// + /// The identifier of the node where to submit the replay request. + /// + /// The identifier of the node where to submit the replay request. + [DataMember(Name="clusterNodeId", EmitDefaultValue=false)] + public string ClusterNodeId { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class SubmitReplayRequestEntity {\n"); + sb.Append(" EventId: ").Append(this.EventId).Append("\n"); + sb.Append(" ClusterNodeId: ").Append(this.ClusterNodeId).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as SubmitReplayRequestEntity); + } + + /// + /// Returns true if SubmitReplayRequestEntity instances are equal + /// + /// Instance of SubmitReplayRequestEntity to be compared + /// Boolean + public bool Equals(SubmitReplayRequestEntity input) + { + if (input == null) + return false; + + return + ( + this.EventId == input.EventId || + (this.EventId != null && + this.EventId.Equals(input.EventId)) + ) && + ( + this.ClusterNodeId == input.ClusterNodeId || + (this.ClusterNodeId != null && + this.ClusterNodeId.Equals(input.ClusterNodeId)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.EventId != null) + hashCode = hashCode * 59 + this.EventId.GetHashCode(); + if (this.ClusterNodeId != null) + hashCode = hashCode * 59 + this.ClusterNodeId.GetHashCode(); + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/NiFi.Swagger/Model/SystemDiagnosticsDTO.cs b/NiFi.Swagger/Model/SystemDiagnosticsDTO.cs new file mode 100644 index 0000000..c8a4576 --- /dev/null +++ b/NiFi.Swagger/Model/SystemDiagnosticsDTO.cs @@ -0,0 +1,137 @@ +/* + * NiFi Rest Api + * + * The Rest Api provides programmatic access to command and control a NiFi instance in real time. Start and stop processors, monitor queues, query provenance data, and more. Each endpoint below includes a description, definitions of the expected input and output, potential response codes, and the authorizations required to invoke each service. + * + * OpenAPI spec version: 1.9.1 + * Contact: dev@nifi.apache.org + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +namespace NiFi.Swagger.Model +{ + using System; + using System.Collections.Generic; + using System.ComponentModel.DataAnnotations; + using System.Linq; + using System.Runtime.Serialization; + using System.Text; + + using Newtonsoft.Json; + + /// + /// SystemDiagnosticsDTO + /// + [DataContract] + public partial class SystemDiagnosticsDTO : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// A systems diagnostic snapshot that represents the aggregate values of all nodes in the cluster. If the NiFi instance is a standalone instance, rather than a cluster, this represents the stats of the single instance.. + /// A systems diagnostics snapshot for each node in the cluster. If the NiFi instance is a standalone instance, rather than a cluster, this may be null.. + public SystemDiagnosticsDTO(SystemDiagnosticsSnapshotDTO aggregateSnapshot = default(SystemDiagnosticsSnapshotDTO), List nodeSnapshots = default(List)) + { + this.AggregateSnapshot = aggregateSnapshot; + this.NodeSnapshots = nodeSnapshots; + } + + /// + /// A systems diagnostic snapshot that represents the aggregate values of all nodes in the cluster. If the NiFi instance is a standalone instance, rather than a cluster, this represents the stats of the single instance. + /// + /// A systems diagnostic snapshot that represents the aggregate values of all nodes in the cluster. If the NiFi instance is a standalone instance, rather than a cluster, this represents the stats of the single instance. + [DataMember(Name="aggregateSnapshot", EmitDefaultValue=false)] + public SystemDiagnosticsSnapshotDTO AggregateSnapshot { get; set; } + + /// + /// A systems diagnostics snapshot for each node in the cluster. If the NiFi instance is a standalone instance, rather than a cluster, this may be null. + /// + /// A systems diagnostics snapshot for each node in the cluster. If the NiFi instance is a standalone instance, rather than a cluster, this may be null. + [DataMember(Name="nodeSnapshots", EmitDefaultValue=false)] + public List NodeSnapshots { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class SystemDiagnosticsDTO {\n"); + sb.Append(" AggregateSnapshot: ").Append(this.AggregateSnapshot).Append("\n"); + sb.Append(" NodeSnapshots: ").Append(this.NodeSnapshots).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as SystemDiagnosticsDTO); + } + + /// + /// Returns true if SystemDiagnosticsDTO instances are equal + /// + /// Instance of SystemDiagnosticsDTO to be compared + /// Boolean + public bool Equals(SystemDiagnosticsDTO input) + { + if (input == null) + return false; + + return + ( + this.AggregateSnapshot == input.AggregateSnapshot || + (this.AggregateSnapshot != null && + this.AggregateSnapshot.Equals(input.AggregateSnapshot)) + ) && + ( + this.NodeSnapshots == input.NodeSnapshots || + this.NodeSnapshots != null && + this.NodeSnapshots.SequenceEqual(input.NodeSnapshots) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.AggregateSnapshot != null) + hashCode = hashCode * 59 + this.AggregateSnapshot.GetHashCode(); + if (this.NodeSnapshots != null) + hashCode = hashCode * 59 + this.NodeSnapshots.GetHashCode(); + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/NiFi.Swagger/Model/SystemDiagnosticsEntity.cs b/NiFi.Swagger/Model/SystemDiagnosticsEntity.cs new file mode 100644 index 0000000..0bd4fe3 --- /dev/null +++ b/NiFi.Swagger/Model/SystemDiagnosticsEntity.cs @@ -0,0 +1,118 @@ +/* + * NiFi Rest Api + * + * The Rest Api provides programmatic access to command and control a NiFi instance in real time. Start and stop processors, monitor queues, query provenance data, and more. Each endpoint below includes a description, definitions of the expected input and output, potential response codes, and the authorizations required to invoke each service. + * + * OpenAPI spec version: 1.9.1 + * Contact: dev@nifi.apache.org + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +namespace NiFi.Swagger.Model +{ + using System; + using System.Collections.Generic; + using System.ComponentModel.DataAnnotations; + using System.Runtime.Serialization; + using System.Text; + + using Newtonsoft.Json; + + /// + /// SystemDiagnosticsEntity + /// + [DataContract] + public partial class SystemDiagnosticsEntity : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// systemDiagnostics. + public SystemDiagnosticsEntity(SystemDiagnosticsDTO systemDiagnostics = default(SystemDiagnosticsDTO)) + { + this.SystemDiagnostics = systemDiagnostics; + } + + /// + /// Gets or Sets SystemDiagnostics + /// + [DataMember(Name="systemDiagnostics", EmitDefaultValue=false)] + public SystemDiagnosticsDTO SystemDiagnostics { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class SystemDiagnosticsEntity {\n"); + sb.Append(" SystemDiagnostics: ").Append(this.SystemDiagnostics).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as SystemDiagnosticsEntity); + } + + /// + /// Returns true if SystemDiagnosticsEntity instances are equal + /// + /// Instance of SystemDiagnosticsEntity to be compared + /// Boolean + public bool Equals(SystemDiagnosticsEntity input) + { + if (input == null) + return false; + + return + ( + this.SystemDiagnostics == input.SystemDiagnostics || + (this.SystemDiagnostics != null && + this.SystemDiagnostics.Equals(input.SystemDiagnostics)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.SystemDiagnostics != null) + hashCode = hashCode * 59 + this.SystemDiagnostics.GetHashCode(); + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/NiFi.Swagger/Model/SystemDiagnosticsSnapshotDTO.cs b/NiFi.Swagger/Model/SystemDiagnosticsSnapshotDTO.cs new file mode 100644 index 0000000..67abb35 --- /dev/null +++ b/NiFi.Swagger/Model/SystemDiagnosticsSnapshotDTO.cs @@ -0,0 +1,596 @@ +/* + * NiFi Rest Api + * + * The Rest Api provides programmatic access to command and control a NiFi instance in real time. Start and stop processors, monitor queues, query provenance data, and more. Each endpoint below includes a description, definitions of the expected input and output, potential response codes, and the authorizations required to invoke each service. + * + * OpenAPI spec version: 1.9.1 + * Contact: dev@nifi.apache.org + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +namespace NiFi.Swagger.Model +{ + using System; + using System.Collections.Generic; + using System.ComponentModel.DataAnnotations; + using System.Linq; + using System.Runtime.Serialization; + using System.Text; + + using Newtonsoft.Json; + + /// + /// SystemDiagnosticsSnapshotDTO + /// + [DataContract] + public partial class SystemDiagnosticsSnapshotDTO : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// Total size of non heap.. + /// Total number of bytes allocated to the JVM not used for heap. + /// Amount of use non heap.. + /// Total number of bytes used by the JVM not in the heap space. + /// Amount of free non heap.. + /// Total number of free non-heap bytes available to the JVM. + /// Maximum size of non heap.. + /// The maximum number of bytes that the JVM can use for non-heap purposes. + /// Utilization of non heap.. + /// Total size of heap.. + /// The total number of bytes that are available for the JVM heap to use. + /// Amount of used heap.. + /// The number of bytes of JVM heap that are currently being used. + /// Amount of free heap.. + /// The number of bytes that are allocated to the JVM heap but not currently being used. + /// Maximum size of heap.. + /// The maximum number of bytes that can be used by the JVM. + /// Utilization of heap.. + /// Number of available processors if supported by the underlying system.. + /// The processor load average if supported by the underlying system.. + /// Total number of threads.. + /// Number of daemon threads.. + /// The uptime of the Java virtual machine. + /// The flowfile repository storage usage.. + /// The content repository storage usage.. + /// The provenance repository storage usage.. + /// The garbage collection details.. + /// When the diagnostics were generated.. + /// The nifi, os, java, and build version information. + public SystemDiagnosticsSnapshotDTO(string totalNonHeap = default(string), long? totalNonHeapBytes = default(long?), string usedNonHeap = default(string), long? usedNonHeapBytes = default(long?), string freeNonHeap = default(string), long? freeNonHeapBytes = default(long?), string maxNonHeap = default(string), long? maxNonHeapBytes = default(long?), string nonHeapUtilization = default(string), string totalHeap = default(string), long? totalHeapBytes = default(long?), string usedHeap = default(string), long? usedHeapBytes = default(long?), string freeHeap = default(string), long? freeHeapBytes = default(long?), string maxHeap = default(string), long? maxHeapBytes = default(long?), string heapUtilization = default(string), int? availableProcessors = default(int?), double? processorLoadAverage = default(double?), int? totalThreads = default(int?), int? daemonThreads = default(int?), string uptime = default(string), StorageUsageDTO flowFileRepositoryStorageUsage = default(StorageUsageDTO), List contentRepositoryStorageUsage = default(List), List provenanceRepositoryStorageUsage = default(List), List garbageCollection = default(List), string statsLastRefreshed = default(string), VersionInfoDTO versionInfo = default(VersionInfoDTO)) + { + this.TotalNonHeap = totalNonHeap; + this.TotalNonHeapBytes = totalNonHeapBytes; + this.UsedNonHeap = usedNonHeap; + this.UsedNonHeapBytes = usedNonHeapBytes; + this.FreeNonHeap = freeNonHeap; + this.FreeNonHeapBytes = freeNonHeapBytes; + this.MaxNonHeap = maxNonHeap; + this.MaxNonHeapBytes = maxNonHeapBytes; + this.NonHeapUtilization = nonHeapUtilization; + this.TotalHeap = totalHeap; + this.TotalHeapBytes = totalHeapBytes; + this.UsedHeap = usedHeap; + this.UsedHeapBytes = usedHeapBytes; + this.FreeHeap = freeHeap; + this.FreeHeapBytes = freeHeapBytes; + this.MaxHeap = maxHeap; + this.MaxHeapBytes = maxHeapBytes; + this.HeapUtilization = heapUtilization; + this.AvailableProcessors = availableProcessors; + this.ProcessorLoadAverage = processorLoadAverage; + this.TotalThreads = totalThreads; + this.DaemonThreads = daemonThreads; + this.Uptime = uptime; + this.FlowFileRepositoryStorageUsage = flowFileRepositoryStorageUsage; + this.ContentRepositoryStorageUsage = contentRepositoryStorageUsage; + this.ProvenanceRepositoryStorageUsage = provenanceRepositoryStorageUsage; + this.GarbageCollection = garbageCollection; + this.StatsLastRefreshed = statsLastRefreshed; + this.VersionInfo = versionInfo; + } + + /// + /// Total size of non heap. + /// + /// Total size of non heap. + [DataMember(Name="totalNonHeap", EmitDefaultValue=false)] + public string TotalNonHeap { get; set; } + + /// + /// Total number of bytes allocated to the JVM not used for heap + /// + /// Total number of bytes allocated to the JVM not used for heap + [DataMember(Name="totalNonHeapBytes", EmitDefaultValue=false)] + public long? TotalNonHeapBytes { get; set; } + + /// + /// Amount of use non heap. + /// + /// Amount of use non heap. + [DataMember(Name="usedNonHeap", EmitDefaultValue=false)] + public string UsedNonHeap { get; set; } + + /// + /// Total number of bytes used by the JVM not in the heap space + /// + /// Total number of bytes used by the JVM not in the heap space + [DataMember(Name="usedNonHeapBytes", EmitDefaultValue=false)] + public long? UsedNonHeapBytes { get; set; } + + /// + /// Amount of free non heap. + /// + /// Amount of free non heap. + [DataMember(Name="freeNonHeap", EmitDefaultValue=false)] + public string FreeNonHeap { get; set; } + + /// + /// Total number of free non-heap bytes available to the JVM + /// + /// Total number of free non-heap bytes available to the JVM + [DataMember(Name="freeNonHeapBytes", EmitDefaultValue=false)] + public long? FreeNonHeapBytes { get; set; } + + /// + /// Maximum size of non heap. + /// + /// Maximum size of non heap. + [DataMember(Name="maxNonHeap", EmitDefaultValue=false)] + public string MaxNonHeap { get; set; } + + /// + /// The maximum number of bytes that the JVM can use for non-heap purposes + /// + /// The maximum number of bytes that the JVM can use for non-heap purposes + [DataMember(Name="maxNonHeapBytes", EmitDefaultValue=false)] + public long? MaxNonHeapBytes { get; set; } + + /// + /// Utilization of non heap. + /// + /// Utilization of non heap. + [DataMember(Name="nonHeapUtilization", EmitDefaultValue=false)] + public string NonHeapUtilization { get; set; } + + /// + /// Total size of heap. + /// + /// Total size of heap. + [DataMember(Name="totalHeap", EmitDefaultValue=false)] + public string TotalHeap { get; set; } + + /// + /// The total number of bytes that are available for the JVM heap to use + /// + /// The total number of bytes that are available for the JVM heap to use + [DataMember(Name="totalHeapBytes", EmitDefaultValue=false)] + public long? TotalHeapBytes { get; set; } + + /// + /// Amount of used heap. + /// + /// Amount of used heap. + [DataMember(Name="usedHeap", EmitDefaultValue=false)] + public string UsedHeap { get; set; } + + /// + /// The number of bytes of JVM heap that are currently being used + /// + /// The number of bytes of JVM heap that are currently being used + [DataMember(Name="usedHeapBytes", EmitDefaultValue=false)] + public long? UsedHeapBytes { get; set; } + + /// + /// Amount of free heap. + /// + /// Amount of free heap. + [DataMember(Name="freeHeap", EmitDefaultValue=false)] + public string FreeHeap { get; set; } + + /// + /// The number of bytes that are allocated to the JVM heap but not currently being used + /// + /// The number of bytes that are allocated to the JVM heap but not currently being used + [DataMember(Name="freeHeapBytes", EmitDefaultValue=false)] + public long? FreeHeapBytes { get; set; } + + /// + /// Maximum size of heap. + /// + /// Maximum size of heap. + [DataMember(Name="maxHeap", EmitDefaultValue=false)] + public string MaxHeap { get; set; } + + /// + /// The maximum number of bytes that can be used by the JVM + /// + /// The maximum number of bytes that can be used by the JVM + [DataMember(Name="maxHeapBytes", EmitDefaultValue=false)] + public long? MaxHeapBytes { get; set; } + + /// + /// Utilization of heap. + /// + /// Utilization of heap. + [DataMember(Name="heapUtilization", EmitDefaultValue=false)] + public string HeapUtilization { get; set; } + + /// + /// Number of available processors if supported by the underlying system. + /// + /// Number of available processors if supported by the underlying system. + [DataMember(Name="availableProcessors", EmitDefaultValue=false)] + public int? AvailableProcessors { get; set; } + + /// + /// The processor load average if supported by the underlying system. + /// + /// The processor load average if supported by the underlying system. + [DataMember(Name="processorLoadAverage", EmitDefaultValue=false)] + public double? ProcessorLoadAverage { get; set; } + + /// + /// Total number of threads. + /// + /// Total number of threads. + [DataMember(Name="totalThreads", EmitDefaultValue=false)] + public int? TotalThreads { get; set; } + + /// + /// Number of daemon threads. + /// + /// Number of daemon threads. + [DataMember(Name="daemonThreads", EmitDefaultValue=false)] + public int? DaemonThreads { get; set; } + + /// + /// The uptime of the Java virtual machine + /// + /// The uptime of the Java virtual machine + [DataMember(Name="uptime", EmitDefaultValue=false)] + public string Uptime { get; set; } + + /// + /// The flowfile repository storage usage. + /// + /// The flowfile repository storage usage. + [DataMember(Name="flowFileRepositoryStorageUsage", EmitDefaultValue=false)] + public StorageUsageDTO FlowFileRepositoryStorageUsage { get; set; } + + /// + /// The content repository storage usage. + /// + /// The content repository storage usage. + [DataMember(Name="contentRepositoryStorageUsage", EmitDefaultValue=false)] + public List ContentRepositoryStorageUsage { get; set; } + + /// + /// The provenance repository storage usage. + /// + /// The provenance repository storage usage. + [DataMember(Name="provenanceRepositoryStorageUsage", EmitDefaultValue=false)] + public List ProvenanceRepositoryStorageUsage { get; set; } + + /// + /// The garbage collection details. + /// + /// The garbage collection details. + [DataMember(Name="garbageCollection", EmitDefaultValue=false)] + public List GarbageCollection { get; set; } + + /// + /// When the diagnostics were generated. + /// + /// When the diagnostics were generated. + [DataMember(Name="statsLastRefreshed", EmitDefaultValue=false)] + public string StatsLastRefreshed { get; set; } + + /// + /// The nifi, os, java, and build version information + /// + /// The nifi, os, java, and build version information + [DataMember(Name="versionInfo", EmitDefaultValue=false)] + public VersionInfoDTO VersionInfo { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class SystemDiagnosticsSnapshotDTO {\n"); + sb.Append(" TotalNonHeap: ").Append(this.TotalNonHeap).Append("\n"); + sb.Append(" TotalNonHeapBytes: ").Append(this.TotalNonHeapBytes).Append("\n"); + sb.Append(" UsedNonHeap: ").Append(this.UsedNonHeap).Append("\n"); + sb.Append(" UsedNonHeapBytes: ").Append(this.UsedNonHeapBytes).Append("\n"); + sb.Append(" FreeNonHeap: ").Append(this.FreeNonHeap).Append("\n"); + sb.Append(" FreeNonHeapBytes: ").Append(this.FreeNonHeapBytes).Append("\n"); + sb.Append(" MaxNonHeap: ").Append(this.MaxNonHeap).Append("\n"); + sb.Append(" MaxNonHeapBytes: ").Append(this.MaxNonHeapBytes).Append("\n"); + sb.Append(" NonHeapUtilization: ").Append(this.NonHeapUtilization).Append("\n"); + sb.Append(" TotalHeap: ").Append(this.TotalHeap).Append("\n"); + sb.Append(" TotalHeapBytes: ").Append(this.TotalHeapBytes).Append("\n"); + sb.Append(" UsedHeap: ").Append(this.UsedHeap).Append("\n"); + sb.Append(" UsedHeapBytes: ").Append(this.UsedHeapBytes).Append("\n"); + sb.Append(" FreeHeap: ").Append(this.FreeHeap).Append("\n"); + sb.Append(" FreeHeapBytes: ").Append(this.FreeHeapBytes).Append("\n"); + sb.Append(" MaxHeap: ").Append(this.MaxHeap).Append("\n"); + sb.Append(" MaxHeapBytes: ").Append(this.MaxHeapBytes).Append("\n"); + sb.Append(" HeapUtilization: ").Append(this.HeapUtilization).Append("\n"); + sb.Append(" AvailableProcessors: ").Append(this.AvailableProcessors).Append("\n"); + sb.Append(" ProcessorLoadAverage: ").Append(this.ProcessorLoadAverage).Append("\n"); + sb.Append(" TotalThreads: ").Append(this.TotalThreads).Append("\n"); + sb.Append(" DaemonThreads: ").Append(this.DaemonThreads).Append("\n"); + sb.Append(" Uptime: ").Append(this.Uptime).Append("\n"); + sb.Append(" FlowFileRepositoryStorageUsage: ").Append(this.FlowFileRepositoryStorageUsage).Append("\n"); + sb.Append(" ContentRepositoryStorageUsage: ").Append(this.ContentRepositoryStorageUsage).Append("\n"); + sb.Append(" ProvenanceRepositoryStorageUsage: ").Append(this.ProvenanceRepositoryStorageUsage).Append("\n"); + sb.Append(" GarbageCollection: ").Append(this.GarbageCollection).Append("\n"); + sb.Append(" StatsLastRefreshed: ").Append(this.StatsLastRefreshed).Append("\n"); + sb.Append(" VersionInfo: ").Append(this.VersionInfo).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as SystemDiagnosticsSnapshotDTO); + } + + /// + /// Returns true if SystemDiagnosticsSnapshotDTO instances are equal + /// + /// Instance of SystemDiagnosticsSnapshotDTO to be compared + /// Boolean + public bool Equals(SystemDiagnosticsSnapshotDTO input) + { + if (input == null) + return false; + + return + ( + this.TotalNonHeap == input.TotalNonHeap || + (this.TotalNonHeap != null && + this.TotalNonHeap.Equals(input.TotalNonHeap)) + ) && + ( + this.TotalNonHeapBytes == input.TotalNonHeapBytes || + (this.TotalNonHeapBytes != null && + this.TotalNonHeapBytes.Equals(input.TotalNonHeapBytes)) + ) && + ( + this.UsedNonHeap == input.UsedNonHeap || + (this.UsedNonHeap != null && + this.UsedNonHeap.Equals(input.UsedNonHeap)) + ) && + ( + this.UsedNonHeapBytes == input.UsedNonHeapBytes || + (this.UsedNonHeapBytes != null && + this.UsedNonHeapBytes.Equals(input.UsedNonHeapBytes)) + ) && + ( + this.FreeNonHeap == input.FreeNonHeap || + (this.FreeNonHeap != null && + this.FreeNonHeap.Equals(input.FreeNonHeap)) + ) && + ( + this.FreeNonHeapBytes == input.FreeNonHeapBytes || + (this.FreeNonHeapBytes != null && + this.FreeNonHeapBytes.Equals(input.FreeNonHeapBytes)) + ) && + ( + this.MaxNonHeap == input.MaxNonHeap || + (this.MaxNonHeap != null && + this.MaxNonHeap.Equals(input.MaxNonHeap)) + ) && + ( + this.MaxNonHeapBytes == input.MaxNonHeapBytes || + (this.MaxNonHeapBytes != null && + this.MaxNonHeapBytes.Equals(input.MaxNonHeapBytes)) + ) && + ( + this.NonHeapUtilization == input.NonHeapUtilization || + (this.NonHeapUtilization != null && + this.NonHeapUtilization.Equals(input.NonHeapUtilization)) + ) && + ( + this.TotalHeap == input.TotalHeap || + (this.TotalHeap != null && + this.TotalHeap.Equals(input.TotalHeap)) + ) && + ( + this.TotalHeapBytes == input.TotalHeapBytes || + (this.TotalHeapBytes != null && + this.TotalHeapBytes.Equals(input.TotalHeapBytes)) + ) && + ( + this.UsedHeap == input.UsedHeap || + (this.UsedHeap != null && + this.UsedHeap.Equals(input.UsedHeap)) + ) && + ( + this.UsedHeapBytes == input.UsedHeapBytes || + (this.UsedHeapBytes != null && + this.UsedHeapBytes.Equals(input.UsedHeapBytes)) + ) && + ( + this.FreeHeap == input.FreeHeap || + (this.FreeHeap != null && + this.FreeHeap.Equals(input.FreeHeap)) + ) && + ( + this.FreeHeapBytes == input.FreeHeapBytes || + (this.FreeHeapBytes != null && + this.FreeHeapBytes.Equals(input.FreeHeapBytes)) + ) && + ( + this.MaxHeap == input.MaxHeap || + (this.MaxHeap != null && + this.MaxHeap.Equals(input.MaxHeap)) + ) && + ( + this.MaxHeapBytes == input.MaxHeapBytes || + (this.MaxHeapBytes != null && + this.MaxHeapBytes.Equals(input.MaxHeapBytes)) + ) && + ( + this.HeapUtilization == input.HeapUtilization || + (this.HeapUtilization != null && + this.HeapUtilization.Equals(input.HeapUtilization)) + ) && + ( + this.AvailableProcessors == input.AvailableProcessors || + (this.AvailableProcessors != null && + this.AvailableProcessors.Equals(input.AvailableProcessors)) + ) && + ( + this.ProcessorLoadAverage == input.ProcessorLoadAverage || + (this.ProcessorLoadAverage != null && + this.ProcessorLoadAverage.Equals(input.ProcessorLoadAverage)) + ) && + ( + this.TotalThreads == input.TotalThreads || + (this.TotalThreads != null && + this.TotalThreads.Equals(input.TotalThreads)) + ) && + ( + this.DaemonThreads == input.DaemonThreads || + (this.DaemonThreads != null && + this.DaemonThreads.Equals(input.DaemonThreads)) + ) && + ( + this.Uptime == input.Uptime || + (this.Uptime != null && + this.Uptime.Equals(input.Uptime)) + ) && + ( + this.FlowFileRepositoryStorageUsage == input.FlowFileRepositoryStorageUsage || + (this.FlowFileRepositoryStorageUsage != null && + this.FlowFileRepositoryStorageUsage.Equals(input.FlowFileRepositoryStorageUsage)) + ) && + ( + this.ContentRepositoryStorageUsage == input.ContentRepositoryStorageUsage || + this.ContentRepositoryStorageUsage != null && + this.ContentRepositoryStorageUsage.SequenceEqual(input.ContentRepositoryStorageUsage) + ) && + ( + this.ProvenanceRepositoryStorageUsage == input.ProvenanceRepositoryStorageUsage || + this.ProvenanceRepositoryStorageUsage != null && + this.ProvenanceRepositoryStorageUsage.SequenceEqual(input.ProvenanceRepositoryStorageUsage) + ) && + ( + this.GarbageCollection == input.GarbageCollection || + this.GarbageCollection != null && + this.GarbageCollection.SequenceEqual(input.GarbageCollection) + ) && + ( + this.StatsLastRefreshed == input.StatsLastRefreshed || + (this.StatsLastRefreshed != null && + this.StatsLastRefreshed.Equals(input.StatsLastRefreshed)) + ) && + ( + this.VersionInfo == input.VersionInfo || + (this.VersionInfo != null && + this.VersionInfo.Equals(input.VersionInfo)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.TotalNonHeap != null) + hashCode = hashCode * 59 + this.TotalNonHeap.GetHashCode(); + if (this.TotalNonHeapBytes != null) + hashCode = hashCode * 59 + this.TotalNonHeapBytes.GetHashCode(); + if (this.UsedNonHeap != null) + hashCode = hashCode * 59 + this.UsedNonHeap.GetHashCode(); + if (this.UsedNonHeapBytes != null) + hashCode = hashCode * 59 + this.UsedNonHeapBytes.GetHashCode(); + if (this.FreeNonHeap != null) + hashCode = hashCode * 59 + this.FreeNonHeap.GetHashCode(); + if (this.FreeNonHeapBytes != null) + hashCode = hashCode * 59 + this.FreeNonHeapBytes.GetHashCode(); + if (this.MaxNonHeap != null) + hashCode = hashCode * 59 + this.MaxNonHeap.GetHashCode(); + if (this.MaxNonHeapBytes != null) + hashCode = hashCode * 59 + this.MaxNonHeapBytes.GetHashCode(); + if (this.NonHeapUtilization != null) + hashCode = hashCode * 59 + this.NonHeapUtilization.GetHashCode(); + if (this.TotalHeap != null) + hashCode = hashCode * 59 + this.TotalHeap.GetHashCode(); + if (this.TotalHeapBytes != null) + hashCode = hashCode * 59 + this.TotalHeapBytes.GetHashCode(); + if (this.UsedHeap != null) + hashCode = hashCode * 59 + this.UsedHeap.GetHashCode(); + if (this.UsedHeapBytes != null) + hashCode = hashCode * 59 + this.UsedHeapBytes.GetHashCode(); + if (this.FreeHeap != null) + hashCode = hashCode * 59 + this.FreeHeap.GetHashCode(); + if (this.FreeHeapBytes != null) + hashCode = hashCode * 59 + this.FreeHeapBytes.GetHashCode(); + if (this.MaxHeap != null) + hashCode = hashCode * 59 + this.MaxHeap.GetHashCode(); + if (this.MaxHeapBytes != null) + hashCode = hashCode * 59 + this.MaxHeapBytes.GetHashCode(); + if (this.HeapUtilization != null) + hashCode = hashCode * 59 + this.HeapUtilization.GetHashCode(); + if (this.AvailableProcessors != null) + hashCode = hashCode * 59 + this.AvailableProcessors.GetHashCode(); + if (this.ProcessorLoadAverage != null) + hashCode = hashCode * 59 + this.ProcessorLoadAverage.GetHashCode(); + if (this.TotalThreads != null) + hashCode = hashCode * 59 + this.TotalThreads.GetHashCode(); + if (this.DaemonThreads != null) + hashCode = hashCode * 59 + this.DaemonThreads.GetHashCode(); + if (this.Uptime != null) + hashCode = hashCode * 59 + this.Uptime.GetHashCode(); + if (this.FlowFileRepositoryStorageUsage != null) + hashCode = hashCode * 59 + this.FlowFileRepositoryStorageUsage.GetHashCode(); + if (this.ContentRepositoryStorageUsage != null) + hashCode = hashCode * 59 + this.ContentRepositoryStorageUsage.GetHashCode(); + if (this.ProvenanceRepositoryStorageUsage != null) + hashCode = hashCode * 59 + this.ProvenanceRepositoryStorageUsage.GetHashCode(); + if (this.GarbageCollection != null) + hashCode = hashCode * 59 + this.GarbageCollection.GetHashCode(); + if (this.StatsLastRefreshed != null) + hashCode = hashCode * 59 + this.StatsLastRefreshed.GetHashCode(); + if (this.VersionInfo != null) + hashCode = hashCode * 59 + this.VersionInfo.GetHashCode(); + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/NiFi.Swagger/Model/TemplateDTO.cs b/NiFi.Swagger/Model/TemplateDTO.cs new file mode 100644 index 0000000..1e442d0 --- /dev/null +++ b/NiFi.Swagger/Model/TemplateDTO.cs @@ -0,0 +1,238 @@ +/* + * NiFi Rest Api + * + * The Rest Api provides programmatic access to command and control a NiFi instance in real time. Start and stop processors, monitor queues, query provenance data, and more. Each endpoint below includes a description, definitions of the expected input and output, potential response codes, and the authorizations required to invoke each service. + * + * OpenAPI spec version: 1.9.1 + * Contact: dev@nifi.apache.org + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +namespace NiFi.Swagger.Model +{ + using System; + using System.Collections.Generic; + using System.ComponentModel.DataAnnotations; + using System.Runtime.Serialization; + using System.Text; + + using Newtonsoft.Json; + + /// + /// TemplateDTO + /// + [DataContract] + public partial class TemplateDTO : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// The URI for the template.. + /// The id of the template.. + /// The id of the Process Group that the template belongs to.. + /// The name of the template.. + /// The description of the template.. + /// The timestamp when this template was created.. + /// The encoding version of this template.. + /// The contents of the template.. + public TemplateDTO(string uri = default(string), string id = default(string), string groupId = default(string), string name = default(string), string description = default(string), string timestamp = default(string), string encodingVersion = default(string), FlowSnippetDTO snippet = default(FlowSnippetDTO)) + { + this.Uri = uri; + this.Id = id; + this.GroupId = groupId; + this.Name = name; + this.Description = description; + this.Timestamp = timestamp; + this.EncodingVersion = encodingVersion; + this.Snippet = snippet; + } + + /// + /// The URI for the template. + /// + /// The URI for the template. + [DataMember(Name="uri", EmitDefaultValue=false)] + public string Uri { get; set; } + + /// + /// The id of the template. + /// + /// The id of the template. + [DataMember(Name="id", EmitDefaultValue=false)] + public string Id { get; set; } + + /// + /// The id of the Process Group that the template belongs to. + /// + /// The id of the Process Group that the template belongs to. + [DataMember(Name="groupId", EmitDefaultValue=false)] + public string GroupId { get; set; } + + /// + /// The name of the template. + /// + /// The name of the template. + [DataMember(Name="name", EmitDefaultValue=false)] + public string Name { get; set; } + + /// + /// The description of the template. + /// + /// The description of the template. + [DataMember(Name="description", EmitDefaultValue=false)] + public string Description { get; set; } + + /// + /// The timestamp when this template was created. + /// + /// The timestamp when this template was created. + [DataMember(Name="timestamp", EmitDefaultValue=false)] + public string Timestamp { get; set; } + + /// + /// The encoding version of this template. + /// + /// The encoding version of this template. + [DataMember(Name="encodingVersion", EmitDefaultValue=false)] + public string EncodingVersion { get; set; } + + /// + /// The contents of the template. + /// + /// The contents of the template. + [DataMember(Name="snippet", EmitDefaultValue=false)] + public FlowSnippetDTO Snippet { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class TemplateDTO {\n"); + sb.Append(" Uri: ").Append(this.Uri).Append("\n"); + sb.Append(" Id: ").Append(this.Id).Append("\n"); + sb.Append(" GroupId: ").Append(this.GroupId).Append("\n"); + sb.Append(" Name: ").Append(this.Name).Append("\n"); + sb.Append(" Description: ").Append(this.Description).Append("\n"); + sb.Append(" Timestamp: ").Append(this.Timestamp).Append("\n"); + sb.Append(" EncodingVersion: ").Append(this.EncodingVersion).Append("\n"); + sb.Append(" Snippet: ").Append(this.Snippet).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as TemplateDTO); + } + + /// + /// Returns true if TemplateDTO instances are equal + /// + /// Instance of TemplateDTO to be compared + /// Boolean + public bool Equals(TemplateDTO input) + { + if (input == null) + return false; + + return + ( + this.Uri == input.Uri || + (this.Uri != null && + this.Uri.Equals(input.Uri)) + ) && + ( + this.Id == input.Id || + (this.Id != null && + this.Id.Equals(input.Id)) + ) && + ( + this.GroupId == input.GroupId || + (this.GroupId != null && + this.GroupId.Equals(input.GroupId)) + ) && + ( + this.Name == input.Name || + (this.Name != null && + this.Name.Equals(input.Name)) + ) && + ( + this.Description == input.Description || + (this.Description != null && + this.Description.Equals(input.Description)) + ) && + ( + this.Timestamp == input.Timestamp || + (this.Timestamp != null && + this.Timestamp.Equals(input.Timestamp)) + ) && + ( + this.EncodingVersion == input.EncodingVersion || + (this.EncodingVersion != null && + this.EncodingVersion.Equals(input.EncodingVersion)) + ) && + ( + this.Snippet == input.Snippet || + (this.Snippet != null && + this.Snippet.Equals(input.Snippet)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Uri != null) + hashCode = hashCode * 59 + this.Uri.GetHashCode(); + if (this.Id != null) + hashCode = hashCode * 59 + this.Id.GetHashCode(); + if (this.GroupId != null) + hashCode = hashCode * 59 + this.GroupId.GetHashCode(); + if (this.Name != null) + hashCode = hashCode * 59 + this.Name.GetHashCode(); + if (this.Description != null) + hashCode = hashCode * 59 + this.Description.GetHashCode(); + if (this.Timestamp != null) + hashCode = hashCode * 59 + this.Timestamp.GetHashCode(); + if (this.EncodingVersion != null) + hashCode = hashCode * 59 + this.EncodingVersion.GetHashCode(); + if (this.Snippet != null) + hashCode = hashCode * 59 + this.Snippet.GetHashCode(); + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/NiFi.Swagger/Model/TemplateEntity.cs b/NiFi.Swagger/Model/TemplateEntity.cs new file mode 100644 index 0000000..39744ad --- /dev/null +++ b/NiFi.Swagger/Model/TemplateEntity.cs @@ -0,0 +1,238 @@ +/* + * NiFi Rest Api + * + * The Rest Api provides programmatic access to command and control a NiFi instance in real time. Start and stop processors, monitor queues, query provenance data, and more. Each endpoint below includes a description, definitions of the expected input and output, potential response codes, and the authorizations required to invoke each service. + * + * OpenAPI spec version: 1.9.1 + * Contact: dev@nifi.apache.org + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +namespace NiFi.Swagger.Model +{ + using System; + using System.Collections.Generic; + using System.ComponentModel.DataAnnotations; + using System.Linq; + using System.Runtime.Serialization; + using System.Text; + + using Newtonsoft.Json; + + /// + /// TemplateEntity + /// + [DataContract] + public partial class TemplateEntity : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// The revision for this request/response. The revision is required for any mutable flow requests and is included in all responses.. + /// The id of the component.. + /// The URI for futures requests to the component.. + /// The position of this component in the UI if applicable.. + /// The permissions for this component.. + /// The bulletins for this component.. + /// Acknowledges that this node is disconnected to allow for mutable requests to proceed.. + /// template. + public TemplateEntity(RevisionDTO revision = default(RevisionDTO), string id = default(string), string uri = default(string), PositionDTO position = default(PositionDTO), PermissionsDTO permissions = default(PermissionsDTO), List bulletins = default(List), bool? disconnectedNodeAcknowledged = default(bool?), TemplateDTO template = default(TemplateDTO)) + { + this.Revision = revision; + this.Id = id; + this.Uri = uri; + this.Position = position; + this.Permissions = permissions; + this.Bulletins = bulletins; + this.DisconnectedNodeAcknowledged = disconnectedNodeAcknowledged; + this.Template = template; + } + + /// + /// The revision for this request/response. The revision is required for any mutable flow requests and is included in all responses. + /// + /// The revision for this request/response. The revision is required for any mutable flow requests and is included in all responses. + [DataMember(Name="revision", EmitDefaultValue=false)] + public RevisionDTO Revision { get; set; } + + /// + /// The id of the component. + /// + /// The id of the component. + [DataMember(Name="id", EmitDefaultValue=false)] + public string Id { get; set; } + + /// + /// The URI for futures requests to the component. + /// + /// The URI for futures requests to the component. + [DataMember(Name="uri", EmitDefaultValue=false)] + public string Uri { get; set; } + + /// + /// The position of this component in the UI if applicable. + /// + /// The position of this component in the UI if applicable. + [DataMember(Name="position", EmitDefaultValue=false)] + public PositionDTO Position { get; set; } + + /// + /// The permissions for this component. + /// + /// The permissions for this component. + [DataMember(Name="permissions", EmitDefaultValue=false)] + public PermissionsDTO Permissions { get; set; } + + /// + /// The bulletins for this component. + /// + /// The bulletins for this component. + [DataMember(Name="bulletins", EmitDefaultValue=false)] + public List Bulletins { get; set; } + + /// + /// Acknowledges that this node is disconnected to allow for mutable requests to proceed. + /// + /// Acknowledges that this node is disconnected to allow for mutable requests to proceed. + [DataMember(Name="disconnectedNodeAcknowledged", EmitDefaultValue=false)] + public bool? DisconnectedNodeAcknowledged { get; set; } + + /// + /// Gets or Sets Template + /// + [DataMember(Name="template", EmitDefaultValue=false)] + public TemplateDTO Template { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class TemplateEntity {\n"); + sb.Append(" Revision: ").Append(this.Revision).Append("\n"); + sb.Append(" Id: ").Append(this.Id).Append("\n"); + sb.Append(" Uri: ").Append(this.Uri).Append("\n"); + sb.Append(" Position: ").Append(this.Position).Append("\n"); + sb.Append(" Permissions: ").Append(this.Permissions).Append("\n"); + sb.Append(" Bulletins: ").Append(this.Bulletins).Append("\n"); + sb.Append(" DisconnectedNodeAcknowledged: ").Append(this.DisconnectedNodeAcknowledged).Append("\n"); + sb.Append(" Template: ").Append(this.Template).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as TemplateEntity); + } + + /// + /// Returns true if TemplateEntity instances are equal + /// + /// Instance of TemplateEntity to be compared + /// Boolean + public bool Equals(TemplateEntity input) + { + if (input == null) + return false; + + return + ( + this.Revision == input.Revision || + (this.Revision != null && + this.Revision.Equals(input.Revision)) + ) && + ( + this.Id == input.Id || + (this.Id != null && + this.Id.Equals(input.Id)) + ) && + ( + this.Uri == input.Uri || + (this.Uri != null && + this.Uri.Equals(input.Uri)) + ) && + ( + this.Position == input.Position || + (this.Position != null && + this.Position.Equals(input.Position)) + ) && + ( + this.Permissions == input.Permissions || + (this.Permissions != null && + this.Permissions.Equals(input.Permissions)) + ) && + ( + this.Bulletins == input.Bulletins || + this.Bulletins != null && + this.Bulletins.SequenceEqual(input.Bulletins) + ) && + ( + this.DisconnectedNodeAcknowledged == input.DisconnectedNodeAcknowledged || + (this.DisconnectedNodeAcknowledged != null && + this.DisconnectedNodeAcknowledged.Equals(input.DisconnectedNodeAcknowledged)) + ) && + ( + this.Template == input.Template || + (this.Template != null && + this.Template.Equals(input.Template)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Revision != null) + hashCode = hashCode * 59 + this.Revision.GetHashCode(); + if (this.Id != null) + hashCode = hashCode * 59 + this.Id.GetHashCode(); + if (this.Uri != null) + hashCode = hashCode * 59 + this.Uri.GetHashCode(); + if (this.Position != null) + hashCode = hashCode * 59 + this.Position.GetHashCode(); + if (this.Permissions != null) + hashCode = hashCode * 59 + this.Permissions.GetHashCode(); + if (this.Bulletins != null) + hashCode = hashCode * 59 + this.Bulletins.GetHashCode(); + if (this.DisconnectedNodeAcknowledged != null) + hashCode = hashCode * 59 + this.DisconnectedNodeAcknowledged.GetHashCode(); + if (this.Template != null) + hashCode = hashCode * 59 + this.Template.GetHashCode(); + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/NiFi.Swagger/Model/TemplatesEntity.cs b/NiFi.Swagger/Model/TemplatesEntity.cs new file mode 100644 index 0000000..c9e8554 --- /dev/null +++ b/NiFi.Swagger/Model/TemplatesEntity.cs @@ -0,0 +1,136 @@ +/* + * NiFi Rest Api + * + * The Rest Api provides programmatic access to command and control a NiFi instance in real time. Start and stop processors, monitor queues, query provenance data, and more. Each endpoint below includes a description, definitions of the expected input and output, potential response codes, and the authorizations required to invoke each service. + * + * OpenAPI spec version: 1.9.1 + * Contact: dev@nifi.apache.org + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +namespace NiFi.Swagger.Model +{ + using System; + using System.Collections.Generic; + using System.ComponentModel.DataAnnotations; + using System.Linq; + using System.Runtime.Serialization; + using System.Text; + + using Newtonsoft.Json; + + /// + /// TemplatesEntity + /// + [DataContract] + public partial class TemplatesEntity : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// templates. + /// When this content was generated.. + public TemplatesEntity(List templates = default(List), string generated = default(string)) + { + this.Templates = templates; + this.Generated = generated; + } + + /// + /// Gets or Sets Templates + /// + [DataMember(Name="templates", EmitDefaultValue=false)] + public List Templates { get; set; } + + /// + /// When this content was generated. + /// + /// When this content was generated. + [DataMember(Name="generated", EmitDefaultValue=false)] + public string Generated { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class TemplatesEntity {\n"); + sb.Append(" Templates: ").Append(this.Templates).Append("\n"); + sb.Append(" Generated: ").Append(this.Generated).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as TemplatesEntity); + } + + /// + /// Returns true if TemplatesEntity instances are equal + /// + /// Instance of TemplatesEntity to be compared + /// Boolean + public bool Equals(TemplatesEntity input) + { + if (input == null) + return false; + + return + ( + this.Templates == input.Templates || + this.Templates != null && + this.Templates.SequenceEqual(input.Templates) + ) && + ( + this.Generated == input.Generated || + (this.Generated != null && + this.Generated.Equals(input.Generated)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Templates != null) + hashCode = hashCode * 59 + this.Templates.GetHashCode(); + if (this.Generated != null) + hashCode = hashCode * 59 + this.Generated.GetHashCode(); + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/NiFi.Swagger/Model/TenantDTO.cs b/NiFi.Swagger/Model/TenantDTO.cs new file mode 100644 index 0000000..d7e6153 --- /dev/null +++ b/NiFi.Swagger/Model/TenantDTO.cs @@ -0,0 +1,204 @@ +/* + * NiFi Rest Api + * + * The Rest Api provides programmatic access to command and control a NiFi instance in real time. Start and stop processors, monitor queues, query provenance data, and more. Each endpoint below includes a description, definitions of the expected input and output, potential response codes, and the authorizations required to invoke each service. + * + * OpenAPI spec version: 1.9.1 + * Contact: dev@nifi.apache.org + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +namespace NiFi.Swagger.Model +{ + using System; + using System.Collections.Generic; + using System.ComponentModel.DataAnnotations; + using System.Runtime.Serialization; + using System.Text; + + using Newtonsoft.Json; + + /// + /// TenantDTO + /// + [DataContract] + public partial class TenantDTO : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// The id of the component.. + /// The ID of the corresponding component that is under version control. + /// The id of parent process group of this component if applicable.. + /// The position of this component in the UI if applicable.. + /// The identity of the tenant.. + /// Whether this tenant is configurable.. + public TenantDTO(string id = default(string), string versionedComponentId = default(string), string parentGroupId = default(string), PositionDTO position = default(PositionDTO), string identity = default(string), bool? configurable = default(bool?)) + { + this.Id = id; + this.VersionedComponentId = versionedComponentId; + this.ParentGroupId = parentGroupId; + this.Position = position; + this.Identity = identity; + this.Configurable = configurable; + } + + /// + /// The id of the component. + /// + /// The id of the component. + [DataMember(Name="id", EmitDefaultValue=false)] + public string Id { get; set; } + + /// + /// The ID of the corresponding component that is under version control + /// + /// The ID of the corresponding component that is under version control + [DataMember(Name="versionedComponentId", EmitDefaultValue=false)] + public string VersionedComponentId { get; set; } + + /// + /// The id of parent process group of this component if applicable. + /// + /// The id of parent process group of this component if applicable. + [DataMember(Name="parentGroupId", EmitDefaultValue=false)] + public string ParentGroupId { get; set; } + + /// + /// The position of this component in the UI if applicable. + /// + /// The position of this component in the UI if applicable. + [DataMember(Name="position", EmitDefaultValue=false)] + public PositionDTO Position { get; set; } + + /// + /// The identity of the tenant. + /// + /// The identity of the tenant. + [DataMember(Name="identity", EmitDefaultValue=false)] + public string Identity { get; set; } + + /// + /// Whether this tenant is configurable. + /// + /// Whether this tenant is configurable. + [DataMember(Name="configurable", EmitDefaultValue=false)] + public bool? Configurable { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class TenantDTO {\n"); + sb.Append(" Id: ").Append(this.Id).Append("\n"); + sb.Append(" VersionedComponentId: ").Append(this.VersionedComponentId).Append("\n"); + sb.Append(" ParentGroupId: ").Append(this.ParentGroupId).Append("\n"); + sb.Append(" Position: ").Append(this.Position).Append("\n"); + sb.Append(" Identity: ").Append(this.Identity).Append("\n"); + sb.Append(" Configurable: ").Append(this.Configurable).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as TenantDTO); + } + + /// + /// Returns true if TenantDTO instances are equal + /// + /// Instance of TenantDTO to be compared + /// Boolean + public bool Equals(TenantDTO input) + { + if (input == null) + return false; + + return + ( + this.Id == input.Id || + (this.Id != null && + this.Id.Equals(input.Id)) + ) && + ( + this.VersionedComponentId == input.VersionedComponentId || + (this.VersionedComponentId != null && + this.VersionedComponentId.Equals(input.VersionedComponentId)) + ) && + ( + this.ParentGroupId == input.ParentGroupId || + (this.ParentGroupId != null && + this.ParentGroupId.Equals(input.ParentGroupId)) + ) && + ( + this.Position == input.Position || + (this.Position != null && + this.Position.Equals(input.Position)) + ) && + ( + this.Identity == input.Identity || + (this.Identity != null && + this.Identity.Equals(input.Identity)) + ) && + ( + this.Configurable == input.Configurable || + (this.Configurable != null && + this.Configurable.Equals(input.Configurable)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Id != null) + hashCode = hashCode * 59 + this.Id.GetHashCode(); + if (this.VersionedComponentId != null) + hashCode = hashCode * 59 + this.VersionedComponentId.GetHashCode(); + if (this.ParentGroupId != null) + hashCode = hashCode * 59 + this.ParentGroupId.GetHashCode(); + if (this.Position != null) + hashCode = hashCode * 59 + this.Position.GetHashCode(); + if (this.Identity != null) + hashCode = hashCode * 59 + this.Identity.GetHashCode(); + if (this.Configurable != null) + hashCode = hashCode * 59 + this.Configurable.GetHashCode(); + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/NiFi.Swagger/Model/TenantEntity.cs b/NiFi.Swagger/Model/TenantEntity.cs new file mode 100644 index 0000000..5b5ffd0 --- /dev/null +++ b/NiFi.Swagger/Model/TenantEntity.cs @@ -0,0 +1,238 @@ +/* + * NiFi Rest Api + * + * The Rest Api provides programmatic access to command and control a NiFi instance in real time. Start and stop processors, monitor queues, query provenance data, and more. Each endpoint below includes a description, definitions of the expected input and output, potential response codes, and the authorizations required to invoke each service. + * + * OpenAPI spec version: 1.9.1 + * Contact: dev@nifi.apache.org + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +namespace NiFi.Swagger.Model +{ + using System; + using System.Collections.Generic; + using System.ComponentModel.DataAnnotations; + using System.Linq; + using System.Runtime.Serialization; + using System.Text; + + using Newtonsoft.Json; + + /// + /// TenantEntity + /// + [DataContract] + public partial class TenantEntity : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// The revision for this request/response. The revision is required for any mutable flow requests and is included in all responses.. + /// The id of the component.. + /// The URI for futures requests to the component.. + /// The position of this component in the UI if applicable.. + /// The permissions for this component.. + /// The bulletins for this component.. + /// Acknowledges that this node is disconnected to allow for mutable requests to proceed.. + /// component. + public TenantEntity(RevisionDTO revision = default(RevisionDTO), string id = default(string), string uri = default(string), PositionDTO position = default(PositionDTO), PermissionsDTO permissions = default(PermissionsDTO), List bulletins = default(List), bool? disconnectedNodeAcknowledged = default(bool?), TenantDTO component = default(TenantDTO)) + { + this.Revision = revision; + this.Id = id; + this.Uri = uri; + this.Position = position; + this.Permissions = permissions; + this.Bulletins = bulletins; + this.DisconnectedNodeAcknowledged = disconnectedNodeAcknowledged; + this.Component = component; + } + + /// + /// The revision for this request/response. The revision is required for any mutable flow requests and is included in all responses. + /// + /// The revision for this request/response. The revision is required for any mutable flow requests and is included in all responses. + [DataMember(Name="revision", EmitDefaultValue=false)] + public RevisionDTO Revision { get; set; } + + /// + /// The id of the component. + /// + /// The id of the component. + [DataMember(Name="id", EmitDefaultValue=false)] + public string Id { get; set; } + + /// + /// The URI for futures requests to the component. + /// + /// The URI for futures requests to the component. + [DataMember(Name="uri", EmitDefaultValue=false)] + public string Uri { get; set; } + + /// + /// The position of this component in the UI if applicable. + /// + /// The position of this component in the UI if applicable. + [DataMember(Name="position", EmitDefaultValue=false)] + public PositionDTO Position { get; set; } + + /// + /// The permissions for this component. + /// + /// The permissions for this component. + [DataMember(Name="permissions", EmitDefaultValue=false)] + public PermissionsDTO Permissions { get; set; } + + /// + /// The bulletins for this component. + /// + /// The bulletins for this component. + [DataMember(Name="bulletins", EmitDefaultValue=false)] + public List Bulletins { get; set; } + + /// + /// Acknowledges that this node is disconnected to allow for mutable requests to proceed. + /// + /// Acknowledges that this node is disconnected to allow for mutable requests to proceed. + [DataMember(Name="disconnectedNodeAcknowledged", EmitDefaultValue=false)] + public bool? DisconnectedNodeAcknowledged { get; set; } + + /// + /// Gets or Sets Component + /// + [DataMember(Name="component", EmitDefaultValue=false)] + public TenantDTO Component { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class TenantEntity {\n"); + sb.Append(" Revision: ").Append(this.Revision).Append("\n"); + sb.Append(" Id: ").Append(this.Id).Append("\n"); + sb.Append(" Uri: ").Append(this.Uri).Append("\n"); + sb.Append(" Position: ").Append(this.Position).Append("\n"); + sb.Append(" Permissions: ").Append(this.Permissions).Append("\n"); + sb.Append(" Bulletins: ").Append(this.Bulletins).Append("\n"); + sb.Append(" DisconnectedNodeAcknowledged: ").Append(this.DisconnectedNodeAcknowledged).Append("\n"); + sb.Append(" Component: ").Append(this.Component).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as TenantEntity); + } + + /// + /// Returns true if TenantEntity instances are equal + /// + /// Instance of TenantEntity to be compared + /// Boolean + public bool Equals(TenantEntity input) + { + if (input == null) + return false; + + return + ( + this.Revision == input.Revision || + (this.Revision != null && + this.Revision.Equals(input.Revision)) + ) && + ( + this.Id == input.Id || + (this.Id != null && + this.Id.Equals(input.Id)) + ) && + ( + this.Uri == input.Uri || + (this.Uri != null && + this.Uri.Equals(input.Uri)) + ) && + ( + this.Position == input.Position || + (this.Position != null && + this.Position.Equals(input.Position)) + ) && + ( + this.Permissions == input.Permissions || + (this.Permissions != null && + this.Permissions.Equals(input.Permissions)) + ) && + ( + this.Bulletins == input.Bulletins || + this.Bulletins != null && + this.Bulletins.SequenceEqual(input.Bulletins) + ) && + ( + this.DisconnectedNodeAcknowledged == input.DisconnectedNodeAcknowledged || + (this.DisconnectedNodeAcknowledged != null && + this.DisconnectedNodeAcknowledged.Equals(input.DisconnectedNodeAcknowledged)) + ) && + ( + this.Component == input.Component || + (this.Component != null && + this.Component.Equals(input.Component)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Revision != null) + hashCode = hashCode * 59 + this.Revision.GetHashCode(); + if (this.Id != null) + hashCode = hashCode * 59 + this.Id.GetHashCode(); + if (this.Uri != null) + hashCode = hashCode * 59 + this.Uri.GetHashCode(); + if (this.Position != null) + hashCode = hashCode * 59 + this.Position.GetHashCode(); + if (this.Permissions != null) + hashCode = hashCode * 59 + this.Permissions.GetHashCode(); + if (this.Bulletins != null) + hashCode = hashCode * 59 + this.Bulletins.GetHashCode(); + if (this.DisconnectedNodeAcknowledged != null) + hashCode = hashCode * 59 + this.DisconnectedNodeAcknowledged.GetHashCode(); + if (this.Component != null) + hashCode = hashCode * 59 + this.Component.GetHashCode(); + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/NiFi.Swagger/Model/TenantsEntity.cs b/NiFi.Swagger/Model/TenantsEntity.cs new file mode 100644 index 0000000..67e47bb --- /dev/null +++ b/NiFi.Swagger/Model/TenantsEntity.cs @@ -0,0 +1,135 @@ +/* + * NiFi Rest Api + * + * The Rest Api provides programmatic access to command and control a NiFi instance in real time. Start and stop processors, monitor queues, query provenance data, and more. Each endpoint below includes a description, definitions of the expected input and output, potential response codes, and the authorizations required to invoke each service. + * + * OpenAPI spec version: 1.9.1 + * Contact: dev@nifi.apache.org + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +namespace NiFi.Swagger.Model +{ + using System; + using System.Collections.Generic; + using System.ComponentModel.DataAnnotations; + using System.Linq; + using System.Runtime.Serialization; + using System.Text; + + using Newtonsoft.Json; + + /// + /// TenantsEntity + /// + [DataContract] + public partial class TenantsEntity : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// users. + /// userGroups. + public TenantsEntity(List users = default(List), List userGroups = default(List)) + { + this.Users = users; + this.UserGroups = userGroups; + } + + /// + /// Gets or Sets Users + /// + [DataMember(Name="users", EmitDefaultValue=false)] + public List Users { get; set; } + + /// + /// Gets or Sets UserGroups + /// + [DataMember(Name="userGroups", EmitDefaultValue=false)] + public List UserGroups { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class TenantsEntity {\n"); + sb.Append(" Users: ").Append(this.Users).Append("\n"); + sb.Append(" UserGroups: ").Append(this.UserGroups).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as TenantsEntity); + } + + /// + /// Returns true if TenantsEntity instances are equal + /// + /// Instance of TenantsEntity to be compared + /// Boolean + public bool Equals(TenantsEntity input) + { + if (input == null) + return false; + + return + ( + this.Users == input.Users || + this.Users != null && + this.Users.SequenceEqual(input.Users) + ) && + ( + this.UserGroups == input.UserGroups || + this.UserGroups != null && + this.UserGroups.SequenceEqual(input.UserGroups) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Users != null) + hashCode = hashCode * 59 + this.Users.GetHashCode(); + if (this.UserGroups != null) + hashCode = hashCode * 59 + this.UserGroups.GetHashCode(); + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/NiFi.Swagger/Model/TransactionResultEntity.cs b/NiFi.Swagger/Model/TransactionResultEntity.cs new file mode 100644 index 0000000..a49a8f7 --- /dev/null +++ b/NiFi.Swagger/Model/TransactionResultEntity.cs @@ -0,0 +1,150 @@ +/* + * NiFi Rest Api + * + * The Rest Api provides programmatic access to command and control a NiFi instance in real time. Start and stop processors, monitor queues, query provenance data, and more. Each endpoint below includes a description, definitions of the expected input and output, potential response codes, and the authorizations required to invoke each service. + * + * OpenAPI spec version: 1.9.1 + * Contact: dev@nifi.apache.org + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +namespace NiFi.Swagger.Model +{ + using System; + using System.Collections.Generic; + using System.ComponentModel.DataAnnotations; + using System.Runtime.Serialization; + using System.Text; + + using Newtonsoft.Json; + + /// + /// TransactionResultEntity + /// + [DataContract] + public partial class TransactionResultEntity : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// flowFileSent. + /// responseCode. + /// message. + public TransactionResultEntity(int? flowFileSent = default(int?), int? responseCode = default(int?), string message = default(string)) + { + this.FlowFileSent = flowFileSent; + this.ResponseCode = responseCode; + this.Message = message; + } + + /// + /// Gets or Sets FlowFileSent + /// + [DataMember(Name="flowFileSent", EmitDefaultValue=false)] + public int? FlowFileSent { get; set; } + + /// + /// Gets or Sets ResponseCode + /// + [DataMember(Name="responseCode", EmitDefaultValue=false)] + public int? ResponseCode { get; set; } + + /// + /// Gets or Sets Message + /// + [DataMember(Name="message", EmitDefaultValue=false)] + public string Message { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class TransactionResultEntity {\n"); + sb.Append(" FlowFileSent: ").Append(this.FlowFileSent).Append("\n"); + sb.Append(" ResponseCode: ").Append(this.ResponseCode).Append("\n"); + sb.Append(" Message: ").Append(this.Message).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as TransactionResultEntity); + } + + /// + /// Returns true if TransactionResultEntity instances are equal + /// + /// Instance of TransactionResultEntity to be compared + /// Boolean + public bool Equals(TransactionResultEntity input) + { + if (input == null) + return false; + + return + ( + this.FlowFileSent == input.FlowFileSent || + (this.FlowFileSent != null && + this.FlowFileSent.Equals(input.FlowFileSent)) + ) && + ( + this.ResponseCode == input.ResponseCode || + (this.ResponseCode != null && + this.ResponseCode.Equals(input.ResponseCode)) + ) && + ( + this.Message == input.Message || + (this.Message != null && + this.Message.Equals(input.Message)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.FlowFileSent != null) + hashCode = hashCode * 59 + this.FlowFileSent.GetHashCode(); + if (this.ResponseCode != null) + hashCode = hashCode * 59 + this.ResponseCode.GetHashCode(); + if (this.Message != null) + hashCode = hashCode * 59 + this.Message.GetHashCode(); + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/NiFi.Swagger/Model/UpdateControllerServiceReferenceRequestEntity.cs b/NiFi.Swagger/Model/UpdateControllerServiceReferenceRequestEntity.cs new file mode 100644 index 0000000..e59b695 --- /dev/null +++ b/NiFi.Swagger/Model/UpdateControllerServiceReferenceRequestEntity.cs @@ -0,0 +1,205 @@ +/* + * NiFi Rest Api + * + * The Rest Api provides programmatic access to command and control a NiFi instance in real time. Start and stop processors, monitor queues, query provenance data, and more. Each endpoint below includes a description, definitions of the expected input and output, potential response codes, and the authorizations required to invoke each service. + * + * OpenAPI spec version: 1.9.1 + * Contact: dev@nifi.apache.org + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +namespace NiFi.Swagger.Model +{ + using System; + using System.Collections.Generic; + using System.ComponentModel.DataAnnotations; + using System.Linq; + using System.Runtime.Serialization; + using System.Text; + + using Newtonsoft.Json; + using Newtonsoft.Json.Converters; + + /// + /// UpdateControllerServiceReferenceRequestEntity + /// + [DataContract] + public partial class UpdateControllerServiceReferenceRequestEntity : IEquatable, IValidatableObject + { + /// + /// The new state of the references for the controller service. + /// + /// The new state of the references for the controller service. + [JsonConverter(typeof(StringEnumConverter))] + public enum StateEnum + { + + /// + /// Enum ENABLED for value: ENABLED + /// + [EnumMember(Value = "ENABLED")] + ENABLED = 1, + + /// + /// Enum DISABLED for value: DISABLED + /// + [EnumMember(Value = "DISABLED")] + DISABLED = 2, + + /// + /// Enum RUNNING for value: RUNNING + /// + [EnumMember(Value = "RUNNING")] + RUNNING = 3, + + /// + /// Enum STOPPED for value: STOPPED + /// + [EnumMember(Value = "STOPPED")] + STOPPED = 4 + } + + /// + /// The new state of the references for the controller service. + /// + /// The new state of the references for the controller service. + [DataMember(Name="state", EmitDefaultValue=false)] + public StateEnum? State { get; set; } + /// + /// Initializes a new instance of the class. + /// + /// The identifier of the Controller Service.. + /// The new state of the references for the controller service.. + /// The revisions for all referencing components.. + /// Acknowledges that this node is disconnected to allow for mutable requests to proceed.. + public UpdateControllerServiceReferenceRequestEntity(string id = default(string), StateEnum? state = default(StateEnum?), Dictionary referencingComponentRevisions = default(Dictionary), bool? disconnectedNodeAcknowledged = default(bool?)) + { + this.Id = id; + this.State = state; + this.ReferencingComponentRevisions = referencingComponentRevisions; + this.DisconnectedNodeAcknowledged = disconnectedNodeAcknowledged; + } + + /// + /// The identifier of the Controller Service. + /// + /// The identifier of the Controller Service. + [DataMember(Name="id", EmitDefaultValue=false)] + public string Id { get; set; } + + + /// + /// The revisions for all referencing components. + /// + /// The revisions for all referencing components. + [DataMember(Name="referencingComponentRevisions", EmitDefaultValue=false)] + public Dictionary ReferencingComponentRevisions { get; set; } + + /// + /// Acknowledges that this node is disconnected to allow for mutable requests to proceed. + /// + /// Acknowledges that this node is disconnected to allow for mutable requests to proceed. + [DataMember(Name="disconnectedNodeAcknowledged", EmitDefaultValue=false)] + public bool? DisconnectedNodeAcknowledged { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class UpdateControllerServiceReferenceRequestEntity {\n"); + sb.Append(" Id: ").Append(this.Id).Append("\n"); + sb.Append(" State: ").Append(this.State).Append("\n"); + sb.Append(" ReferencingComponentRevisions: ").Append(this.ReferencingComponentRevisions).Append("\n"); + sb.Append(" DisconnectedNodeAcknowledged: ").Append(this.DisconnectedNodeAcknowledged).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as UpdateControllerServiceReferenceRequestEntity); + } + + /// + /// Returns true if UpdateControllerServiceReferenceRequestEntity instances are equal + /// + /// Instance of UpdateControllerServiceReferenceRequestEntity to be compared + /// Boolean + public bool Equals(UpdateControllerServiceReferenceRequestEntity input) + { + if (input == null) + return false; + + return + ( + this.Id == input.Id || + (this.Id != null && + this.Id.Equals(input.Id)) + ) && + ( + this.State == input.State || + (this.State != null && + this.State.Equals(input.State)) + ) && + ( + this.ReferencingComponentRevisions == input.ReferencingComponentRevisions || + this.ReferencingComponentRevisions != null && + this.ReferencingComponentRevisions.SequenceEqual(input.ReferencingComponentRevisions) + ) && + ( + this.DisconnectedNodeAcknowledged == input.DisconnectedNodeAcknowledged || + (this.DisconnectedNodeAcknowledged != null && + this.DisconnectedNodeAcknowledged.Equals(input.DisconnectedNodeAcknowledged)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Id != null) + hashCode = hashCode * 59 + this.Id.GetHashCode(); + if (this.State != null) + hashCode = hashCode * 59 + this.State.GetHashCode(); + if (this.ReferencingComponentRevisions != null) + hashCode = hashCode * 59 + this.ReferencingComponentRevisions.GetHashCode(); + if (this.DisconnectedNodeAcknowledged != null) + hashCode = hashCode * 59 + this.DisconnectedNodeAcknowledged.GetHashCode(); + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/NiFi.Swagger/Model/UriBuilder.cs b/NiFi.Swagger/Model/UriBuilder.cs new file mode 100644 index 0000000..96794eb --- /dev/null +++ b/NiFi.Swagger/Model/UriBuilder.cs @@ -0,0 +1,103 @@ +/* + * NiFi Rest Api + * + * The Rest Api provides programmatic access to command and control a NiFi instance in real time. Start and stop processors, monitor queues, query provenance data, and more. Each endpoint below includes a description, definitions of the expected input and output, potential response codes, and the authorizations required to invoke each service. + * + * OpenAPI spec version: 1.9.1 + * Contact: dev@nifi.apache.org + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +namespace NiFi.Swagger.Model +{ + using System; + using System.Collections.Generic; + using System.ComponentModel.DataAnnotations; + using System.Runtime.Serialization; + using System.Text; + + using Newtonsoft.Json; + + /// + /// UriBuilder + /// + [DataContract] + public partial class UriBuilder : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructor] + public UriBuilder() + { + } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class UriBuilder {\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as UriBuilder); + } + + /// + /// Returns true if UriBuilder instances are equal + /// + /// Instance of UriBuilder to be compared + /// Boolean + public bool Equals(UriBuilder input) + { + if (input == null) + return false; + + return false; + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/NiFi.Swagger/Model/UserDTO.cs b/NiFi.Swagger/Model/UserDTO.cs new file mode 100644 index 0000000..45291b1 --- /dev/null +++ b/NiFi.Swagger/Model/UserDTO.cs @@ -0,0 +1,235 @@ +/* + * NiFi Rest Api + * + * The Rest Api provides programmatic access to command and control a NiFi instance in real time. Start and stop processors, monitor queues, query provenance data, and more. Each endpoint below includes a description, definitions of the expected input and output, potential response codes, and the authorizations required to invoke each service. + * + * OpenAPI spec version: 1.9.1 + * Contact: dev@nifi.apache.org + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +namespace NiFi.Swagger.Model +{ + using System; + using System.Collections.Generic; + using System.ComponentModel.DataAnnotations; + using System.Linq; + using System.Runtime.Serialization; + using System.Text; + + using Newtonsoft.Json; + + /// + /// UserDTO + /// + [DataContract] + public partial class UserDTO : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// The id of the component.. + /// The ID of the corresponding component that is under version control. + /// The id of parent process group of this component if applicable.. + /// The position of this component in the UI if applicable.. + /// The identity of the tenant.. + /// Whether this tenant is configurable.. + public UserDTO(string id = default(string), string versionedComponentId = default(string), string parentGroupId = default(string), PositionDTO position = default(PositionDTO), string identity = default(string), bool? configurable = default(bool?)) + { + this.Id = id; + this.VersionedComponentId = versionedComponentId; + this.ParentGroupId = parentGroupId; + this.Position = position; + this.Identity = identity; + this.Configurable = configurable; + } + + /// + /// The id of the component. + /// + /// The id of the component. + [DataMember(Name="id", EmitDefaultValue=false)] + public string Id { get; set; } + + /// + /// The ID of the corresponding component that is under version control + /// + /// The ID of the corresponding component that is under version control + [DataMember(Name="versionedComponentId", EmitDefaultValue=false)] + public string VersionedComponentId { get; set; } + + /// + /// The id of parent process group of this component if applicable. + /// + /// The id of parent process group of this component if applicable. + [DataMember(Name="parentGroupId", EmitDefaultValue=false)] + public string ParentGroupId { get; set; } + + /// + /// The position of this component in the UI if applicable. + /// + /// The position of this component in the UI if applicable. + [DataMember(Name="position", EmitDefaultValue=false)] + public PositionDTO Position { get; set; } + + /// + /// The identity of the tenant. + /// + /// The identity of the tenant. + [DataMember(Name="identity", EmitDefaultValue=false)] + public string Identity { get; set; } + + /// + /// Whether this tenant is configurable. + /// + /// Whether this tenant is configurable. + [DataMember(Name="configurable", EmitDefaultValue=false)] + public bool? Configurable { get; set; } + + /// + /// The groups to which the user belongs. This field is read only and it provided for convenience. + /// + /// The groups to which the user belongs. This field is read only and it provided for convenience. + [DataMember(Name="userGroups", EmitDefaultValue=false)] + public List UserGroups { get; private set; } + + /// + /// The access policies this user belongs to. + /// + /// The access policies this user belongs to. + [DataMember(Name="accessPolicies", EmitDefaultValue=false)] + public List AccessPolicies { get; private set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class UserDTO {\n"); + sb.Append(" Id: ").Append(this.Id).Append("\n"); + sb.Append(" VersionedComponentId: ").Append(this.VersionedComponentId).Append("\n"); + sb.Append(" ParentGroupId: ").Append(this.ParentGroupId).Append("\n"); + sb.Append(" Position: ").Append(this.Position).Append("\n"); + sb.Append(" Identity: ").Append(this.Identity).Append("\n"); + sb.Append(" Configurable: ").Append(this.Configurable).Append("\n"); + sb.Append(" UserGroups: ").Append(this.UserGroups).Append("\n"); + sb.Append(" AccessPolicies: ").Append(this.AccessPolicies).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as UserDTO); + } + + /// + /// Returns true if UserDTO instances are equal + /// + /// Instance of UserDTO to be compared + /// Boolean + public bool Equals(UserDTO input) + { + if (input == null) + return false; + + return + ( + this.Id == input.Id || + (this.Id != null && + this.Id.Equals(input.Id)) + ) && + ( + this.VersionedComponentId == input.VersionedComponentId || + (this.VersionedComponentId != null && + this.VersionedComponentId.Equals(input.VersionedComponentId)) + ) && + ( + this.ParentGroupId == input.ParentGroupId || + (this.ParentGroupId != null && + this.ParentGroupId.Equals(input.ParentGroupId)) + ) && + ( + this.Position == input.Position || + (this.Position != null && + this.Position.Equals(input.Position)) + ) && + ( + this.Identity == input.Identity || + (this.Identity != null && + this.Identity.Equals(input.Identity)) + ) && + ( + this.Configurable == input.Configurable || + (this.Configurable != null && + this.Configurable.Equals(input.Configurable)) + ) && + ( + this.UserGroups == input.UserGroups || + this.UserGroups != null && + this.UserGroups.SequenceEqual(input.UserGroups) + ) && + ( + this.AccessPolicies == input.AccessPolicies || + this.AccessPolicies != null && + this.AccessPolicies.SequenceEqual(input.AccessPolicies) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Id != null) + hashCode = hashCode * 59 + this.Id.GetHashCode(); + if (this.VersionedComponentId != null) + hashCode = hashCode * 59 + this.VersionedComponentId.GetHashCode(); + if (this.ParentGroupId != null) + hashCode = hashCode * 59 + this.ParentGroupId.GetHashCode(); + if (this.Position != null) + hashCode = hashCode * 59 + this.Position.GetHashCode(); + if (this.Identity != null) + hashCode = hashCode * 59 + this.Identity.GetHashCode(); + if (this.Configurable != null) + hashCode = hashCode * 59 + this.Configurable.GetHashCode(); + if (this.UserGroups != null) + hashCode = hashCode * 59 + this.UserGroups.GetHashCode(); + if (this.AccessPolicies != null) + hashCode = hashCode * 59 + this.AccessPolicies.GetHashCode(); + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/NiFi.Swagger/Model/UserEntity.cs b/NiFi.Swagger/Model/UserEntity.cs new file mode 100644 index 0000000..1502854 --- /dev/null +++ b/NiFi.Swagger/Model/UserEntity.cs @@ -0,0 +1,238 @@ +/* + * NiFi Rest Api + * + * The Rest Api provides programmatic access to command and control a NiFi instance in real time. Start and stop processors, monitor queues, query provenance data, and more. Each endpoint below includes a description, definitions of the expected input and output, potential response codes, and the authorizations required to invoke each service. + * + * OpenAPI spec version: 1.9.1 + * Contact: dev@nifi.apache.org + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +namespace NiFi.Swagger.Model +{ + using System; + using System.Collections.Generic; + using System.ComponentModel.DataAnnotations; + using System.Linq; + using System.Runtime.Serialization; + using System.Text; + + using Newtonsoft.Json; + + /// + /// UserEntity + /// + [DataContract] + public partial class UserEntity : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// The revision for this request/response. The revision is required for any mutable flow requests and is included in all responses.. + /// The id of the component.. + /// The URI for futures requests to the component.. + /// The position of this component in the UI if applicable.. + /// The permissions for this component.. + /// The bulletins for this component.. + /// Acknowledges that this node is disconnected to allow for mutable requests to proceed.. + /// component. + public UserEntity(RevisionDTO revision = default(RevisionDTO), string id = default(string), string uri = default(string), PositionDTO position = default(PositionDTO), PermissionsDTO permissions = default(PermissionsDTO), List bulletins = default(List), bool? disconnectedNodeAcknowledged = default(bool?), UserDTO component = default(UserDTO)) + { + this.Revision = revision; + this.Id = id; + this.Uri = uri; + this.Position = position; + this.Permissions = permissions; + this.Bulletins = bulletins; + this.DisconnectedNodeAcknowledged = disconnectedNodeAcknowledged; + this.Component = component; + } + + /// + /// The revision for this request/response. The revision is required for any mutable flow requests and is included in all responses. + /// + /// The revision for this request/response. The revision is required for any mutable flow requests and is included in all responses. + [DataMember(Name="revision", EmitDefaultValue=false)] + public RevisionDTO Revision { get; set; } + + /// + /// The id of the component. + /// + /// The id of the component. + [DataMember(Name="id", EmitDefaultValue=false)] + public string Id { get; set; } + + /// + /// The URI for futures requests to the component. + /// + /// The URI for futures requests to the component. + [DataMember(Name="uri", EmitDefaultValue=false)] + public string Uri { get; set; } + + /// + /// The position of this component in the UI if applicable. + /// + /// The position of this component in the UI if applicable. + [DataMember(Name="position", EmitDefaultValue=false)] + public PositionDTO Position { get; set; } + + /// + /// The permissions for this component. + /// + /// The permissions for this component. + [DataMember(Name="permissions", EmitDefaultValue=false)] + public PermissionsDTO Permissions { get; set; } + + /// + /// The bulletins for this component. + /// + /// The bulletins for this component. + [DataMember(Name="bulletins", EmitDefaultValue=false)] + public List Bulletins { get; set; } + + /// + /// Acknowledges that this node is disconnected to allow for mutable requests to proceed. + /// + /// Acknowledges that this node is disconnected to allow for mutable requests to proceed. + [DataMember(Name="disconnectedNodeAcknowledged", EmitDefaultValue=false)] + public bool? DisconnectedNodeAcknowledged { get; set; } + + /// + /// Gets or Sets Component + /// + [DataMember(Name="component", EmitDefaultValue=false)] + public UserDTO Component { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class UserEntity {\n"); + sb.Append(" Revision: ").Append(this.Revision).Append("\n"); + sb.Append(" Id: ").Append(this.Id).Append("\n"); + sb.Append(" Uri: ").Append(this.Uri).Append("\n"); + sb.Append(" Position: ").Append(this.Position).Append("\n"); + sb.Append(" Permissions: ").Append(this.Permissions).Append("\n"); + sb.Append(" Bulletins: ").Append(this.Bulletins).Append("\n"); + sb.Append(" DisconnectedNodeAcknowledged: ").Append(this.DisconnectedNodeAcknowledged).Append("\n"); + sb.Append(" Component: ").Append(this.Component).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as UserEntity); + } + + /// + /// Returns true if UserEntity instances are equal + /// + /// Instance of UserEntity to be compared + /// Boolean + public bool Equals(UserEntity input) + { + if (input == null) + return false; + + return + ( + this.Revision == input.Revision || + (this.Revision != null && + this.Revision.Equals(input.Revision)) + ) && + ( + this.Id == input.Id || + (this.Id != null && + this.Id.Equals(input.Id)) + ) && + ( + this.Uri == input.Uri || + (this.Uri != null && + this.Uri.Equals(input.Uri)) + ) && + ( + this.Position == input.Position || + (this.Position != null && + this.Position.Equals(input.Position)) + ) && + ( + this.Permissions == input.Permissions || + (this.Permissions != null && + this.Permissions.Equals(input.Permissions)) + ) && + ( + this.Bulletins == input.Bulletins || + this.Bulletins != null && + this.Bulletins.SequenceEqual(input.Bulletins) + ) && + ( + this.DisconnectedNodeAcknowledged == input.DisconnectedNodeAcknowledged || + (this.DisconnectedNodeAcknowledged != null && + this.DisconnectedNodeAcknowledged.Equals(input.DisconnectedNodeAcknowledged)) + ) && + ( + this.Component == input.Component || + (this.Component != null && + this.Component.Equals(input.Component)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Revision != null) + hashCode = hashCode * 59 + this.Revision.GetHashCode(); + if (this.Id != null) + hashCode = hashCode * 59 + this.Id.GetHashCode(); + if (this.Uri != null) + hashCode = hashCode * 59 + this.Uri.GetHashCode(); + if (this.Position != null) + hashCode = hashCode * 59 + this.Position.GetHashCode(); + if (this.Permissions != null) + hashCode = hashCode * 59 + this.Permissions.GetHashCode(); + if (this.Bulletins != null) + hashCode = hashCode * 59 + this.Bulletins.GetHashCode(); + if (this.DisconnectedNodeAcknowledged != null) + hashCode = hashCode * 59 + this.DisconnectedNodeAcknowledged.GetHashCode(); + if (this.Component != null) + hashCode = hashCode * 59 + this.Component.GetHashCode(); + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/NiFi.Swagger/Model/UserGroupDTO.cs b/NiFi.Swagger/Model/UserGroupDTO.cs new file mode 100644 index 0000000..be3736c --- /dev/null +++ b/NiFi.Swagger/Model/UserGroupDTO.cs @@ -0,0 +1,237 @@ +/* + * NiFi Rest Api + * + * The Rest Api provides programmatic access to command and control a NiFi instance in real time. Start and stop processors, monitor queues, query provenance data, and more. Each endpoint below includes a description, definitions of the expected input and output, potential response codes, and the authorizations required to invoke each service. + * + * OpenAPI spec version: 1.9.1 + * Contact: dev@nifi.apache.org + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +namespace NiFi.Swagger.Model +{ + using System; + using System.Collections.Generic; + using System.ComponentModel.DataAnnotations; + using System.Linq; + using System.Runtime.Serialization; + using System.Text; + + using Newtonsoft.Json; + + /// + /// UserGroupDTO + /// + [DataContract] + public partial class UserGroupDTO : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// The id of the component.. + /// The ID of the corresponding component that is under version control. + /// The id of parent process group of this component if applicable.. + /// The position of this component in the UI if applicable.. + /// The identity of the tenant.. + /// Whether this tenant is configurable.. + /// The users that belong to the user group.. + public UserGroupDTO(string id = default(string), string versionedComponentId = default(string), string parentGroupId = default(string), PositionDTO position = default(PositionDTO), string identity = default(string), bool? configurable = default(bool?), List users = default(List)) + { + this.Id = id; + this.VersionedComponentId = versionedComponentId; + this.ParentGroupId = parentGroupId; + this.Position = position; + this.Identity = identity; + this.Configurable = configurable; + this.Users = users; + } + + /// + /// The id of the component. + /// + /// The id of the component. + [DataMember(Name="id", EmitDefaultValue=false)] + public string Id { get; set; } + + /// + /// The ID of the corresponding component that is under version control + /// + /// The ID of the corresponding component that is under version control + [DataMember(Name="versionedComponentId", EmitDefaultValue=false)] + public string VersionedComponentId { get; set; } + + /// + /// The id of parent process group of this component if applicable. + /// + /// The id of parent process group of this component if applicable. + [DataMember(Name="parentGroupId", EmitDefaultValue=false)] + public string ParentGroupId { get; set; } + + /// + /// The position of this component in the UI if applicable. + /// + /// The position of this component in the UI if applicable. + [DataMember(Name="position", EmitDefaultValue=false)] + public PositionDTO Position { get; set; } + + /// + /// The identity of the tenant. + /// + /// The identity of the tenant. + [DataMember(Name="identity", EmitDefaultValue=false)] + public string Identity { get; set; } + + /// + /// Whether this tenant is configurable. + /// + /// Whether this tenant is configurable. + [DataMember(Name="configurable", EmitDefaultValue=false)] + public bool? Configurable { get; set; } + + /// + /// The users that belong to the user group. + /// + /// The users that belong to the user group. + [DataMember(Name="users", EmitDefaultValue=false)] + public List Users { get; set; } + + /// + /// The access policies this user group belongs to. This field was incorrectly defined as an AccessPolicyEntity. For compatibility reasons the field will remain of this type, however only the fields that are present in the AccessPolicySummaryEntity will be populated here. + /// + /// The access policies this user group belongs to. This field was incorrectly defined as an AccessPolicyEntity. For compatibility reasons the field will remain of this type, however only the fields that are present in the AccessPolicySummaryEntity will be populated here. + [DataMember(Name="accessPolicies", EmitDefaultValue=false)] + public List AccessPolicies { get; private set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class UserGroupDTO {\n"); + sb.Append(" Id: ").Append(this.Id).Append("\n"); + sb.Append(" VersionedComponentId: ").Append(this.VersionedComponentId).Append("\n"); + sb.Append(" ParentGroupId: ").Append(this.ParentGroupId).Append("\n"); + sb.Append(" Position: ").Append(this.Position).Append("\n"); + sb.Append(" Identity: ").Append(this.Identity).Append("\n"); + sb.Append(" Configurable: ").Append(this.Configurable).Append("\n"); + sb.Append(" Users: ").Append(this.Users).Append("\n"); + sb.Append(" AccessPolicies: ").Append(this.AccessPolicies).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as UserGroupDTO); + } + + /// + /// Returns true if UserGroupDTO instances are equal + /// + /// Instance of UserGroupDTO to be compared + /// Boolean + public bool Equals(UserGroupDTO input) + { + if (input == null) + return false; + + return + ( + this.Id == input.Id || + (this.Id != null && + this.Id.Equals(input.Id)) + ) && + ( + this.VersionedComponentId == input.VersionedComponentId || + (this.VersionedComponentId != null && + this.VersionedComponentId.Equals(input.VersionedComponentId)) + ) && + ( + this.ParentGroupId == input.ParentGroupId || + (this.ParentGroupId != null && + this.ParentGroupId.Equals(input.ParentGroupId)) + ) && + ( + this.Position == input.Position || + (this.Position != null && + this.Position.Equals(input.Position)) + ) && + ( + this.Identity == input.Identity || + (this.Identity != null && + this.Identity.Equals(input.Identity)) + ) && + ( + this.Configurable == input.Configurable || + (this.Configurable != null && + this.Configurable.Equals(input.Configurable)) + ) && + ( + this.Users == input.Users || + this.Users != null && + this.Users.SequenceEqual(input.Users) + ) && + ( + this.AccessPolicies == input.AccessPolicies || + this.AccessPolicies != null && + this.AccessPolicies.SequenceEqual(input.AccessPolicies) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Id != null) + hashCode = hashCode * 59 + this.Id.GetHashCode(); + if (this.VersionedComponentId != null) + hashCode = hashCode * 59 + this.VersionedComponentId.GetHashCode(); + if (this.ParentGroupId != null) + hashCode = hashCode * 59 + this.ParentGroupId.GetHashCode(); + if (this.Position != null) + hashCode = hashCode * 59 + this.Position.GetHashCode(); + if (this.Identity != null) + hashCode = hashCode * 59 + this.Identity.GetHashCode(); + if (this.Configurable != null) + hashCode = hashCode * 59 + this.Configurable.GetHashCode(); + if (this.Users != null) + hashCode = hashCode * 59 + this.Users.GetHashCode(); + if (this.AccessPolicies != null) + hashCode = hashCode * 59 + this.AccessPolicies.GetHashCode(); + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/NiFi.Swagger/Model/UserGroupEntity.cs b/NiFi.Swagger/Model/UserGroupEntity.cs new file mode 100644 index 0000000..0d34a98 --- /dev/null +++ b/NiFi.Swagger/Model/UserGroupEntity.cs @@ -0,0 +1,238 @@ +/* + * NiFi Rest Api + * + * The Rest Api provides programmatic access to command and control a NiFi instance in real time. Start and stop processors, monitor queues, query provenance data, and more. Each endpoint below includes a description, definitions of the expected input and output, potential response codes, and the authorizations required to invoke each service. + * + * OpenAPI spec version: 1.9.1 + * Contact: dev@nifi.apache.org + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +namespace NiFi.Swagger.Model +{ + using System; + using System.Collections.Generic; + using System.ComponentModel.DataAnnotations; + using System.Linq; + using System.Runtime.Serialization; + using System.Text; + + using Newtonsoft.Json; + + /// + /// UserGroupEntity + /// + [DataContract] + public partial class UserGroupEntity : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// The revision for this request/response. The revision is required for any mutable flow requests and is included in all responses.. + /// The id of the component.. + /// The URI for futures requests to the component.. + /// The position of this component in the UI if applicable.. + /// The permissions for this component.. + /// The bulletins for this component.. + /// Acknowledges that this node is disconnected to allow for mutable requests to proceed.. + /// component. + public UserGroupEntity(RevisionDTO revision = default(RevisionDTO), string id = default(string), string uri = default(string), PositionDTO position = default(PositionDTO), PermissionsDTO permissions = default(PermissionsDTO), List bulletins = default(List), bool? disconnectedNodeAcknowledged = default(bool?), UserGroupDTO component = default(UserGroupDTO)) + { + this.Revision = revision; + this.Id = id; + this.Uri = uri; + this.Position = position; + this.Permissions = permissions; + this.Bulletins = bulletins; + this.DisconnectedNodeAcknowledged = disconnectedNodeAcknowledged; + this.Component = component; + } + + /// + /// The revision for this request/response. The revision is required for any mutable flow requests and is included in all responses. + /// + /// The revision for this request/response. The revision is required for any mutable flow requests and is included in all responses. + [DataMember(Name="revision", EmitDefaultValue=false)] + public RevisionDTO Revision { get; set; } + + /// + /// The id of the component. + /// + /// The id of the component. + [DataMember(Name="id", EmitDefaultValue=false)] + public string Id { get; set; } + + /// + /// The URI for futures requests to the component. + /// + /// The URI for futures requests to the component. + [DataMember(Name="uri", EmitDefaultValue=false)] + public string Uri { get; set; } + + /// + /// The position of this component in the UI if applicable. + /// + /// The position of this component in the UI if applicable. + [DataMember(Name="position", EmitDefaultValue=false)] + public PositionDTO Position { get; set; } + + /// + /// The permissions for this component. + /// + /// The permissions for this component. + [DataMember(Name="permissions", EmitDefaultValue=false)] + public PermissionsDTO Permissions { get; set; } + + /// + /// The bulletins for this component. + /// + /// The bulletins for this component. + [DataMember(Name="bulletins", EmitDefaultValue=false)] + public List Bulletins { get; set; } + + /// + /// Acknowledges that this node is disconnected to allow for mutable requests to proceed. + /// + /// Acknowledges that this node is disconnected to allow for mutable requests to proceed. + [DataMember(Name="disconnectedNodeAcknowledged", EmitDefaultValue=false)] + public bool? DisconnectedNodeAcknowledged { get; set; } + + /// + /// Gets or Sets Component + /// + [DataMember(Name="component", EmitDefaultValue=false)] + public UserGroupDTO Component { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class UserGroupEntity {\n"); + sb.Append(" Revision: ").Append(this.Revision).Append("\n"); + sb.Append(" Id: ").Append(this.Id).Append("\n"); + sb.Append(" Uri: ").Append(this.Uri).Append("\n"); + sb.Append(" Position: ").Append(this.Position).Append("\n"); + sb.Append(" Permissions: ").Append(this.Permissions).Append("\n"); + sb.Append(" Bulletins: ").Append(this.Bulletins).Append("\n"); + sb.Append(" DisconnectedNodeAcknowledged: ").Append(this.DisconnectedNodeAcknowledged).Append("\n"); + sb.Append(" Component: ").Append(this.Component).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as UserGroupEntity); + } + + /// + /// Returns true if UserGroupEntity instances are equal + /// + /// Instance of UserGroupEntity to be compared + /// Boolean + public bool Equals(UserGroupEntity input) + { + if (input == null) + return false; + + return + ( + this.Revision == input.Revision || + (this.Revision != null && + this.Revision.Equals(input.Revision)) + ) && + ( + this.Id == input.Id || + (this.Id != null && + this.Id.Equals(input.Id)) + ) && + ( + this.Uri == input.Uri || + (this.Uri != null && + this.Uri.Equals(input.Uri)) + ) && + ( + this.Position == input.Position || + (this.Position != null && + this.Position.Equals(input.Position)) + ) && + ( + this.Permissions == input.Permissions || + (this.Permissions != null && + this.Permissions.Equals(input.Permissions)) + ) && + ( + this.Bulletins == input.Bulletins || + this.Bulletins != null && + this.Bulletins.SequenceEqual(input.Bulletins) + ) && + ( + this.DisconnectedNodeAcknowledged == input.DisconnectedNodeAcknowledged || + (this.DisconnectedNodeAcknowledged != null && + this.DisconnectedNodeAcknowledged.Equals(input.DisconnectedNodeAcknowledged)) + ) && + ( + this.Component == input.Component || + (this.Component != null && + this.Component.Equals(input.Component)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Revision != null) + hashCode = hashCode * 59 + this.Revision.GetHashCode(); + if (this.Id != null) + hashCode = hashCode * 59 + this.Id.GetHashCode(); + if (this.Uri != null) + hashCode = hashCode * 59 + this.Uri.GetHashCode(); + if (this.Position != null) + hashCode = hashCode * 59 + this.Position.GetHashCode(); + if (this.Permissions != null) + hashCode = hashCode * 59 + this.Permissions.GetHashCode(); + if (this.Bulletins != null) + hashCode = hashCode * 59 + this.Bulletins.GetHashCode(); + if (this.DisconnectedNodeAcknowledged != null) + hashCode = hashCode * 59 + this.DisconnectedNodeAcknowledged.GetHashCode(); + if (this.Component != null) + hashCode = hashCode * 59 + this.Component.GetHashCode(); + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/NiFi.Swagger/Model/UserGroupsEntity.cs b/NiFi.Swagger/Model/UserGroupsEntity.cs new file mode 100644 index 0000000..d25f738 --- /dev/null +++ b/NiFi.Swagger/Model/UserGroupsEntity.cs @@ -0,0 +1,119 @@ +/* + * NiFi Rest Api + * + * The Rest Api provides programmatic access to command and control a NiFi instance in real time. Start and stop processors, monitor queues, query provenance data, and more. Each endpoint below includes a description, definitions of the expected input and output, potential response codes, and the authorizations required to invoke each service. + * + * OpenAPI spec version: 1.9.1 + * Contact: dev@nifi.apache.org + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +namespace NiFi.Swagger.Model +{ + using System; + using System.Collections.Generic; + using System.ComponentModel.DataAnnotations; + using System.Linq; + using System.Runtime.Serialization; + using System.Text; + + using Newtonsoft.Json; + + /// + /// UserGroupsEntity + /// + [DataContract] + public partial class UserGroupsEntity : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// userGroups. + public UserGroupsEntity(List userGroups = default(List)) + { + this.UserGroups = userGroups; + } + + /// + /// Gets or Sets UserGroups + /// + [DataMember(Name="userGroups", EmitDefaultValue=false)] + public List UserGroups { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class UserGroupsEntity {\n"); + sb.Append(" UserGroups: ").Append(this.UserGroups).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as UserGroupsEntity); + } + + /// + /// Returns true if UserGroupsEntity instances are equal + /// + /// Instance of UserGroupsEntity to be compared + /// Boolean + public bool Equals(UserGroupsEntity input) + { + if (input == null) + return false; + + return + ( + this.UserGroups == input.UserGroups || + this.UserGroups != null && + this.UserGroups.SequenceEqual(input.UserGroups) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.UserGroups != null) + hashCode = hashCode * 59 + this.UserGroups.GetHashCode(); + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/NiFi.Swagger/Model/UsersEntity.cs b/NiFi.Swagger/Model/UsersEntity.cs new file mode 100644 index 0000000..da91a51 --- /dev/null +++ b/NiFi.Swagger/Model/UsersEntity.cs @@ -0,0 +1,136 @@ +/* + * NiFi Rest Api + * + * The Rest Api provides programmatic access to command and control a NiFi instance in real time. Start and stop processors, monitor queues, query provenance data, and more. Each endpoint below includes a description, definitions of the expected input and output, potential response codes, and the authorizations required to invoke each service. + * + * OpenAPI spec version: 1.9.1 + * Contact: dev@nifi.apache.org + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +namespace NiFi.Swagger.Model +{ + using System; + using System.Collections.Generic; + using System.ComponentModel.DataAnnotations; + using System.Linq; + using System.Runtime.Serialization; + using System.Text; + + using Newtonsoft.Json; + + /// + /// UsersEntity + /// + [DataContract] + public partial class UsersEntity : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// When this content was generated.. + /// users. + public UsersEntity(string generated = default(string), List users = default(List)) + { + this.Generated = generated; + this.Users = users; + } + + /// + /// When this content was generated. + /// + /// When this content was generated. + [DataMember(Name="generated", EmitDefaultValue=false)] + public string Generated { get; set; } + + /// + /// Gets or Sets Users + /// + [DataMember(Name="users", EmitDefaultValue=false)] + public List Users { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class UsersEntity {\n"); + sb.Append(" Generated: ").Append(this.Generated).Append("\n"); + sb.Append(" Users: ").Append(this.Users).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as UsersEntity); + } + + /// + /// Returns true if UsersEntity instances are equal + /// + /// Instance of UsersEntity to be compared + /// Boolean + public bool Equals(UsersEntity input) + { + if (input == null) + return false; + + return + ( + this.Generated == input.Generated || + (this.Generated != null && + this.Generated.Equals(input.Generated)) + ) && + ( + this.Users == input.Users || + this.Users != null && + this.Users.SequenceEqual(input.Users) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Generated != null) + hashCode = hashCode * 59 + this.Generated.GetHashCode(); + if (this.Users != null) + hashCode = hashCode * 59 + this.Users.GetHashCode(); + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/NiFi.Swagger/Model/VariableDTO.cs b/NiFi.Swagger/Model/VariableDTO.cs new file mode 100644 index 0000000..a0eeea2 --- /dev/null +++ b/NiFi.Swagger/Model/VariableDTO.cs @@ -0,0 +1,167 @@ +/* + * NiFi Rest Api + * + * The Rest Api provides programmatic access to command and control a NiFi instance in real time. Start and stop processors, monitor queues, query provenance data, and more. Each endpoint below includes a description, definitions of the expected input and output, potential response codes, and the authorizations required to invoke each service. + * + * OpenAPI spec version: 1.9.1 + * Contact: dev@nifi.apache.org + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +namespace NiFi.Swagger.Model +{ + using System; + using System.Collections.Generic; + using System.ComponentModel.DataAnnotations; + using System.Linq; + using System.Runtime.Serialization; + using System.Text; + + using Newtonsoft.Json; + + /// + /// VariableDTO + /// + [DataContract] + public partial class VariableDTO : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// The name of the variable. + /// The value of the variable. + public VariableDTO(string name = default(string), string value = default(string)) + { + this.Name = name; + this.Value = value; + } + + /// + /// The name of the variable + /// + /// The name of the variable + [DataMember(Name="name", EmitDefaultValue=false)] + public string Name { get; set; } + + /// + /// The value of the variable + /// + /// The value of the variable + [DataMember(Name="value", EmitDefaultValue=false)] + public string Value { get; set; } + + /// + /// The ID of the Process Group where this Variable is defined + /// + /// The ID of the Process Group where this Variable is defined + [DataMember(Name="processGroupId", EmitDefaultValue=false)] + public string ProcessGroupId { get; private set; } + + /// + /// A set of all components that will be affected if the value of this variable is changed + /// + /// A set of all components that will be affected if the value of this variable is changed + [DataMember(Name="affectedComponents", EmitDefaultValue=false)] + public List AffectedComponents { get; private set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class VariableDTO {\n"); + sb.Append(" Name: ").Append(this.Name).Append("\n"); + sb.Append(" Value: ").Append(this.Value).Append("\n"); + sb.Append(" ProcessGroupId: ").Append(this.ProcessGroupId).Append("\n"); + sb.Append(" AffectedComponents: ").Append(this.AffectedComponents).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as VariableDTO); + } + + /// + /// Returns true if VariableDTO instances are equal + /// + /// Instance of VariableDTO to be compared + /// Boolean + public bool Equals(VariableDTO input) + { + if (input == null) + return false; + + return + ( + this.Name == input.Name || + (this.Name != null && + this.Name.Equals(input.Name)) + ) && + ( + this.Value == input.Value || + (this.Value != null && + this.Value.Equals(input.Value)) + ) && + ( + this.ProcessGroupId == input.ProcessGroupId || + (this.ProcessGroupId != null && + this.ProcessGroupId.Equals(input.ProcessGroupId)) + ) && + ( + this.AffectedComponents == input.AffectedComponents || + this.AffectedComponents != null && + this.AffectedComponents.SequenceEqual(input.AffectedComponents) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Name != null) + hashCode = hashCode * 59 + this.Name.GetHashCode(); + if (this.Value != null) + hashCode = hashCode * 59 + this.Value.GetHashCode(); + if (this.ProcessGroupId != null) + hashCode = hashCode * 59 + this.ProcessGroupId.GetHashCode(); + if (this.AffectedComponents != null) + hashCode = hashCode * 59 + this.AffectedComponents.GetHashCode(); + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/NiFi.Swagger/Model/VariableEntity.cs b/NiFi.Swagger/Model/VariableEntity.cs new file mode 100644 index 0000000..ff36a5c --- /dev/null +++ b/NiFi.Swagger/Model/VariableEntity.cs @@ -0,0 +1,134 @@ +/* + * NiFi Rest Api + * + * The Rest Api provides programmatic access to command and control a NiFi instance in real time. Start and stop processors, monitor queues, query provenance data, and more. Each endpoint below includes a description, definitions of the expected input and output, potential response codes, and the authorizations required to invoke each service. + * + * OpenAPI spec version: 1.9.1 + * Contact: dev@nifi.apache.org + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +namespace NiFi.Swagger.Model +{ + using System; + using System.Collections.Generic; + using System.ComponentModel.DataAnnotations; + using System.Runtime.Serialization; + using System.Text; + + using Newtonsoft.Json; + + /// + /// VariableEntity + /// + [DataContract] + public partial class VariableEntity : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// The variable information. + public VariableEntity(VariableDTO variable = default(VariableDTO)) + { + this.Variable = variable; + } + + /// + /// The variable information + /// + /// The variable information + [DataMember(Name="variable", EmitDefaultValue=false)] + public VariableDTO Variable { get; set; } + + /// + /// Indicates whether the user can write a given resource. + /// + /// Indicates whether the user can write a given resource. + [DataMember(Name="canWrite", EmitDefaultValue=false)] + public bool? CanWrite { get; private set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class VariableEntity {\n"); + sb.Append(" Variable: ").Append(this.Variable).Append("\n"); + sb.Append(" CanWrite: ").Append(this.CanWrite).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as VariableEntity); + } + + /// + /// Returns true if VariableEntity instances are equal + /// + /// Instance of VariableEntity to be compared + /// Boolean + public bool Equals(VariableEntity input) + { + if (input == null) + return false; + + return + ( + this.Variable == input.Variable || + (this.Variable != null && + this.Variable.Equals(input.Variable)) + ) && + ( + this.CanWrite == input.CanWrite || + (this.CanWrite != null && + this.CanWrite.Equals(input.CanWrite)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Variable != null) + hashCode = hashCode * 59 + this.Variable.GetHashCode(); + if (this.CanWrite != null) + hashCode = hashCode * 59 + this.CanWrite.GetHashCode(); + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/NiFi.Swagger/Model/VariableRegistryDTO.cs b/NiFi.Swagger/Model/VariableRegistryDTO.cs new file mode 100644 index 0000000..bbeb832 --- /dev/null +++ b/NiFi.Swagger/Model/VariableRegistryDTO.cs @@ -0,0 +1,137 @@ +/* + * NiFi Rest Api + * + * The Rest Api provides programmatic access to command and control a NiFi instance in real time. Start and stop processors, monitor queues, query provenance data, and more. Each endpoint below includes a description, definitions of the expected input and output, potential response codes, and the authorizations required to invoke each service. + * + * OpenAPI spec version: 1.9.1 + * Contact: dev@nifi.apache.org + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +namespace NiFi.Swagger.Model +{ + using System; + using System.Collections.Generic; + using System.ComponentModel.DataAnnotations; + using System.Linq; + using System.Runtime.Serialization; + using System.Text; + + using Newtonsoft.Json; + + /// + /// VariableRegistryDTO + /// + [DataContract] + public partial class VariableRegistryDTO : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// The variables that are available in this Variable Registry. + /// The UUID of the Process Group that this Variable Registry belongs to. + public VariableRegistryDTO(List variables = default(List), string processGroupId = default(string)) + { + this.Variables = variables; + this.ProcessGroupId = processGroupId; + } + + /// + /// The variables that are available in this Variable Registry + /// + /// The variables that are available in this Variable Registry + [DataMember(Name="variables", EmitDefaultValue=false)] + public List Variables { get; set; } + + /// + /// The UUID of the Process Group that this Variable Registry belongs to + /// + /// The UUID of the Process Group that this Variable Registry belongs to + [DataMember(Name="processGroupId", EmitDefaultValue=false)] + public string ProcessGroupId { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class VariableRegistryDTO {\n"); + sb.Append(" Variables: ").Append(this.Variables).Append("\n"); + sb.Append(" ProcessGroupId: ").Append(this.ProcessGroupId).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as VariableRegistryDTO); + } + + /// + /// Returns true if VariableRegistryDTO instances are equal + /// + /// Instance of VariableRegistryDTO to be compared + /// Boolean + public bool Equals(VariableRegistryDTO input) + { + if (input == null) + return false; + + return + ( + this.Variables == input.Variables || + this.Variables != null && + this.Variables.SequenceEqual(input.Variables) + ) && + ( + this.ProcessGroupId == input.ProcessGroupId || + (this.ProcessGroupId != null && + this.ProcessGroupId.Equals(input.ProcessGroupId)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Variables != null) + hashCode = hashCode * 59 + this.Variables.GetHashCode(); + if (this.ProcessGroupId != null) + hashCode = hashCode * 59 + this.ProcessGroupId.GetHashCode(); + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/NiFi.Swagger/Model/VariableRegistryEntity.cs b/NiFi.Swagger/Model/VariableRegistryEntity.cs new file mode 100644 index 0000000..b62626f --- /dev/null +++ b/NiFi.Swagger/Model/VariableRegistryEntity.cs @@ -0,0 +1,153 @@ +/* + * NiFi Rest Api + * + * The Rest Api provides programmatic access to command and control a NiFi instance in real time. Start and stop processors, monitor queues, query provenance data, and more. Each endpoint below includes a description, definitions of the expected input and output, potential response codes, and the authorizations required to invoke each service. + * + * OpenAPI spec version: 1.9.1 + * Contact: dev@nifi.apache.org + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +namespace NiFi.Swagger.Model +{ + using System; + using System.Collections.Generic; + using System.ComponentModel.DataAnnotations; + using System.Runtime.Serialization; + using System.Text; + + using Newtonsoft.Json; + + /// + /// VariableRegistryEntity + /// + [DataContract] + public partial class VariableRegistryEntity : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// The revision of the Process Group that the Variable Registry belongs to. + /// The Variable Registry.. + /// Acknowledges that this node is disconnected to allow for mutable requests to proceed.. + public VariableRegistryEntity(RevisionDTO processGroupRevision = default(RevisionDTO), VariableRegistryDTO variableRegistry = default(VariableRegistryDTO), bool? disconnectedNodeAcknowledged = default(bool?)) + { + this.ProcessGroupRevision = processGroupRevision; + this.VariableRegistry = variableRegistry; + this.DisconnectedNodeAcknowledged = disconnectedNodeAcknowledged; + } + + /// + /// The revision of the Process Group that the Variable Registry belongs to + /// + /// The revision of the Process Group that the Variable Registry belongs to + [DataMember(Name="processGroupRevision", EmitDefaultValue=false)] + public RevisionDTO ProcessGroupRevision { get; set; } + + /// + /// The Variable Registry. + /// + /// The Variable Registry. + [DataMember(Name="variableRegistry", EmitDefaultValue=false)] + public VariableRegistryDTO VariableRegistry { get; set; } + + /// + /// Acknowledges that this node is disconnected to allow for mutable requests to proceed. + /// + /// Acknowledges that this node is disconnected to allow for mutable requests to proceed. + [DataMember(Name="disconnectedNodeAcknowledged", EmitDefaultValue=false)] + public bool? DisconnectedNodeAcknowledged { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class VariableRegistryEntity {\n"); + sb.Append(" ProcessGroupRevision: ").Append(this.ProcessGroupRevision).Append("\n"); + sb.Append(" VariableRegistry: ").Append(this.VariableRegistry).Append("\n"); + sb.Append(" DisconnectedNodeAcknowledged: ").Append(this.DisconnectedNodeAcknowledged).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as VariableRegistryEntity); + } + + /// + /// Returns true if VariableRegistryEntity instances are equal + /// + /// Instance of VariableRegistryEntity to be compared + /// Boolean + public bool Equals(VariableRegistryEntity input) + { + if (input == null) + return false; + + return + ( + this.ProcessGroupRevision == input.ProcessGroupRevision || + (this.ProcessGroupRevision != null && + this.ProcessGroupRevision.Equals(input.ProcessGroupRevision)) + ) && + ( + this.VariableRegistry == input.VariableRegistry || + (this.VariableRegistry != null && + this.VariableRegistry.Equals(input.VariableRegistry)) + ) && + ( + this.DisconnectedNodeAcknowledged == input.DisconnectedNodeAcknowledged || + (this.DisconnectedNodeAcknowledged != null && + this.DisconnectedNodeAcknowledged.Equals(input.DisconnectedNodeAcknowledged)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.ProcessGroupRevision != null) + hashCode = hashCode * 59 + this.ProcessGroupRevision.GetHashCode(); + if (this.VariableRegistry != null) + hashCode = hashCode * 59 + this.VariableRegistry.GetHashCode(); + if (this.DisconnectedNodeAcknowledged != null) + hashCode = hashCode * 59 + this.DisconnectedNodeAcknowledged.GetHashCode(); + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/NiFi.Swagger/Model/VariableRegistryUpdateRequestDTO.cs b/NiFi.Swagger/Model/VariableRegistryUpdateRequestDTO.cs new file mode 100644 index 0000000..24fe9b5 --- /dev/null +++ b/NiFi.Swagger/Model/VariableRegistryUpdateRequestDTO.cs @@ -0,0 +1,240 @@ +/* + * NiFi Rest Api + * + * The Rest Api provides programmatic access to command and control a NiFi instance in real time. Start and stop processors, monitor queues, query provenance data, and more. Each endpoint below includes a description, definitions of the expected input and output, potential response codes, and the authorizations required to invoke each service. + * + * OpenAPI spec version: 1.9.1 + * Contact: dev@nifi.apache.org + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +namespace NiFi.Swagger.Model +{ + using System; + using System.Collections.Generic; + using System.ComponentModel.DataAnnotations; + using System.Linq; + using System.Runtime.Serialization; + using System.Text; + + using Newtonsoft.Json; + + /// + /// VariableRegistryUpdateRequestDTO + /// + [DataContract] + public partial class VariableRegistryUpdateRequestDTO : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// The unique ID of the Process Group that the variable registry belongs to. + public VariableRegistryUpdateRequestDTO(string processGroupId = default(string)) + { + this.ProcessGroupId = processGroupId; + } + + /// + /// The unique ID of this request. + /// + /// The unique ID of this request. + [DataMember(Name="requestId", EmitDefaultValue=false)] + public string RequestId { get; private set; } + + /// + /// The unique ID of the Process Group that the variable registry belongs to + /// + /// The unique ID of the Process Group that the variable registry belongs to + [DataMember(Name="processGroupId", EmitDefaultValue=false)] + public string ProcessGroupId { get; set; } + + /// + /// The URI for future requests to this drop request. + /// + /// The URI for future requests to this drop request. + [DataMember(Name="uri", EmitDefaultValue=false)] + public string Uri { get; private set; } + + /// + /// The time at which this request was submitted. + /// + /// The time at which this request was submitted. + [DataMember(Name="submissionTime", EmitDefaultValue=false)] + public string SubmissionTime { get; private set; } + + /// + /// The last time this request was updated. + /// + /// The last time this request was updated. + [DataMember(Name="lastUpdated", EmitDefaultValue=false)] + public string LastUpdated { get; private set; } + + /// + /// Whether or not this request has completed + /// + /// Whether or not this request has completed + [DataMember(Name="complete", EmitDefaultValue=false)] + public bool? Complete { get; private set; } + + /// + /// An explanation of why this request failed, or null if this request has not failed + /// + /// An explanation of why this request failed, or null if this request has not failed + [DataMember(Name="failureReason", EmitDefaultValue=false)] + public string FailureReason { get; private set; } + + /// + /// The steps that are required in order to complete the request, along with the status of each + /// + /// The steps that are required in order to complete the request, along with the status of each + [DataMember(Name="updateSteps", EmitDefaultValue=false)] + public List UpdateSteps { get; private set; } + + /// + /// A set of all components that will be affected if the value of this variable is changed + /// + /// A set of all components that will be affected if the value of this variable is changed + [DataMember(Name="affectedComponents", EmitDefaultValue=false)] + public List AffectedComponents { get; private set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class VariableRegistryUpdateRequestDTO {\n"); + sb.Append(" RequestId: ").Append(this.RequestId).Append("\n"); + sb.Append(" ProcessGroupId: ").Append(this.ProcessGroupId).Append("\n"); + sb.Append(" Uri: ").Append(this.Uri).Append("\n"); + sb.Append(" SubmissionTime: ").Append(this.SubmissionTime).Append("\n"); + sb.Append(" LastUpdated: ").Append(this.LastUpdated).Append("\n"); + sb.Append(" Complete: ").Append(this.Complete).Append("\n"); + sb.Append(" FailureReason: ").Append(this.FailureReason).Append("\n"); + sb.Append(" UpdateSteps: ").Append(this.UpdateSteps).Append("\n"); + sb.Append(" AffectedComponents: ").Append(this.AffectedComponents).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as VariableRegistryUpdateRequestDTO); + } + + /// + /// Returns true if VariableRegistryUpdateRequestDTO instances are equal + /// + /// Instance of VariableRegistryUpdateRequestDTO to be compared + /// Boolean + public bool Equals(VariableRegistryUpdateRequestDTO input) + { + if (input == null) + return false; + + return + ( + this.RequestId == input.RequestId || + (this.RequestId != null && + this.RequestId.Equals(input.RequestId)) + ) && + ( + this.ProcessGroupId == input.ProcessGroupId || + (this.ProcessGroupId != null && + this.ProcessGroupId.Equals(input.ProcessGroupId)) + ) && + ( + this.Uri == input.Uri || + (this.Uri != null && + this.Uri.Equals(input.Uri)) + ) && + ( + this.SubmissionTime == input.SubmissionTime || + (this.SubmissionTime != null && + this.SubmissionTime.Equals(input.SubmissionTime)) + ) && + ( + this.LastUpdated == input.LastUpdated || + (this.LastUpdated != null && + this.LastUpdated.Equals(input.LastUpdated)) + ) && + ( + this.Complete == input.Complete || + (this.Complete != null && + this.Complete.Equals(input.Complete)) + ) && + ( + this.FailureReason == input.FailureReason || + (this.FailureReason != null && + this.FailureReason.Equals(input.FailureReason)) + ) && + ( + this.UpdateSteps == input.UpdateSteps || + this.UpdateSteps != null && + this.UpdateSteps.SequenceEqual(input.UpdateSteps) + ) && + ( + this.AffectedComponents == input.AffectedComponents || + this.AffectedComponents != null && + this.AffectedComponents.SequenceEqual(input.AffectedComponents) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.RequestId != null) + hashCode = hashCode * 59 + this.RequestId.GetHashCode(); + if (this.ProcessGroupId != null) + hashCode = hashCode * 59 + this.ProcessGroupId.GetHashCode(); + if (this.Uri != null) + hashCode = hashCode * 59 + this.Uri.GetHashCode(); + if (this.SubmissionTime != null) + hashCode = hashCode * 59 + this.SubmissionTime.GetHashCode(); + if (this.LastUpdated != null) + hashCode = hashCode * 59 + this.LastUpdated.GetHashCode(); + if (this.Complete != null) + hashCode = hashCode * 59 + this.Complete.GetHashCode(); + if (this.FailureReason != null) + hashCode = hashCode * 59 + this.FailureReason.GetHashCode(); + if (this.UpdateSteps != null) + hashCode = hashCode * 59 + this.UpdateSteps.GetHashCode(); + if (this.AffectedComponents != null) + hashCode = hashCode * 59 + this.AffectedComponents.GetHashCode(); + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/NiFi.Swagger/Model/VariableRegistryUpdateRequestEntity.cs b/NiFi.Swagger/Model/VariableRegistryUpdateRequestEntity.cs new file mode 100644 index 0000000..5257873 --- /dev/null +++ b/NiFi.Swagger/Model/VariableRegistryUpdateRequestEntity.cs @@ -0,0 +1,136 @@ +/* + * NiFi Rest Api + * + * The Rest Api provides programmatic access to command and control a NiFi instance in real time. Start and stop processors, monitor queues, query provenance data, and more. Each endpoint below includes a description, definitions of the expected input and output, potential response codes, and the authorizations required to invoke each service. + * + * OpenAPI spec version: 1.9.1 + * Contact: dev@nifi.apache.org + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +namespace NiFi.Swagger.Model +{ + using System; + using System.Collections.Generic; + using System.ComponentModel.DataAnnotations; + using System.Runtime.Serialization; + using System.Text; + + using Newtonsoft.Json; + + /// + /// VariableRegistryUpdateRequestEntity + /// + [DataContract] + public partial class VariableRegistryUpdateRequestEntity : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// The Variable Registry Update Request. + /// The revision for the Process Group that owns this variable registry.. + public VariableRegistryUpdateRequestEntity(VariableRegistryUpdateRequestDTO request = default(VariableRegistryUpdateRequestDTO), RevisionDTO processGroupRevision = default(RevisionDTO)) + { + this.Request = request; + this.ProcessGroupRevision = processGroupRevision; + } + + /// + /// The Variable Registry Update Request + /// + /// The Variable Registry Update Request + [DataMember(Name="request", EmitDefaultValue=false)] + public VariableRegistryUpdateRequestDTO Request { get; set; } + + /// + /// The revision for the Process Group that owns this variable registry. + /// + /// The revision for the Process Group that owns this variable registry. + [DataMember(Name="processGroupRevision", EmitDefaultValue=false)] + public RevisionDTO ProcessGroupRevision { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class VariableRegistryUpdateRequestEntity {\n"); + sb.Append(" Request: ").Append(this.Request).Append("\n"); + sb.Append(" ProcessGroupRevision: ").Append(this.ProcessGroupRevision).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as VariableRegistryUpdateRequestEntity); + } + + /// + /// Returns true if VariableRegistryUpdateRequestEntity instances are equal + /// + /// Instance of VariableRegistryUpdateRequestEntity to be compared + /// Boolean + public bool Equals(VariableRegistryUpdateRequestEntity input) + { + if (input == null) + return false; + + return + ( + this.Request == input.Request || + (this.Request != null && + this.Request.Equals(input.Request)) + ) && + ( + this.ProcessGroupRevision == input.ProcessGroupRevision || + (this.ProcessGroupRevision != null && + this.ProcessGroupRevision.Equals(input.ProcessGroupRevision)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Request != null) + hashCode = hashCode * 59 + this.Request.GetHashCode(); + if (this.ProcessGroupRevision != null) + hashCode = hashCode * 59 + this.ProcessGroupRevision.GetHashCode(); + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/NiFi.Swagger/Model/VariableRegistryUpdateStepDTO.cs b/NiFi.Swagger/Model/VariableRegistryUpdateStepDTO.cs new file mode 100644 index 0000000..2576731 --- /dev/null +++ b/NiFi.Swagger/Model/VariableRegistryUpdateStepDTO.cs @@ -0,0 +1,148 @@ +/* + * NiFi Rest Api + * + * The Rest Api provides programmatic access to command and control a NiFi instance in real time. Start and stop processors, monitor queues, query provenance data, and more. Each endpoint below includes a description, definitions of the expected input and output, potential response codes, and the authorizations required to invoke each service. + * + * OpenAPI spec version: 1.9.1 + * Contact: dev@nifi.apache.org + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +namespace NiFi.Swagger.Model +{ + using System; + using System.Collections.Generic; + using System.ComponentModel.DataAnnotations; + using System.Runtime.Serialization; + using System.Text; + + using Newtonsoft.Json; + + /// + /// VariableRegistryUpdateStepDTO + /// + [DataContract] + public partial class VariableRegistryUpdateStepDTO : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructor] + public VariableRegistryUpdateStepDTO() + { + } + + /// + /// Explanation of what happens in this step + /// + /// Explanation of what happens in this step + [DataMember(Name="description", EmitDefaultValue=false)] + public string Description { get; private set; } + + /// + /// Whether or not this step has completed + /// + /// Whether or not this step has completed + [DataMember(Name="complete", EmitDefaultValue=false)] + public bool? Complete { get; private set; } + + /// + /// An explanation of why this step failed, or null if this step did not fail + /// + /// An explanation of why this step failed, or null if this step did not fail + [DataMember(Name="failureReason", EmitDefaultValue=false)] + public string FailureReason { get; private set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class VariableRegistryUpdateStepDTO {\n"); + sb.Append(" Description: ").Append(this.Description).Append("\n"); + sb.Append(" Complete: ").Append(this.Complete).Append("\n"); + sb.Append(" FailureReason: ").Append(this.FailureReason).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as VariableRegistryUpdateStepDTO); + } + + /// + /// Returns true if VariableRegistryUpdateStepDTO instances are equal + /// + /// Instance of VariableRegistryUpdateStepDTO to be compared + /// Boolean + public bool Equals(VariableRegistryUpdateStepDTO input) + { + if (input == null) + return false; + + return + ( + this.Description == input.Description || + (this.Description != null && + this.Description.Equals(input.Description)) + ) && + ( + this.Complete == input.Complete || + (this.Complete != null && + this.Complete.Equals(input.Complete)) + ) && + ( + this.FailureReason == input.FailureReason || + (this.FailureReason != null && + this.FailureReason.Equals(input.FailureReason)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Description != null) + hashCode = hashCode * 59 + this.Description.GetHashCode(); + if (this.Complete != null) + hashCode = hashCode * 59 + this.Complete.GetHashCode(); + if (this.FailureReason != null) + hashCode = hashCode * 59 + this.FailureReason.GetHashCode(); + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/NiFi.Swagger/Model/VersionControlComponentMappingEntity.cs b/NiFi.Swagger/Model/VersionControlComponentMappingEntity.cs new file mode 100644 index 0000000..4033e9d --- /dev/null +++ b/NiFi.Swagger/Model/VersionControlComponentMappingEntity.cs @@ -0,0 +1,171 @@ +/* + * NiFi Rest Api + * + * The Rest Api provides programmatic access to command and control a NiFi instance in real time. Start and stop processors, monitor queues, query provenance data, and more. Each endpoint below includes a description, definitions of the expected input and output, potential response codes, and the authorizations required to invoke each service. + * + * OpenAPI spec version: 1.9.1 + * Contact: dev@nifi.apache.org + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +namespace NiFi.Swagger.Model +{ + using System; + using System.Collections.Generic; + using System.ComponentModel.DataAnnotations; + using System.Linq; + using System.Runtime.Serialization; + using System.Text; + + using Newtonsoft.Json; + + /// + /// VersionControlComponentMappingEntity + /// + [DataContract] + public partial class VersionControlComponentMappingEntity : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// The mapping of Versioned Component Identifiers to instance ID's. + /// The revision of the Process Group. + /// Acknowledges that this node is disconnected to allow for mutable requests to proceed.. + /// The Version Control information. + public VersionControlComponentMappingEntity(Dictionary versionControlComponentMapping = default(Dictionary), RevisionDTO processGroupRevision = default(RevisionDTO), bool? disconnectedNodeAcknowledged = default(bool?), VersionControlInformationDTO versionControlInformation = default(VersionControlInformationDTO)) + { + this.VersionControlComponentMapping = versionControlComponentMapping; + this.ProcessGroupRevision = processGroupRevision; + this.DisconnectedNodeAcknowledged = disconnectedNodeAcknowledged; + this.VersionControlInformation = versionControlInformation; + } + + /// + /// The mapping of Versioned Component Identifiers to instance ID's + /// + /// The mapping of Versioned Component Identifiers to instance ID's + [DataMember(Name="versionControlComponentMapping", EmitDefaultValue=false)] + public Dictionary VersionControlComponentMapping { get; set; } + + /// + /// The revision of the Process Group + /// + /// The revision of the Process Group + [DataMember(Name="processGroupRevision", EmitDefaultValue=false)] + public RevisionDTO ProcessGroupRevision { get; set; } + + /// + /// Acknowledges that this node is disconnected to allow for mutable requests to proceed. + /// + /// Acknowledges that this node is disconnected to allow for mutable requests to proceed. + [DataMember(Name="disconnectedNodeAcknowledged", EmitDefaultValue=false)] + public bool? DisconnectedNodeAcknowledged { get; set; } + + /// + /// The Version Control information + /// + /// The Version Control information + [DataMember(Name="versionControlInformation", EmitDefaultValue=false)] + public VersionControlInformationDTO VersionControlInformation { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class VersionControlComponentMappingEntity {\n"); + sb.Append(" VersionControlComponentMapping: ").Append(this.VersionControlComponentMapping).Append("\n"); + sb.Append(" ProcessGroupRevision: ").Append(this.ProcessGroupRevision).Append("\n"); + sb.Append(" DisconnectedNodeAcknowledged: ").Append(this.DisconnectedNodeAcknowledged).Append("\n"); + sb.Append(" VersionControlInformation: ").Append(this.VersionControlInformation).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as VersionControlComponentMappingEntity); + } + + /// + /// Returns true if VersionControlComponentMappingEntity instances are equal + /// + /// Instance of VersionControlComponentMappingEntity to be compared + /// Boolean + public bool Equals(VersionControlComponentMappingEntity input) + { + if (input == null) + return false; + + return + ( + this.VersionControlComponentMapping == input.VersionControlComponentMapping || + this.VersionControlComponentMapping != null && + this.VersionControlComponentMapping.SequenceEqual(input.VersionControlComponentMapping) + ) && + ( + this.ProcessGroupRevision == input.ProcessGroupRevision || + (this.ProcessGroupRevision != null && + this.ProcessGroupRevision.Equals(input.ProcessGroupRevision)) + ) && + ( + this.DisconnectedNodeAcknowledged == input.DisconnectedNodeAcknowledged || + (this.DisconnectedNodeAcknowledged != null && + this.DisconnectedNodeAcknowledged.Equals(input.DisconnectedNodeAcknowledged)) + ) && + ( + this.VersionControlInformation == input.VersionControlInformation || + (this.VersionControlInformation != null && + this.VersionControlInformation.Equals(input.VersionControlInformation)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.VersionControlComponentMapping != null) + hashCode = hashCode * 59 + this.VersionControlComponentMapping.GetHashCode(); + if (this.ProcessGroupRevision != null) + hashCode = hashCode * 59 + this.ProcessGroupRevision.GetHashCode(); + if (this.DisconnectedNodeAcknowledged != null) + hashCode = hashCode * 59 + this.DisconnectedNodeAcknowledged.GetHashCode(); + if (this.VersionControlInformation != null) + hashCode = hashCode * 59 + this.VersionControlInformation.GetHashCode(); + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/NiFi.Swagger/Model/VersionControlInformationDTO.cs b/NiFi.Swagger/Model/VersionControlInformationDTO.cs new file mode 100644 index 0000000..da0f205 --- /dev/null +++ b/NiFi.Swagger/Model/VersionControlInformationDTO.cs @@ -0,0 +1,321 @@ +/* + * NiFi Rest Api + * + * The Rest Api provides programmatic access to command and control a NiFi instance in real time. Start and stop processors, monitor queues, query provenance data, and more. Each endpoint below includes a description, definitions of the expected input and output, potential response codes, and the authorizations required to invoke each service. + * + * OpenAPI spec version: 1.9.1 + * Contact: dev@nifi.apache.org + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +namespace NiFi.Swagger.Model +{ + using System; + using System.Collections.Generic; + using System.ComponentModel.DataAnnotations; + using System.Runtime.Serialization; + using System.Text; + + using Newtonsoft.Json; + using Newtonsoft.Json.Converters; + + /// + /// VersionControlInformationDTO + /// + [DataContract] + public partial class VersionControlInformationDTO : IEquatable, IValidatableObject + { + /// + /// The current state of the Process Group, as it relates to the Versioned Flow + /// + /// The current state of the Process Group, as it relates to the Versioned Flow + [JsonConverter(typeof(StringEnumConverter))] + public enum StateEnum + { + + /// + /// Enum LOCALLYMODIFIED for value: LOCALLY_MODIFIED + /// + [EnumMember(Value = "LOCALLY_MODIFIED")] + LOCALLYMODIFIED = 1, + + /// + /// Enum STALE for value: STALE + /// + [EnumMember(Value = "STALE")] + STALE = 2, + + /// + /// Enum LOCALLYMODIFIEDANDSTALE for value: LOCALLY_MODIFIED_AND_STALE + /// + [EnumMember(Value = "LOCALLY_MODIFIED_AND_STALE")] + LOCALLYMODIFIEDANDSTALE = 3, + + /// + /// Enum UPTODATE for value: UP_TO_DATE + /// + [EnumMember(Value = "UP_TO_DATE")] + UPTODATE = 4, + + /// + /// Enum SYNCFAILURE for value: SYNC_FAILURE + /// + [EnumMember(Value = "SYNC_FAILURE")] + SYNCFAILURE = 5 + } + + /// + /// The current state of the Process Group, as it relates to the Versioned Flow + /// + /// The current state of the Process Group, as it relates to the Versioned Flow + [DataMember(Name="state", EmitDefaultValue=false)] + public StateEnum? State { get; set; } + /// + /// Initializes a new instance of the class. + /// + /// The ID of the Process Group that is under version control. + /// The ID of the registry that the flow is stored in. + /// The ID of the bucket that the flow is stored in. + /// The ID of the flow. + /// The name of the flow. + /// The description of the flow. + /// The version of the flow. + public VersionControlInformationDTO(string groupId = default(string), string registryId = default(string), string bucketId = default(string), string flowId = default(string), string flowName = default(string), string flowDescription = default(string), int? version = default(int?)) + { + this.GroupId = groupId; + this.RegistryId = registryId; + this.BucketId = bucketId; + this.FlowId = flowId; + this.FlowName = flowName; + this.FlowDescription = flowDescription; + this.Version = version; + } + + /// + /// The ID of the Process Group that is under version control + /// + /// The ID of the Process Group that is under version control + [DataMember(Name="groupId", EmitDefaultValue=false)] + public string GroupId { get; set; } + + /// + /// The ID of the registry that the flow is stored in + /// + /// The ID of the registry that the flow is stored in + [DataMember(Name="registryId", EmitDefaultValue=false)] + public string RegistryId { get; set; } + + /// + /// The name of the registry that the flow is stored in + /// + /// The name of the registry that the flow is stored in + [DataMember(Name="registryName", EmitDefaultValue=false)] + public string RegistryName { get; private set; } + + /// + /// The ID of the bucket that the flow is stored in + /// + /// The ID of the bucket that the flow is stored in + [DataMember(Name="bucketId", EmitDefaultValue=false)] + public string BucketId { get; set; } + + /// + /// The name of the bucket that the flow is stored in + /// + /// The name of the bucket that the flow is stored in + [DataMember(Name="bucketName", EmitDefaultValue=false)] + public string BucketName { get; private set; } + + /// + /// The ID of the flow + /// + /// The ID of the flow + [DataMember(Name="flowId", EmitDefaultValue=false)] + public string FlowId { get; set; } + + /// + /// The name of the flow + /// + /// The name of the flow + [DataMember(Name="flowName", EmitDefaultValue=false)] + public string FlowName { get; set; } + + /// + /// The description of the flow + /// + /// The description of the flow + [DataMember(Name="flowDescription", EmitDefaultValue=false)] + public string FlowDescription { get; set; } + + /// + /// The version of the flow + /// + /// The version of the flow + [DataMember(Name="version", EmitDefaultValue=false)] + public int? Version { get; set; } + + + /// + /// Explanation of why the group is in the specified state + /// + /// Explanation of why the group is in the specified state + [DataMember(Name="stateExplanation", EmitDefaultValue=false)] + public string StateExplanation { get; private set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class VersionControlInformationDTO {\n"); + sb.Append(" GroupId: ").Append(this.GroupId).Append("\n"); + sb.Append(" RegistryId: ").Append(this.RegistryId).Append("\n"); + sb.Append(" RegistryName: ").Append(this.RegistryName).Append("\n"); + sb.Append(" BucketId: ").Append(this.BucketId).Append("\n"); + sb.Append(" BucketName: ").Append(this.BucketName).Append("\n"); + sb.Append(" FlowId: ").Append(this.FlowId).Append("\n"); + sb.Append(" FlowName: ").Append(this.FlowName).Append("\n"); + sb.Append(" FlowDescription: ").Append(this.FlowDescription).Append("\n"); + sb.Append(" Version: ").Append(this.Version).Append("\n"); + sb.Append(" State: ").Append(this.State).Append("\n"); + sb.Append(" StateExplanation: ").Append(this.StateExplanation).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as VersionControlInformationDTO); + } + + /// + /// Returns true if VersionControlInformationDTO instances are equal + /// + /// Instance of VersionControlInformationDTO to be compared + /// Boolean + public bool Equals(VersionControlInformationDTO input) + { + if (input == null) + return false; + + return + ( + this.GroupId == input.GroupId || + (this.GroupId != null && + this.GroupId.Equals(input.GroupId)) + ) && + ( + this.RegistryId == input.RegistryId || + (this.RegistryId != null && + this.RegistryId.Equals(input.RegistryId)) + ) && + ( + this.RegistryName == input.RegistryName || + (this.RegistryName != null && + this.RegistryName.Equals(input.RegistryName)) + ) && + ( + this.BucketId == input.BucketId || + (this.BucketId != null && + this.BucketId.Equals(input.BucketId)) + ) && + ( + this.BucketName == input.BucketName || + (this.BucketName != null && + this.BucketName.Equals(input.BucketName)) + ) && + ( + this.FlowId == input.FlowId || + (this.FlowId != null && + this.FlowId.Equals(input.FlowId)) + ) && + ( + this.FlowName == input.FlowName || + (this.FlowName != null && + this.FlowName.Equals(input.FlowName)) + ) && + ( + this.FlowDescription == input.FlowDescription || + (this.FlowDescription != null && + this.FlowDescription.Equals(input.FlowDescription)) + ) && + ( + this.Version == input.Version || + (this.Version != null && + this.Version.Equals(input.Version)) + ) && + ( + this.State == input.State || + (this.State != null && + this.State.Equals(input.State)) + ) && + ( + this.StateExplanation == input.StateExplanation || + (this.StateExplanation != null && + this.StateExplanation.Equals(input.StateExplanation)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.GroupId != null) + hashCode = hashCode * 59 + this.GroupId.GetHashCode(); + if (this.RegistryId != null) + hashCode = hashCode * 59 + this.RegistryId.GetHashCode(); + if (this.RegistryName != null) + hashCode = hashCode * 59 + this.RegistryName.GetHashCode(); + if (this.BucketId != null) + hashCode = hashCode * 59 + this.BucketId.GetHashCode(); + if (this.BucketName != null) + hashCode = hashCode * 59 + this.BucketName.GetHashCode(); + if (this.FlowId != null) + hashCode = hashCode * 59 + this.FlowId.GetHashCode(); + if (this.FlowName != null) + hashCode = hashCode * 59 + this.FlowName.GetHashCode(); + if (this.FlowDescription != null) + hashCode = hashCode * 59 + this.FlowDescription.GetHashCode(); + if (this.Version != null) + hashCode = hashCode * 59 + this.Version.GetHashCode(); + if (this.State != null) + hashCode = hashCode * 59 + this.State.GetHashCode(); + if (this.StateExplanation != null) + hashCode = hashCode * 59 + this.StateExplanation.GetHashCode(); + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/NiFi.Swagger/Model/VersionControlInformationEntity.cs b/NiFi.Swagger/Model/VersionControlInformationEntity.cs new file mode 100644 index 0000000..250e16d --- /dev/null +++ b/NiFi.Swagger/Model/VersionControlInformationEntity.cs @@ -0,0 +1,153 @@ +/* + * NiFi Rest Api + * + * The Rest Api provides programmatic access to command and control a NiFi instance in real time. Start and stop processors, monitor queues, query provenance data, and more. Each endpoint below includes a description, definitions of the expected input and output, potential response codes, and the authorizations required to invoke each service. + * + * OpenAPI spec version: 1.9.1 + * Contact: dev@nifi.apache.org + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +namespace NiFi.Swagger.Model +{ + using System; + using System.Collections.Generic; + using System.ComponentModel.DataAnnotations; + using System.Runtime.Serialization; + using System.Text; + + using Newtonsoft.Json; + + /// + /// VersionControlInformationEntity + /// + [DataContract] + public partial class VersionControlInformationEntity : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// The Version Control information. + /// The Revision for the Process Group. + /// Acknowledges that this node is disconnected to allow for mutable requests to proceed.. + public VersionControlInformationEntity(VersionControlInformationDTO versionControlInformation = default(VersionControlInformationDTO), RevisionDTO processGroupRevision = default(RevisionDTO), bool? disconnectedNodeAcknowledged = default(bool?)) + { + this.VersionControlInformation = versionControlInformation; + this.ProcessGroupRevision = processGroupRevision; + this.DisconnectedNodeAcknowledged = disconnectedNodeAcknowledged; + } + + /// + /// The Version Control information + /// + /// The Version Control information + [DataMember(Name="versionControlInformation", EmitDefaultValue=false)] + public VersionControlInformationDTO VersionControlInformation { get; set; } + + /// + /// The Revision for the Process Group + /// + /// The Revision for the Process Group + [DataMember(Name="processGroupRevision", EmitDefaultValue=false)] + public RevisionDTO ProcessGroupRevision { get; set; } + + /// + /// Acknowledges that this node is disconnected to allow for mutable requests to proceed. + /// + /// Acknowledges that this node is disconnected to allow for mutable requests to proceed. + [DataMember(Name="disconnectedNodeAcknowledged", EmitDefaultValue=false)] + public bool? DisconnectedNodeAcknowledged { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class VersionControlInformationEntity {\n"); + sb.Append(" VersionControlInformation: ").Append(this.VersionControlInformation).Append("\n"); + sb.Append(" ProcessGroupRevision: ").Append(this.ProcessGroupRevision).Append("\n"); + sb.Append(" DisconnectedNodeAcknowledged: ").Append(this.DisconnectedNodeAcknowledged).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as VersionControlInformationEntity); + } + + /// + /// Returns true if VersionControlInformationEntity instances are equal + /// + /// Instance of VersionControlInformationEntity to be compared + /// Boolean + public bool Equals(VersionControlInformationEntity input) + { + if (input == null) + return false; + + return + ( + this.VersionControlInformation == input.VersionControlInformation || + (this.VersionControlInformation != null && + this.VersionControlInformation.Equals(input.VersionControlInformation)) + ) && + ( + this.ProcessGroupRevision == input.ProcessGroupRevision || + (this.ProcessGroupRevision != null && + this.ProcessGroupRevision.Equals(input.ProcessGroupRevision)) + ) && + ( + this.DisconnectedNodeAcknowledged == input.DisconnectedNodeAcknowledged || + (this.DisconnectedNodeAcknowledged != null && + this.DisconnectedNodeAcknowledged.Equals(input.DisconnectedNodeAcknowledged)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.VersionControlInformation != null) + hashCode = hashCode * 59 + this.VersionControlInformation.GetHashCode(); + if (this.ProcessGroupRevision != null) + hashCode = hashCode * 59 + this.ProcessGroupRevision.GetHashCode(); + if (this.DisconnectedNodeAcknowledged != null) + hashCode = hashCode * 59 + this.DisconnectedNodeAcknowledged.GetHashCode(); + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/NiFi.Swagger/Model/VersionInfoDTO.cs b/NiFi.Swagger/Model/VersionInfoDTO.cs new file mode 100644 index 0000000..5900a93 --- /dev/null +++ b/NiFi.Swagger/Model/VersionInfoDTO.cs @@ -0,0 +1,272 @@ +/* + * NiFi Rest Api + * + * The Rest Api provides programmatic access to command and control a NiFi instance in real time. Start and stop processors, monitor queues, query provenance data, and more. Each endpoint below includes a description, definitions of the expected input and output, potential response codes, and the authorizations required to invoke each service. + * + * OpenAPI spec version: 1.9.1 + * Contact: dev@nifi.apache.org + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +namespace NiFi.Swagger.Model +{ + using System; + using System.Collections.Generic; + using System.ComponentModel.DataAnnotations; + using System.Runtime.Serialization; + using System.Text; + + using Newtonsoft.Json; + + /// + /// VersionInfoDTO + /// + [DataContract] + public partial class VersionInfoDTO : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// The version of this NiFi.. + /// Java JVM vendor. + /// Java version. + /// Host operating system name. + /// Host operating system version. + /// Host operating system architecture. + /// Build tag. + /// Build revision or commit hash. + /// Build branch. + /// Build timestamp. + public VersionInfoDTO(string niFiVersion = default(string), string javaVendor = default(string), string javaVersion = default(string), string osName = default(string), string osVersion = default(string), string osArchitecture = default(string), string buildTag = default(string), string buildRevision = default(string), string buildBranch = default(string), DateTime? buildTimestamp = default(DateTime?)) + { + this.NiFiVersion = niFiVersion; + this.JavaVendor = javaVendor; + this.JavaVersion = javaVersion; + this.OsName = osName; + this.OsVersion = osVersion; + this.OsArchitecture = osArchitecture; + this.BuildTag = buildTag; + this.BuildRevision = buildRevision; + this.BuildBranch = buildBranch; + this.BuildTimestamp = buildTimestamp; + } + + /// + /// The version of this NiFi. + /// + /// The version of this NiFi. + [DataMember(Name="niFiVersion", EmitDefaultValue=false)] + public string NiFiVersion { get; set; } + + /// + /// Java JVM vendor + /// + /// Java JVM vendor + [DataMember(Name="javaVendor", EmitDefaultValue=false)] + public string JavaVendor { get; set; } + + /// + /// Java version + /// + /// Java version + [DataMember(Name="javaVersion", EmitDefaultValue=false)] + public string JavaVersion { get; set; } + + /// + /// Host operating system name + /// + /// Host operating system name + [DataMember(Name="osName", EmitDefaultValue=false)] + public string OsName { get; set; } + + /// + /// Host operating system version + /// + /// Host operating system version + [DataMember(Name="osVersion", EmitDefaultValue=false)] + public string OsVersion { get; set; } + + /// + /// Host operating system architecture + /// + /// Host operating system architecture + [DataMember(Name="osArchitecture", EmitDefaultValue=false)] + public string OsArchitecture { get; set; } + + /// + /// Build tag + /// + /// Build tag + [DataMember(Name="buildTag", EmitDefaultValue=false)] + public string BuildTag { get; set; } + + /// + /// Build revision or commit hash + /// + /// Build revision or commit hash + [DataMember(Name="buildRevision", EmitDefaultValue=false)] + public string BuildRevision { get; set; } + + /// + /// Build branch + /// + /// Build branch + [DataMember(Name="buildBranch", EmitDefaultValue=false)] + public string BuildBranch { get; set; } + + /// + /// Build timestamp + /// + /// Build timestamp + [DataMember(Name="buildTimestamp", EmitDefaultValue=false)] + public DateTime? BuildTimestamp { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class VersionInfoDTO {\n"); + sb.Append(" NiFiVersion: ").Append(this.NiFiVersion).Append("\n"); + sb.Append(" JavaVendor: ").Append(this.JavaVendor).Append("\n"); + sb.Append(" JavaVersion: ").Append(this.JavaVersion).Append("\n"); + sb.Append(" OsName: ").Append(this.OsName).Append("\n"); + sb.Append(" OsVersion: ").Append(this.OsVersion).Append("\n"); + sb.Append(" OsArchitecture: ").Append(this.OsArchitecture).Append("\n"); + sb.Append(" BuildTag: ").Append(this.BuildTag).Append("\n"); + sb.Append(" BuildRevision: ").Append(this.BuildRevision).Append("\n"); + sb.Append(" BuildBranch: ").Append(this.BuildBranch).Append("\n"); + sb.Append(" BuildTimestamp: ").Append(this.BuildTimestamp).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as VersionInfoDTO); + } + + /// + /// Returns true if VersionInfoDTO instances are equal + /// + /// Instance of VersionInfoDTO to be compared + /// Boolean + public bool Equals(VersionInfoDTO input) + { + if (input == null) + return false; + + return + ( + this.NiFiVersion == input.NiFiVersion || + (this.NiFiVersion != null && + this.NiFiVersion.Equals(input.NiFiVersion)) + ) && + ( + this.JavaVendor == input.JavaVendor || + (this.JavaVendor != null && + this.JavaVendor.Equals(input.JavaVendor)) + ) && + ( + this.JavaVersion == input.JavaVersion || + (this.JavaVersion != null && + this.JavaVersion.Equals(input.JavaVersion)) + ) && + ( + this.OsName == input.OsName || + (this.OsName != null && + this.OsName.Equals(input.OsName)) + ) && + ( + this.OsVersion == input.OsVersion || + (this.OsVersion != null && + this.OsVersion.Equals(input.OsVersion)) + ) && + ( + this.OsArchitecture == input.OsArchitecture || + (this.OsArchitecture != null && + this.OsArchitecture.Equals(input.OsArchitecture)) + ) && + ( + this.BuildTag == input.BuildTag || + (this.BuildTag != null && + this.BuildTag.Equals(input.BuildTag)) + ) && + ( + this.BuildRevision == input.BuildRevision || + (this.BuildRevision != null && + this.BuildRevision.Equals(input.BuildRevision)) + ) && + ( + this.BuildBranch == input.BuildBranch || + (this.BuildBranch != null && + this.BuildBranch.Equals(input.BuildBranch)) + ) && + ( + this.BuildTimestamp == input.BuildTimestamp || + (this.BuildTimestamp != null && + this.BuildTimestamp.Equals(input.BuildTimestamp)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.NiFiVersion != null) + hashCode = hashCode * 59 + this.NiFiVersion.GetHashCode(); + if (this.JavaVendor != null) + hashCode = hashCode * 59 + this.JavaVendor.GetHashCode(); + if (this.JavaVersion != null) + hashCode = hashCode * 59 + this.JavaVersion.GetHashCode(); + if (this.OsName != null) + hashCode = hashCode * 59 + this.OsName.GetHashCode(); + if (this.OsVersion != null) + hashCode = hashCode * 59 + this.OsVersion.GetHashCode(); + if (this.OsArchitecture != null) + hashCode = hashCode * 59 + this.OsArchitecture.GetHashCode(); + if (this.BuildTag != null) + hashCode = hashCode * 59 + this.BuildTag.GetHashCode(); + if (this.BuildRevision != null) + hashCode = hashCode * 59 + this.BuildRevision.GetHashCode(); + if (this.BuildBranch != null) + hashCode = hashCode * 59 + this.BuildBranch.GetHashCode(); + if (this.BuildTimestamp != null) + hashCode = hashCode * 59 + this.BuildTimestamp.GetHashCode(); + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/NiFi.Swagger/Model/VersionedConnection.cs b/NiFi.Swagger/Model/VersionedConnection.cs new file mode 100644 index 0000000..d72214b --- /dev/null +++ b/NiFi.Swagger/Model/VersionedConnection.cs @@ -0,0 +1,560 @@ +/* + * NiFi Rest Api + * + * The Rest Api provides programmatic access to command and control a NiFi instance in real time. Start and stop processors, monitor queues, query provenance data, and more. Each endpoint below includes a description, definitions of the expected input and output, potential response codes, and the authorizations required to invoke each service. + * + * OpenAPI spec version: 1.9.1 + * Contact: dev@nifi.apache.org + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +namespace NiFi.Swagger.Model +{ + using System; + using System.Collections.Generic; + using System.ComponentModel.DataAnnotations; + using System.Linq; + using System.Runtime.Serialization; + using System.Text; + + using Newtonsoft.Json; + using Newtonsoft.Json.Converters; + + /// + /// VersionedConnection + /// + [DataContract] + public partial class VersionedConnection : IEquatable, IValidatableObject + { + /// + /// The Strategy to use for load balancing data across the cluster, or null, if no Load Balance Strategy has been specified. + /// + /// The Strategy to use for load balancing data across the cluster, or null, if no Load Balance Strategy has been specified. + [JsonConverter(typeof(StringEnumConverter))] + public enum LoadBalanceStrategyEnum + { + + /// + /// Enum DONOTLOADBALANCE for value: DO_NOT_LOAD_BALANCE + /// + [EnumMember(Value = "DO_NOT_LOAD_BALANCE")] + DONOTLOADBALANCE = 1, + + /// + /// Enum PARTITIONBYATTRIBUTE for value: PARTITION_BY_ATTRIBUTE + /// + [EnumMember(Value = "PARTITION_BY_ATTRIBUTE")] + PARTITIONBYATTRIBUTE = 2, + + /// + /// Enum ROUNDROBIN for value: ROUND_ROBIN + /// + [EnumMember(Value = "ROUND_ROBIN")] + ROUNDROBIN = 3, + + /// + /// Enum SINGLENODE for value: SINGLE_NODE + /// + [EnumMember(Value = "SINGLE_NODE")] + SINGLENODE = 4 + } + + /// + /// The Strategy to use for load balancing data across the cluster, or null, if no Load Balance Strategy has been specified. + /// + /// The Strategy to use for load balancing data across the cluster, or null, if no Load Balance Strategy has been specified. + [DataMember(Name="loadBalanceStrategy", EmitDefaultValue=false)] + public LoadBalanceStrategyEnum? LoadBalanceStrategy { get; set; } + /// + /// Whether or not compression should be used when transferring FlowFiles between nodes + /// + /// Whether or not compression should be used when transferring FlowFiles between nodes + [JsonConverter(typeof(StringEnumConverter))] + public enum LoadBalanceCompressionEnum + { + + /// + /// Enum DONOTCOMPRESS for value: DO_NOT_COMPRESS + /// + [EnumMember(Value = "DO_NOT_COMPRESS")] + DONOTCOMPRESS = 1, + + /// + /// Enum COMPRESSATTRIBUTESONLY for value: COMPRESS_ATTRIBUTES_ONLY + /// + [EnumMember(Value = "COMPRESS_ATTRIBUTES_ONLY")] + COMPRESSATTRIBUTESONLY = 2, + + /// + /// Enum COMPRESSATTRIBUTESANDCONTENT for value: COMPRESS_ATTRIBUTES_AND_CONTENT + /// + [EnumMember(Value = "COMPRESS_ATTRIBUTES_AND_CONTENT")] + COMPRESSATTRIBUTESANDCONTENT = 3 + } + + /// + /// Whether or not compression should be used when transferring FlowFiles between nodes + /// + /// Whether or not compression should be used when transferring FlowFiles between nodes + [DataMember(Name="loadBalanceCompression", EmitDefaultValue=false)] + public LoadBalanceCompressionEnum? LoadBalanceCompression { get; set; } + /// + /// Defines ComponentType + /// + [JsonConverter(typeof(StringEnumConverter))] + public enum ComponentTypeEnum + { + + /// + /// Enum CONNECTION for value: CONNECTION + /// + [EnumMember(Value = "CONNECTION")] + CONNECTION = 1, + + /// + /// Enum PROCESSOR for value: PROCESSOR + /// + [EnumMember(Value = "PROCESSOR")] + PROCESSOR = 2, + + /// + /// Enum PROCESSGROUP for value: PROCESS_GROUP + /// + [EnumMember(Value = "PROCESS_GROUP")] + PROCESSGROUP = 3, + + /// + /// Enum REMOTEPROCESSGROUP for value: REMOTE_PROCESS_GROUP + /// + [EnumMember(Value = "REMOTE_PROCESS_GROUP")] + REMOTEPROCESSGROUP = 4, + + /// + /// Enum INPUTPORT for value: INPUT_PORT + /// + [EnumMember(Value = "INPUT_PORT")] + INPUTPORT = 5, + + /// + /// Enum OUTPUTPORT for value: OUTPUT_PORT + /// + [EnumMember(Value = "OUTPUT_PORT")] + OUTPUTPORT = 6, + + /// + /// Enum REMOTEINPUTPORT for value: REMOTE_INPUT_PORT + /// + [EnumMember(Value = "REMOTE_INPUT_PORT")] + REMOTEINPUTPORT = 7, + + /// + /// Enum REMOTEOUTPUTPORT for value: REMOTE_OUTPUT_PORT + /// + [EnumMember(Value = "REMOTE_OUTPUT_PORT")] + REMOTEOUTPUTPORT = 8, + + /// + /// Enum FUNNEL for value: FUNNEL + /// + [EnumMember(Value = "FUNNEL")] + FUNNEL = 9, + + /// + /// Enum LABEL for value: LABEL + /// + [EnumMember(Value = "LABEL")] + LABEL = 10, + + /// + /// Enum CONTROLLERSERVICE for value: CONTROLLER_SERVICE + /// + [EnumMember(Value = "CONTROLLER_SERVICE")] + CONTROLLERSERVICE = 11 + } + + /// + /// Gets or Sets ComponentType + /// + [DataMember(Name="componentType", EmitDefaultValue=false)] + public ComponentTypeEnum? ComponentType { get; set; } + /// + /// Initializes a new instance of the class. + /// + /// The component's unique identifier. + /// The component's name. + /// The user-supplied comments for the component. + /// The component's position on the graph. + /// The source of the connection.. + /// The destination of the connection.. + /// The index of the bend point where to place the connection label.. + /// The z index of the connection.. + /// The selected relationship that comprise the connection.. + /// The object count threshold for determining when back pressure is applied. Updating this value is a passive change in the sense that it won't impact whether existing files over the limit are affected but it does help feeder processors to stop pushing too much into this work queue.. + /// The object data size threshold for determining when back pressure is applied. Updating this value is a passive change in the sense that it won't impact whether existing files over the limit are affected but it does help feeder processors to stop pushing too much into this work queue.. + /// The amount of time a flow file may be in the flow before it will be automatically aged out of the flow. Once a flow file reaches this age it will be terminated from the flow the next time a processor attempts to start work on it.. + /// The comparators used to prioritize the queue.. + /// The bend points on the connection.. + /// The Strategy to use for load balancing data across the cluster, or null, if no Load Balance Strategy has been specified.. + /// The attribute to use for partitioning data as it is load balanced across the cluster. If the Load Balance Strategy is configured to use PARTITION_BY_ATTRIBUTE, the value returned by this method is the name of the FlowFile Attribute that will be used to determine which node in the cluster should receive a given FlowFile. If the Load Balance Strategy is unset or is set to any other value, the Partitioning Attribute has no effect.. + /// Whether or not compression should be used when transferring FlowFiles between nodes. + /// componentType. + /// The ID of the Process Group that this component belongs to. + public VersionedConnection(string identifier = default(string), string name = default(string), string comments = default(string), Position position = default(Position), ConnectableComponent source = default(ConnectableComponent), ConnectableComponent destination = default(ConnectableComponent), int? labelIndex = default(int?), long? zIndex = default(long?), List selectedRelationships = default(List), long? backPressureObjectThreshold = default(long?), string backPressureDataSizeThreshold = default(string), string flowFileExpiration = default(string), List prioritizers = default(List), List bends = default(List), LoadBalanceStrategyEnum? loadBalanceStrategy = default(LoadBalanceStrategyEnum?), string partitioningAttribute = default(string), LoadBalanceCompressionEnum? loadBalanceCompression = default(LoadBalanceCompressionEnum?), ComponentTypeEnum? componentType = default(ComponentTypeEnum?), string groupIdentifier = default(string)) + { + this.Identifier = identifier; + this.Name = name; + this.Comments = comments; + this.Position = position; + this.Source = source; + this.Destination = destination; + this.LabelIndex = labelIndex; + this.ZIndex = zIndex; + this.SelectedRelationships = selectedRelationships; + this.BackPressureObjectThreshold = backPressureObjectThreshold; + this.BackPressureDataSizeThreshold = backPressureDataSizeThreshold; + this.FlowFileExpiration = flowFileExpiration; + this.Prioritizers = prioritizers; + this.Bends = bends; + this.LoadBalanceStrategy = loadBalanceStrategy; + this.PartitioningAttribute = partitioningAttribute; + this.LoadBalanceCompression = loadBalanceCompression; + this.ComponentType = componentType; + this.GroupIdentifier = groupIdentifier; + } + + /// + /// The component's unique identifier + /// + /// The component's unique identifier + [DataMember(Name="identifier", EmitDefaultValue=false)] + public string Identifier { get; set; } + + /// + /// The component's name + /// + /// The component's name + [DataMember(Name="name", EmitDefaultValue=false)] + public string Name { get; set; } + + /// + /// The user-supplied comments for the component + /// + /// The user-supplied comments for the component + [DataMember(Name="comments", EmitDefaultValue=false)] + public string Comments { get; set; } + + /// + /// The component's position on the graph + /// + /// The component's position on the graph + [DataMember(Name="position", EmitDefaultValue=false)] + public Position Position { get; set; } + + /// + /// The source of the connection. + /// + /// The source of the connection. + [DataMember(Name="source", EmitDefaultValue=false)] + public ConnectableComponent Source { get; set; } + + /// + /// The destination of the connection. + /// + /// The destination of the connection. + [DataMember(Name="destination", EmitDefaultValue=false)] + public ConnectableComponent Destination { get; set; } + + /// + /// The index of the bend point where to place the connection label. + /// + /// The index of the bend point where to place the connection label. + [DataMember(Name="labelIndex", EmitDefaultValue=false)] + public int? LabelIndex { get; set; } + + /// + /// The z index of the connection. + /// + /// The z index of the connection. + [DataMember(Name="zIndex", EmitDefaultValue=false)] + public long? ZIndex { get; set; } + + /// + /// The selected relationship that comprise the connection. + /// + /// The selected relationship that comprise the connection. + [DataMember(Name="selectedRelationships", EmitDefaultValue=false)] + public List SelectedRelationships { get; set; } + + /// + /// The object count threshold for determining when back pressure is applied. Updating this value is a passive change in the sense that it won't impact whether existing files over the limit are affected but it does help feeder processors to stop pushing too much into this work queue. + /// + /// The object count threshold for determining when back pressure is applied. Updating this value is a passive change in the sense that it won't impact whether existing files over the limit are affected but it does help feeder processors to stop pushing too much into this work queue. + [DataMember(Name="backPressureObjectThreshold", EmitDefaultValue=false)] + public long? BackPressureObjectThreshold { get; set; } + + /// + /// The object data size threshold for determining when back pressure is applied. Updating this value is a passive change in the sense that it won't impact whether existing files over the limit are affected but it does help feeder processors to stop pushing too much into this work queue. + /// + /// The object data size threshold for determining when back pressure is applied. Updating this value is a passive change in the sense that it won't impact whether existing files over the limit are affected but it does help feeder processors to stop pushing too much into this work queue. + [DataMember(Name="backPressureDataSizeThreshold", EmitDefaultValue=false)] + public string BackPressureDataSizeThreshold { get; set; } + + /// + /// The amount of time a flow file may be in the flow before it will be automatically aged out of the flow. Once a flow file reaches this age it will be terminated from the flow the next time a processor attempts to start work on it. + /// + /// The amount of time a flow file may be in the flow before it will be automatically aged out of the flow. Once a flow file reaches this age it will be terminated from the flow the next time a processor attempts to start work on it. + [DataMember(Name="flowFileExpiration", EmitDefaultValue=false)] + public string FlowFileExpiration { get; set; } + + /// + /// The comparators used to prioritize the queue. + /// + /// The comparators used to prioritize the queue. + [DataMember(Name="prioritizers", EmitDefaultValue=false)] + public List Prioritizers { get; set; } + + /// + /// The bend points on the connection. + /// + /// The bend points on the connection. + [DataMember(Name="bends", EmitDefaultValue=false)] + public List Bends { get; set; } + + + /// + /// The attribute to use for partitioning data as it is load balanced across the cluster. If the Load Balance Strategy is configured to use PARTITION_BY_ATTRIBUTE, the value returned by this method is the name of the FlowFile Attribute that will be used to determine which node in the cluster should receive a given FlowFile. If the Load Balance Strategy is unset or is set to any other value, the Partitioning Attribute has no effect. + /// + /// The attribute to use for partitioning data as it is load balanced across the cluster. If the Load Balance Strategy is configured to use PARTITION_BY_ATTRIBUTE, the value returned by this method is the name of the FlowFile Attribute that will be used to determine which node in the cluster should receive a given FlowFile. If the Load Balance Strategy is unset or is set to any other value, the Partitioning Attribute has no effect. + [DataMember(Name="partitioningAttribute", EmitDefaultValue=false)] + public string PartitioningAttribute { get; set; } + + + + /// + /// The ID of the Process Group that this component belongs to + /// + /// The ID of the Process Group that this component belongs to + [DataMember(Name="groupIdentifier", EmitDefaultValue=false)] + public string GroupIdentifier { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class VersionedConnection {\n"); + sb.Append(" Identifier: ").Append(this.Identifier).Append("\n"); + sb.Append(" Name: ").Append(this.Name).Append("\n"); + sb.Append(" Comments: ").Append(this.Comments).Append("\n"); + sb.Append(" Position: ").Append(this.Position).Append("\n"); + sb.Append(" Source: ").Append(this.Source).Append("\n"); + sb.Append(" Destination: ").Append(this.Destination).Append("\n"); + sb.Append(" LabelIndex: ").Append(this.LabelIndex).Append("\n"); + sb.Append(" ZIndex: ").Append(this.ZIndex).Append("\n"); + sb.Append(" SelectedRelationships: ").Append(this.SelectedRelationships).Append("\n"); + sb.Append(" BackPressureObjectThreshold: ").Append(this.BackPressureObjectThreshold).Append("\n"); + sb.Append(" BackPressureDataSizeThreshold: ").Append(this.BackPressureDataSizeThreshold).Append("\n"); + sb.Append(" FlowFileExpiration: ").Append(this.FlowFileExpiration).Append("\n"); + sb.Append(" Prioritizers: ").Append(this.Prioritizers).Append("\n"); + sb.Append(" Bends: ").Append(this.Bends).Append("\n"); + sb.Append(" LoadBalanceStrategy: ").Append(this.LoadBalanceStrategy).Append("\n"); + sb.Append(" PartitioningAttribute: ").Append(this.PartitioningAttribute).Append("\n"); + sb.Append(" LoadBalanceCompression: ").Append(this.LoadBalanceCompression).Append("\n"); + sb.Append(" ComponentType: ").Append(this.ComponentType).Append("\n"); + sb.Append(" GroupIdentifier: ").Append(this.GroupIdentifier).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as VersionedConnection); + } + + /// + /// Returns true if VersionedConnection instances are equal + /// + /// Instance of VersionedConnection to be compared + /// Boolean + public bool Equals(VersionedConnection input) + { + if (input == null) + return false; + + return + ( + this.Identifier == input.Identifier || + (this.Identifier != null && + this.Identifier.Equals(input.Identifier)) + ) && + ( + this.Name == input.Name || + (this.Name != null && + this.Name.Equals(input.Name)) + ) && + ( + this.Comments == input.Comments || + (this.Comments != null && + this.Comments.Equals(input.Comments)) + ) && + ( + this.Position == input.Position || + (this.Position != null && + this.Position.Equals(input.Position)) + ) && + ( + this.Source == input.Source || + (this.Source != null && + this.Source.Equals(input.Source)) + ) && + ( + this.Destination == input.Destination || + (this.Destination != null && + this.Destination.Equals(input.Destination)) + ) && + ( + this.LabelIndex == input.LabelIndex || + (this.LabelIndex != null && + this.LabelIndex.Equals(input.LabelIndex)) + ) && + ( + this.ZIndex == input.ZIndex || + (this.ZIndex != null && + this.ZIndex.Equals(input.ZIndex)) + ) && + ( + this.SelectedRelationships == input.SelectedRelationships || + this.SelectedRelationships != null && + this.SelectedRelationships.SequenceEqual(input.SelectedRelationships) + ) && + ( + this.BackPressureObjectThreshold == input.BackPressureObjectThreshold || + (this.BackPressureObjectThreshold != null && + this.BackPressureObjectThreshold.Equals(input.BackPressureObjectThreshold)) + ) && + ( + this.BackPressureDataSizeThreshold == input.BackPressureDataSizeThreshold || + (this.BackPressureDataSizeThreshold != null && + this.BackPressureDataSizeThreshold.Equals(input.BackPressureDataSizeThreshold)) + ) && + ( + this.FlowFileExpiration == input.FlowFileExpiration || + (this.FlowFileExpiration != null && + this.FlowFileExpiration.Equals(input.FlowFileExpiration)) + ) && + ( + this.Prioritizers == input.Prioritizers || + this.Prioritizers != null && + this.Prioritizers.SequenceEqual(input.Prioritizers) + ) && + ( + this.Bends == input.Bends || + this.Bends != null && + this.Bends.SequenceEqual(input.Bends) + ) && + ( + this.LoadBalanceStrategy == input.LoadBalanceStrategy || + (this.LoadBalanceStrategy != null && + this.LoadBalanceStrategy.Equals(input.LoadBalanceStrategy)) + ) && + ( + this.PartitioningAttribute == input.PartitioningAttribute || + (this.PartitioningAttribute != null && + this.PartitioningAttribute.Equals(input.PartitioningAttribute)) + ) && + ( + this.LoadBalanceCompression == input.LoadBalanceCompression || + (this.LoadBalanceCompression != null && + this.LoadBalanceCompression.Equals(input.LoadBalanceCompression)) + ) && + ( + this.ComponentType == input.ComponentType || + (this.ComponentType != null && + this.ComponentType.Equals(input.ComponentType)) + ) && + ( + this.GroupIdentifier == input.GroupIdentifier || + (this.GroupIdentifier != null && + this.GroupIdentifier.Equals(input.GroupIdentifier)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Identifier != null) + hashCode = hashCode * 59 + this.Identifier.GetHashCode(); + if (this.Name != null) + hashCode = hashCode * 59 + this.Name.GetHashCode(); + if (this.Comments != null) + hashCode = hashCode * 59 + this.Comments.GetHashCode(); + if (this.Position != null) + hashCode = hashCode * 59 + this.Position.GetHashCode(); + if (this.Source != null) + hashCode = hashCode * 59 + this.Source.GetHashCode(); + if (this.Destination != null) + hashCode = hashCode * 59 + this.Destination.GetHashCode(); + if (this.LabelIndex != null) + hashCode = hashCode * 59 + this.LabelIndex.GetHashCode(); + if (this.ZIndex != null) + hashCode = hashCode * 59 + this.ZIndex.GetHashCode(); + if (this.SelectedRelationships != null) + hashCode = hashCode * 59 + this.SelectedRelationships.GetHashCode(); + if (this.BackPressureObjectThreshold != null) + hashCode = hashCode * 59 + this.BackPressureObjectThreshold.GetHashCode(); + if (this.BackPressureDataSizeThreshold != null) + hashCode = hashCode * 59 + this.BackPressureDataSizeThreshold.GetHashCode(); + if (this.FlowFileExpiration != null) + hashCode = hashCode * 59 + this.FlowFileExpiration.GetHashCode(); + if (this.Prioritizers != null) + hashCode = hashCode * 59 + this.Prioritizers.GetHashCode(); + if (this.Bends != null) + hashCode = hashCode * 59 + this.Bends.GetHashCode(); + if (this.LoadBalanceStrategy != null) + hashCode = hashCode * 59 + this.LoadBalanceStrategy.GetHashCode(); + if (this.PartitioningAttribute != null) + hashCode = hashCode * 59 + this.PartitioningAttribute.GetHashCode(); + if (this.LoadBalanceCompression != null) + hashCode = hashCode * 59 + this.LoadBalanceCompression.GetHashCode(); + if (this.ComponentType != null) + hashCode = hashCode * 59 + this.ComponentType.GetHashCode(); + if (this.GroupIdentifier != null) + hashCode = hashCode * 59 + this.GroupIdentifier.GetHashCode(); + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/NiFi.Swagger/Model/VersionedControllerService.cs b/NiFi.Swagger/Model/VersionedControllerService.cs new file mode 100644 index 0000000..453137a --- /dev/null +++ b/NiFi.Swagger/Model/VersionedControllerService.cs @@ -0,0 +1,381 @@ +/* + * NiFi Rest Api + * + * The Rest Api provides programmatic access to command and control a NiFi instance in real time. Start and stop processors, monitor queues, query provenance data, and more. Each endpoint below includes a description, definitions of the expected input and output, potential response codes, and the authorizations required to invoke each service. + * + * OpenAPI spec version: 1.9.1 + * Contact: dev@nifi.apache.org + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +namespace NiFi.Swagger.Model +{ + using System; + using System.Collections.Generic; + using System.ComponentModel.DataAnnotations; + using System.Linq; + using System.Runtime.Serialization; + using System.Text; + + using Newtonsoft.Json; + using Newtonsoft.Json.Converters; + + /// + /// VersionedControllerService + /// + [DataContract] + public partial class VersionedControllerService : IEquatable, IValidatableObject + { + /// + /// Defines ComponentType + /// + [JsonConverter(typeof(StringEnumConverter))] + public enum ComponentTypeEnum + { + + /// + /// Enum CONNECTION for value: CONNECTION + /// + [EnumMember(Value = "CONNECTION")] + CONNECTION = 1, + + /// + /// Enum PROCESSOR for value: PROCESSOR + /// + [EnumMember(Value = "PROCESSOR")] + PROCESSOR = 2, + + /// + /// Enum PROCESSGROUP for value: PROCESS_GROUP + /// + [EnumMember(Value = "PROCESS_GROUP")] + PROCESSGROUP = 3, + + /// + /// Enum REMOTEPROCESSGROUP for value: REMOTE_PROCESS_GROUP + /// + [EnumMember(Value = "REMOTE_PROCESS_GROUP")] + REMOTEPROCESSGROUP = 4, + + /// + /// Enum INPUTPORT for value: INPUT_PORT + /// + [EnumMember(Value = "INPUT_PORT")] + INPUTPORT = 5, + + /// + /// Enum OUTPUTPORT for value: OUTPUT_PORT + /// + [EnumMember(Value = "OUTPUT_PORT")] + OUTPUTPORT = 6, + + /// + /// Enum REMOTEINPUTPORT for value: REMOTE_INPUT_PORT + /// + [EnumMember(Value = "REMOTE_INPUT_PORT")] + REMOTEINPUTPORT = 7, + + /// + /// Enum REMOTEOUTPUTPORT for value: REMOTE_OUTPUT_PORT + /// + [EnumMember(Value = "REMOTE_OUTPUT_PORT")] + REMOTEOUTPUTPORT = 8, + + /// + /// Enum FUNNEL for value: FUNNEL + /// + [EnumMember(Value = "FUNNEL")] + FUNNEL = 9, + + /// + /// Enum LABEL for value: LABEL + /// + [EnumMember(Value = "LABEL")] + LABEL = 10, + + /// + /// Enum CONTROLLERSERVICE for value: CONTROLLER_SERVICE + /// + [EnumMember(Value = "CONTROLLER_SERVICE")] + CONTROLLERSERVICE = 11 + } + + /// + /// Gets or Sets ComponentType + /// + [DataMember(Name="componentType", EmitDefaultValue=false)] + public ComponentTypeEnum? ComponentType { get; set; } + /// + /// Initializes a new instance of the class. + /// + /// The component's unique identifier. + /// The component's name. + /// The user-supplied comments for the component. + /// The component's position on the graph. + /// The type of the controller service.. + /// The details of the artifact that bundled this processor type.. + /// Lists the APIs this Controller Service implements.. + /// The properties of the controller service.. + /// The property descriptors for the processor.. + /// The annotation for the controller service. This is how the custom UI relays configuration to the controller service.. + /// componentType. + /// The ID of the Process Group that this component belongs to. + public VersionedControllerService(string identifier = default(string), string name = default(string), string comments = default(string), Position position = default(Position), string type = default(string), Bundle bundle = default(Bundle), List controllerServiceApis = default(List), Dictionary properties = default(Dictionary), Dictionary propertyDescriptors = default(Dictionary), string annotationData = default(string), ComponentTypeEnum? componentType = default(ComponentTypeEnum?), string groupIdentifier = default(string)) + { + this.Identifier = identifier; + this.Name = name; + this.Comments = comments; + this.Position = position; + this.Type = type; + this.Bundle = bundle; + this.ControllerServiceApis = controllerServiceApis; + this.Properties = properties; + this.PropertyDescriptors = propertyDescriptors; + this.AnnotationData = annotationData; + this.ComponentType = componentType; + this.GroupIdentifier = groupIdentifier; + } + + /// + /// The component's unique identifier + /// + /// The component's unique identifier + [DataMember(Name="identifier", EmitDefaultValue=false)] + public string Identifier { get; set; } + + /// + /// The component's name + /// + /// The component's name + [DataMember(Name="name", EmitDefaultValue=false)] + public string Name { get; set; } + + /// + /// The user-supplied comments for the component + /// + /// The user-supplied comments for the component + [DataMember(Name="comments", EmitDefaultValue=false)] + public string Comments { get; set; } + + /// + /// The component's position on the graph + /// + /// The component's position on the graph + [DataMember(Name="position", EmitDefaultValue=false)] + public Position Position { get; set; } + + /// + /// The type of the controller service. + /// + /// The type of the controller service. + [DataMember(Name="type", EmitDefaultValue=false)] + public string Type { get; set; } + + /// + /// The details of the artifact that bundled this processor type. + /// + /// The details of the artifact that bundled this processor type. + [DataMember(Name="bundle", EmitDefaultValue=false)] + public Bundle Bundle { get; set; } + + /// + /// Lists the APIs this Controller Service implements. + /// + /// Lists the APIs this Controller Service implements. + [DataMember(Name="controllerServiceApis", EmitDefaultValue=false)] + public List ControllerServiceApis { get; set; } + + /// + /// The properties of the controller service. + /// + /// The properties of the controller service. + [DataMember(Name="properties", EmitDefaultValue=false)] + public Dictionary Properties { get; set; } + + /// + /// The property descriptors for the processor. + /// + /// The property descriptors for the processor. + [DataMember(Name="propertyDescriptors", EmitDefaultValue=false)] + public Dictionary PropertyDescriptors { get; set; } + + /// + /// The annotation for the controller service. This is how the custom UI relays configuration to the controller service. + /// + /// The annotation for the controller service. This is how the custom UI relays configuration to the controller service. + [DataMember(Name="annotationData", EmitDefaultValue=false)] + public string AnnotationData { get; set; } + + + /// + /// The ID of the Process Group that this component belongs to + /// + /// The ID of the Process Group that this component belongs to + [DataMember(Name="groupIdentifier", EmitDefaultValue=false)] + public string GroupIdentifier { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class VersionedControllerService {\n"); + sb.Append(" Identifier: ").Append(this.Identifier).Append("\n"); + sb.Append(" Name: ").Append(this.Name).Append("\n"); + sb.Append(" Comments: ").Append(this.Comments).Append("\n"); + sb.Append(" Position: ").Append(this.Position).Append("\n"); + sb.Append(" Type: ").Append(this.Type).Append("\n"); + sb.Append(" Bundle: ").Append(this.Bundle).Append("\n"); + sb.Append(" ControllerServiceApis: ").Append(this.ControllerServiceApis).Append("\n"); + sb.Append(" Properties: ").Append(this.Properties).Append("\n"); + sb.Append(" PropertyDescriptors: ").Append(this.PropertyDescriptors).Append("\n"); + sb.Append(" AnnotationData: ").Append(this.AnnotationData).Append("\n"); + sb.Append(" ComponentType: ").Append(this.ComponentType).Append("\n"); + sb.Append(" GroupIdentifier: ").Append(this.GroupIdentifier).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as VersionedControllerService); + } + + /// + /// Returns true if VersionedControllerService instances are equal + /// + /// Instance of VersionedControllerService to be compared + /// Boolean + public bool Equals(VersionedControllerService input) + { + if (input == null) + return false; + + return + ( + this.Identifier == input.Identifier || + (this.Identifier != null && + this.Identifier.Equals(input.Identifier)) + ) && + ( + this.Name == input.Name || + (this.Name != null && + this.Name.Equals(input.Name)) + ) && + ( + this.Comments == input.Comments || + (this.Comments != null && + this.Comments.Equals(input.Comments)) + ) && + ( + this.Position == input.Position || + (this.Position != null && + this.Position.Equals(input.Position)) + ) && + ( + this.Type == input.Type || + (this.Type != null && + this.Type.Equals(input.Type)) + ) && + ( + this.Bundle == input.Bundle || + (this.Bundle != null && + this.Bundle.Equals(input.Bundle)) + ) && + ( + this.ControllerServiceApis == input.ControllerServiceApis || + this.ControllerServiceApis != null && + this.ControllerServiceApis.SequenceEqual(input.ControllerServiceApis) + ) && + ( + this.Properties == input.Properties || + this.Properties != null && + this.Properties.SequenceEqual(input.Properties) + ) && + ( + this.PropertyDescriptors == input.PropertyDescriptors || + this.PropertyDescriptors != null && + this.PropertyDescriptors.SequenceEqual(input.PropertyDescriptors) + ) && + ( + this.AnnotationData == input.AnnotationData || + (this.AnnotationData != null && + this.AnnotationData.Equals(input.AnnotationData)) + ) && + ( + this.ComponentType == input.ComponentType || + (this.ComponentType != null && + this.ComponentType.Equals(input.ComponentType)) + ) && + ( + this.GroupIdentifier == input.GroupIdentifier || + (this.GroupIdentifier != null && + this.GroupIdentifier.Equals(input.GroupIdentifier)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Identifier != null) + hashCode = hashCode * 59 + this.Identifier.GetHashCode(); + if (this.Name != null) + hashCode = hashCode * 59 + this.Name.GetHashCode(); + if (this.Comments != null) + hashCode = hashCode * 59 + this.Comments.GetHashCode(); + if (this.Position != null) + hashCode = hashCode * 59 + this.Position.GetHashCode(); + if (this.Type != null) + hashCode = hashCode * 59 + this.Type.GetHashCode(); + if (this.Bundle != null) + hashCode = hashCode * 59 + this.Bundle.GetHashCode(); + if (this.ControllerServiceApis != null) + hashCode = hashCode * 59 + this.ControllerServiceApis.GetHashCode(); + if (this.Properties != null) + hashCode = hashCode * 59 + this.Properties.GetHashCode(); + if (this.PropertyDescriptors != null) + hashCode = hashCode * 59 + this.PropertyDescriptors.GetHashCode(); + if (this.AnnotationData != null) + hashCode = hashCode * 59 + this.AnnotationData.GetHashCode(); + if (this.ComponentType != null) + hashCode = hashCode * 59 + this.ComponentType.GetHashCode(); + if (this.GroupIdentifier != null) + hashCode = hashCode * 59 + this.GroupIdentifier.GetHashCode(); + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/NiFi.Swagger/Model/VersionedFlow.cs b/NiFi.Swagger/Model/VersionedFlow.cs new file mode 100644 index 0000000..1d20248 --- /dev/null +++ b/NiFi.Swagger/Model/VersionedFlow.cs @@ -0,0 +1,339 @@ +/* + * NiFi Rest Api + * + * The Rest Api provides programmatic access to command and control a NiFi instance in real time. Start and stop processors, monitor queues, query provenance data, and more. Each endpoint below includes a description, definitions of the expected input and output, potential response codes, and the authorizations required to invoke each service. + * + * OpenAPI spec version: 1.9.1 + * Contact: dev@nifi.apache.org + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +namespace NiFi.Swagger.Model +{ + using System; + using System.Collections.Generic; + using System.ComponentModel.DataAnnotations; + using System.IO; + using System.Runtime.Serialization; + using System.Text; + + using Newtonsoft.Json; + using Newtonsoft.Json.Converters; + + /// + /// VersionedFlow + /// + [DataContract] + public partial class VersionedFlow : IEquatable, IValidatableObject + { + /// + /// The type of item. + /// + /// The type of item. + [JsonConverter(typeof(StringEnumConverter))] + public enum TypeEnum + { + + /// + /// Enum Flow for value: Flow + /// + [EnumMember(Value = "Flow")] + Flow = 1 + } + + /// + /// The type of item. + /// + /// The type of item. + [DataMember(Name="type", EmitDefaultValue=false)] + public TypeEnum Type { get; set; } + /// + /// Initializes a new instance of the class. + /// + [JsonConstructor] + protected VersionedFlow() { } + /// + /// Initializes a new instance of the class. + /// + /// The name of the item. (required). + /// A description of the item.. + /// The identifier of the bucket this items belongs to. This cannot be changed after the item is created. (required). + /// The type of item. (required). + public VersionedFlow(string name = default(string), string description = default(string), string bucketIdentifier = default(string), TypeEnum type = default(TypeEnum)) + { + // to ensure "name" is required (not null) + if (name == null) + { + throw new InvalidDataException("name is a required property for VersionedFlow and cannot be null"); + } + else + { + this.Name = name; + } + // to ensure "bucketIdentifier" is required (not null) + if (bucketIdentifier == null) + { + throw new InvalidDataException("bucketIdentifier is a required property for VersionedFlow and cannot be null"); + } + else + { + this.BucketIdentifier = bucketIdentifier; + } + // to ensure "type" is required (not null) + if (type == null) + { + throw new InvalidDataException("type is a required property for VersionedFlow and cannot be null"); + } + else + { + this.Type = type; + } + this.Description = description; + } + + /// + /// An WebLink to this entity. + /// + /// An WebLink to this entity. + [DataMember(Name="link", EmitDefaultValue=false)] + public Link Link { get; private set; } + + /// + /// An ID to uniquely identify this object. + /// + /// An ID to uniquely identify this object. + [DataMember(Name="identifier", EmitDefaultValue=false)] + public string Identifier { get; private set; } + + /// + /// The name of the item. + /// + /// The name of the item. + [DataMember(Name="name", EmitDefaultValue=false)] + public string Name { get; set; } + + /// + /// A description of the item. + /// + /// A description of the item. + [DataMember(Name="description", EmitDefaultValue=false)] + public string Description { get; set; } + + /// + /// The identifier of the bucket this items belongs to. This cannot be changed after the item is created. + /// + /// The identifier of the bucket this items belongs to. This cannot be changed after the item is created. + [DataMember(Name="bucketIdentifier", EmitDefaultValue=false)] + public string BucketIdentifier { get; set; } + + /// + /// The name of the bucket this items belongs to. + /// + /// The name of the bucket this items belongs to. + [DataMember(Name="bucketName", EmitDefaultValue=false)] + public string BucketName { get; private set; } + + /// + /// The timestamp of when the item was created, as milliseconds since epoch. + /// + /// The timestamp of when the item was created, as milliseconds since epoch. + [DataMember(Name="createdTimestamp", EmitDefaultValue=false)] + public long? CreatedTimestamp { get; private set; } + + /// + /// The timestamp of when the item was last modified, as milliseconds since epoch. + /// + /// The timestamp of when the item was last modified, as milliseconds since epoch. + [DataMember(Name="modifiedTimestamp", EmitDefaultValue=false)] + public long? ModifiedTimestamp { get; private set; } + + + /// + /// The access that the current user has to the bucket containing this item. + /// + /// The access that the current user has to the bucket containing this item. + [DataMember(Name="permissions", EmitDefaultValue=false)] + public Permissions Permissions { get; private set; } + + /// + /// The number of versions of this flow. + /// + /// The number of versions of this flow. + [DataMember(Name="versionCount", EmitDefaultValue=false)] + public long? VersionCount { get; private set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class VersionedFlow {\n"); + sb.Append(" Link: ").Append(this.Link).Append("\n"); + sb.Append(" Identifier: ").Append(this.Identifier).Append("\n"); + sb.Append(" Name: ").Append(this.Name).Append("\n"); + sb.Append(" Description: ").Append(this.Description).Append("\n"); + sb.Append(" BucketIdentifier: ").Append(this.BucketIdentifier).Append("\n"); + sb.Append(" BucketName: ").Append(this.BucketName).Append("\n"); + sb.Append(" CreatedTimestamp: ").Append(this.CreatedTimestamp).Append("\n"); + sb.Append(" ModifiedTimestamp: ").Append(this.ModifiedTimestamp).Append("\n"); + sb.Append(" Type: ").Append(this.Type).Append("\n"); + sb.Append(" Permissions: ").Append(this.Permissions).Append("\n"); + sb.Append(" VersionCount: ").Append(this.VersionCount).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as VersionedFlow); + } + + /// + /// Returns true if VersionedFlow instances are equal + /// + /// Instance of VersionedFlow to be compared + /// Boolean + public bool Equals(VersionedFlow input) + { + if (input == null) + return false; + + return + ( + this.Link == input.Link || + (this.Link != null && + this.Link.Equals(input.Link)) + ) && + ( + this.Identifier == input.Identifier || + (this.Identifier != null && + this.Identifier.Equals(input.Identifier)) + ) && + ( + this.Name == input.Name || + (this.Name != null && + this.Name.Equals(input.Name)) + ) && + ( + this.Description == input.Description || + (this.Description != null && + this.Description.Equals(input.Description)) + ) && + ( + this.BucketIdentifier == input.BucketIdentifier || + (this.BucketIdentifier != null && + this.BucketIdentifier.Equals(input.BucketIdentifier)) + ) && + ( + this.BucketName == input.BucketName || + (this.BucketName != null && + this.BucketName.Equals(input.BucketName)) + ) && + ( + this.CreatedTimestamp == input.CreatedTimestamp || + (this.CreatedTimestamp != null && + this.CreatedTimestamp.Equals(input.CreatedTimestamp)) + ) && + ( + this.ModifiedTimestamp == input.ModifiedTimestamp || + (this.ModifiedTimestamp != null && + this.ModifiedTimestamp.Equals(input.ModifiedTimestamp)) + ) && + ( + this.Type == input.Type || + (this.Type != null && + this.Type.Equals(input.Type)) + ) && + ( + this.Permissions == input.Permissions || + (this.Permissions != null && + this.Permissions.Equals(input.Permissions)) + ) && + ( + this.VersionCount == input.VersionCount || + (this.VersionCount != null && + this.VersionCount.Equals(input.VersionCount)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Link != null) + hashCode = hashCode * 59 + this.Link.GetHashCode(); + if (this.Identifier != null) + hashCode = hashCode * 59 + this.Identifier.GetHashCode(); + if (this.Name != null) + hashCode = hashCode * 59 + this.Name.GetHashCode(); + if (this.Description != null) + hashCode = hashCode * 59 + this.Description.GetHashCode(); + if (this.BucketIdentifier != null) + hashCode = hashCode * 59 + this.BucketIdentifier.GetHashCode(); + if (this.BucketName != null) + hashCode = hashCode * 59 + this.BucketName.GetHashCode(); + if (this.CreatedTimestamp != null) + hashCode = hashCode * 59 + this.CreatedTimestamp.GetHashCode(); + if (this.ModifiedTimestamp != null) + hashCode = hashCode * 59 + this.ModifiedTimestamp.GetHashCode(); + if (this.Type != null) + hashCode = hashCode * 59 + this.Type.GetHashCode(); + if (this.Permissions != null) + hashCode = hashCode * 59 + this.Permissions.GetHashCode(); + if (this.VersionCount != null) + hashCode = hashCode * 59 + this.VersionCount.GetHashCode(); + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + // CreatedTimestamp (long?) minimum + if(this.CreatedTimestamp < (long?)1) + { + yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for CreatedTimestamp, must be a value greater than or equal to 1.", new [] { "CreatedTimestamp" }); + } + + // ModifiedTimestamp (long?) minimum + if(this.ModifiedTimestamp < (long?)1) + { + yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for ModifiedTimestamp, must be a value greater than or equal to 1.", new [] { "ModifiedTimestamp" }); + } + + // VersionCount (long?) minimum + if(this.VersionCount < (long?)0) + { + yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for VersionCount, must be a value greater than or equal to 0.", new [] { "VersionCount" }); + } + + yield break; + } + } + +} diff --git a/NiFi.Swagger/Model/VersionedFlowCoordinates.cs b/NiFi.Swagger/Model/VersionedFlowCoordinates.cs new file mode 100644 index 0000000..1921d6a --- /dev/null +++ b/NiFi.Swagger/Model/VersionedFlowCoordinates.cs @@ -0,0 +1,187 @@ +/* + * NiFi Rest Api + * + * The Rest Api provides programmatic access to command and control a NiFi instance in real time. Start and stop processors, monitor queues, query provenance data, and more. Each endpoint below includes a description, definitions of the expected input and output, potential response codes, and the authorizations required to invoke each service. + * + * OpenAPI spec version: 1.9.1 + * Contact: dev@nifi.apache.org + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +namespace NiFi.Swagger.Model +{ + using System; + using System.Collections.Generic; + using System.ComponentModel.DataAnnotations; + using System.Runtime.Serialization; + using System.Text; + + using Newtonsoft.Json; + + /// + /// VersionedFlowCoordinates + /// + [DataContract] + public partial class VersionedFlowCoordinates : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// The URL of the Flow Registry that contains the flow. + /// The UUID of the bucket that the flow resides in. + /// The UUID of the flow. + /// The version of the flow. + /// Whether or not these coordinates point to the latest version of the flow. + public VersionedFlowCoordinates(string registryUrl = default(string), string bucketId = default(string), string flowId = default(string), int? version = default(int?), bool? latest = default(bool?)) + { + this.RegistryUrl = registryUrl; + this.BucketId = bucketId; + this.FlowId = flowId; + this.Version = version; + this.Latest = latest; + } + + /// + /// The URL of the Flow Registry that contains the flow + /// + /// The URL of the Flow Registry that contains the flow + [DataMember(Name="registryUrl", EmitDefaultValue=false)] + public string RegistryUrl { get; set; } + + /// + /// The UUID of the bucket that the flow resides in + /// + /// The UUID of the bucket that the flow resides in + [DataMember(Name="bucketId", EmitDefaultValue=false)] + public string BucketId { get; set; } + + /// + /// The UUID of the flow + /// + /// The UUID of the flow + [DataMember(Name="flowId", EmitDefaultValue=false)] + public string FlowId { get; set; } + + /// + /// The version of the flow + /// + /// The version of the flow + [DataMember(Name="version", EmitDefaultValue=false)] + public int? Version { get; set; } + + /// + /// Whether or not these coordinates point to the latest version of the flow + /// + /// Whether or not these coordinates point to the latest version of the flow + [DataMember(Name="latest", EmitDefaultValue=false)] + public bool? Latest { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class VersionedFlowCoordinates {\n"); + sb.Append(" RegistryUrl: ").Append(this.RegistryUrl).Append("\n"); + sb.Append(" BucketId: ").Append(this.BucketId).Append("\n"); + sb.Append(" FlowId: ").Append(this.FlowId).Append("\n"); + sb.Append(" Version: ").Append(this.Version).Append("\n"); + sb.Append(" Latest: ").Append(this.Latest).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as VersionedFlowCoordinates); + } + + /// + /// Returns true if VersionedFlowCoordinates instances are equal + /// + /// Instance of VersionedFlowCoordinates to be compared + /// Boolean + public bool Equals(VersionedFlowCoordinates input) + { + if (input == null) + return false; + + return + ( + this.RegistryUrl == input.RegistryUrl || + (this.RegistryUrl != null && + this.RegistryUrl.Equals(input.RegistryUrl)) + ) && + ( + this.BucketId == input.BucketId || + (this.BucketId != null && + this.BucketId.Equals(input.BucketId)) + ) && + ( + this.FlowId == input.FlowId || + (this.FlowId != null && + this.FlowId.Equals(input.FlowId)) + ) && + ( + this.Version == input.Version || + (this.Version != null && + this.Version.Equals(input.Version)) + ) && + ( + this.Latest == input.Latest || + (this.Latest != null && + this.Latest.Equals(input.Latest)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.RegistryUrl != null) + hashCode = hashCode * 59 + this.RegistryUrl.GetHashCode(); + if (this.BucketId != null) + hashCode = hashCode * 59 + this.BucketId.GetHashCode(); + if (this.FlowId != null) + hashCode = hashCode * 59 + this.FlowId.GetHashCode(); + if (this.Version != null) + hashCode = hashCode * 59 + this.Version.GetHashCode(); + if (this.Latest != null) + hashCode = hashCode * 59 + this.Latest.GetHashCode(); + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/NiFi.Swagger/Model/VersionedFlowDTO.cs b/NiFi.Swagger/Model/VersionedFlowDTO.cs new file mode 100644 index 0000000..f36be46 --- /dev/null +++ b/NiFi.Swagger/Model/VersionedFlowDTO.cs @@ -0,0 +1,204 @@ +/* + * NiFi Rest Api + * + * The Rest Api provides programmatic access to command and control a NiFi instance in real time. Start and stop processors, monitor queues, query provenance data, and more. Each endpoint below includes a description, definitions of the expected input and output, potential response codes, and the authorizations required to invoke each service. + * + * OpenAPI spec version: 1.9.1 + * Contact: dev@nifi.apache.org + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +namespace NiFi.Swagger.Model +{ + using System; + using System.Collections.Generic; + using System.ComponentModel.DataAnnotations; + using System.Runtime.Serialization; + using System.Text; + + using Newtonsoft.Json; + + /// + /// VersionedFlowDTO + /// + [DataContract] + public partial class VersionedFlowDTO : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// The ID of the registry that the flow is tracked to. + /// The ID of the bucket where the flow is stored. + /// The ID of the flow. + /// The name of the flow. + /// A description of the flow. + /// Comments for the changeset. + public VersionedFlowDTO(string registryId = default(string), string bucketId = default(string), string flowId = default(string), string flowName = default(string), string description = default(string), string comments = default(string)) + { + this.RegistryId = registryId; + this.BucketId = bucketId; + this.FlowId = flowId; + this.FlowName = flowName; + this.Description = description; + this.Comments = comments; + } + + /// + /// The ID of the registry that the flow is tracked to + /// + /// The ID of the registry that the flow is tracked to + [DataMember(Name="registryId", EmitDefaultValue=false)] + public string RegistryId { get; set; } + + /// + /// The ID of the bucket where the flow is stored + /// + /// The ID of the bucket where the flow is stored + [DataMember(Name="bucketId", EmitDefaultValue=false)] + public string BucketId { get; set; } + + /// + /// The ID of the flow + /// + /// The ID of the flow + [DataMember(Name="flowId", EmitDefaultValue=false)] + public string FlowId { get; set; } + + /// + /// The name of the flow + /// + /// The name of the flow + [DataMember(Name="flowName", EmitDefaultValue=false)] + public string FlowName { get; set; } + + /// + /// A description of the flow + /// + /// A description of the flow + [DataMember(Name="description", EmitDefaultValue=false)] + public string Description { get; set; } + + /// + /// Comments for the changeset + /// + /// Comments for the changeset + [DataMember(Name="comments", EmitDefaultValue=false)] + public string Comments { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class VersionedFlowDTO {\n"); + sb.Append(" RegistryId: ").Append(this.RegistryId).Append("\n"); + sb.Append(" BucketId: ").Append(this.BucketId).Append("\n"); + sb.Append(" FlowId: ").Append(this.FlowId).Append("\n"); + sb.Append(" FlowName: ").Append(this.FlowName).Append("\n"); + sb.Append(" Description: ").Append(this.Description).Append("\n"); + sb.Append(" Comments: ").Append(this.Comments).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as VersionedFlowDTO); + } + + /// + /// Returns true if VersionedFlowDTO instances are equal + /// + /// Instance of VersionedFlowDTO to be compared + /// Boolean + public bool Equals(VersionedFlowDTO input) + { + if (input == null) + return false; + + return + ( + this.RegistryId == input.RegistryId || + (this.RegistryId != null && + this.RegistryId.Equals(input.RegistryId)) + ) && + ( + this.BucketId == input.BucketId || + (this.BucketId != null && + this.BucketId.Equals(input.BucketId)) + ) && + ( + this.FlowId == input.FlowId || + (this.FlowId != null && + this.FlowId.Equals(input.FlowId)) + ) && + ( + this.FlowName == input.FlowName || + (this.FlowName != null && + this.FlowName.Equals(input.FlowName)) + ) && + ( + this.Description == input.Description || + (this.Description != null && + this.Description.Equals(input.Description)) + ) && + ( + this.Comments == input.Comments || + (this.Comments != null && + this.Comments.Equals(input.Comments)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.RegistryId != null) + hashCode = hashCode * 59 + this.RegistryId.GetHashCode(); + if (this.BucketId != null) + hashCode = hashCode * 59 + this.BucketId.GetHashCode(); + if (this.FlowId != null) + hashCode = hashCode * 59 + this.FlowId.GetHashCode(); + if (this.FlowName != null) + hashCode = hashCode * 59 + this.FlowName.GetHashCode(); + if (this.Description != null) + hashCode = hashCode * 59 + this.Description.GetHashCode(); + if (this.Comments != null) + hashCode = hashCode * 59 + this.Comments.GetHashCode(); + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/NiFi.Swagger/Model/VersionedFlowEntity.cs b/NiFi.Swagger/Model/VersionedFlowEntity.cs new file mode 100644 index 0000000..4ca8b4c --- /dev/null +++ b/NiFi.Swagger/Model/VersionedFlowEntity.cs @@ -0,0 +1,119 @@ +/* + * NiFi Rest Api + * + * The Rest Api provides programmatic access to command and control a NiFi instance in real time. Start and stop processors, monitor queues, query provenance data, and more. Each endpoint below includes a description, definitions of the expected input and output, potential response codes, and the authorizations required to invoke each service. + * + * OpenAPI spec version: 1.9.1 + * Contact: dev@nifi.apache.org + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +namespace NiFi.Swagger.Model +{ + using System; + using System.Collections.Generic; + using System.ComponentModel.DataAnnotations; + using System.Runtime.Serialization; + using System.Text; + + using Newtonsoft.Json; + + /// + /// VersionedFlowEntity + /// + [DataContract] + public partial class VersionedFlowEntity : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// The versioned flow. + public VersionedFlowEntity(VersionedFlowDTO versionedFlow = default(VersionedFlowDTO)) + { + this.VersionedFlow = versionedFlow; + } + + /// + /// The versioned flow + /// + /// The versioned flow + [DataMember(Name="versionedFlow", EmitDefaultValue=false)] + public VersionedFlowDTO VersionedFlow { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class VersionedFlowEntity {\n"); + sb.Append(" VersionedFlow: ").Append(this.VersionedFlow).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as VersionedFlowEntity); + } + + /// + /// Returns true if VersionedFlowEntity instances are equal + /// + /// Instance of VersionedFlowEntity to be compared + /// Boolean + public bool Equals(VersionedFlowEntity input) + { + if (input == null) + return false; + + return + ( + this.VersionedFlow == input.VersionedFlow || + (this.VersionedFlow != null && + this.VersionedFlow.Equals(input.VersionedFlow)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.VersionedFlow != null) + hashCode = hashCode * 59 + this.VersionedFlow.GetHashCode(); + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/NiFi.Swagger/Model/VersionedFlowSnapshot.cs b/NiFi.Swagger/Model/VersionedFlowSnapshot.cs new file mode 100644 index 0000000..28b3cda --- /dev/null +++ b/NiFi.Swagger/Model/VersionedFlowSnapshot.cs @@ -0,0 +1,204 @@ +/* + * NiFi Rest Api + * + * The Rest Api provides programmatic access to command and control a NiFi instance in real time. Start and stop processors, monitor queues, query provenance data, and more. Each endpoint below includes a description, definitions of the expected input and output, potential response codes, and the authorizations required to invoke each service. + * + * OpenAPI spec version: 1.9.1 + * Contact: dev@nifi.apache.org + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +namespace NiFi.Swagger.Model +{ + using System; + using System.Collections.Generic; + using System.ComponentModel.DataAnnotations; + using System.IO; + using System.Runtime.Serialization; + using System.Text; + + using Newtonsoft.Json; + + /// + /// VersionedFlowSnapshot + /// + [DataContract] + public partial class VersionedFlowSnapshot : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructor] + protected VersionedFlowSnapshot() { } + /// + /// Initializes a new instance of the class. + /// + /// The metadata for this snapshot (required). + /// The contents of the versioned flow (required). + /// latest. + public VersionedFlowSnapshot(VersionedFlowSnapshotMetadata snapshotMetadata = default(VersionedFlowSnapshotMetadata), VersionedProcessGroup flowContents = default(VersionedProcessGroup), bool? latest = default(bool?)) + { + // to ensure "snapshotMetadata" is required (not null) + if (snapshotMetadata == null) + { + throw new InvalidDataException("snapshotMetadata is a required property for VersionedFlowSnapshot and cannot be null"); + } + else + { + this.SnapshotMetadata = snapshotMetadata; + } + // to ensure "flowContents" is required (not null) + if (flowContents == null) + { + throw new InvalidDataException("flowContents is a required property for VersionedFlowSnapshot and cannot be null"); + } + else + { + this.FlowContents = flowContents; + } + this.Latest = latest; + } + + /// + /// The metadata for this snapshot + /// + /// The metadata for this snapshot + [DataMember(Name="snapshotMetadata", EmitDefaultValue=false)] + public VersionedFlowSnapshotMetadata SnapshotMetadata { get; set; } + + /// + /// The contents of the versioned flow + /// + /// The contents of the versioned flow + [DataMember(Name="flowContents", EmitDefaultValue=false)] + public VersionedProcessGroup FlowContents { get; set; } + + /// + /// The flow this snapshot is for + /// + /// The flow this snapshot is for + [DataMember(Name="flow", EmitDefaultValue=false)] + public VersionedFlow Flow { get; private set; } + + /// + /// The bucket where the flow is located + /// + /// The bucket where the flow is located + [DataMember(Name="bucket", EmitDefaultValue=false)] + public Bucket Bucket { get; private set; } + + /// + /// Gets or Sets Latest + /// + [DataMember(Name="latest", EmitDefaultValue=false)] + public bool? Latest { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class VersionedFlowSnapshot {\n"); + sb.Append(" SnapshotMetadata: ").Append(this.SnapshotMetadata).Append("\n"); + sb.Append(" FlowContents: ").Append(this.FlowContents).Append("\n"); + sb.Append(" Flow: ").Append(this.Flow).Append("\n"); + sb.Append(" Bucket: ").Append(this.Bucket).Append("\n"); + sb.Append(" Latest: ").Append(this.Latest).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as VersionedFlowSnapshot); + } + + /// + /// Returns true if VersionedFlowSnapshot instances are equal + /// + /// Instance of VersionedFlowSnapshot to be compared + /// Boolean + public bool Equals(VersionedFlowSnapshot input) + { + if (input == null) + return false; + + return + ( + this.SnapshotMetadata == input.SnapshotMetadata || + (this.SnapshotMetadata != null && + this.SnapshotMetadata.Equals(input.SnapshotMetadata)) + ) && + ( + this.FlowContents == input.FlowContents || + (this.FlowContents != null && + this.FlowContents.Equals(input.FlowContents)) + ) && + ( + this.Flow == input.Flow || + (this.Flow != null && + this.Flow.Equals(input.Flow)) + ) && + ( + this.Bucket == input.Bucket || + (this.Bucket != null && + this.Bucket.Equals(input.Bucket)) + ) && + ( + this.Latest == input.Latest || + (this.Latest != null && + this.Latest.Equals(input.Latest)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.SnapshotMetadata != null) + hashCode = hashCode * 59 + this.SnapshotMetadata.GetHashCode(); + if (this.FlowContents != null) + hashCode = hashCode * 59 + this.FlowContents.GetHashCode(); + if (this.Flow != null) + hashCode = hashCode * 59 + this.Flow.GetHashCode(); + if (this.Bucket != null) + hashCode = hashCode * 59 + this.Bucket.GetHashCode(); + if (this.Latest != null) + hashCode = hashCode * 59 + this.Latest.GetHashCode(); + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/NiFi.Swagger/Model/VersionedFlowSnapshotEntity.cs b/NiFi.Swagger/Model/VersionedFlowSnapshotEntity.cs new file mode 100644 index 0000000..a0de781 --- /dev/null +++ b/NiFi.Swagger/Model/VersionedFlowSnapshotEntity.cs @@ -0,0 +1,187 @@ +/* + * NiFi Rest Api + * + * The Rest Api provides programmatic access to command and control a NiFi instance in real time. Start and stop processors, monitor queues, query provenance data, and more. Each endpoint below includes a description, definitions of the expected input and output, potential response codes, and the authorizations required to invoke each service. + * + * OpenAPI spec version: 1.9.1 + * Contact: dev@nifi.apache.org + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +namespace NiFi.Swagger.Model +{ + using System; + using System.Collections.Generic; + using System.ComponentModel.DataAnnotations; + using System.Runtime.Serialization; + using System.Text; + + using Newtonsoft.Json; + + /// + /// VersionedFlowSnapshotEntity + /// + [DataContract] + public partial class VersionedFlowSnapshotEntity : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// The versioned flow snapshot. + /// The Revision of the Process Group under Version Control. + /// The ID of the Registry that this flow belongs to. + /// If the Process Group to be updated has a child or descendant Process Group that is also under Version Control, this specifies whether or not the contents of that child/descendant Process Group should be updated.. + /// Acknowledges that this node is disconnected to allow for mutable requests to proceed.. + public VersionedFlowSnapshotEntity(VersionedFlowSnapshot versionedFlowSnapshot = default(VersionedFlowSnapshot), RevisionDTO processGroupRevision = default(RevisionDTO), string registryId = default(string), bool? updateDescendantVersionedFlows = default(bool?), bool? disconnectedNodeAcknowledged = default(bool?)) + { + this.VersionedFlowSnapshot = versionedFlowSnapshot; + this.ProcessGroupRevision = processGroupRevision; + this.RegistryId = registryId; + this.UpdateDescendantVersionedFlows = updateDescendantVersionedFlows; + this.DisconnectedNodeAcknowledged = disconnectedNodeAcknowledged; + } + + /// + /// The versioned flow snapshot + /// + /// The versioned flow snapshot + [DataMember(Name="versionedFlowSnapshot", EmitDefaultValue=false)] + public VersionedFlowSnapshot VersionedFlowSnapshot { get; set; } + + /// + /// The Revision of the Process Group under Version Control + /// + /// The Revision of the Process Group under Version Control + [DataMember(Name="processGroupRevision", EmitDefaultValue=false)] + public RevisionDTO ProcessGroupRevision { get; set; } + + /// + /// The ID of the Registry that this flow belongs to + /// + /// The ID of the Registry that this flow belongs to + [DataMember(Name="registryId", EmitDefaultValue=false)] + public string RegistryId { get; set; } + + /// + /// If the Process Group to be updated has a child or descendant Process Group that is also under Version Control, this specifies whether or not the contents of that child/descendant Process Group should be updated. + /// + /// If the Process Group to be updated has a child or descendant Process Group that is also under Version Control, this specifies whether or not the contents of that child/descendant Process Group should be updated. + [DataMember(Name="updateDescendantVersionedFlows", EmitDefaultValue=false)] + public bool? UpdateDescendantVersionedFlows { get; set; } + + /// + /// Acknowledges that this node is disconnected to allow for mutable requests to proceed. + /// + /// Acknowledges that this node is disconnected to allow for mutable requests to proceed. + [DataMember(Name="disconnectedNodeAcknowledged", EmitDefaultValue=false)] + public bool? DisconnectedNodeAcknowledged { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class VersionedFlowSnapshotEntity {\n"); + sb.Append(" VersionedFlowSnapshot: ").Append(this.VersionedFlowSnapshot).Append("\n"); + sb.Append(" ProcessGroupRevision: ").Append(this.ProcessGroupRevision).Append("\n"); + sb.Append(" RegistryId: ").Append(this.RegistryId).Append("\n"); + sb.Append(" UpdateDescendantVersionedFlows: ").Append(this.UpdateDescendantVersionedFlows).Append("\n"); + sb.Append(" DisconnectedNodeAcknowledged: ").Append(this.DisconnectedNodeAcknowledged).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as VersionedFlowSnapshotEntity); + } + + /// + /// Returns true if VersionedFlowSnapshotEntity instances are equal + /// + /// Instance of VersionedFlowSnapshotEntity to be compared + /// Boolean + public bool Equals(VersionedFlowSnapshotEntity input) + { + if (input == null) + return false; + + return + ( + this.VersionedFlowSnapshot == input.VersionedFlowSnapshot || + (this.VersionedFlowSnapshot != null && + this.VersionedFlowSnapshot.Equals(input.VersionedFlowSnapshot)) + ) && + ( + this.ProcessGroupRevision == input.ProcessGroupRevision || + (this.ProcessGroupRevision != null && + this.ProcessGroupRevision.Equals(input.ProcessGroupRevision)) + ) && + ( + this.RegistryId == input.RegistryId || + (this.RegistryId != null && + this.RegistryId.Equals(input.RegistryId)) + ) && + ( + this.UpdateDescendantVersionedFlows == input.UpdateDescendantVersionedFlows || + (this.UpdateDescendantVersionedFlows != null && + this.UpdateDescendantVersionedFlows.Equals(input.UpdateDescendantVersionedFlows)) + ) && + ( + this.DisconnectedNodeAcknowledged == input.DisconnectedNodeAcknowledged || + (this.DisconnectedNodeAcknowledged != null && + this.DisconnectedNodeAcknowledged.Equals(input.DisconnectedNodeAcknowledged)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.VersionedFlowSnapshot != null) + hashCode = hashCode * 59 + this.VersionedFlowSnapshot.GetHashCode(); + if (this.ProcessGroupRevision != null) + hashCode = hashCode * 59 + this.ProcessGroupRevision.GetHashCode(); + if (this.RegistryId != null) + hashCode = hashCode * 59 + this.RegistryId.GetHashCode(); + if (this.UpdateDescendantVersionedFlows != null) + hashCode = hashCode * 59 + this.UpdateDescendantVersionedFlows.GetHashCode(); + if (this.DisconnectedNodeAcknowledged != null) + hashCode = hashCode * 59 + this.DisconnectedNodeAcknowledged.GetHashCode(); + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/NiFi.Swagger/Model/VersionedFlowSnapshotMetadata.cs b/NiFi.Swagger/Model/VersionedFlowSnapshotMetadata.cs new file mode 100644 index 0000000..045245c --- /dev/null +++ b/NiFi.Swagger/Model/VersionedFlowSnapshotMetadata.cs @@ -0,0 +1,257 @@ +/* + * NiFi Rest Api + * + * The Rest Api provides programmatic access to command and control a NiFi instance in real time. Start and stop processors, monitor queues, query provenance data, and more. Each endpoint below includes a description, definitions of the expected input and output, potential response codes, and the authorizations required to invoke each service. + * + * OpenAPI spec version: 1.9.1 + * Contact: dev@nifi.apache.org + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +namespace NiFi.Swagger.Model +{ + using System; + using System.Collections.Generic; + using System.ComponentModel.DataAnnotations; + using System.IO; + using System.Runtime.Serialization; + using System.Text; + + using Newtonsoft.Json; + + /// + /// VersionedFlowSnapshotMetadata + /// + [DataContract] + public partial class VersionedFlowSnapshotMetadata : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructor] + protected VersionedFlowSnapshotMetadata() { } + /// + /// Initializes a new instance of the class. + /// + /// The identifier of the bucket this snapshot belongs to. (required). + /// The identifier of the flow this snapshot belongs to. (required). + /// The version of this snapshot of the flow. (required). + /// The comments provided by the user when creating the snapshot.. + public VersionedFlowSnapshotMetadata(string bucketIdentifier = default(string), string flowIdentifier = default(string), int? version = default(int?), string comments = default(string)) + { + // to ensure "bucketIdentifier" is required (not null) + if (bucketIdentifier == null) + { + throw new InvalidDataException("bucketIdentifier is a required property for VersionedFlowSnapshotMetadata and cannot be null"); + } + else + { + this.BucketIdentifier = bucketIdentifier; + } + // to ensure "flowIdentifier" is required (not null) + if (flowIdentifier == null) + { + throw new InvalidDataException("flowIdentifier is a required property for VersionedFlowSnapshotMetadata and cannot be null"); + } + else + { + this.FlowIdentifier = flowIdentifier; + } + // to ensure "version" is required (not null) + if (version == null) + { + throw new InvalidDataException("version is a required property for VersionedFlowSnapshotMetadata and cannot be null"); + } + else + { + this.Version = version; + } + this.Comments = comments; + } + + /// + /// An WebLink to this entity. + /// + /// An WebLink to this entity. + [DataMember(Name="link", EmitDefaultValue=false)] + public Link Link { get; private set; } + + /// + /// The identifier of the bucket this snapshot belongs to. + /// + /// The identifier of the bucket this snapshot belongs to. + [DataMember(Name="bucketIdentifier", EmitDefaultValue=false)] + public string BucketIdentifier { get; set; } + + /// + /// The identifier of the flow this snapshot belongs to. + /// + /// The identifier of the flow this snapshot belongs to. + [DataMember(Name="flowIdentifier", EmitDefaultValue=false)] + public string FlowIdentifier { get; set; } + + /// + /// The version of this snapshot of the flow. + /// + /// The version of this snapshot of the flow. + [DataMember(Name="version", EmitDefaultValue=false)] + public int? Version { get; set; } + + /// + /// The timestamp when the flow was saved, as milliseconds since epoch. + /// + /// The timestamp when the flow was saved, as milliseconds since epoch. + [DataMember(Name="timestamp", EmitDefaultValue=false)] + public long? Timestamp { get; private set; } + + /// + /// The user that created this snapshot of the flow. + /// + /// The user that created this snapshot of the flow. + [DataMember(Name="author", EmitDefaultValue=false)] + public string Author { get; private set; } + + /// + /// The comments provided by the user when creating the snapshot. + /// + /// The comments provided by the user when creating the snapshot. + [DataMember(Name="comments", EmitDefaultValue=false)] + public string Comments { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class VersionedFlowSnapshotMetadata {\n"); + sb.Append(" Link: ").Append(this.Link).Append("\n"); + sb.Append(" BucketIdentifier: ").Append(this.BucketIdentifier).Append("\n"); + sb.Append(" FlowIdentifier: ").Append(this.FlowIdentifier).Append("\n"); + sb.Append(" Version: ").Append(this.Version).Append("\n"); + sb.Append(" Timestamp: ").Append(this.Timestamp).Append("\n"); + sb.Append(" Author: ").Append(this.Author).Append("\n"); + sb.Append(" Comments: ").Append(this.Comments).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as VersionedFlowSnapshotMetadata); + } + + /// + /// Returns true if VersionedFlowSnapshotMetadata instances are equal + /// + /// Instance of VersionedFlowSnapshotMetadata to be compared + /// Boolean + public bool Equals(VersionedFlowSnapshotMetadata input) + { + if (input == null) + return false; + + return + ( + this.Link == input.Link || + (this.Link != null && + this.Link.Equals(input.Link)) + ) && + ( + this.BucketIdentifier == input.BucketIdentifier || + (this.BucketIdentifier != null && + this.BucketIdentifier.Equals(input.BucketIdentifier)) + ) && + ( + this.FlowIdentifier == input.FlowIdentifier || + (this.FlowIdentifier != null && + this.FlowIdentifier.Equals(input.FlowIdentifier)) + ) && + ( + this.Version == input.Version || + (this.Version != null && + this.Version.Equals(input.Version)) + ) && + ( + this.Timestamp == input.Timestamp || + (this.Timestamp != null && + this.Timestamp.Equals(input.Timestamp)) + ) && + ( + this.Author == input.Author || + (this.Author != null && + this.Author.Equals(input.Author)) + ) && + ( + this.Comments == input.Comments || + (this.Comments != null && + this.Comments.Equals(input.Comments)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Link != null) + hashCode = hashCode * 59 + this.Link.GetHashCode(); + if (this.BucketIdentifier != null) + hashCode = hashCode * 59 + this.BucketIdentifier.GetHashCode(); + if (this.FlowIdentifier != null) + hashCode = hashCode * 59 + this.FlowIdentifier.GetHashCode(); + if (this.Version != null) + hashCode = hashCode * 59 + this.Version.GetHashCode(); + if (this.Timestamp != null) + hashCode = hashCode * 59 + this.Timestamp.GetHashCode(); + if (this.Author != null) + hashCode = hashCode * 59 + this.Author.GetHashCode(); + if (this.Comments != null) + hashCode = hashCode * 59 + this.Comments.GetHashCode(); + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + // Version (int?) minimum + if(this.Version < (int?)1) + { + yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Version, must be a value greater than or equal to 1.", new [] { "Version" }); + } + + // Timestamp (long?) minimum + if(this.Timestamp < (long?)1) + { + yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Timestamp, must be a value greater than or equal to 1.", new [] { "Timestamp" }); + } + + yield break; + } + } + +} diff --git a/NiFi.Swagger/Model/VersionedFlowSnapshotMetadataEntity.cs b/NiFi.Swagger/Model/VersionedFlowSnapshotMetadataEntity.cs new file mode 100644 index 0000000..3eb47af --- /dev/null +++ b/NiFi.Swagger/Model/VersionedFlowSnapshotMetadataEntity.cs @@ -0,0 +1,136 @@ +/* + * NiFi Rest Api + * + * The Rest Api provides programmatic access to command and control a NiFi instance in real time. Start and stop processors, monitor queues, query provenance data, and more. Each endpoint below includes a description, definitions of the expected input and output, potential response codes, and the authorizations required to invoke each service. + * + * OpenAPI spec version: 1.9.1 + * Contact: dev@nifi.apache.org + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +namespace NiFi.Swagger.Model +{ + using System; + using System.Collections.Generic; + using System.ComponentModel.DataAnnotations; + using System.Runtime.Serialization; + using System.Text; + + using Newtonsoft.Json; + + /// + /// VersionedFlowSnapshotMetadataEntity + /// + [DataContract] + public partial class VersionedFlowSnapshotMetadataEntity : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// The collection of versioned flow snapshot metadata. + /// The ID of the Registry that this flow belongs to. + public VersionedFlowSnapshotMetadataEntity(VersionedFlowSnapshotMetadata versionedFlowSnapshotMetadata = default(VersionedFlowSnapshotMetadata), string registryId = default(string)) + { + this.VersionedFlowSnapshotMetadata = versionedFlowSnapshotMetadata; + this.RegistryId = registryId; + } + + /// + /// The collection of versioned flow snapshot metadata + /// + /// The collection of versioned flow snapshot metadata + [DataMember(Name="versionedFlowSnapshotMetadata", EmitDefaultValue=false)] + public VersionedFlowSnapshotMetadata VersionedFlowSnapshotMetadata { get; set; } + + /// + /// The ID of the Registry that this flow belongs to + /// + /// The ID of the Registry that this flow belongs to + [DataMember(Name="registryId", EmitDefaultValue=false)] + public string RegistryId { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class VersionedFlowSnapshotMetadataEntity {\n"); + sb.Append(" VersionedFlowSnapshotMetadata: ").Append(this.VersionedFlowSnapshotMetadata).Append("\n"); + sb.Append(" RegistryId: ").Append(this.RegistryId).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as VersionedFlowSnapshotMetadataEntity); + } + + /// + /// Returns true if VersionedFlowSnapshotMetadataEntity instances are equal + /// + /// Instance of VersionedFlowSnapshotMetadataEntity to be compared + /// Boolean + public bool Equals(VersionedFlowSnapshotMetadataEntity input) + { + if (input == null) + return false; + + return + ( + this.VersionedFlowSnapshotMetadata == input.VersionedFlowSnapshotMetadata || + (this.VersionedFlowSnapshotMetadata != null && + this.VersionedFlowSnapshotMetadata.Equals(input.VersionedFlowSnapshotMetadata)) + ) && + ( + this.RegistryId == input.RegistryId || + (this.RegistryId != null && + this.RegistryId.Equals(input.RegistryId)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.VersionedFlowSnapshotMetadata != null) + hashCode = hashCode * 59 + this.VersionedFlowSnapshotMetadata.GetHashCode(); + if (this.RegistryId != null) + hashCode = hashCode * 59 + this.RegistryId.GetHashCode(); + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/NiFi.Swagger/Model/VersionedFlowSnapshotMetadataSetEntity.cs b/NiFi.Swagger/Model/VersionedFlowSnapshotMetadataSetEntity.cs new file mode 100644 index 0000000..6da5551 --- /dev/null +++ b/NiFi.Swagger/Model/VersionedFlowSnapshotMetadataSetEntity.cs @@ -0,0 +1,119 @@ +/* + * NiFi Rest Api + * + * The Rest Api provides programmatic access to command and control a NiFi instance in real time. Start and stop processors, monitor queues, query provenance data, and more. Each endpoint below includes a description, definitions of the expected input and output, potential response codes, and the authorizations required to invoke each service. + * + * OpenAPI spec version: 1.9.1 + * Contact: dev@nifi.apache.org + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +namespace NiFi.Swagger.Model +{ + using System; + using System.Collections.Generic; + using System.ComponentModel.DataAnnotations; + using System.Linq; + using System.Runtime.Serialization; + using System.Text; + + using Newtonsoft.Json; + + /// + /// VersionedFlowSnapshotMetadataSetEntity + /// + [DataContract] + public partial class VersionedFlowSnapshotMetadataSetEntity : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// versionedFlowSnapshotMetadataSet. + public VersionedFlowSnapshotMetadataSetEntity(List versionedFlowSnapshotMetadataSet = default(List)) + { + this.VersionedFlowSnapshotMetadataSet = versionedFlowSnapshotMetadataSet; + } + + /// + /// Gets or Sets VersionedFlowSnapshotMetadataSet + /// + [DataMember(Name="versionedFlowSnapshotMetadataSet", EmitDefaultValue=false)] + public List VersionedFlowSnapshotMetadataSet { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class VersionedFlowSnapshotMetadataSetEntity {\n"); + sb.Append(" VersionedFlowSnapshotMetadataSet: ").Append(this.VersionedFlowSnapshotMetadataSet).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as VersionedFlowSnapshotMetadataSetEntity); + } + + /// + /// Returns true if VersionedFlowSnapshotMetadataSetEntity instances are equal + /// + /// Instance of VersionedFlowSnapshotMetadataSetEntity to be compared + /// Boolean + public bool Equals(VersionedFlowSnapshotMetadataSetEntity input) + { + if (input == null) + return false; + + return + ( + this.VersionedFlowSnapshotMetadataSet == input.VersionedFlowSnapshotMetadataSet || + this.VersionedFlowSnapshotMetadataSet != null && + this.VersionedFlowSnapshotMetadataSet.SequenceEqual(input.VersionedFlowSnapshotMetadataSet) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.VersionedFlowSnapshotMetadataSet != null) + hashCode = hashCode * 59 + this.VersionedFlowSnapshotMetadataSet.GetHashCode(); + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/NiFi.Swagger/Model/VersionedFlowUpdateRequestDTO.cs b/NiFi.Swagger/Model/VersionedFlowUpdateRequestDTO.cs new file mode 100644 index 0000000..663ed01 --- /dev/null +++ b/NiFi.Swagger/Model/VersionedFlowUpdateRequestDTO.cs @@ -0,0 +1,239 @@ +/* + * NiFi Rest Api + * + * The Rest Api provides programmatic access to command and control a NiFi instance in real time. Start and stop processors, monitor queues, query provenance data, and more. Each endpoint below includes a description, definitions of the expected input and output, potential response codes, and the authorizations required to invoke each service. + * + * OpenAPI spec version: 1.9.1 + * Contact: dev@nifi.apache.org + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +namespace NiFi.Swagger.Model +{ + using System; + using System.Collections.Generic; + using System.ComponentModel.DataAnnotations; + using System.Runtime.Serialization; + using System.Text; + + using Newtonsoft.Json; + + /// + /// VersionedFlowUpdateRequestDTO + /// + [DataContract] + public partial class VersionedFlowUpdateRequestDTO : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// The unique ID of the Process Group that the variable registry belongs to. + public VersionedFlowUpdateRequestDTO(string processGroupId = default(string)) + { + this.ProcessGroupId = processGroupId; + } + + /// + /// The unique ID of this request. + /// + /// The unique ID of this request. + [DataMember(Name="requestId", EmitDefaultValue=false)] + public string RequestId { get; private set; } + + /// + /// The unique ID of the Process Group that the variable registry belongs to + /// + /// The unique ID of the Process Group that the variable registry belongs to + [DataMember(Name="processGroupId", EmitDefaultValue=false)] + public string ProcessGroupId { get; set; } + + /// + /// The URI for future requests to this drop request. + /// + /// The URI for future requests to this drop request. + [DataMember(Name="uri", EmitDefaultValue=false)] + public string Uri { get; private set; } + + /// + /// The last time this request was updated. + /// + /// The last time this request was updated. + [DataMember(Name="lastUpdated", EmitDefaultValue=false)] + public string LastUpdated { get; private set; } + + /// + /// Whether or not this request has completed + /// + /// Whether or not this request has completed + [DataMember(Name="complete", EmitDefaultValue=false)] + public bool? Complete { get; private set; } + + /// + /// An explanation of why this request failed, or null if this request has not failed + /// + /// An explanation of why this request failed, or null if this request has not failed + [DataMember(Name="failureReason", EmitDefaultValue=false)] + public string FailureReason { get; private set; } + + /// + /// The percentage complete for the request, between 0 and 100 + /// + /// The percentage complete for the request, between 0 and 100 + [DataMember(Name="percentCompleted", EmitDefaultValue=false)] + public int? PercentCompleted { get; private set; } + + /// + /// The state of the request + /// + /// The state of the request + [DataMember(Name="state", EmitDefaultValue=false)] + public string State { get; private set; } + + /// + /// The VersionControlInformation that describes where the Versioned Flow is located; this may not be populated until the request is completed. + /// + /// The VersionControlInformation that describes where the Versioned Flow is located; this may not be populated until the request is completed. + [DataMember(Name="versionControlInformation", EmitDefaultValue=false)] + public VersionControlInformationDTO VersionControlInformation { get; private set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class VersionedFlowUpdateRequestDTO {\n"); + sb.Append(" RequestId: ").Append(this.RequestId).Append("\n"); + sb.Append(" ProcessGroupId: ").Append(this.ProcessGroupId).Append("\n"); + sb.Append(" Uri: ").Append(this.Uri).Append("\n"); + sb.Append(" LastUpdated: ").Append(this.LastUpdated).Append("\n"); + sb.Append(" Complete: ").Append(this.Complete).Append("\n"); + sb.Append(" FailureReason: ").Append(this.FailureReason).Append("\n"); + sb.Append(" PercentCompleted: ").Append(this.PercentCompleted).Append("\n"); + sb.Append(" State: ").Append(this.State).Append("\n"); + sb.Append(" VersionControlInformation: ").Append(this.VersionControlInformation).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as VersionedFlowUpdateRequestDTO); + } + + /// + /// Returns true if VersionedFlowUpdateRequestDTO instances are equal + /// + /// Instance of VersionedFlowUpdateRequestDTO to be compared + /// Boolean + public bool Equals(VersionedFlowUpdateRequestDTO input) + { + if (input == null) + return false; + + return + ( + this.RequestId == input.RequestId || + (this.RequestId != null && + this.RequestId.Equals(input.RequestId)) + ) && + ( + this.ProcessGroupId == input.ProcessGroupId || + (this.ProcessGroupId != null && + this.ProcessGroupId.Equals(input.ProcessGroupId)) + ) && + ( + this.Uri == input.Uri || + (this.Uri != null && + this.Uri.Equals(input.Uri)) + ) && + ( + this.LastUpdated == input.LastUpdated || + (this.LastUpdated != null && + this.LastUpdated.Equals(input.LastUpdated)) + ) && + ( + this.Complete == input.Complete || + (this.Complete != null && + this.Complete.Equals(input.Complete)) + ) && + ( + this.FailureReason == input.FailureReason || + (this.FailureReason != null && + this.FailureReason.Equals(input.FailureReason)) + ) && + ( + this.PercentCompleted == input.PercentCompleted || + (this.PercentCompleted != null && + this.PercentCompleted.Equals(input.PercentCompleted)) + ) && + ( + this.State == input.State || + (this.State != null && + this.State.Equals(input.State)) + ) && + ( + this.VersionControlInformation == input.VersionControlInformation || + (this.VersionControlInformation != null && + this.VersionControlInformation.Equals(input.VersionControlInformation)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.RequestId != null) + hashCode = hashCode * 59 + this.RequestId.GetHashCode(); + if (this.ProcessGroupId != null) + hashCode = hashCode * 59 + this.ProcessGroupId.GetHashCode(); + if (this.Uri != null) + hashCode = hashCode * 59 + this.Uri.GetHashCode(); + if (this.LastUpdated != null) + hashCode = hashCode * 59 + this.LastUpdated.GetHashCode(); + if (this.Complete != null) + hashCode = hashCode * 59 + this.Complete.GetHashCode(); + if (this.FailureReason != null) + hashCode = hashCode * 59 + this.FailureReason.GetHashCode(); + if (this.PercentCompleted != null) + hashCode = hashCode * 59 + this.PercentCompleted.GetHashCode(); + if (this.State != null) + hashCode = hashCode * 59 + this.State.GetHashCode(); + if (this.VersionControlInformation != null) + hashCode = hashCode * 59 + this.VersionControlInformation.GetHashCode(); + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/NiFi.Swagger/Model/VersionedFlowUpdateRequestEntity.cs b/NiFi.Swagger/Model/VersionedFlowUpdateRequestEntity.cs new file mode 100644 index 0000000..e7f77d0 --- /dev/null +++ b/NiFi.Swagger/Model/VersionedFlowUpdateRequestEntity.cs @@ -0,0 +1,136 @@ +/* + * NiFi Rest Api + * + * The Rest Api provides programmatic access to command and control a NiFi instance in real time. Start and stop processors, monitor queues, query provenance data, and more. Each endpoint below includes a description, definitions of the expected input and output, potential response codes, and the authorizations required to invoke each service. + * + * OpenAPI spec version: 1.9.1 + * Contact: dev@nifi.apache.org + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +namespace NiFi.Swagger.Model +{ + using System; + using System.Collections.Generic; + using System.ComponentModel.DataAnnotations; + using System.Runtime.Serialization; + using System.Text; + + using Newtonsoft.Json; + + /// + /// VersionedFlowUpdateRequestEntity + /// + [DataContract] + public partial class VersionedFlowUpdateRequestEntity : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// The Versioned Flow Update Request. + /// The revision for the Process Group that owns this variable registry.. + public VersionedFlowUpdateRequestEntity(VersionedFlowUpdateRequestDTO request = default(VersionedFlowUpdateRequestDTO), RevisionDTO processGroupRevision = default(RevisionDTO)) + { + this.Request = request; + this.ProcessGroupRevision = processGroupRevision; + } + + /// + /// The Versioned Flow Update Request + /// + /// The Versioned Flow Update Request + [DataMember(Name="request", EmitDefaultValue=false)] + public VersionedFlowUpdateRequestDTO Request { get; set; } + + /// + /// The revision for the Process Group that owns this variable registry. + /// + /// The revision for the Process Group that owns this variable registry. + [DataMember(Name="processGroupRevision", EmitDefaultValue=false)] + public RevisionDTO ProcessGroupRevision { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class VersionedFlowUpdateRequestEntity {\n"); + sb.Append(" Request: ").Append(this.Request).Append("\n"); + sb.Append(" ProcessGroupRevision: ").Append(this.ProcessGroupRevision).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as VersionedFlowUpdateRequestEntity); + } + + /// + /// Returns true if VersionedFlowUpdateRequestEntity instances are equal + /// + /// Instance of VersionedFlowUpdateRequestEntity to be compared + /// Boolean + public bool Equals(VersionedFlowUpdateRequestEntity input) + { + if (input == null) + return false; + + return + ( + this.Request == input.Request || + (this.Request != null && + this.Request.Equals(input.Request)) + ) && + ( + this.ProcessGroupRevision == input.ProcessGroupRevision || + (this.ProcessGroupRevision != null && + this.ProcessGroupRevision.Equals(input.ProcessGroupRevision)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Request != null) + hashCode = hashCode * 59 + this.Request.GetHashCode(); + if (this.ProcessGroupRevision != null) + hashCode = hashCode * 59 + this.ProcessGroupRevision.GetHashCode(); + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/NiFi.Swagger/Model/VersionedFlowsEntity.cs b/NiFi.Swagger/Model/VersionedFlowsEntity.cs new file mode 100644 index 0000000..a702fb6 --- /dev/null +++ b/NiFi.Swagger/Model/VersionedFlowsEntity.cs @@ -0,0 +1,119 @@ +/* + * NiFi Rest Api + * + * The Rest Api provides programmatic access to command and control a NiFi instance in real time. Start and stop processors, monitor queues, query provenance data, and more. Each endpoint below includes a description, definitions of the expected input and output, potential response codes, and the authorizations required to invoke each service. + * + * OpenAPI spec version: 1.9.1 + * Contact: dev@nifi.apache.org + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +namespace NiFi.Swagger.Model +{ + using System; + using System.Collections.Generic; + using System.ComponentModel.DataAnnotations; + using System.Linq; + using System.Runtime.Serialization; + using System.Text; + + using Newtonsoft.Json; + + /// + /// VersionedFlowsEntity + /// + [DataContract] + public partial class VersionedFlowsEntity : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// versionedFlows. + public VersionedFlowsEntity(List versionedFlows = default(List)) + { + this.VersionedFlows = versionedFlows; + } + + /// + /// Gets or Sets VersionedFlows + /// + [DataMember(Name="versionedFlows", EmitDefaultValue=false)] + public List VersionedFlows { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class VersionedFlowsEntity {\n"); + sb.Append(" VersionedFlows: ").Append(this.VersionedFlows).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as VersionedFlowsEntity); + } + + /// + /// Returns true if VersionedFlowsEntity instances are equal + /// + /// Instance of VersionedFlowsEntity to be compared + /// Boolean + public bool Equals(VersionedFlowsEntity input) + { + if (input == null) + return false; + + return + ( + this.VersionedFlows == input.VersionedFlows || + this.VersionedFlows != null && + this.VersionedFlows.SequenceEqual(input.VersionedFlows) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.VersionedFlows != null) + hashCode = hashCode * 59 + this.VersionedFlows.GetHashCode(); + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/NiFi.Swagger/Model/VersionedFunnel.cs b/NiFi.Swagger/Model/VersionedFunnel.cs new file mode 100644 index 0000000..5d9c3c5 --- /dev/null +++ b/NiFi.Swagger/Model/VersionedFunnel.cs @@ -0,0 +1,278 @@ +/* + * NiFi Rest Api + * + * The Rest Api provides programmatic access to command and control a NiFi instance in real time. Start and stop processors, monitor queues, query provenance data, and more. Each endpoint below includes a description, definitions of the expected input and output, potential response codes, and the authorizations required to invoke each service. + * + * OpenAPI spec version: 1.9.1 + * Contact: dev@nifi.apache.org + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +namespace NiFi.Swagger.Model +{ + using System; + using System.Collections.Generic; + using System.ComponentModel.DataAnnotations; + using System.Runtime.Serialization; + using System.Text; + + using Newtonsoft.Json; + using Newtonsoft.Json.Converters; + + /// + /// VersionedFunnel + /// + [DataContract] + public partial class VersionedFunnel : IEquatable, IValidatableObject + { + /// + /// Defines ComponentType + /// + [JsonConverter(typeof(StringEnumConverter))] + public enum ComponentTypeEnum + { + + /// + /// Enum CONNECTION for value: CONNECTION + /// + [EnumMember(Value = "CONNECTION")] + CONNECTION = 1, + + /// + /// Enum PROCESSOR for value: PROCESSOR + /// + [EnumMember(Value = "PROCESSOR")] + PROCESSOR = 2, + + /// + /// Enum PROCESSGROUP for value: PROCESS_GROUP + /// + [EnumMember(Value = "PROCESS_GROUP")] + PROCESSGROUP = 3, + + /// + /// Enum REMOTEPROCESSGROUP for value: REMOTE_PROCESS_GROUP + /// + [EnumMember(Value = "REMOTE_PROCESS_GROUP")] + REMOTEPROCESSGROUP = 4, + + /// + /// Enum INPUTPORT for value: INPUT_PORT + /// + [EnumMember(Value = "INPUT_PORT")] + INPUTPORT = 5, + + /// + /// Enum OUTPUTPORT for value: OUTPUT_PORT + /// + [EnumMember(Value = "OUTPUT_PORT")] + OUTPUTPORT = 6, + + /// + /// Enum REMOTEINPUTPORT for value: REMOTE_INPUT_PORT + /// + [EnumMember(Value = "REMOTE_INPUT_PORT")] + REMOTEINPUTPORT = 7, + + /// + /// Enum REMOTEOUTPUTPORT for value: REMOTE_OUTPUT_PORT + /// + [EnumMember(Value = "REMOTE_OUTPUT_PORT")] + REMOTEOUTPUTPORT = 8, + + /// + /// Enum FUNNEL for value: FUNNEL + /// + [EnumMember(Value = "FUNNEL")] + FUNNEL = 9, + + /// + /// Enum LABEL for value: LABEL + /// + [EnumMember(Value = "LABEL")] + LABEL = 10, + + /// + /// Enum CONTROLLERSERVICE for value: CONTROLLER_SERVICE + /// + [EnumMember(Value = "CONTROLLER_SERVICE")] + CONTROLLERSERVICE = 11 + } + + /// + /// Gets or Sets ComponentType + /// + [DataMember(Name="componentType", EmitDefaultValue=false)] + public ComponentTypeEnum? ComponentType { get; set; } + /// + /// Initializes a new instance of the class. + /// + /// The component's unique identifier. + /// The component's name. + /// The user-supplied comments for the component. + /// The component's position on the graph. + /// componentType. + /// The ID of the Process Group that this component belongs to. + public VersionedFunnel(string identifier = default(string), string name = default(string), string comments = default(string), Position position = default(Position), ComponentTypeEnum? componentType = default(ComponentTypeEnum?), string groupIdentifier = default(string)) + { + this.Identifier = identifier; + this.Name = name; + this.Comments = comments; + this.Position = position; + this.ComponentType = componentType; + this.GroupIdentifier = groupIdentifier; + } + + /// + /// The component's unique identifier + /// + /// The component's unique identifier + [DataMember(Name="identifier", EmitDefaultValue=false)] + public string Identifier { get; set; } + + /// + /// The component's name + /// + /// The component's name + [DataMember(Name="name", EmitDefaultValue=false)] + public string Name { get; set; } + + /// + /// The user-supplied comments for the component + /// + /// The user-supplied comments for the component + [DataMember(Name="comments", EmitDefaultValue=false)] + public string Comments { get; set; } + + /// + /// The component's position on the graph + /// + /// The component's position on the graph + [DataMember(Name="position", EmitDefaultValue=false)] + public Position Position { get; set; } + + + /// + /// The ID of the Process Group that this component belongs to + /// + /// The ID of the Process Group that this component belongs to + [DataMember(Name="groupIdentifier", EmitDefaultValue=false)] + public string GroupIdentifier { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class VersionedFunnel {\n"); + sb.Append(" Identifier: ").Append(this.Identifier).Append("\n"); + sb.Append(" Name: ").Append(this.Name).Append("\n"); + sb.Append(" Comments: ").Append(this.Comments).Append("\n"); + sb.Append(" Position: ").Append(this.Position).Append("\n"); + sb.Append(" ComponentType: ").Append(this.ComponentType).Append("\n"); + sb.Append(" GroupIdentifier: ").Append(this.GroupIdentifier).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as VersionedFunnel); + } + + /// + /// Returns true if VersionedFunnel instances are equal + /// + /// Instance of VersionedFunnel to be compared + /// Boolean + public bool Equals(VersionedFunnel input) + { + if (input == null) + return false; + + return + ( + this.Identifier == input.Identifier || + (this.Identifier != null && + this.Identifier.Equals(input.Identifier)) + ) && + ( + this.Name == input.Name || + (this.Name != null && + this.Name.Equals(input.Name)) + ) && + ( + this.Comments == input.Comments || + (this.Comments != null && + this.Comments.Equals(input.Comments)) + ) && + ( + this.Position == input.Position || + (this.Position != null && + this.Position.Equals(input.Position)) + ) && + ( + this.ComponentType == input.ComponentType || + (this.ComponentType != null && + this.ComponentType.Equals(input.ComponentType)) + ) && + ( + this.GroupIdentifier == input.GroupIdentifier || + (this.GroupIdentifier != null && + this.GroupIdentifier.Equals(input.GroupIdentifier)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Identifier != null) + hashCode = hashCode * 59 + this.Identifier.GetHashCode(); + if (this.Name != null) + hashCode = hashCode * 59 + this.Name.GetHashCode(); + if (this.Comments != null) + hashCode = hashCode * 59 + this.Comments.GetHashCode(); + if (this.Position != null) + hashCode = hashCode * 59 + this.Position.GetHashCode(); + if (this.ComponentType != null) + hashCode = hashCode * 59 + this.ComponentType.GetHashCode(); + if (this.GroupIdentifier != null) + hashCode = hashCode * 59 + this.GroupIdentifier.GetHashCode(); + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/NiFi.Swagger/Model/VersionedLabel.cs b/NiFi.Swagger/Model/VersionedLabel.cs new file mode 100644 index 0000000..03fe80f --- /dev/null +++ b/NiFi.Swagger/Model/VersionedLabel.cs @@ -0,0 +1,347 @@ +/* + * NiFi Rest Api + * + * The Rest Api provides programmatic access to command and control a NiFi instance in real time. Start and stop processors, monitor queues, query provenance data, and more. Each endpoint below includes a description, definitions of the expected input and output, potential response codes, and the authorizations required to invoke each service. + * + * OpenAPI spec version: 1.9.1 + * Contact: dev@nifi.apache.org + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +namespace NiFi.Swagger.Model +{ + using System; + using System.Collections.Generic; + using System.ComponentModel.DataAnnotations; + using System.Linq; + using System.Runtime.Serialization; + using System.Text; + + using Newtonsoft.Json; + using Newtonsoft.Json.Converters; + + /// + /// VersionedLabel + /// + [DataContract] + public partial class VersionedLabel : IEquatable, IValidatableObject + { + /// + /// Defines ComponentType + /// + [JsonConverter(typeof(StringEnumConverter))] + public enum ComponentTypeEnum + { + + /// + /// Enum CONNECTION for value: CONNECTION + /// + [EnumMember(Value = "CONNECTION")] + CONNECTION = 1, + + /// + /// Enum PROCESSOR for value: PROCESSOR + /// + [EnumMember(Value = "PROCESSOR")] + PROCESSOR = 2, + + /// + /// Enum PROCESSGROUP for value: PROCESS_GROUP + /// + [EnumMember(Value = "PROCESS_GROUP")] + PROCESSGROUP = 3, + + /// + /// Enum REMOTEPROCESSGROUP for value: REMOTE_PROCESS_GROUP + /// + [EnumMember(Value = "REMOTE_PROCESS_GROUP")] + REMOTEPROCESSGROUP = 4, + + /// + /// Enum INPUTPORT for value: INPUT_PORT + /// + [EnumMember(Value = "INPUT_PORT")] + INPUTPORT = 5, + + /// + /// Enum OUTPUTPORT for value: OUTPUT_PORT + /// + [EnumMember(Value = "OUTPUT_PORT")] + OUTPUTPORT = 6, + + /// + /// Enum REMOTEINPUTPORT for value: REMOTE_INPUT_PORT + /// + [EnumMember(Value = "REMOTE_INPUT_PORT")] + REMOTEINPUTPORT = 7, + + /// + /// Enum REMOTEOUTPUTPORT for value: REMOTE_OUTPUT_PORT + /// + [EnumMember(Value = "REMOTE_OUTPUT_PORT")] + REMOTEOUTPUTPORT = 8, + + /// + /// Enum FUNNEL for value: FUNNEL + /// + [EnumMember(Value = "FUNNEL")] + FUNNEL = 9, + + /// + /// Enum LABEL for value: LABEL + /// + [EnumMember(Value = "LABEL")] + LABEL = 10, + + /// + /// Enum CONTROLLERSERVICE for value: CONTROLLER_SERVICE + /// + [EnumMember(Value = "CONTROLLER_SERVICE")] + CONTROLLERSERVICE = 11 + } + + /// + /// Gets or Sets ComponentType + /// + [DataMember(Name="componentType", EmitDefaultValue=false)] + public ComponentTypeEnum? ComponentType { get; set; } + /// + /// Initializes a new instance of the class. + /// + /// The component's unique identifier. + /// The component's name. + /// The user-supplied comments for the component. + /// The component's position on the graph. + /// The text that appears in the label.. + /// The width of the label in pixels when at a 1:1 scale.. + /// The height of the label in pixels when at a 1:1 scale.. + /// The styles for this label (font-size : 12px, background-color : #eee, etc).. + /// componentType. + /// The ID of the Process Group that this component belongs to. + public VersionedLabel(string identifier = default(string), string name = default(string), string comments = default(string), Position position = default(Position), string label = default(string), double? width = default(double?), double? height = default(double?), Dictionary style = default(Dictionary), ComponentTypeEnum? componentType = default(ComponentTypeEnum?), string groupIdentifier = default(string)) + { + this.Identifier = identifier; + this.Name = name; + this.Comments = comments; + this.Position = position; + this.Label = label; + this.Width = width; + this.Height = height; + this.Style = style; + this.ComponentType = componentType; + this.GroupIdentifier = groupIdentifier; + } + + /// + /// The component's unique identifier + /// + /// The component's unique identifier + [DataMember(Name="identifier", EmitDefaultValue=false)] + public string Identifier { get; set; } + + /// + /// The component's name + /// + /// The component's name + [DataMember(Name="name", EmitDefaultValue=false)] + public string Name { get; set; } + + /// + /// The user-supplied comments for the component + /// + /// The user-supplied comments for the component + [DataMember(Name="comments", EmitDefaultValue=false)] + public string Comments { get; set; } + + /// + /// The component's position on the graph + /// + /// The component's position on the graph + [DataMember(Name="position", EmitDefaultValue=false)] + public Position Position { get; set; } + + /// + /// The text that appears in the label. + /// + /// The text that appears in the label. + [DataMember(Name="label", EmitDefaultValue=false)] + public string Label { get; set; } + + /// + /// The width of the label in pixels when at a 1:1 scale. + /// + /// The width of the label in pixels when at a 1:1 scale. + [DataMember(Name="width", EmitDefaultValue=false)] + public double? Width { get; set; } + + /// + /// The height of the label in pixels when at a 1:1 scale. + /// + /// The height of the label in pixels when at a 1:1 scale. + [DataMember(Name="height", EmitDefaultValue=false)] + public double? Height { get; set; } + + /// + /// The styles for this label (font-size : 12px, background-color : #eee, etc). + /// + /// The styles for this label (font-size : 12px, background-color : #eee, etc). + [DataMember(Name="style", EmitDefaultValue=false)] + public Dictionary Style { get; set; } + + + /// + /// The ID of the Process Group that this component belongs to + /// + /// The ID of the Process Group that this component belongs to + [DataMember(Name="groupIdentifier", EmitDefaultValue=false)] + public string GroupIdentifier { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class VersionedLabel {\n"); + sb.Append(" Identifier: ").Append(this.Identifier).Append("\n"); + sb.Append(" Name: ").Append(this.Name).Append("\n"); + sb.Append(" Comments: ").Append(this.Comments).Append("\n"); + sb.Append(" Position: ").Append(this.Position).Append("\n"); + sb.Append(" Label: ").Append(this.Label).Append("\n"); + sb.Append(" Width: ").Append(this.Width).Append("\n"); + sb.Append(" Height: ").Append(this.Height).Append("\n"); + sb.Append(" Style: ").Append(this.Style).Append("\n"); + sb.Append(" ComponentType: ").Append(this.ComponentType).Append("\n"); + sb.Append(" GroupIdentifier: ").Append(this.GroupIdentifier).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as VersionedLabel); + } + + /// + /// Returns true if VersionedLabel instances are equal + /// + /// Instance of VersionedLabel to be compared + /// Boolean + public bool Equals(VersionedLabel input) + { + if (input == null) + return false; + + return + ( + this.Identifier == input.Identifier || + (this.Identifier != null && + this.Identifier.Equals(input.Identifier)) + ) && + ( + this.Name == input.Name || + (this.Name != null && + this.Name.Equals(input.Name)) + ) && + ( + this.Comments == input.Comments || + (this.Comments != null && + this.Comments.Equals(input.Comments)) + ) && + ( + this.Position == input.Position || + (this.Position != null && + this.Position.Equals(input.Position)) + ) && + ( + this.Label == input.Label || + (this.Label != null && + this.Label.Equals(input.Label)) + ) && + ( + this.Width == input.Width || + (this.Width != null && + this.Width.Equals(input.Width)) + ) && + ( + this.Height == input.Height || + (this.Height != null && + this.Height.Equals(input.Height)) + ) && + ( + this.Style == input.Style || + this.Style != null && + this.Style.SequenceEqual(input.Style) + ) && + ( + this.ComponentType == input.ComponentType || + (this.ComponentType != null && + this.ComponentType.Equals(input.ComponentType)) + ) && + ( + this.GroupIdentifier == input.GroupIdentifier || + (this.GroupIdentifier != null && + this.GroupIdentifier.Equals(input.GroupIdentifier)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Identifier != null) + hashCode = hashCode * 59 + this.Identifier.GetHashCode(); + if (this.Name != null) + hashCode = hashCode * 59 + this.Name.GetHashCode(); + if (this.Comments != null) + hashCode = hashCode * 59 + this.Comments.GetHashCode(); + if (this.Position != null) + hashCode = hashCode * 59 + this.Position.GetHashCode(); + if (this.Label != null) + hashCode = hashCode * 59 + this.Label.GetHashCode(); + if (this.Width != null) + hashCode = hashCode * 59 + this.Width.GetHashCode(); + if (this.Height != null) + hashCode = hashCode * 59 + this.Height.GetHashCode(); + if (this.Style != null) + hashCode = hashCode * 59 + this.Style.GetHashCode(); + if (this.ComponentType != null) + hashCode = hashCode * 59 + this.ComponentType.GetHashCode(); + if (this.GroupIdentifier != null) + hashCode = hashCode * 59 + this.GroupIdentifier.GetHashCode(); + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/NiFi.Swagger/Model/VersionedPort.cs b/NiFi.Swagger/Model/VersionedPort.cs new file mode 100644 index 0000000..7c9019f --- /dev/null +++ b/NiFi.Swagger/Model/VersionedPort.cs @@ -0,0 +1,333 @@ +/* + * NiFi Rest Api + * + * The Rest Api provides programmatic access to command and control a NiFi instance in real time. Start and stop processors, monitor queues, query provenance data, and more. Each endpoint below includes a description, definitions of the expected input and output, potential response codes, and the authorizations required to invoke each service. + * + * OpenAPI spec version: 1.9.1 + * Contact: dev@nifi.apache.org + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +namespace NiFi.Swagger.Model +{ + using System; + using System.Collections.Generic; + using System.ComponentModel.DataAnnotations; + using System.Runtime.Serialization; + using System.Text; + + using Newtonsoft.Json; + using Newtonsoft.Json.Converters; + + /// + /// VersionedPort + /// + [DataContract] + public partial class VersionedPort : IEquatable, IValidatableObject + { + /// + /// The type of port. + /// + /// The type of port. + [JsonConverter(typeof(StringEnumConverter))] + public enum TypeEnum + { + + /// + /// Enum INPUTPORT for value: INPUT_PORT + /// + [EnumMember(Value = "INPUT_PORT")] + INPUTPORT = 1, + + /// + /// Enum OUTPUTPORT for value: OUTPUT_PORT + /// + [EnumMember(Value = "OUTPUT_PORT")] + OUTPUTPORT = 2 + } + + /// + /// The type of port. + /// + /// The type of port. + [DataMember(Name="type", EmitDefaultValue=false)] + public TypeEnum? Type { get; set; } + /// + /// Defines ComponentType + /// + [JsonConverter(typeof(StringEnumConverter))] + public enum ComponentTypeEnum + { + + /// + /// Enum CONNECTION for value: CONNECTION + /// + [EnumMember(Value = "CONNECTION")] + CONNECTION = 1, + + /// + /// Enum PROCESSOR for value: PROCESSOR + /// + [EnumMember(Value = "PROCESSOR")] + PROCESSOR = 2, + + /// + /// Enum PROCESSGROUP for value: PROCESS_GROUP + /// + [EnumMember(Value = "PROCESS_GROUP")] + PROCESSGROUP = 3, + + /// + /// Enum REMOTEPROCESSGROUP for value: REMOTE_PROCESS_GROUP + /// + [EnumMember(Value = "REMOTE_PROCESS_GROUP")] + REMOTEPROCESSGROUP = 4, + + /// + /// Enum INPUTPORT for value: INPUT_PORT + /// + [EnumMember(Value = "INPUT_PORT")] + INPUTPORT = 5, + + /// + /// Enum OUTPUTPORT for value: OUTPUT_PORT + /// + [EnumMember(Value = "OUTPUT_PORT")] + OUTPUTPORT = 6, + + /// + /// Enum REMOTEINPUTPORT for value: REMOTE_INPUT_PORT + /// + [EnumMember(Value = "REMOTE_INPUT_PORT")] + REMOTEINPUTPORT = 7, + + /// + /// Enum REMOTEOUTPUTPORT for value: REMOTE_OUTPUT_PORT + /// + [EnumMember(Value = "REMOTE_OUTPUT_PORT")] + REMOTEOUTPUTPORT = 8, + + /// + /// Enum FUNNEL for value: FUNNEL + /// + [EnumMember(Value = "FUNNEL")] + FUNNEL = 9, + + /// + /// Enum LABEL for value: LABEL + /// + [EnumMember(Value = "LABEL")] + LABEL = 10, + + /// + /// Enum CONTROLLERSERVICE for value: CONTROLLER_SERVICE + /// + [EnumMember(Value = "CONTROLLER_SERVICE")] + CONTROLLERSERVICE = 11 + } + + /// + /// Gets or Sets ComponentType + /// + [DataMember(Name="componentType", EmitDefaultValue=false)] + public ComponentTypeEnum? ComponentType { get; set; } + /// + /// Initializes a new instance of the class. + /// + /// The component's unique identifier. + /// The component's name. + /// The user-supplied comments for the component. + /// The component's position on the graph. + /// The type of port.. + /// The number of tasks that should be concurrently scheduled for the port.. + /// componentType. + /// The ID of the Process Group that this component belongs to. + public VersionedPort(string identifier = default(string), string name = default(string), string comments = default(string), Position position = default(Position), TypeEnum? type = default(TypeEnum?), int? concurrentlySchedulableTaskCount = default(int?), ComponentTypeEnum? componentType = default(ComponentTypeEnum?), string groupIdentifier = default(string)) + { + this.Identifier = identifier; + this.Name = name; + this.Comments = comments; + this.Position = position; + this.Type = type; + this.ConcurrentlySchedulableTaskCount = concurrentlySchedulableTaskCount; + this.ComponentType = componentType; + this.GroupIdentifier = groupIdentifier; + } + + /// + /// The component's unique identifier + /// + /// The component's unique identifier + [DataMember(Name="identifier", EmitDefaultValue=false)] + public string Identifier { get; set; } + + /// + /// The component's name + /// + /// The component's name + [DataMember(Name="name", EmitDefaultValue=false)] + public string Name { get; set; } + + /// + /// The user-supplied comments for the component + /// + /// The user-supplied comments for the component + [DataMember(Name="comments", EmitDefaultValue=false)] + public string Comments { get; set; } + + /// + /// The component's position on the graph + /// + /// The component's position on the graph + [DataMember(Name="position", EmitDefaultValue=false)] + public Position Position { get; set; } + + + /// + /// The number of tasks that should be concurrently scheduled for the port. + /// + /// The number of tasks that should be concurrently scheduled for the port. + [DataMember(Name="concurrentlySchedulableTaskCount", EmitDefaultValue=false)] + public int? ConcurrentlySchedulableTaskCount { get; set; } + + + /// + /// The ID of the Process Group that this component belongs to + /// + /// The ID of the Process Group that this component belongs to + [DataMember(Name="groupIdentifier", EmitDefaultValue=false)] + public string GroupIdentifier { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class VersionedPort {\n"); + sb.Append(" Identifier: ").Append(this.Identifier).Append("\n"); + sb.Append(" Name: ").Append(this.Name).Append("\n"); + sb.Append(" Comments: ").Append(this.Comments).Append("\n"); + sb.Append(" Position: ").Append(this.Position).Append("\n"); + sb.Append(" Type: ").Append(this.Type).Append("\n"); + sb.Append(" ConcurrentlySchedulableTaskCount: ").Append(this.ConcurrentlySchedulableTaskCount).Append("\n"); + sb.Append(" ComponentType: ").Append(this.ComponentType).Append("\n"); + sb.Append(" GroupIdentifier: ").Append(this.GroupIdentifier).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as VersionedPort); + } + + /// + /// Returns true if VersionedPort instances are equal + /// + /// Instance of VersionedPort to be compared + /// Boolean + public bool Equals(VersionedPort input) + { + if (input == null) + return false; + + return + ( + this.Identifier == input.Identifier || + (this.Identifier != null && + this.Identifier.Equals(input.Identifier)) + ) && + ( + this.Name == input.Name || + (this.Name != null && + this.Name.Equals(input.Name)) + ) && + ( + this.Comments == input.Comments || + (this.Comments != null && + this.Comments.Equals(input.Comments)) + ) && + ( + this.Position == input.Position || + (this.Position != null && + this.Position.Equals(input.Position)) + ) && + ( + this.Type == input.Type || + (this.Type != null && + this.Type.Equals(input.Type)) + ) && + ( + this.ConcurrentlySchedulableTaskCount == input.ConcurrentlySchedulableTaskCount || + (this.ConcurrentlySchedulableTaskCount != null && + this.ConcurrentlySchedulableTaskCount.Equals(input.ConcurrentlySchedulableTaskCount)) + ) && + ( + this.ComponentType == input.ComponentType || + (this.ComponentType != null && + this.ComponentType.Equals(input.ComponentType)) + ) && + ( + this.GroupIdentifier == input.GroupIdentifier || + (this.GroupIdentifier != null && + this.GroupIdentifier.Equals(input.GroupIdentifier)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Identifier != null) + hashCode = hashCode * 59 + this.Identifier.GetHashCode(); + if (this.Name != null) + hashCode = hashCode * 59 + this.Name.GetHashCode(); + if (this.Comments != null) + hashCode = hashCode * 59 + this.Comments.GetHashCode(); + if (this.Position != null) + hashCode = hashCode * 59 + this.Position.GetHashCode(); + if (this.Type != null) + hashCode = hashCode * 59 + this.Type.GetHashCode(); + if (this.ConcurrentlySchedulableTaskCount != null) + hashCode = hashCode * 59 + this.ConcurrentlySchedulableTaskCount.GetHashCode(); + if (this.ComponentType != null) + hashCode = hashCode * 59 + this.ComponentType.GetHashCode(); + if (this.GroupIdentifier != null) + hashCode = hashCode * 59 + this.GroupIdentifier.GetHashCode(); + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/NiFi.Swagger/Model/VersionedProcessGroup.cs b/NiFi.Swagger/Model/VersionedProcessGroup.cs new file mode 100644 index 0000000..f555a84 --- /dev/null +++ b/NiFi.Swagger/Model/VersionedProcessGroup.cs @@ -0,0 +1,466 @@ +/* + * NiFi Rest Api + * + * The Rest Api provides programmatic access to command and control a NiFi instance in real time. Start and stop processors, monitor queues, query provenance data, and more. Each endpoint below includes a description, definitions of the expected input and output, potential response codes, and the authorizations required to invoke each service. + * + * OpenAPI spec version: 1.9.1 + * Contact: dev@nifi.apache.org + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +namespace NiFi.Swagger.Model +{ + using System; + using System.Collections.Generic; + using System.ComponentModel.DataAnnotations; + using System.Linq; + using System.Runtime.Serialization; + using System.Text; + + using Newtonsoft.Json; + using Newtonsoft.Json.Converters; + + /// + /// VersionedProcessGroup + /// + [DataContract] + public partial class VersionedProcessGroup : IEquatable, IValidatableObject + { + /// + /// Defines ComponentType + /// + [JsonConverter(typeof(StringEnumConverter))] + public enum ComponentTypeEnum + { + + /// + /// Enum CONNECTION for value: CONNECTION + /// + [EnumMember(Value = "CONNECTION")] + CONNECTION = 1, + + /// + /// Enum PROCESSOR for value: PROCESSOR + /// + [EnumMember(Value = "PROCESSOR")] + PROCESSOR = 2, + + /// + /// Enum PROCESSGROUP for value: PROCESS_GROUP + /// + [EnumMember(Value = "PROCESS_GROUP")] + PROCESSGROUP = 3, + + /// + /// Enum REMOTEPROCESSGROUP for value: REMOTE_PROCESS_GROUP + /// + [EnumMember(Value = "REMOTE_PROCESS_GROUP")] + REMOTEPROCESSGROUP = 4, + + /// + /// Enum INPUTPORT for value: INPUT_PORT + /// + [EnumMember(Value = "INPUT_PORT")] + INPUTPORT = 5, + + /// + /// Enum OUTPUTPORT for value: OUTPUT_PORT + /// + [EnumMember(Value = "OUTPUT_PORT")] + OUTPUTPORT = 6, + + /// + /// Enum REMOTEINPUTPORT for value: REMOTE_INPUT_PORT + /// + [EnumMember(Value = "REMOTE_INPUT_PORT")] + REMOTEINPUTPORT = 7, + + /// + /// Enum REMOTEOUTPUTPORT for value: REMOTE_OUTPUT_PORT + /// + [EnumMember(Value = "REMOTE_OUTPUT_PORT")] + REMOTEOUTPUTPORT = 8, + + /// + /// Enum FUNNEL for value: FUNNEL + /// + [EnumMember(Value = "FUNNEL")] + FUNNEL = 9, + + /// + /// Enum LABEL for value: LABEL + /// + [EnumMember(Value = "LABEL")] + LABEL = 10, + + /// + /// Enum CONTROLLERSERVICE for value: CONTROLLER_SERVICE + /// + [EnumMember(Value = "CONTROLLER_SERVICE")] + CONTROLLERSERVICE = 11 + } + + /// + /// Gets or Sets ComponentType + /// + [DataMember(Name="componentType", EmitDefaultValue=false)] + public ComponentTypeEnum? ComponentType { get; set; } + /// + /// Initializes a new instance of the class. + /// + /// The component's unique identifier. + /// The component's name. + /// The user-supplied comments for the component. + /// The component's position on the graph. + /// The child Process Groups. + /// The Remote Process Groups. + /// The Processors. + /// The Input Ports. + /// The Output Ports. + /// The Connections. + /// The Labels. + /// The Funnels. + /// The Controller Services. + /// The coordinates where the remote flow is stored, or null if the Process Group is not directly under Version Control. + /// The Variables in the Variable Registry for this Process Group (not including any ancestor or descendant Process Groups). + /// componentType. + /// The ID of the Process Group that this component belongs to. + public VersionedProcessGroup(string identifier = default(string), string name = default(string), string comments = default(string), Position position = default(Position), List processGroups = default(List), List remoteProcessGroups = default(List), List processors = default(List), List inputPorts = default(List), List outputPorts = default(List), List connections = default(List), List labels = default(List), List funnels = default(List), List controllerServices = default(List), VersionedFlowCoordinates versionedFlowCoordinates = default(VersionedFlowCoordinates), Dictionary variables = default(Dictionary), ComponentTypeEnum? componentType = default(ComponentTypeEnum?), string groupIdentifier = default(string)) + { + this.Identifier = identifier; + this.Name = name; + this.Comments = comments; + this.Position = position; + this.ProcessGroups = processGroups; + this.RemoteProcessGroups = remoteProcessGroups; + this.Processors = processors; + this.InputPorts = inputPorts; + this.OutputPorts = outputPorts; + this.Connections = connections; + this.Labels = labels; + this.Funnels = funnels; + this.ControllerServices = controllerServices; + this.VersionedFlowCoordinates = versionedFlowCoordinates; + this.Variables = variables; + this.ComponentType = componentType; + this.GroupIdentifier = groupIdentifier; + } + + /// + /// The component's unique identifier + /// + /// The component's unique identifier + [DataMember(Name="identifier", EmitDefaultValue=false)] + public string Identifier { get; set; } + + /// + /// The component's name + /// + /// The component's name + [DataMember(Name="name", EmitDefaultValue=false)] + public string Name { get; set; } + + /// + /// The user-supplied comments for the component + /// + /// The user-supplied comments for the component + [DataMember(Name="comments", EmitDefaultValue=false)] + public string Comments { get; set; } + + /// + /// The component's position on the graph + /// + /// The component's position on the graph + [DataMember(Name="position", EmitDefaultValue=false)] + public Position Position { get; set; } + + /// + /// The child Process Groups + /// + /// The child Process Groups + [DataMember(Name="processGroups", EmitDefaultValue=false)] + public List ProcessGroups { get; set; } + + /// + /// The Remote Process Groups + /// + /// The Remote Process Groups + [DataMember(Name="remoteProcessGroups", EmitDefaultValue=false)] + public List RemoteProcessGroups { get; set; } + + /// + /// The Processors + /// + /// The Processors + [DataMember(Name="processors", EmitDefaultValue=false)] + public List Processors { get; set; } + + /// + /// The Input Ports + /// + /// The Input Ports + [DataMember(Name="inputPorts", EmitDefaultValue=false)] + public List InputPorts { get; set; } + + /// + /// The Output Ports + /// + /// The Output Ports + [DataMember(Name="outputPorts", EmitDefaultValue=false)] + public List OutputPorts { get; set; } + + /// + /// The Connections + /// + /// The Connections + [DataMember(Name="connections", EmitDefaultValue=false)] + public List Connections { get; set; } + + /// + /// The Labels + /// + /// The Labels + [DataMember(Name="labels", EmitDefaultValue=false)] + public List Labels { get; set; } + + /// + /// The Funnels + /// + /// The Funnels + [DataMember(Name="funnels", EmitDefaultValue=false)] + public List Funnels { get; set; } + + /// + /// The Controller Services + /// + /// The Controller Services + [DataMember(Name="controllerServices", EmitDefaultValue=false)] + public List ControllerServices { get; set; } + + /// + /// The coordinates where the remote flow is stored, or null if the Process Group is not directly under Version Control + /// + /// The coordinates where the remote flow is stored, or null if the Process Group is not directly under Version Control + [DataMember(Name="versionedFlowCoordinates", EmitDefaultValue=false)] + public VersionedFlowCoordinates VersionedFlowCoordinates { get; set; } + + /// + /// The Variables in the Variable Registry for this Process Group (not including any ancestor or descendant Process Groups) + /// + /// The Variables in the Variable Registry for this Process Group (not including any ancestor or descendant Process Groups) + [DataMember(Name="variables", EmitDefaultValue=false)] + public Dictionary Variables { get; set; } + + + /// + /// The ID of the Process Group that this component belongs to + /// + /// The ID of the Process Group that this component belongs to + [DataMember(Name="groupIdentifier", EmitDefaultValue=false)] + public string GroupIdentifier { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class VersionedProcessGroup {\n"); + sb.Append(" Identifier: ").Append(this.Identifier).Append("\n"); + sb.Append(" Name: ").Append(this.Name).Append("\n"); + sb.Append(" Comments: ").Append(this.Comments).Append("\n"); + sb.Append(" Position: ").Append(this.Position).Append("\n"); + sb.Append(" ProcessGroups: ").Append(this.ProcessGroups).Append("\n"); + sb.Append(" RemoteProcessGroups: ").Append(this.RemoteProcessGroups).Append("\n"); + sb.Append(" Processors: ").Append(this.Processors).Append("\n"); + sb.Append(" InputPorts: ").Append(this.InputPorts).Append("\n"); + sb.Append(" OutputPorts: ").Append(this.OutputPorts).Append("\n"); + sb.Append(" Connections: ").Append(this.Connections).Append("\n"); + sb.Append(" Labels: ").Append(this.Labels).Append("\n"); + sb.Append(" Funnels: ").Append(this.Funnels).Append("\n"); + sb.Append(" ControllerServices: ").Append(this.ControllerServices).Append("\n"); + sb.Append(" VersionedFlowCoordinates: ").Append(this.VersionedFlowCoordinates).Append("\n"); + sb.Append(" Variables: ").Append(this.Variables).Append("\n"); + sb.Append(" ComponentType: ").Append(this.ComponentType).Append("\n"); + sb.Append(" GroupIdentifier: ").Append(this.GroupIdentifier).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as VersionedProcessGroup); + } + + /// + /// Returns true if VersionedProcessGroup instances are equal + /// + /// Instance of VersionedProcessGroup to be compared + /// Boolean + public bool Equals(VersionedProcessGroup input) + { + if (input == null) + return false; + + return + ( + this.Identifier == input.Identifier || + (this.Identifier != null && + this.Identifier.Equals(input.Identifier)) + ) && + ( + this.Name == input.Name || + (this.Name != null && + this.Name.Equals(input.Name)) + ) && + ( + this.Comments == input.Comments || + (this.Comments != null && + this.Comments.Equals(input.Comments)) + ) && + ( + this.Position == input.Position || + (this.Position != null && + this.Position.Equals(input.Position)) + ) && + ( + this.ProcessGroups == input.ProcessGroups || + this.ProcessGroups != null && + this.ProcessGroups.SequenceEqual(input.ProcessGroups) + ) && + ( + this.RemoteProcessGroups == input.RemoteProcessGroups || + this.RemoteProcessGroups != null && + this.RemoteProcessGroups.SequenceEqual(input.RemoteProcessGroups) + ) && + ( + this.Processors == input.Processors || + this.Processors != null && + this.Processors.SequenceEqual(input.Processors) + ) && + ( + this.InputPorts == input.InputPorts || + this.InputPorts != null && + this.InputPorts.SequenceEqual(input.InputPorts) + ) && + ( + this.OutputPorts == input.OutputPorts || + this.OutputPorts != null && + this.OutputPorts.SequenceEqual(input.OutputPorts) + ) && + ( + this.Connections == input.Connections || + this.Connections != null && + this.Connections.SequenceEqual(input.Connections) + ) && + ( + this.Labels == input.Labels || + this.Labels != null && + this.Labels.SequenceEqual(input.Labels) + ) && + ( + this.Funnels == input.Funnels || + this.Funnels != null && + this.Funnels.SequenceEqual(input.Funnels) + ) && + ( + this.ControllerServices == input.ControllerServices || + this.ControllerServices != null && + this.ControllerServices.SequenceEqual(input.ControllerServices) + ) && + ( + this.VersionedFlowCoordinates == input.VersionedFlowCoordinates || + (this.VersionedFlowCoordinates != null && + this.VersionedFlowCoordinates.Equals(input.VersionedFlowCoordinates)) + ) && + ( + this.Variables == input.Variables || + this.Variables != null && + this.Variables.SequenceEqual(input.Variables) + ) && + ( + this.ComponentType == input.ComponentType || + (this.ComponentType != null && + this.ComponentType.Equals(input.ComponentType)) + ) && + ( + this.GroupIdentifier == input.GroupIdentifier || + (this.GroupIdentifier != null && + this.GroupIdentifier.Equals(input.GroupIdentifier)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Identifier != null) + hashCode = hashCode * 59 + this.Identifier.GetHashCode(); + if (this.Name != null) + hashCode = hashCode * 59 + this.Name.GetHashCode(); + if (this.Comments != null) + hashCode = hashCode * 59 + this.Comments.GetHashCode(); + if (this.Position != null) + hashCode = hashCode * 59 + this.Position.GetHashCode(); + if (this.ProcessGroups != null) + hashCode = hashCode * 59 + this.ProcessGroups.GetHashCode(); + if (this.RemoteProcessGroups != null) + hashCode = hashCode * 59 + this.RemoteProcessGroups.GetHashCode(); + if (this.Processors != null) + hashCode = hashCode * 59 + this.Processors.GetHashCode(); + if (this.InputPorts != null) + hashCode = hashCode * 59 + this.InputPorts.GetHashCode(); + if (this.OutputPorts != null) + hashCode = hashCode * 59 + this.OutputPorts.GetHashCode(); + if (this.Connections != null) + hashCode = hashCode * 59 + this.Connections.GetHashCode(); + if (this.Labels != null) + hashCode = hashCode * 59 + this.Labels.GetHashCode(); + if (this.Funnels != null) + hashCode = hashCode * 59 + this.Funnels.GetHashCode(); + if (this.ControllerServices != null) + hashCode = hashCode * 59 + this.ControllerServices.GetHashCode(); + if (this.VersionedFlowCoordinates != null) + hashCode = hashCode * 59 + this.VersionedFlowCoordinates.GetHashCode(); + if (this.Variables != null) + hashCode = hashCode * 59 + this.Variables.GetHashCode(); + if (this.ComponentType != null) + hashCode = hashCode * 59 + this.ComponentType.GetHashCode(); + if (this.GroupIdentifier != null) + hashCode = hashCode * 59 + this.GroupIdentifier.GetHashCode(); + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/NiFi.Swagger/Model/VersionedProcessor.cs b/NiFi.Swagger/Model/VersionedProcessor.cs new file mode 100644 index 0000000..6aa9d36 --- /dev/null +++ b/NiFi.Swagger/Model/VersionedProcessor.cs @@ -0,0 +1,534 @@ +/* + * NiFi Rest Api + * + * The Rest Api provides programmatic access to command and control a NiFi instance in real time. Start and stop processors, monitor queues, query provenance data, and more. Each endpoint below includes a description, definitions of the expected input and output, potential response codes, and the authorizations required to invoke each service. + * + * OpenAPI spec version: 1.9.1 + * Contact: dev@nifi.apache.org + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +namespace NiFi.Swagger.Model +{ + using System; + using System.Collections.Generic; + using System.ComponentModel.DataAnnotations; + using System.Linq; + using System.Runtime.Serialization; + using System.Text; + + using Newtonsoft.Json; + using Newtonsoft.Json.Converters; + + /// + /// VersionedProcessor + /// + [DataContract] + public partial class VersionedProcessor : IEquatable, IValidatableObject + { + /// + /// Defines ComponentType + /// + [JsonConverter(typeof(StringEnumConverter))] + public enum ComponentTypeEnum + { + + /// + /// Enum CONNECTION for value: CONNECTION + /// + [EnumMember(Value = "CONNECTION")] + CONNECTION = 1, + + /// + /// Enum PROCESSOR for value: PROCESSOR + /// + [EnumMember(Value = "PROCESSOR")] + PROCESSOR = 2, + + /// + /// Enum PROCESSGROUP for value: PROCESS_GROUP + /// + [EnumMember(Value = "PROCESS_GROUP")] + PROCESSGROUP = 3, + + /// + /// Enum REMOTEPROCESSGROUP for value: REMOTE_PROCESS_GROUP + /// + [EnumMember(Value = "REMOTE_PROCESS_GROUP")] + REMOTEPROCESSGROUP = 4, + + /// + /// Enum INPUTPORT for value: INPUT_PORT + /// + [EnumMember(Value = "INPUT_PORT")] + INPUTPORT = 5, + + /// + /// Enum OUTPUTPORT for value: OUTPUT_PORT + /// + [EnumMember(Value = "OUTPUT_PORT")] + OUTPUTPORT = 6, + + /// + /// Enum REMOTEINPUTPORT for value: REMOTE_INPUT_PORT + /// + [EnumMember(Value = "REMOTE_INPUT_PORT")] + REMOTEINPUTPORT = 7, + + /// + /// Enum REMOTEOUTPUTPORT for value: REMOTE_OUTPUT_PORT + /// + [EnumMember(Value = "REMOTE_OUTPUT_PORT")] + REMOTEOUTPUTPORT = 8, + + /// + /// Enum FUNNEL for value: FUNNEL + /// + [EnumMember(Value = "FUNNEL")] + FUNNEL = 9, + + /// + /// Enum LABEL for value: LABEL + /// + [EnumMember(Value = "LABEL")] + LABEL = 10, + + /// + /// Enum CONTROLLERSERVICE for value: CONTROLLER_SERVICE + /// + [EnumMember(Value = "CONTROLLER_SERVICE")] + CONTROLLERSERVICE = 11 + } + + /// + /// Gets or Sets ComponentType + /// + [DataMember(Name="componentType", EmitDefaultValue=false)] + public ComponentTypeEnum? ComponentType { get; set; } + /// + /// Initializes a new instance of the class. + /// + /// The component's unique identifier. + /// The component's name. + /// The user-supplied comments for the component. + /// The component's position on the graph. + /// Information about the bundle from which the component came. + /// Stylistic data for rendering in a UI. + /// The type of Processor. + /// The properties for the processor. Properties whose value is not set will only contain the property name.. + /// The property descriptors for the processor.. + /// The annotation data for the processor used to relay configuration between a custom UI and the procesosr.. + /// The frequency with which to schedule the processor. The format of the value will depend on th value of schedulingStrategy.. + /// Indcates whether the prcessor should be scheduled to run in event or timer driven mode.. + /// Indicates the node where the process will execute.. + /// The amout of time that is used when the process penalizes a flowfile.. + /// The amount of time that must elapse before this processor is scheduled again after yielding.. + /// The level at which the processor will report bulletins.. + /// The run duration for the processor in milliseconds.. + /// The number of tasks that should be concurrently schedule for the processor. If the processor doesn't allow parallol processing then any positive input will be ignored.. + /// The names of all relationships that cause a flow file to be terminated if the relationship is not connected elsewhere. This property differs from the 'isAutoTerminate' property of the RelationshipDTO in that the RelationshipDTO is meant to depict the current configuration, whereas this property can be set in a DTO when updating a Processor in order to change which Relationships should be auto-terminated.. + /// componentType. + /// The ID of the Process Group that this component belongs to. + public VersionedProcessor(string identifier = default(string), string name = default(string), string comments = default(string), Position position = default(Position), Bundle bundle = default(Bundle), Dictionary style = default(Dictionary), string type = default(string), Dictionary properties = default(Dictionary), Dictionary propertyDescriptors = default(Dictionary), string annotationData = default(string), string schedulingPeriod = default(string), string schedulingStrategy = default(string), string executionNode = default(string), string penaltyDuration = default(string), string yieldDuration = default(string), string bulletinLevel = default(string), long? runDurationMillis = default(long?), int? concurrentlySchedulableTaskCount = default(int?), List autoTerminatedRelationships = default(List), ComponentTypeEnum? componentType = default(ComponentTypeEnum?), string groupIdentifier = default(string)) + { + this.Identifier = identifier; + this.Name = name; + this.Comments = comments; + this.Position = position; + this.Bundle = bundle; + this.Style = style; + this.Type = type; + this.Properties = properties; + this.PropertyDescriptors = propertyDescriptors; + this.AnnotationData = annotationData; + this.SchedulingPeriod = schedulingPeriod; + this.SchedulingStrategy = schedulingStrategy; + this.ExecutionNode = executionNode; + this.PenaltyDuration = penaltyDuration; + this.YieldDuration = yieldDuration; + this.BulletinLevel = bulletinLevel; + this.RunDurationMillis = runDurationMillis; + this.ConcurrentlySchedulableTaskCount = concurrentlySchedulableTaskCount; + this.AutoTerminatedRelationships = autoTerminatedRelationships; + this.ComponentType = componentType; + this.GroupIdentifier = groupIdentifier; + } + + /// + /// The component's unique identifier + /// + /// The component's unique identifier + [DataMember(Name="identifier", EmitDefaultValue=false)] + public string Identifier { get; set; } + + /// + /// The component's name + /// + /// The component's name + [DataMember(Name="name", EmitDefaultValue=false)] + public string Name { get; set; } + + /// + /// The user-supplied comments for the component + /// + /// The user-supplied comments for the component + [DataMember(Name="comments", EmitDefaultValue=false)] + public string Comments { get; set; } + + /// + /// The component's position on the graph + /// + /// The component's position on the graph + [DataMember(Name="position", EmitDefaultValue=false)] + public Position Position { get; set; } + + /// + /// Information about the bundle from which the component came + /// + /// Information about the bundle from which the component came + [DataMember(Name="bundle", EmitDefaultValue=false)] + public Bundle Bundle { get; set; } + + /// + /// Stylistic data for rendering in a UI + /// + /// Stylistic data for rendering in a UI + [DataMember(Name="style", EmitDefaultValue=false)] + public Dictionary Style { get; set; } + + /// + /// The type of Processor + /// + /// The type of Processor + [DataMember(Name="type", EmitDefaultValue=false)] + public string Type { get; set; } + + /// + /// The properties for the processor. Properties whose value is not set will only contain the property name. + /// + /// The properties for the processor. Properties whose value is not set will only contain the property name. + [DataMember(Name="properties", EmitDefaultValue=false)] + public Dictionary Properties { get; set; } + + /// + /// The property descriptors for the processor. + /// + /// The property descriptors for the processor. + [DataMember(Name="propertyDescriptors", EmitDefaultValue=false)] + public Dictionary PropertyDescriptors { get; set; } + + /// + /// The annotation data for the processor used to relay configuration between a custom UI and the procesosr. + /// + /// The annotation data for the processor used to relay configuration between a custom UI and the procesosr. + [DataMember(Name="annotationData", EmitDefaultValue=false)] + public string AnnotationData { get; set; } + + /// + /// The frequency with which to schedule the processor. The format of the value will depend on th value of schedulingStrategy. + /// + /// The frequency with which to schedule the processor. The format of the value will depend on th value of schedulingStrategy. + [DataMember(Name="schedulingPeriod", EmitDefaultValue=false)] + public string SchedulingPeriod { get; set; } + + /// + /// Indcates whether the prcessor should be scheduled to run in event or timer driven mode. + /// + /// Indcates whether the prcessor should be scheduled to run in event or timer driven mode. + [DataMember(Name="schedulingStrategy", EmitDefaultValue=false)] + public string SchedulingStrategy { get; set; } + + /// + /// Indicates the node where the process will execute. + /// + /// Indicates the node where the process will execute. + [DataMember(Name="executionNode", EmitDefaultValue=false)] + public string ExecutionNode { get; set; } + + /// + /// The amout of time that is used when the process penalizes a flowfile. + /// + /// The amout of time that is used when the process penalizes a flowfile. + [DataMember(Name="penaltyDuration", EmitDefaultValue=false)] + public string PenaltyDuration { get; set; } + + /// + /// The amount of time that must elapse before this processor is scheduled again after yielding. + /// + /// The amount of time that must elapse before this processor is scheduled again after yielding. + [DataMember(Name="yieldDuration", EmitDefaultValue=false)] + public string YieldDuration { get; set; } + + /// + /// The level at which the processor will report bulletins. + /// + /// The level at which the processor will report bulletins. + [DataMember(Name="bulletinLevel", EmitDefaultValue=false)] + public string BulletinLevel { get; set; } + + /// + /// The run duration for the processor in milliseconds. + /// + /// The run duration for the processor in milliseconds. + [DataMember(Name="runDurationMillis", EmitDefaultValue=false)] + public long? RunDurationMillis { get; set; } + + /// + /// The number of tasks that should be concurrently schedule for the processor. If the processor doesn't allow parallol processing then any positive input will be ignored. + /// + /// The number of tasks that should be concurrently schedule for the processor. If the processor doesn't allow parallol processing then any positive input will be ignored. + [DataMember(Name="concurrentlySchedulableTaskCount", EmitDefaultValue=false)] + public int? ConcurrentlySchedulableTaskCount { get; set; } + + /// + /// The names of all relationships that cause a flow file to be terminated if the relationship is not connected elsewhere. This property differs from the 'isAutoTerminate' property of the RelationshipDTO in that the RelationshipDTO is meant to depict the current configuration, whereas this property can be set in a DTO when updating a Processor in order to change which Relationships should be auto-terminated. + /// + /// The names of all relationships that cause a flow file to be terminated if the relationship is not connected elsewhere. This property differs from the 'isAutoTerminate' property of the RelationshipDTO in that the RelationshipDTO is meant to depict the current configuration, whereas this property can be set in a DTO when updating a Processor in order to change which Relationships should be auto-terminated. + [DataMember(Name="autoTerminatedRelationships", EmitDefaultValue=false)] + public List AutoTerminatedRelationships { get; set; } + + + /// + /// The ID of the Process Group that this component belongs to + /// + /// The ID of the Process Group that this component belongs to + [DataMember(Name="groupIdentifier", EmitDefaultValue=false)] + public string GroupIdentifier { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class VersionedProcessor {\n"); + sb.Append(" Identifier: ").Append(this.Identifier).Append("\n"); + sb.Append(" Name: ").Append(this.Name).Append("\n"); + sb.Append(" Comments: ").Append(this.Comments).Append("\n"); + sb.Append(" Position: ").Append(this.Position).Append("\n"); + sb.Append(" Bundle: ").Append(this.Bundle).Append("\n"); + sb.Append(" Style: ").Append(this.Style).Append("\n"); + sb.Append(" Type: ").Append(this.Type).Append("\n"); + sb.Append(" Properties: ").Append(this.Properties).Append("\n"); + sb.Append(" PropertyDescriptors: ").Append(this.PropertyDescriptors).Append("\n"); + sb.Append(" AnnotationData: ").Append(this.AnnotationData).Append("\n"); + sb.Append(" SchedulingPeriod: ").Append(this.SchedulingPeriod).Append("\n"); + sb.Append(" SchedulingStrategy: ").Append(this.SchedulingStrategy).Append("\n"); + sb.Append(" ExecutionNode: ").Append(this.ExecutionNode).Append("\n"); + sb.Append(" PenaltyDuration: ").Append(this.PenaltyDuration).Append("\n"); + sb.Append(" YieldDuration: ").Append(this.YieldDuration).Append("\n"); + sb.Append(" BulletinLevel: ").Append(this.BulletinLevel).Append("\n"); + sb.Append(" RunDurationMillis: ").Append(this.RunDurationMillis).Append("\n"); + sb.Append(" ConcurrentlySchedulableTaskCount: ").Append(this.ConcurrentlySchedulableTaskCount).Append("\n"); + sb.Append(" AutoTerminatedRelationships: ").Append(this.AutoTerminatedRelationships).Append("\n"); + sb.Append(" ComponentType: ").Append(this.ComponentType).Append("\n"); + sb.Append(" GroupIdentifier: ").Append(this.GroupIdentifier).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as VersionedProcessor); + } + + /// + /// Returns true if VersionedProcessor instances are equal + /// + /// Instance of VersionedProcessor to be compared + /// Boolean + public bool Equals(VersionedProcessor input) + { + if (input == null) + return false; + + return + ( + this.Identifier == input.Identifier || + (this.Identifier != null && + this.Identifier.Equals(input.Identifier)) + ) && + ( + this.Name == input.Name || + (this.Name != null && + this.Name.Equals(input.Name)) + ) && + ( + this.Comments == input.Comments || + (this.Comments != null && + this.Comments.Equals(input.Comments)) + ) && + ( + this.Position == input.Position || + (this.Position != null && + this.Position.Equals(input.Position)) + ) && + ( + this.Bundle == input.Bundle || + (this.Bundle != null && + this.Bundle.Equals(input.Bundle)) + ) && + ( + this.Style == input.Style || + this.Style != null && + this.Style.SequenceEqual(input.Style) + ) && + ( + this.Type == input.Type || + (this.Type != null && + this.Type.Equals(input.Type)) + ) && + ( + this.Properties == input.Properties || + this.Properties != null && + this.Properties.SequenceEqual(input.Properties) + ) && + ( + this.PropertyDescriptors == input.PropertyDescriptors || + this.PropertyDescriptors != null && + this.PropertyDescriptors.SequenceEqual(input.PropertyDescriptors) + ) && + ( + this.AnnotationData == input.AnnotationData || + (this.AnnotationData != null && + this.AnnotationData.Equals(input.AnnotationData)) + ) && + ( + this.SchedulingPeriod == input.SchedulingPeriod || + (this.SchedulingPeriod != null && + this.SchedulingPeriod.Equals(input.SchedulingPeriod)) + ) && + ( + this.SchedulingStrategy == input.SchedulingStrategy || + (this.SchedulingStrategy != null && + this.SchedulingStrategy.Equals(input.SchedulingStrategy)) + ) && + ( + this.ExecutionNode == input.ExecutionNode || + (this.ExecutionNode != null && + this.ExecutionNode.Equals(input.ExecutionNode)) + ) && + ( + this.PenaltyDuration == input.PenaltyDuration || + (this.PenaltyDuration != null && + this.PenaltyDuration.Equals(input.PenaltyDuration)) + ) && + ( + this.YieldDuration == input.YieldDuration || + (this.YieldDuration != null && + this.YieldDuration.Equals(input.YieldDuration)) + ) && + ( + this.BulletinLevel == input.BulletinLevel || + (this.BulletinLevel != null && + this.BulletinLevel.Equals(input.BulletinLevel)) + ) && + ( + this.RunDurationMillis == input.RunDurationMillis || + (this.RunDurationMillis != null && + this.RunDurationMillis.Equals(input.RunDurationMillis)) + ) && + ( + this.ConcurrentlySchedulableTaskCount == input.ConcurrentlySchedulableTaskCount || + (this.ConcurrentlySchedulableTaskCount != null && + this.ConcurrentlySchedulableTaskCount.Equals(input.ConcurrentlySchedulableTaskCount)) + ) && + ( + this.AutoTerminatedRelationships == input.AutoTerminatedRelationships || + this.AutoTerminatedRelationships != null && + this.AutoTerminatedRelationships.SequenceEqual(input.AutoTerminatedRelationships) + ) && + ( + this.ComponentType == input.ComponentType || + (this.ComponentType != null && + this.ComponentType.Equals(input.ComponentType)) + ) && + ( + this.GroupIdentifier == input.GroupIdentifier || + (this.GroupIdentifier != null && + this.GroupIdentifier.Equals(input.GroupIdentifier)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Identifier != null) + hashCode = hashCode * 59 + this.Identifier.GetHashCode(); + if (this.Name != null) + hashCode = hashCode * 59 + this.Name.GetHashCode(); + if (this.Comments != null) + hashCode = hashCode * 59 + this.Comments.GetHashCode(); + if (this.Position != null) + hashCode = hashCode * 59 + this.Position.GetHashCode(); + if (this.Bundle != null) + hashCode = hashCode * 59 + this.Bundle.GetHashCode(); + if (this.Style != null) + hashCode = hashCode * 59 + this.Style.GetHashCode(); + if (this.Type != null) + hashCode = hashCode * 59 + this.Type.GetHashCode(); + if (this.Properties != null) + hashCode = hashCode * 59 + this.Properties.GetHashCode(); + if (this.PropertyDescriptors != null) + hashCode = hashCode * 59 + this.PropertyDescriptors.GetHashCode(); + if (this.AnnotationData != null) + hashCode = hashCode * 59 + this.AnnotationData.GetHashCode(); + if (this.SchedulingPeriod != null) + hashCode = hashCode * 59 + this.SchedulingPeriod.GetHashCode(); + if (this.SchedulingStrategy != null) + hashCode = hashCode * 59 + this.SchedulingStrategy.GetHashCode(); + if (this.ExecutionNode != null) + hashCode = hashCode * 59 + this.ExecutionNode.GetHashCode(); + if (this.PenaltyDuration != null) + hashCode = hashCode * 59 + this.PenaltyDuration.GetHashCode(); + if (this.YieldDuration != null) + hashCode = hashCode * 59 + this.YieldDuration.GetHashCode(); + if (this.BulletinLevel != null) + hashCode = hashCode * 59 + this.BulletinLevel.GetHashCode(); + if (this.RunDurationMillis != null) + hashCode = hashCode * 59 + this.RunDurationMillis.GetHashCode(); + if (this.ConcurrentlySchedulableTaskCount != null) + hashCode = hashCode * 59 + this.ConcurrentlySchedulableTaskCount.GetHashCode(); + if (this.AutoTerminatedRelationships != null) + hashCode = hashCode * 59 + this.AutoTerminatedRelationships.GetHashCode(); + if (this.ComponentType != null) + hashCode = hashCode * 59 + this.ComponentType.GetHashCode(); + if (this.GroupIdentifier != null) + hashCode = hashCode * 59 + this.GroupIdentifier.GetHashCode(); + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/NiFi.Swagger/Model/VersionedPropertyDescriptor.cs b/NiFi.Swagger/Model/VersionedPropertyDescriptor.cs new file mode 100644 index 0000000..788a8d4 --- /dev/null +++ b/NiFi.Swagger/Model/VersionedPropertyDescriptor.cs @@ -0,0 +1,170 @@ +/* + * NiFi Rest Api + * + * The Rest Api provides programmatic access to command and control a NiFi instance in real time. Start and stop processors, monitor queues, query provenance data, and more. Each endpoint below includes a description, definitions of the expected input and output, potential response codes, and the authorizations required to invoke each service. + * + * OpenAPI spec version: 1.9.1 + * Contact: dev@nifi.apache.org + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +namespace NiFi.Swagger.Model +{ + using System; + using System.Collections.Generic; + using System.ComponentModel.DataAnnotations; + using System.Runtime.Serialization; + using System.Text; + + using Newtonsoft.Json; + + /// + /// VersionedPropertyDescriptor + /// + [DataContract] + public partial class VersionedPropertyDescriptor : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// The name of the property. + /// The display name of the property. + /// Whether or not the property provides the identifier of a Controller Service. + /// Whether or not the property is considered sensitive. + public VersionedPropertyDescriptor(string name = default(string), string displayName = default(string), bool? identifiesControllerService = default(bool?), bool? sensitive = default(bool?)) + { + this.Name = name; + this.DisplayName = displayName; + this.IdentifiesControllerService = identifiesControllerService; + this.Sensitive = sensitive; + } + + /// + /// The name of the property + /// + /// The name of the property + [DataMember(Name="name", EmitDefaultValue=false)] + public string Name { get; set; } + + /// + /// The display name of the property + /// + /// The display name of the property + [DataMember(Name="displayName", EmitDefaultValue=false)] + public string DisplayName { get; set; } + + /// + /// Whether or not the property provides the identifier of a Controller Service + /// + /// Whether or not the property provides the identifier of a Controller Service + [DataMember(Name="identifiesControllerService", EmitDefaultValue=false)] + public bool? IdentifiesControllerService { get; set; } + + /// + /// Whether or not the property is considered sensitive + /// + /// Whether or not the property is considered sensitive + [DataMember(Name="sensitive", EmitDefaultValue=false)] + public bool? Sensitive { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class VersionedPropertyDescriptor {\n"); + sb.Append(" Name: ").Append(this.Name).Append("\n"); + sb.Append(" DisplayName: ").Append(this.DisplayName).Append("\n"); + sb.Append(" IdentifiesControllerService: ").Append(this.IdentifiesControllerService).Append("\n"); + sb.Append(" Sensitive: ").Append(this.Sensitive).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as VersionedPropertyDescriptor); + } + + /// + /// Returns true if VersionedPropertyDescriptor instances are equal + /// + /// Instance of VersionedPropertyDescriptor to be compared + /// Boolean + public bool Equals(VersionedPropertyDescriptor input) + { + if (input == null) + return false; + + return + ( + this.Name == input.Name || + (this.Name != null && + this.Name.Equals(input.Name)) + ) && + ( + this.DisplayName == input.DisplayName || + (this.DisplayName != null && + this.DisplayName.Equals(input.DisplayName)) + ) && + ( + this.IdentifiesControllerService == input.IdentifiesControllerService || + (this.IdentifiesControllerService != null && + this.IdentifiesControllerService.Equals(input.IdentifiesControllerService)) + ) && + ( + this.Sensitive == input.Sensitive || + (this.Sensitive != null && + this.Sensitive.Equals(input.Sensitive)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Name != null) + hashCode = hashCode * 59 + this.Name.GetHashCode(); + if (this.DisplayName != null) + hashCode = hashCode * 59 + this.DisplayName.GetHashCode(); + if (this.IdentifiesControllerService != null) + hashCode = hashCode * 59 + this.IdentifiesControllerService.GetHashCode(); + if (this.Sensitive != null) + hashCode = hashCode * 59 + this.Sensitive.GetHashCode(); + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/NiFi.Swagger/Model/VersionedRemoteGroupPort.cs b/NiFi.Swagger/Model/VersionedRemoteGroupPort.cs new file mode 100644 index 0000000..6e5dcf6 --- /dev/null +++ b/NiFi.Swagger/Model/VersionedRemoteGroupPort.cs @@ -0,0 +1,363 @@ +/* + * NiFi Rest Api + * + * The Rest Api provides programmatic access to command and control a NiFi instance in real time. Start and stop processors, monitor queues, query provenance data, and more. Each endpoint below includes a description, definitions of the expected input and output, potential response codes, and the authorizations required to invoke each service. + * + * OpenAPI spec version: 1.9.1 + * Contact: dev@nifi.apache.org + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +namespace NiFi.Swagger.Model +{ + using System; + using System.Collections.Generic; + using System.ComponentModel.DataAnnotations; + using System.Runtime.Serialization; + using System.Text; + + using Newtonsoft.Json; + using Newtonsoft.Json.Converters; + + /// + /// VersionedRemoteGroupPort + /// + [DataContract] + public partial class VersionedRemoteGroupPort : IEquatable, IValidatableObject + { + /// + /// Defines ComponentType + /// + [JsonConverter(typeof(StringEnumConverter))] + public enum ComponentTypeEnum + { + + /// + /// Enum CONNECTION for value: CONNECTION + /// + [EnumMember(Value = "CONNECTION")] + CONNECTION = 1, + + /// + /// Enum PROCESSOR for value: PROCESSOR + /// + [EnumMember(Value = "PROCESSOR")] + PROCESSOR = 2, + + /// + /// Enum PROCESSGROUP for value: PROCESS_GROUP + /// + [EnumMember(Value = "PROCESS_GROUP")] + PROCESSGROUP = 3, + + /// + /// Enum REMOTEPROCESSGROUP for value: REMOTE_PROCESS_GROUP + /// + [EnumMember(Value = "REMOTE_PROCESS_GROUP")] + REMOTEPROCESSGROUP = 4, + + /// + /// Enum INPUTPORT for value: INPUT_PORT + /// + [EnumMember(Value = "INPUT_PORT")] + INPUTPORT = 5, + + /// + /// Enum OUTPUTPORT for value: OUTPUT_PORT + /// + [EnumMember(Value = "OUTPUT_PORT")] + OUTPUTPORT = 6, + + /// + /// Enum REMOTEINPUTPORT for value: REMOTE_INPUT_PORT + /// + [EnumMember(Value = "REMOTE_INPUT_PORT")] + REMOTEINPUTPORT = 7, + + /// + /// Enum REMOTEOUTPUTPORT for value: REMOTE_OUTPUT_PORT + /// + [EnumMember(Value = "REMOTE_OUTPUT_PORT")] + REMOTEOUTPUTPORT = 8, + + /// + /// Enum FUNNEL for value: FUNNEL + /// + [EnumMember(Value = "FUNNEL")] + FUNNEL = 9, + + /// + /// Enum LABEL for value: LABEL + /// + [EnumMember(Value = "LABEL")] + LABEL = 10, + + /// + /// Enum CONTROLLERSERVICE for value: CONTROLLER_SERVICE + /// + [EnumMember(Value = "CONTROLLER_SERVICE")] + CONTROLLERSERVICE = 11 + } + + /// + /// Gets or Sets ComponentType + /// + [DataMember(Name="componentType", EmitDefaultValue=false)] + public ComponentTypeEnum? ComponentType { get; set; } + /// + /// Initializes a new instance of the class. + /// + /// The component's unique identifier. + /// The component's name. + /// The user-supplied comments for the component. + /// The component's position on the graph. + /// The id of the remote process group that the port resides in.. + /// The number of task that may transmit flowfiles to the target port concurrently.. + /// Whether the flowfiles are compressed when sent to the target port.. + /// The batch settings for data transmission.. + /// componentType. + /// The ID of the port on the target NiFi instance. + /// The ID of the Process Group that this component belongs to. + public VersionedRemoteGroupPort(string identifier = default(string), string name = default(string), string comments = default(string), Position position = default(Position), string remoteGroupId = default(string), int? concurrentlySchedulableTaskCount = default(int?), bool? useCompression = default(bool?), BatchSize batchSize = default(BatchSize), ComponentTypeEnum? componentType = default(ComponentTypeEnum?), string targetId = default(string), string groupIdentifier = default(string)) + { + this.Identifier = identifier; + this.Name = name; + this.Comments = comments; + this.Position = position; + this.RemoteGroupId = remoteGroupId; + this.ConcurrentlySchedulableTaskCount = concurrentlySchedulableTaskCount; + this.UseCompression = useCompression; + this.BatchSize = batchSize; + this.ComponentType = componentType; + this.TargetId = targetId; + this.GroupIdentifier = groupIdentifier; + } + + /// + /// The component's unique identifier + /// + /// The component's unique identifier + [DataMember(Name="identifier", EmitDefaultValue=false)] + public string Identifier { get; set; } + + /// + /// The component's name + /// + /// The component's name + [DataMember(Name="name", EmitDefaultValue=false)] + public string Name { get; set; } + + /// + /// The user-supplied comments for the component + /// + /// The user-supplied comments for the component + [DataMember(Name="comments", EmitDefaultValue=false)] + public string Comments { get; set; } + + /// + /// The component's position on the graph + /// + /// The component's position on the graph + [DataMember(Name="position", EmitDefaultValue=false)] + public Position Position { get; set; } + + /// + /// The id of the remote process group that the port resides in. + /// + /// The id of the remote process group that the port resides in. + [DataMember(Name="remoteGroupId", EmitDefaultValue=false)] + public string RemoteGroupId { get; set; } + + /// + /// The number of task that may transmit flowfiles to the target port concurrently. + /// + /// The number of task that may transmit flowfiles to the target port concurrently. + [DataMember(Name="concurrentlySchedulableTaskCount", EmitDefaultValue=false)] + public int? ConcurrentlySchedulableTaskCount { get; set; } + + /// + /// Whether the flowfiles are compressed when sent to the target port. + /// + /// Whether the flowfiles are compressed when sent to the target port. + [DataMember(Name="useCompression", EmitDefaultValue=false)] + public bool? UseCompression { get; set; } + + /// + /// The batch settings for data transmission. + /// + /// The batch settings for data transmission. + [DataMember(Name="batchSize", EmitDefaultValue=false)] + public BatchSize BatchSize { get; set; } + + + /// + /// The ID of the port on the target NiFi instance + /// + /// The ID of the port on the target NiFi instance + [DataMember(Name="targetId", EmitDefaultValue=false)] + public string TargetId { get; set; } + + /// + /// The ID of the Process Group that this component belongs to + /// + /// The ID of the Process Group that this component belongs to + [DataMember(Name="groupIdentifier", EmitDefaultValue=false)] + public string GroupIdentifier { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class VersionedRemoteGroupPort {\n"); + sb.Append(" Identifier: ").Append(this.Identifier).Append("\n"); + sb.Append(" Name: ").Append(this.Name).Append("\n"); + sb.Append(" Comments: ").Append(this.Comments).Append("\n"); + sb.Append(" Position: ").Append(this.Position).Append("\n"); + sb.Append(" RemoteGroupId: ").Append(this.RemoteGroupId).Append("\n"); + sb.Append(" ConcurrentlySchedulableTaskCount: ").Append(this.ConcurrentlySchedulableTaskCount).Append("\n"); + sb.Append(" UseCompression: ").Append(this.UseCompression).Append("\n"); + sb.Append(" BatchSize: ").Append(this.BatchSize).Append("\n"); + sb.Append(" ComponentType: ").Append(this.ComponentType).Append("\n"); + sb.Append(" TargetId: ").Append(this.TargetId).Append("\n"); + sb.Append(" GroupIdentifier: ").Append(this.GroupIdentifier).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as VersionedRemoteGroupPort); + } + + /// + /// Returns true if VersionedRemoteGroupPort instances are equal + /// + /// Instance of VersionedRemoteGroupPort to be compared + /// Boolean + public bool Equals(VersionedRemoteGroupPort input) + { + if (input == null) + return false; + + return + ( + this.Identifier == input.Identifier || + (this.Identifier != null && + this.Identifier.Equals(input.Identifier)) + ) && + ( + this.Name == input.Name || + (this.Name != null && + this.Name.Equals(input.Name)) + ) && + ( + this.Comments == input.Comments || + (this.Comments != null && + this.Comments.Equals(input.Comments)) + ) && + ( + this.Position == input.Position || + (this.Position != null && + this.Position.Equals(input.Position)) + ) && + ( + this.RemoteGroupId == input.RemoteGroupId || + (this.RemoteGroupId != null && + this.RemoteGroupId.Equals(input.RemoteGroupId)) + ) && + ( + this.ConcurrentlySchedulableTaskCount == input.ConcurrentlySchedulableTaskCount || + (this.ConcurrentlySchedulableTaskCount != null && + this.ConcurrentlySchedulableTaskCount.Equals(input.ConcurrentlySchedulableTaskCount)) + ) && + ( + this.UseCompression == input.UseCompression || + (this.UseCompression != null && + this.UseCompression.Equals(input.UseCompression)) + ) && + ( + this.BatchSize == input.BatchSize || + (this.BatchSize != null && + this.BatchSize.Equals(input.BatchSize)) + ) && + ( + this.ComponentType == input.ComponentType || + (this.ComponentType != null && + this.ComponentType.Equals(input.ComponentType)) + ) && + ( + this.TargetId == input.TargetId || + (this.TargetId != null && + this.TargetId.Equals(input.TargetId)) + ) && + ( + this.GroupIdentifier == input.GroupIdentifier || + (this.GroupIdentifier != null && + this.GroupIdentifier.Equals(input.GroupIdentifier)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Identifier != null) + hashCode = hashCode * 59 + this.Identifier.GetHashCode(); + if (this.Name != null) + hashCode = hashCode * 59 + this.Name.GetHashCode(); + if (this.Comments != null) + hashCode = hashCode * 59 + this.Comments.GetHashCode(); + if (this.Position != null) + hashCode = hashCode * 59 + this.Position.GetHashCode(); + if (this.RemoteGroupId != null) + hashCode = hashCode * 59 + this.RemoteGroupId.GetHashCode(); + if (this.ConcurrentlySchedulableTaskCount != null) + hashCode = hashCode * 59 + this.ConcurrentlySchedulableTaskCount.GetHashCode(); + if (this.UseCompression != null) + hashCode = hashCode * 59 + this.UseCompression.GetHashCode(); + if (this.BatchSize != null) + hashCode = hashCode * 59 + this.BatchSize.GetHashCode(); + if (this.ComponentType != null) + hashCode = hashCode * 59 + this.ComponentType.GetHashCode(); + if (this.TargetId != null) + hashCode = hashCode * 59 + this.TargetId.GetHashCode(); + if (this.GroupIdentifier != null) + hashCode = hashCode * 59 + this.GroupIdentifier.GetHashCode(); + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/NiFi.Swagger/Model/VersionedRemoteProcessGroup.cs b/NiFi.Swagger/Model/VersionedRemoteProcessGroup.cs new file mode 100644 index 0000000..9dd7852 --- /dev/null +++ b/NiFi.Swagger/Model/VersionedRemoteProcessGroup.cs @@ -0,0 +1,484 @@ +/* + * NiFi Rest Api + * + * The Rest Api provides programmatic access to command and control a NiFi instance in real time. Start and stop processors, monitor queues, query provenance data, and more. Each endpoint below includes a description, definitions of the expected input and output, potential response codes, and the authorizations required to invoke each service. + * + * OpenAPI spec version: 1.9.1 + * Contact: dev@nifi.apache.org + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +namespace NiFi.Swagger.Model +{ + using System; + using System.Collections.Generic; + using System.ComponentModel.DataAnnotations; + using System.Linq; + using System.Runtime.Serialization; + using System.Text; + + using Newtonsoft.Json; + using Newtonsoft.Json.Converters; + + /// + /// VersionedRemoteProcessGroup + /// + [DataContract] + public partial class VersionedRemoteProcessGroup : IEquatable, IValidatableObject + { + /// + /// The Transport Protocol that is used for Site-to-Site communications + /// + /// The Transport Protocol that is used for Site-to-Site communications + [JsonConverter(typeof(StringEnumConverter))] + public enum TransportProtocolEnum + { + + /// + /// Enum RAW for value: RAW + /// + [EnumMember(Value = "RAW")] + RAW = 1, + + /// + /// Enum HTTP for value: HTTP + /// + [EnumMember(Value = "HTTP")] + HTTP = 2 + } + + /// + /// The Transport Protocol that is used for Site-to-Site communications + /// + /// The Transport Protocol that is used for Site-to-Site communications + [DataMember(Name="transportProtocol", EmitDefaultValue=false)] + public TransportProtocolEnum? TransportProtocol { get; set; } + /// + /// Defines ComponentType + /// + [JsonConverter(typeof(StringEnumConverter))] + public enum ComponentTypeEnum + { + + /// + /// Enum CONNECTION for value: CONNECTION + /// + [EnumMember(Value = "CONNECTION")] + CONNECTION = 1, + + /// + /// Enum PROCESSOR for value: PROCESSOR + /// + [EnumMember(Value = "PROCESSOR")] + PROCESSOR = 2, + + /// + /// Enum PROCESSGROUP for value: PROCESS_GROUP + /// + [EnumMember(Value = "PROCESS_GROUP")] + PROCESSGROUP = 3, + + /// + /// Enum REMOTEPROCESSGROUP for value: REMOTE_PROCESS_GROUP + /// + [EnumMember(Value = "REMOTE_PROCESS_GROUP")] + REMOTEPROCESSGROUP = 4, + + /// + /// Enum INPUTPORT for value: INPUT_PORT + /// + [EnumMember(Value = "INPUT_PORT")] + INPUTPORT = 5, + + /// + /// Enum OUTPUTPORT for value: OUTPUT_PORT + /// + [EnumMember(Value = "OUTPUT_PORT")] + OUTPUTPORT = 6, + + /// + /// Enum REMOTEINPUTPORT for value: REMOTE_INPUT_PORT + /// + [EnumMember(Value = "REMOTE_INPUT_PORT")] + REMOTEINPUTPORT = 7, + + /// + /// Enum REMOTEOUTPUTPORT for value: REMOTE_OUTPUT_PORT + /// + [EnumMember(Value = "REMOTE_OUTPUT_PORT")] + REMOTEOUTPUTPORT = 8, + + /// + /// Enum FUNNEL for value: FUNNEL + /// + [EnumMember(Value = "FUNNEL")] + FUNNEL = 9, + + /// + /// Enum LABEL for value: LABEL + /// + [EnumMember(Value = "LABEL")] + LABEL = 10, + + /// + /// Enum CONTROLLERSERVICE for value: CONTROLLER_SERVICE + /// + [EnumMember(Value = "CONTROLLER_SERVICE")] + CONTROLLERSERVICE = 11 + } + + /// + /// Gets or Sets ComponentType + /// + [DataMember(Name="componentType", EmitDefaultValue=false)] + public ComponentTypeEnum? ComponentType { get; set; } + /// + /// Initializes a new instance of the class. + /// + /// The component's unique identifier. + /// The component's name. + /// The user-supplied comments for the component. + /// The component's position on the graph. + /// [DEPRECATED] The target URI of the remote process group. If target uri is not set, but uris are set, then returns the first uri in the uris. If neither target uri nor uris are set, then returns null.. + /// The target URIs of the remote process group. If target uris is not set but target uri is set, then returns the single target uri. If neither target uris nor target uri is set, then returns null.. + /// The time period used for the timeout when communicating with the target.. + /// When yielding, this amount of time must elapse before the remote process group is scheduled again.. + /// The Transport Protocol that is used for Site-to-Site communications. + /// The local network interface to send/receive data. If not specified, any local address is used. If clustered, all nodes must have an interface with this identifier.. + /// proxyHost. + /// proxyPort. + /// proxyUser. + /// A Set of Input Ports that can be connected to, in order to send data to the remote NiFi instance. + /// A Set of Output Ports that can be connected to, in order to pull data from the remote NiFi instance. + /// componentType. + /// The ID of the Process Group that this component belongs to. + public VersionedRemoteProcessGroup(string identifier = default(string), string name = default(string), string comments = default(string), Position position = default(Position), string targetUri = default(string), string targetUris = default(string), string communicationsTimeout = default(string), string yieldDuration = default(string), TransportProtocolEnum? transportProtocol = default(TransportProtocolEnum?), string localNetworkInterface = default(string), string proxyHost = default(string), int? proxyPort = default(int?), string proxyUser = default(string), List inputPorts = default(List), List outputPorts = default(List), ComponentTypeEnum? componentType = default(ComponentTypeEnum?), string groupIdentifier = default(string)) + { + this.Identifier = identifier; + this.Name = name; + this.Comments = comments; + this.Position = position; + this.TargetUri = targetUri; + this.TargetUris = targetUris; + this.CommunicationsTimeout = communicationsTimeout; + this.YieldDuration = yieldDuration; + this.TransportProtocol = transportProtocol; + this.LocalNetworkInterface = localNetworkInterface; + this.ProxyHost = proxyHost; + this.ProxyPort = proxyPort; + this.ProxyUser = proxyUser; + this.InputPorts = inputPorts; + this.OutputPorts = outputPorts; + this.ComponentType = componentType; + this.GroupIdentifier = groupIdentifier; + } + + /// + /// The component's unique identifier + /// + /// The component's unique identifier + [DataMember(Name="identifier", EmitDefaultValue=false)] + public string Identifier { get; set; } + + /// + /// The component's name + /// + /// The component's name + [DataMember(Name="name", EmitDefaultValue=false)] + public string Name { get; set; } + + /// + /// The user-supplied comments for the component + /// + /// The user-supplied comments for the component + [DataMember(Name="comments", EmitDefaultValue=false)] + public string Comments { get; set; } + + /// + /// The component's position on the graph + /// + /// The component's position on the graph + [DataMember(Name="position", EmitDefaultValue=false)] + public Position Position { get; set; } + + /// + /// [DEPRECATED] The target URI of the remote process group. If target uri is not set, but uris are set, then returns the first uri in the uris. If neither target uri nor uris are set, then returns null. + /// + /// [DEPRECATED] The target URI of the remote process group. If target uri is not set, but uris are set, then returns the first uri in the uris. If neither target uri nor uris are set, then returns null. + [DataMember(Name="targetUri", EmitDefaultValue=false)] + public string TargetUri { get; set; } + + /// + /// The target URIs of the remote process group. If target uris is not set but target uri is set, then returns the single target uri. If neither target uris nor target uri is set, then returns null. + /// + /// The target URIs of the remote process group. If target uris is not set but target uri is set, then returns the single target uri. If neither target uris nor target uri is set, then returns null. + [DataMember(Name="targetUris", EmitDefaultValue=false)] + public string TargetUris { get; set; } + + /// + /// The time period used for the timeout when communicating with the target. + /// + /// The time period used for the timeout when communicating with the target. + [DataMember(Name="communicationsTimeout", EmitDefaultValue=false)] + public string CommunicationsTimeout { get; set; } + + /// + /// When yielding, this amount of time must elapse before the remote process group is scheduled again. + /// + /// When yielding, this amount of time must elapse before the remote process group is scheduled again. + [DataMember(Name="yieldDuration", EmitDefaultValue=false)] + public string YieldDuration { get; set; } + + + /// + /// The local network interface to send/receive data. If not specified, any local address is used. If clustered, all nodes must have an interface with this identifier. + /// + /// The local network interface to send/receive data. If not specified, any local address is used. If clustered, all nodes must have an interface with this identifier. + [DataMember(Name="localNetworkInterface", EmitDefaultValue=false)] + public string LocalNetworkInterface { get; set; } + + /// + /// Gets or Sets ProxyHost + /// + [DataMember(Name="proxyHost", EmitDefaultValue=false)] + public string ProxyHost { get; set; } + + /// + /// Gets or Sets ProxyPort + /// + [DataMember(Name="proxyPort", EmitDefaultValue=false)] + public int? ProxyPort { get; set; } + + /// + /// Gets or Sets ProxyUser + /// + [DataMember(Name="proxyUser", EmitDefaultValue=false)] + public string ProxyUser { get; set; } + + /// + /// A Set of Input Ports that can be connected to, in order to send data to the remote NiFi instance + /// + /// A Set of Input Ports that can be connected to, in order to send data to the remote NiFi instance + [DataMember(Name="inputPorts", EmitDefaultValue=false)] + public List InputPorts { get; set; } + + /// + /// A Set of Output Ports that can be connected to, in order to pull data from the remote NiFi instance + /// + /// A Set of Output Ports that can be connected to, in order to pull data from the remote NiFi instance + [DataMember(Name="outputPorts", EmitDefaultValue=false)] + public List OutputPorts { get; set; } + + + /// + /// The ID of the Process Group that this component belongs to + /// + /// The ID of the Process Group that this component belongs to + [DataMember(Name="groupIdentifier", EmitDefaultValue=false)] + public string GroupIdentifier { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class VersionedRemoteProcessGroup {\n"); + sb.Append(" Identifier: ").Append(this.Identifier).Append("\n"); + sb.Append(" Name: ").Append(this.Name).Append("\n"); + sb.Append(" Comments: ").Append(this.Comments).Append("\n"); + sb.Append(" Position: ").Append(this.Position).Append("\n"); + sb.Append(" TargetUri: ").Append(this.TargetUri).Append("\n"); + sb.Append(" TargetUris: ").Append(this.TargetUris).Append("\n"); + sb.Append(" CommunicationsTimeout: ").Append(this.CommunicationsTimeout).Append("\n"); + sb.Append(" YieldDuration: ").Append(this.YieldDuration).Append("\n"); + sb.Append(" TransportProtocol: ").Append(this.TransportProtocol).Append("\n"); + sb.Append(" LocalNetworkInterface: ").Append(this.LocalNetworkInterface).Append("\n"); + sb.Append(" ProxyHost: ").Append(this.ProxyHost).Append("\n"); + sb.Append(" ProxyPort: ").Append(this.ProxyPort).Append("\n"); + sb.Append(" ProxyUser: ").Append(this.ProxyUser).Append("\n"); + sb.Append(" InputPorts: ").Append(this.InputPorts).Append("\n"); + sb.Append(" OutputPorts: ").Append(this.OutputPorts).Append("\n"); + sb.Append(" ComponentType: ").Append(this.ComponentType).Append("\n"); + sb.Append(" GroupIdentifier: ").Append(this.GroupIdentifier).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as VersionedRemoteProcessGroup); + } + + /// + /// Returns true if VersionedRemoteProcessGroup instances are equal + /// + /// Instance of VersionedRemoteProcessGroup to be compared + /// Boolean + public bool Equals(VersionedRemoteProcessGroup input) + { + if (input == null) + return false; + + return + ( + this.Identifier == input.Identifier || + (this.Identifier != null && + this.Identifier.Equals(input.Identifier)) + ) && + ( + this.Name == input.Name || + (this.Name != null && + this.Name.Equals(input.Name)) + ) && + ( + this.Comments == input.Comments || + (this.Comments != null && + this.Comments.Equals(input.Comments)) + ) && + ( + this.Position == input.Position || + (this.Position != null && + this.Position.Equals(input.Position)) + ) && + ( + this.TargetUri == input.TargetUri || + (this.TargetUri != null && + this.TargetUri.Equals(input.TargetUri)) + ) && + ( + this.TargetUris == input.TargetUris || + (this.TargetUris != null && + this.TargetUris.Equals(input.TargetUris)) + ) && + ( + this.CommunicationsTimeout == input.CommunicationsTimeout || + (this.CommunicationsTimeout != null && + this.CommunicationsTimeout.Equals(input.CommunicationsTimeout)) + ) && + ( + this.YieldDuration == input.YieldDuration || + (this.YieldDuration != null && + this.YieldDuration.Equals(input.YieldDuration)) + ) && + ( + this.TransportProtocol == input.TransportProtocol || + (this.TransportProtocol != null && + this.TransportProtocol.Equals(input.TransportProtocol)) + ) && + ( + this.LocalNetworkInterface == input.LocalNetworkInterface || + (this.LocalNetworkInterface != null && + this.LocalNetworkInterface.Equals(input.LocalNetworkInterface)) + ) && + ( + this.ProxyHost == input.ProxyHost || + (this.ProxyHost != null && + this.ProxyHost.Equals(input.ProxyHost)) + ) && + ( + this.ProxyPort == input.ProxyPort || + (this.ProxyPort != null && + this.ProxyPort.Equals(input.ProxyPort)) + ) && + ( + this.ProxyUser == input.ProxyUser || + (this.ProxyUser != null && + this.ProxyUser.Equals(input.ProxyUser)) + ) && + ( + this.InputPorts == input.InputPorts || + this.InputPorts != null && + this.InputPorts.SequenceEqual(input.InputPorts) + ) && + ( + this.OutputPorts == input.OutputPorts || + this.OutputPorts != null && + this.OutputPorts.SequenceEqual(input.OutputPorts) + ) && + ( + this.ComponentType == input.ComponentType || + (this.ComponentType != null && + this.ComponentType.Equals(input.ComponentType)) + ) && + ( + this.GroupIdentifier == input.GroupIdentifier || + (this.GroupIdentifier != null && + this.GroupIdentifier.Equals(input.GroupIdentifier)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Identifier != null) + hashCode = hashCode * 59 + this.Identifier.GetHashCode(); + if (this.Name != null) + hashCode = hashCode * 59 + this.Name.GetHashCode(); + if (this.Comments != null) + hashCode = hashCode * 59 + this.Comments.GetHashCode(); + if (this.Position != null) + hashCode = hashCode * 59 + this.Position.GetHashCode(); + if (this.TargetUri != null) + hashCode = hashCode * 59 + this.TargetUri.GetHashCode(); + if (this.TargetUris != null) + hashCode = hashCode * 59 + this.TargetUris.GetHashCode(); + if (this.CommunicationsTimeout != null) + hashCode = hashCode * 59 + this.CommunicationsTimeout.GetHashCode(); + if (this.YieldDuration != null) + hashCode = hashCode * 59 + this.YieldDuration.GetHashCode(); + if (this.TransportProtocol != null) + hashCode = hashCode * 59 + this.TransportProtocol.GetHashCode(); + if (this.LocalNetworkInterface != null) + hashCode = hashCode * 59 + this.LocalNetworkInterface.GetHashCode(); + if (this.ProxyHost != null) + hashCode = hashCode * 59 + this.ProxyHost.GetHashCode(); + if (this.ProxyPort != null) + hashCode = hashCode * 59 + this.ProxyPort.GetHashCode(); + if (this.ProxyUser != null) + hashCode = hashCode * 59 + this.ProxyUser.GetHashCode(); + if (this.InputPorts != null) + hashCode = hashCode * 59 + this.InputPorts.GetHashCode(); + if (this.OutputPorts != null) + hashCode = hashCode * 59 + this.OutputPorts.GetHashCode(); + if (this.ComponentType != null) + hashCode = hashCode * 59 + this.ComponentType.GetHashCode(); + if (this.GroupIdentifier != null) + hashCode = hashCode * 59 + this.GroupIdentifier.GetHashCode(); + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/NiFi.Swagger/NiFi.Swagger.csproj b/NiFi.Swagger/NiFi.Swagger.csproj new file mode 100644 index 0000000..ed2ddc7 --- /dev/null +++ b/NiFi.Swagger/NiFi.Swagger.csproj @@ -0,0 +1,378 @@ + + + + + Debug + AnyCPU + {B2551395-4D42-49E1-B061-8F7E2FF9987C} + Library + Properties + NiFi.Swagger + NiFi.Swagger + v4.6 + 512 + + + + true + full + false + bin\Debug\ + DEBUG;TRACE + prompt + 4 + + + pdbonly + true + bin\Release\ + TRACE + prompt + 4 + + + + packages\JsonSubTypes.1.5.2\lib\net45\JsonSubTypes.dll + + + packages\Newtonsoft.Json.12.0.2\lib\net45\Newtonsoft.Json.dll + + + packages\RestSharp.106.6.9\lib\net452\RestSharp.dll + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/NiFi.Swagger/NiFi.Swagger.csproj.user b/NiFi.Swagger/NiFi.Swagger.csproj.user new file mode 100644 index 0000000..c10e84b --- /dev/null +++ b/NiFi.Swagger/NiFi.Swagger.csproj.user @@ -0,0 +1,6 @@ + + + + ProjectFiles + + \ No newline at end of file diff --git a/NiFi.Swagger/NiFi.Swagger.nuspec b/NiFi.Swagger/NiFi.Swagger.nuspec new file mode 100644 index 0000000..5c549e9 --- /dev/null +++ b/NiFi.Swagger/NiFi.Swagger.nuspec @@ -0,0 +1,41 @@ + + + + + $id$ + Swagger Library + + + $version$ + + + $author$ + + + $author$ + false + false + + + A library generated from a Swagger doc + http://www.apache.org/licenses/LICENSE-2.0.html + + + + + + + + + + + + + + + + + + diff --git a/NiFi.Swagger/NiFi.Swagger.sln b/NiFi.Swagger/NiFi.Swagger.sln new file mode 100644 index 0000000..2f7afd4 --- /dev/null +++ b/NiFi.Swagger/NiFi.Swagger.sln @@ -0,0 +1,31 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio Version 16 +VisualStudioVersion = 16.0.28922.388 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "NiFi.Swagger", "NiFi.Swagger.csproj", "{B2551395-4D42-49E1-B061-8F7E2FF9987C}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "NiFi.Swagger.SystemDiagnosticsApiExample", "..\NiFi.Swagger.SystemDiagnosticsApiExample\NiFi.Swagger.SystemDiagnosticsApiExample.csproj", "{434F0520-BA70-45EB-ACB5-225E7AD56FC4}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Any CPU = Debug|Any CPU + Release|Any CPU = Release|Any CPU + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {B2551395-4D42-49E1-B061-8F7E2FF9987C}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {B2551395-4D42-49E1-B061-8F7E2FF9987C}.Debug|Any CPU.Build.0 = Debug|Any CPU + {B2551395-4D42-49E1-B061-8F7E2FF9987C}.Release|Any CPU.ActiveCfg = Release|Any CPU + {B2551395-4D42-49E1-B061-8F7E2FF9987C}.Release|Any CPU.Build.0 = Release|Any CPU + {434F0520-BA70-45EB-ACB5-225E7AD56FC4}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {434F0520-BA70-45EB-ACB5-225E7AD56FC4}.Debug|Any CPU.Build.0 = Debug|Any CPU + {434F0520-BA70-45EB-ACB5-225E7AD56FC4}.Release|Any CPU.ActiveCfg = Release|Any CPU + {434F0520-BA70-45EB-ACB5-225E7AD56FC4}.Release|Any CPU.Build.0 = Release|Any CPU + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection + GlobalSection(ExtensibilityGlobals) = postSolution + SolutionGuid = {C4BBE553-7300-4670-804B-CE5C0428BF2E} + EndGlobalSection +EndGlobal diff --git a/NiFi.Swagger/Properties/AssemblyInfo.cs b/NiFi.Swagger/Properties/AssemblyInfo.cs new file mode 100644 index 0000000..6374a3e --- /dev/null +++ b/NiFi.Swagger/Properties/AssemblyInfo.cs @@ -0,0 +1,34 @@ +using System.Reflection; +using System.Runtime.InteropServices; + +// General Information about an assembly is controlled through the following +// set of attributes. Change these attribute values to modify the information +// associated with an assembly. +[assembly: AssemblyTitle("Swagger Library")] +[assembly: AssemblyDescription("A library generated from a Swagger doc")] +[assembly: AssemblyConfiguration("")] +[assembly: AssemblyCompany("Swagger")] +[assembly: AssemblyProduct("SwaggerLibrary")] +[assembly: AssemblyCopyright("No Copyright")] +[assembly: AssemblyTrademark("")] +[assembly: AssemblyCulture("")] + +// Setting ComVisible to false makes the types in this assembly not visible +// to COM components. If you need to access a type in this assembly from +// COM, set the ComVisible attribute to true on that type. +[assembly: ComVisible(false)] + +// Version information for an assembly consists of the following four values: +// +// Major Version +// Minor Version +// Build Number +// Revision +// +// You can specify all the values or you can default the Build and Revision Numbers +// by using the '*' as shown below: +// [assembly: AssemblyVersion("1.0.*")] +[assembly: AssemblyVersion("1.0.0")] +[assembly: AssemblyFileVersion("1.0.0")] +[assembly: Guid("6A5CB7AF-F143-4C7C-989C-5BF29C76D615")] + diff --git a/NiFi.Swagger/app.config b/NiFi.Swagger/app.config new file mode 100644 index 0000000..cf7841d --- /dev/null +++ b/NiFi.Swagger/app.config @@ -0,0 +1,11 @@ + + + + + + + + + + + diff --git a/NiFi.Swagger/packages.config b/NiFi.Swagger/packages.config new file mode 100644 index 0000000..bef12f5 --- /dev/null +++ b/NiFi.Swagger/packages.config @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/README.md b/README.md index 875c89b..4aefefb 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,449 @@ -# NiFi.Swagger +# NiFi.Swagger.Core .NET Client for Apache NiFi 1.9.1 using swagger-cogeden +### Which version + +The version of product correspond to the nifi api version. + +sample 1.9.1 is build with API Nifi 1.9.1 + +| version | version NIFI | +| --------------- | -------------------------| +| version 1.9.1.0 | Build with api nifi 1.9.1 | + +## Getting Started + +System Diagnostics Api Example + +```C# + +namespace NiFi.Swagger.SystemDiagnosticsApiExample +{ + using System; + + using NiFi.Swagger.Api; + using NiFi.Swagger.Client; + + using Console = System.Console; + + class Program + { + static void Main(string[] args) + { + try + { + var config = new Configuration + { + BasePath = "http://localhost:8080/nifi-api" + }; + + var systemApi = new SystemDiagnosticsApi(config); + + var localDiagnostics = systemApi.GetSystemDiagnostics(); + Console.WriteLine(localDiagnostics.ToJson()); + + Console.ReadKey(); + } + catch (Exception e) + { + Console.WriteLine(e); + } + } + } +} + +``` + +## Documentation for API Endpoints + +All URIs are relative to *http://localhost:8080/nifi/* + +All URIs are relative to *http://localhost/nifi/* + +| Class | Method | HTTP request | Description | +| ------------------------ | ---------------------------------------- | ---------------------------------------- | ---------------------------------------- | +| *AccessApi* | [**CreateAccessToken**](Docs/AccessApi.md#createAccessToken) | **POST** /access/token | Creates a token for accessing the REST API via username/password | +| *AccessApi* | [**CreateAccessTokenFromTicket**](Docs/AccessApi.md#createAccessTokenFromTicket) | **POST** /access/kerberos | Creates a token for accessing the REST API via Kerberos ticket exchange / SPNEGO negotiation | +| *AccessApi* | [**CreateDownloadToken**](Docs/AccessApi.md#createDownloadToken) | **POST** /access/download-token | Creates a single use access token for downloading FlowFile content. | +| *AccessApi* | [**CreateUiExtensionToken**](Docs/AccessApi.md#createUiExtensionToken) | **POST** /access/ui-extension-token | Creates a single use access token for accessing a NiFi UI extension. | +| *AccessApi* | [**GetAccessStatus**](Docs/AccessApi.md#getAccessStatus) | **GET** /access | Gets the status the client's access | +| *AccessApi* | [**GetLoginConfig**](Docs/AccessApi.md#getLoginConfig) | **GET** /access/config | Retrieves the access configuration for this NiFi | +| *ConnectionsApi* | [**DeleteConnection**](Docs/ConnectionsApi.md#deleteConnection) | **DELETE** /connections/{id} | Deletes a connection | +| *ConnectionsApi* | [**GetConnection**](Docs/ConnectionsApi.md#getConnection) | **GET** /connections/{id} | Gets a connection | +| *ConnectionsApi* | [**UpdateConnection**](Docs/ConnectionsApi.md#updateConnection) | **PUT** /connections/{id} | Updates a connection | +| *ControllerApi* | [**CreateBulletin**](Docs/ControllerApi.md#createBulletin) | **POST** /controller/bulletin | Creates a new bulletin | +| *ControllerApi* | [**CreateControllerService**](Docs/ControllerApi.md#createControllerService) | **POST** /controller/controller-services | Creates a new controller service | +| *ControllerApi* | [**CreateReportingTask**](Docs/ControllerApi.md#createReportingTask) | **POST** /controller/reporting-tasks | Creates a new reporting task | +| *ControllerApi* | [**DeleteHistory**](Docs/ControllerApi.md#deleteHistory) | **DELETE** /controller/history | Purges history | +| *ControllerApi* | [**DeleteNode**](Docs/ControllerApi.md#deleteNode) | **DELETE** /controller/cluster/nodes/{id} | Removes a node from the cluster | +| *ControllerApi* | [**GetCluster**](Docs/ControllerApi.md#getCluster) | **GET** /controller/cluster | Gets the contents of the cluster | +| *ControllerApi* | [**GetControllerConfig**](Docs/ControllerApi.md#getControllerConfig) | **GET** /controller/config | Retrieves the configuration for this NiFi Controller | +| *ControllerApi* | [**GetNode**](Docs/ControllerApi.md#getNode) | **GET** /controller/cluster/nodes/{id} | Gets a node in the cluster | +| *ControllerApi* | [**UpdateControllerConfig**](Docs/ControllerApi.md#updateControllerConfig) | **PUT** /controller/config | Retrieves the configuration for this NiFi | +| *ControllerApi* | [**UpdateNode**](Docs/ControllerApi.md#updateNode) | **PUT** /controller/cluster/nodes/{id} | Updates a node in the cluster | +| *ControllerServicesApi* | [**ClearState**](Docs/ControllerServicesApi.md#clearState) | **POST** /controller-services/{id}/state/clear-requests | Clears the state for a controller service | +| *ControllerServicesApi* | [**GetControllerService**](Docs/ControllerServicesApi.md#getControllerService) | **GET** /controller-services/{id} | Gets a controller service | +| *ControllerServicesApi* | [**GetControllerServiceReferences**](Docs/ControllerServicesApi.md#getControllerServiceReferences) | **GET** /controller-services/{id}/references | Gets a controller service | +| *ControllerServicesApi* | [**GetPropertyDescriptor**](Docs/ControllerServicesApi.md#getPropertyDescriptor) | **GET** /controller-services/{id}/descriptors | Gets a controller service property descriptor | +| *ControllerServicesApi* | [**GetState**](Docs/ControllerServicesApi.md#getState) | **GET** /controller-services/{id}/state | Gets the state for a controller service | +| *ControllerServicesApi* | [**RemoveControllerService**](Docs/ControllerServicesApi.md#removeControllerService) | **DELETE** /controller-services/{id} | Deletes a controller service | +| *ControllerServicesApi* | [**UpdateControllerService**](Docs/ControllerServicesApi.md#updateControllerService) | **PUT** /controller-services/{id} | Updates a controller service | +| *ControllerServicesApi* | [**UpdateControllerServiceReferences**](Docs/ControllerServicesApi.md#updateControllerServiceReferences) | **PUT** /controller-services/{id}/references | Updates a controller services references | +| *CountersApi* | [**GetCounters**](Docs/CountersApi.md#getCounters) | **GET** /counters | Gets the current counters for this NiFi | +| *CountersApi* | [**UpdateCounter**](Docs/CountersApi.md#updateCounter) | **PUT** /counters/{id} | Updates the specified counter. This will reset the counter value to 0 | +| *DataTransferApi* | [**CommitInputPortTransaction**](Docs/DataTransferApi.md#commitInputPortTransaction) | **DELETE** /data-transfer/input-ports/{portId}/transactions/{transactionId} | Commit or cancel the specified transaction | +| *DataTransferApi* | [**CommitOutputPortTransaction**](Docs/DataTransferApi.md#commitOutputPortTransaction) | **DELETE** /data-transfer/output-ports/{portId}/transactions/{transactionId} | Commit or cancel the specified transaction | +| *DataTransferApi* | [**CreatePortTransaction**](Docs/DataTransferApi.md#createPortTransaction) | **POST** /data-transfer/{portType}/{portId}/transactions | Create a transaction to the specified output port or input port | +| *DataTransferApi* | [**ExtendInputPortTransactionTTL**](Docs/DataTransferApi.md#extendInputPortTransactionTTL) | **PUT** /data-transfer/input-ports/{portId}/transactions/{transactionId} | Extend transaction TTL | +| *DataTransferApi* | [**ExtendOutputPortTransactionTTL**](Docs/DataTransferApi.md#extendOutputPortTransactionTTL) | **PUT** /data-transfer/output-ports/{portId}/transactions/{transactionId} | Extend transaction TTL | +| *DataTransferApi* | [**ReceiveFlowFiles**](Docs/DataTransferApi.md#receiveFlowFiles) | **POST** /data-transfer/input-ports/{portId}/transactions/{transactionId}/flow-files | Transfer flow files to the input port | +| *DataTransferApi* | [**TransferFlowFiles**](Docs/DataTransferApi.md#transferFlowFiles) | **GET** /data-transfer/output-ports/{portId}/transactions/{transactionId}/flow-files | Transfer flow files from the output port | +| *FlowApi* | [**GenerateClientId**](Docs/FlowApi.md#generateClientId) | **GET** /flow/client-id | Generates a client id. | +| *FlowApi* | [**GetAboutInfo**](Docs/FlowApi.md#getAboutInfo) | **GET** /flow/about | Retrieves details about this NiFi to put in the About dialog | +| *FlowApi* | [**GetAction**](Docs/FlowApi.md#getAction) | **GET** /flow/history/{id} | Gets an action | +| *FlowApi* | [**GetBanners**](Docs/FlowApi.md#getBanners) | **GET** /flow/banners | Retrieves the banners for this NiFi | +| *FlowApi* | [**GetBulletinBoard**](Docs/FlowApi.md#getBulletinBoard) | **GET** /flow/bulletin-board | Gets current bulletins | +| *FlowApi* | [**GetBulletins**](Docs/FlowApi.md#getBulletins) | **GET** /flow/controller/bulletins | Retrieves Controller level bulletins | +| *FlowApi* | [**GetClusterSummary**](Docs/FlowApi.md#getClusterSummary) | **GET** /flow/cluster/summary | The cluster summary for this NiFi | +| *FlowApi* | [**GetComponentHistory**](Docs/FlowApi.md#getComponentHistory) | **GET** /flow/history/components/{componentId} | Gets configuration history for a component | +| *FlowApi* | [**GetConnectionStatus**](Docs/FlowApi.md#getConnectionStatus) | **GET** /flow/connections/{id}/status | Gets status for a connection | +| *FlowApi* | [**GetConnectionStatusHistory**](Docs/FlowApi.md#getConnectionStatusHistory) | **GET** /flow/connections/{id}/status/history | Gets the status history for a connection | +| *FlowApi* | [**GetControllerServiceTypes**](Docs/FlowApi.md#getControllerServiceTypes) | **GET** /flow/controller-service-types | Retrieves the types of controller services that this NiFi supports | +| *FlowApi* | [**GetControllerServicesFromController**](Docs/FlowApi.md#getControllerServicesFromController) | **GET** /flow/controller/controller-services | Gets all controller services | +| *FlowApi* | [**GetControllerServicesFromGroup**](Docs/FlowApi.md#getControllerServicesFromGroup) | **GET** /flow/process-groups/{id}/controller-services | Gets all controller services | +| *FlowApi* | [**GetControllerStatus**](Docs/FlowApi.md#getControllerStatus) | **GET** /flow/status | Gets the current status of this NiFi | +| *FlowApi* | [**GetCurrentUser**](Docs/FlowApi.md#getCurrentUser) | **GET** /flow/current-user | Retrieves the user identity of the user making the request | +| *FlowApi* | [**GetFlow**](Docs/FlowApi.md#getFlow) | **GET** /flow/process-groups/{id} | Gets a process group | +| *FlowApi* | [**GetFlowConfig**](Docs/FlowApi.md#getFlowConfig) | **GET** /flow/config | Retrieves the configuration for this NiFi flow | +| *FlowApi* | [**GetInputPortStatus**](Docs/FlowApi.md#getInputPortStatus) | **GET** /flow/input-ports/{id}/status | Gets status for an input port | +| *FlowApi* | [**GetOutputPortStatus**](Docs/FlowApi.md#getOutputPortStatus) | **GET** /flow/output-ports/{id}/status | Gets status for an output port | +| *FlowApi* | [**GetPrioritizers**](Docs/FlowApi.md#getPrioritizers) | **GET** /flow/prioritizers | Retrieves the types of prioritizers that this NiFi supports | +| *FlowApi* | [**GetProcessGroupStatus**](Docs/FlowApi.md#getProcessGroupStatus) | **GET** /flow/process-groups/{id}/status | Gets the status for a process group | +| *FlowApi* | [**GetProcessGroupStatusHistory**](Docs/FlowApi.md#getProcessGroupStatusHistory) | **GET** /flow/process-groups/{id}/status/history | Gets status history for a remote process group | +| *FlowApi* | [**GetProcessorStatus**](Docs/FlowApi.md#getProcessorStatus) | **GET** /flow/processors/{id}/status | Gets status for a processor | +| *FlowApi* | [**GetProcessorStatusHistory**](Docs/FlowApi.md#getProcessorStatusHistory) | **GET** /flow/processors/{id}/status/history | Gets status history for a processor | +| *FlowApi* | [**GetProcessorTypes**](Docs/FlowApi.md#getProcessorTypes) | **GET** /flow/processor-types | Retrieves the types of processors that this NiFi supports | +| *FlowApi* | [**GetRemoteProcessGroupStatus**](Docs/FlowApi.md#getRemoteProcessGroupStatus) | **GET** /flow/remote-process-groups/{id}/status | Gets status for a remote process group | +| *FlowApi* | [**GetRemoteProcessGroupStatusHistory**](Docs/FlowApi.md#getRemoteProcessGroupStatusHistory) | **GET** /flow/remote-process-groups/{id}/status/history | Gets the status history | +| *FlowApi* | [**GetReportingTaskTypes**](Docs/FlowApi.md#getReportingTaskTypes) | **GET** /flow/reporting-task-types | Retrieves the types of reporting tasks that this NiFi supports | +| *FlowApi* | [**GetReportingTasks**](Docs/FlowApi.md#getReportingTasks) | **GET** /flow/reporting-tasks | Gets all reporting tasks | +| *FlowApi* | [**GetTemplates**](Docs/FlowApi.md#getTemplates) | **GET** /flow/templates | Gets all templates | +| *FlowApi* | [**QueryHistory**](Docs/FlowApi.md#queryHistory) | **GET** /flow/history | Gets configuration history | +| *FlowApi* | [**ScheduleComponents**](Docs/FlowApi.md#scheduleComponents) | **PUT** /flow/process-groups/{id} | Schedule or unschedule comopnents in the specified Process Group. | +| *FlowApi* | [**SearchCluster**](Docs/FlowApi.md#searchCluster) | **GET** /flow/cluster/search-results | Searches the cluster for a node with the specified address | +| *FlowApi* | [**SearchFlow**](Docs/FlowApi.md#searchFlow) | **GET** /flow/search-results | Performs a search against this NiFi using the specified search term | +| *FlowfileQueuesApi* | [**CreateDropRequest**](Docs/FlowfileQueuesApi.md#createDropRequest) | **POST** /flowfile-queues/{id}/drop-requests | Creates a request to drop the contents of the queue in this connection. | +| *FlowfileQueuesApi* | [**CreateFlowFileListing**](Docs/FlowfileQueuesApi.md#createFlowFileListing) | **POST** /flowfile-queues/{id}/listing-requests | Lists the contents of the queue in this connection. | +| *FlowfileQueuesApi* | [**DeleteListingRequest**](Docs/FlowfileQueuesApi.md#deleteListingRequest) | **DELETE** /flowfile-queues/{id}/listing-requests/{listing-request-id} | Cancels and/or removes a request to list the contents of this connection. | +| *FlowfileQueuesApi* | [**DownloadFlowFileContent**](Docs/FlowfileQueuesApi.md#downloadFlowFileContent) | **GET** /flowfile-queues/{id}/flowfiles/{flowfile-uuid}/content | Gets the content for a FlowFile in a Connection. | +| *FlowfileQueuesApi* | [**GetDropRequest**](Docs/FlowfileQueuesApi.md#getDropRequest) | **GET** /flowfile-queues/{id}/drop-requests/{drop-request-id} | Gets the current status of a drop request for the specified connection. | +| *FlowfileQueuesApi* | [**GetFlowFile**](Docs/FlowfileQueuesApi.md#getFlowFile) | **GET** /flowfile-queues/{id}/flowfiles/{flowfile-uuid} | Gets a FlowFile from a Connection. | +| *FlowfileQueuesApi* | [**GetListingRequest**](Docs/FlowfileQueuesApi.md#getListingRequest) | **GET** /flowfile-queues/{id}/listing-requests/{listing-request-id} | Gets the current status of a listing request for the specified connection. | +| *FlowfileQueuesApi* | [**RemoveDropRequest**](Docs/FlowfileQueuesApi.md#removeDropRequest) | **DELETE** /flowfile-queues/{id}/drop-requests/{drop-request-id} | Cancels and/or removes a request to drop the contents of this connection. | +| *FunnelApi* | [**GetFunnel**](Docs/FunnelApi.md#getFunnel) | **GET** /funnels/{id} | Gets a funnel | +| *FunnelApi* | [**RemoveFunnel**](Docs/FunnelApi.md#removeFunnel) | **DELETE** /funnels/{id} | Deletes a funnel | +| *FunnelApi* | [**UpdateFunnel**](Docs/FunnelApi.md#updateFunnel) | **PUT** /funnels/{id} | Updates a funnel | +| *InputPortsApi* | [**GetInputPort**](Docs/InputPortsApi.md#getInputPort) | **GET** /input-ports/{id} | Gets an input port | +| *InputPortsApi* | [**RemoveInputPort**](Docs/InputPortsApi.md#removeInputPort) | **DELETE** /input-ports/{id} | Deletes an input port | +| *InputPortsApi* | [**UpdateInputPort**](Docs/InputPortsApi.md#updateInputPort) | **PUT** /input-ports/{id} | Updates an input port | +| *LabelsApi* | [**GetLabel**](Docs/LabelsApi.md#getLabel) | **GET** /labels/{id} | Gets a label | +| *LabelsApi* | [**RemoveLabel**](Docs/LabelsApi.md#removeLabel) | **DELETE** /labels/{id} | Deletes a label | +| *LabelsApi* | [**UpdateLabel**](Docs/LabelsApi.md#updateLabel) | **PUT** /labels/{id} | Updates a label | +| *OutputPortsApi* | [**GetOutputPort**](Docs/OutputPortsApi.md#getOutputPort) | **GET** /output-ports/{id} | Gets an output port | +| *OutputPortsApi* | [**RemoveOutputPort**](Docs/OutputPortsApi.md#removeOutputPort) | **DELETE** /output-ports/{id} | Deletes an output port | +| *OutputPortsApi* | [**UpdateOutputPort**](Docs/OutputPortsApi.md#updateOutputPort) | **PUT** /output-ports/{id} | Updates an output port | +| *PoliciesApi* | [**RreateAccessPolicy**](Docs/PoliciesApi.md#createAccessPolicy) | **POST** /policies | Creates an access policy | +| *PoliciesApi* | [**GetAccessPolicy**](Docs/PoliciesApi.md#getAccessPolicy) | **GET** /policies/{id} | Gets an access policy | +| *PoliciesApi* | [**GetAccessPolicyForResource**](Docs/PoliciesApi.md#getAccessPolicyForResource) | **GET** /policies/{action}/{resource} | Gets an access policy for the specified action and resource | +| *PoliciesApi* | [**RemoveAccessPolicy**](Docs/PoliciesApi.md#removeAccessPolicy) | **DELETE** /policies/{id} | Deletes an access policy | +| *PoliciesApi* | [**UpdateAccessPolicy**](Docs/PoliciesApi.md#updateAccessPolicy) | **PUT** /policies/{id} | Updates a access policy | +| *ProcessGroupsApi* | [**CopySnippet**](Docs/ProcessGroupsApi.md#copySnippet) | **POST** /process-groups/{id}/snippet-instance | Copies a snippet and discards it. | +| *ProcessGroupsApi* | [**CreateConnection**](Docs/ProcessGroupsApi.md#createConnection) | **POST** /process-groups/{id}/connections | Creates a connection | +| *ProcessGroupsApi* | [**CreateControllerService**](Docs/ProcessGroupsApi.md#createControllerService) | **POST** /process-groups/{id}/controller-services | Creates a new controller service | +| *ProcessGroupsApi* | [**CreateFunnel**](Docs/ProcessGroupsApi.md#createFunnel) | **POST** /process-groups/{id}/funnels | Creates a funnel | +| *ProcessGroupsApi* | [**CreateInputPort**](Docs/ProcessGroupsApi.md#createInputPort) | **POST** /process-groups/{id}/input-ports | Creates an input port | +| *ProcessGroupsApi* | [**CreateLabel**](Docs/ProcessGroupsApi.md#createLabel) | **POST** /process-groups/{id}/labels | Creates a label | +| *ProcessGroupsApi* | [**CreateOutputPort**](Docs/ProcessGroupsApi.md#createOutputPort) | **POST** /process-groups/{id}/output-ports | Creates an output port | +| *ProcessGroupsApi* | [**CreateProcessGroup**](Docs/ProcessGroupsApi.md#createProcessGroup) | **POST** /process-groups/{id}/process-groups | Creates a process group | +| *ProcessGroupsApi* | [**CreateProcessor**](Docs/ProcessGroupsApi.md#createProcessor) | **POST** /process-groups/{id}/processors | Creates a new processor | +| *ProcessGroupsApi* | [**CreateRemoteProcessGroup**](Docs/ProcessGroupsApi.md#createRemoteProcessGroup) | **POST** /process-groups/{id}/remote-process-groups | Creates a new process group | +| *ProcessGroupsApi* | [**CreateTemplate**](Docs/ProcessGroupsApi.md#createTemplate) | **POST** /process-groups/{id}/templates | Creates a template and discards the specified snippet. | +| *ProcessGroupsApi* | [**GetConnections**](Docs/ProcessGroupsApi.md#getConnections) | **GET** /process-groups/{id}/connections | Gets all connections | +| *ProcessGroupsApi* | [**GetFunnels**](Docs/ProcessGroupsApi.md#getFunnels) | **GET** /process-groups/{id}/funnels | Gets all funnels | +| *ProcessGroupsApi* | [**GetInputPorts**](Docs/ProcessGroupsApi.md#getInputPorts) | **GET** /process-groups/{id}/input-ports | Gets all input ports | +| *ProcessGroupsApi* | [**GetLabels**](Docs/ProcessGroupsApi.md#getLabels) | **GET** /process-groups/{id}/labels | Gets all labels | +| *ProcessGroupsApi* | [**GetOutputPorts**](Docs/ProcessGroupsApi.md#getOutputPorts) | **GET** /process-groups/{id}/output-ports | Gets all output ports | +| *ProcessGroupsApi* | [**GetProcessGroup**](Docs/ProcessGroupsApi.md#getProcessGroup) | **GET** /process-groups/{id} | Gets a process group | +| *ProcessGroupsApi* | [**GetProcessGroups**](Docs/ProcessGroupsApi.md#getProcessGroups) | **GET** /process-groups/{id}/process-groups | Gets all process groups | +| *ProcessGroupsApi* | [**GetProcessors**](Docs/ProcessGroupsApi.md#getProcessors) | **GET** /process-groups/{id}/processors | Gets all processors | +| *ProcessGroupsApi* | [**GetRemoteProcessGroups**](Docs/ProcessGroupsApi.md#getRemoteProcessGroups) | **GET** /process-groups/{id}/remote-process-groups | Gets all remote process groups | +| *ProcessGroupsApi* | [**ImportTemplate**](Docs/ProcessGroupsApi.md#importTemplate) | **POST** /process-groups/{id}/templates/import | Imports a template | +| *ProcessGroupsApi* | [**InstantiateTemplate**](Docs/ProcessGroupsApi.md#instantiateTemplate) | **POST** /process-groups/{id}/template-instance | Instantiates a template | +| *ProcessGroupsApi* | [**RemoveProcessGroup**](Docs/ProcessGroupsApi.md#removeProcessGroup) | **DELETE** /process-groups/{id} | Deletes a process group | +| *ProcessGroupsApi* | [**UpdateProcessGroup**](Docs/ProcessGroupsApi.md#updateProcessGroup) | **PUT** /process-groups/{id} | Updates a process group | +| *ProcessGroupsApi* | [**UploadTemplate**](Docs/ProcessGroupsApi.md#uploadTemplate) | **POST** /process-groups/{id}/templates/upload | Uploads a template | +| *ProcessorsApi* | [**ClearState**](Docs/ProcessorsApi.md#clearState) | **POST** /processors/{id}/state/clear-requests | Clears the state for a processor | +| *ProcessorsApi* | [**DeleteProcessor**](Docs/ProcessorsApi.md#deleteProcessor) | **DELETE** /processors/{id} | Deletes a processor | +| *ProcessorsApi* | [**GetProcessor**](Docs/ProcessorsApi.md#getProcessor) | **GET** /processors/{id} | Gets a processor | +| *ProcessorsApi* | [**GetPropertyDescriptor**](Docs/ProcessorsApi.md#getPropertyDescriptor) | **GET** /processors/{id}/descriptors | Gets the descriptor for a processor property | +| *ProcessorsApi* | [**GetState**](Docs/ProcessorsApi.md#getState) | **GET** /processors/{id}/state | Gets the state for a processor | +| *ProcessorsApi* | [**UpdateProcessor**](Docs/ProcessorsApi.md#updateProcessor) | **PUT** /processors/{id} | Updates a processor | +| *ProvenanceApi* | [**DeleteLineage**](Docs/ProvenanceApi.md#deleteLineage) | **DELETE** /provenance/lineage/{id} | Deletes a lineage query | +| *ProvenanceApi* | [**DeleteProvenance**](Docs/ProvenanceApi.md#deleteProvenance) | **DELETE** /provenance/{id} | Deletes a provenance query | +| *ProvenanceApi* | [**GetLineage**](Docs/ProvenanceApi.md#getLineage) | **GET** /provenance/lineage/{id} | Gets a lineage query | +| *ProvenanceApi* | [**GetProvenance**](Docs/ProvenanceApi.md#getProvenance) | **GET** /provenance/{id} | Gets a provenance query | +| *ProvenanceApi* | [**GetSearchOptions**](Docs/ProvenanceApi.md#getSearchOptions) | **GET** /provenance/search-options | Gets the searchable attributes for provenance events | +| *ProvenanceApi* | [**SubmitLineageRequest**](Docs/ProvenanceApi.md#submitLineageRequest) | **POST** /provenance/lineage | Submits a lineage query | +| *ProvenanceApi* | [**SubmitProvenanceRequest**](Docs/ProvenanceApi.md#submitProvenanceRequest) | **POST** /provenance | Submits a provenance query | +| *ProvenanceEventsApi* | [**GetInputContent**](Docs/ProvenanceEventsApi.md#getInputContent) | **GET** /provenance-events/{id}/content/input | Gets the input content for a provenance event | +| *ProvenanceEventsApi* | [**GetOutputContent**](Docs/ProvenanceEventsApi.md#getOutputContent) | **GET** /provenance-events/{id}/content/output | Gets the output content for a provenance event | +| *ProvenanceEventsApi* | [**GetProvenanceEvent**](Docs/ProvenanceEventsApi.md#getProvenanceEvent) | **GET** /provenance-events/{id} | Gets a provenance event | +| *ProvenanceEventsApi* | [**SubmitReplay**](Docs/ProvenanceEventsApi.md#submitReplay) | **POST** /provenance-events/replays | Replays content from a provenance event | +| *RemoteProcessGroupsApi* | [**GetRemoteProcessGroup**](Docs/RemoteProcessGroupsApi.md#getRemoteProcessGroup) | **GET** /remote-process-groups/{id} | Gets a remote process group | +| *RemoteProcessGroupsApi* | [**RemoveRemoteProcessGroup**](Docs/RemoteProcessGroupsApi.md#removeRemoteProcessGroup) | **DELETE** /remote-process-groups/{id} | Deletes a remote process group | +| *RemoteProcessGroupsApi* | [**UpdateRemoteProcessGroup**](Docs/RemoteProcessGroupsApi.md#updateRemoteProcessGroup) | **PUT** /remote-process-groups/{id} | Updates a remote process group | +| *RemoteProcessGroupsApi* | [**UpdateRemoteProcessGroupInputPort**](Docs/RemoteProcessGroupsApi.md#updateRemoteProcessGroupInputPort) | **PUT** /remote-process-groups/{id}/input-ports/{port-id} | Updates a remote port | +| *RemoteProcessGroupsApi* | [**UpdateRemoteProcessGroupOutputPort**](Docs/RemoteProcessGroupsApi.md#updateRemoteProcessGroupOutputPort) | **PUT** /remote-process-groups/{id}/output-ports/{port-id} | Updates a remote port | +| *ReportingTasksApi* | [**ClearState**](Docs/ReportingTasksApi.md#clearState) | **POST** /reporting-tasks/{id}/state/clear-requests | Clears the state for a reporting task | +| *ReportingTasksApi* | [**GetPropertyDescriptor**](Docs/ReportingTasksApi.md#getPropertyDescriptor) | **GET** /reporting-tasks/{id}/descriptors | Gets a reporting task property descriptor | +| *ReportingTasksApi* | [**GetReportingTask**](Docs/ReportingTasksApi.md#getReportingTask) | **GET** /reporting-tasks/{id} | Gets a reporting task | +| *ReportingTasksApi* | [**GetState**](Docs/ReportingTasksApi.md#getState) | **GET** /reporting-tasks/{id}/state | Gets the state for a reporting task | +| *ReportingTasksApi* | [**RemoveReportingTask**](Docs/ReportingTasksApi.md#removeReportingTask) | **DELETE** /reporting-tasks/{id} | Deletes a reporting task | +| *ReportingTasksApi* | [**UpdateReportingTask**](Docs/ReportingTasksApi.md#updateReportingTask) | **PUT** /reporting-tasks/{id} | Updates a reporting task | +| *ResourcesApi* | [**GetResources**](Docs/ResourcesApi.md#getResources) | **GET** /resources | Gets the available resources that support access/authorization policies | +| *SiteToSiteApi* | [**GetPeers**](Docs/SiteToSiteApi.md#getPeers) | **GET** /site-to-site/peers | Returns the available Peers and its status of this NiFi | +| *SiteToSiteApi* | [**GetSiteToSiteDetails**](Docs/SiteToSiteApi.md#getSiteToSiteDetails) | **GET** /site-to-site | Returns the details about this NiFi necessary to communicate via site to site | +| *SnippetsApi* | [**CreateSnippet**](Docs/SnippetsApi.md#createSnippet) | **POST** /snippets | Creates a snippet. The snippet will be automatically discarded if not used in a subsequent request after 1 minute. | +| *SnippetsApi* | [**DeleteSnippet**](Docs/SnippetsApi.md#deleteSnippet) | **DELETE** /snippets/{id} | Deletes the components in a snippet and discards the snippet | +| *SnippetsApi* | [**UpdateSnippet**](Docs/SnippetsApi.md#updateSnippet) | **PUT** /snippets/{id} | Move's the components in this Snippet into a new Process Group and discards the snippet | +| *SystemDiagnosticsApi* | [**GetSystemDiagnostics**](Docs/SystemDiagnosticsApi.md#getSystemDiagnostics) | **GET** /system-diagnostics | Gets the diagnostics for the system NiFi is running on | +| *TemplatesApi* | [**ExportTemplate**](Docs/TemplatesApi.md#exportTemplate) | **GET** /templates/{id}/download | Exports a template | +| *TemplatesApi* | [**RemoveTemplate**](Docs/TemplatesApi.md#removeTemplate) | **DELETE** /templates/{id} | Deletes a template | +| *TenantsApi* | [**CreateUser**](Docs/TenantsApi.md#createUser) | **POST** /tenants/users | Creates a user | +| *TenantsApi* | [**CreateUserGroup**](Docs/TenantsApi.md#createUserGroup) | **POST** /tenants/user-groups | Creates a user group | +| *TenantsApi* | [**GetUser**](Docs/TenantsApi.md#getUser) | **GET** /tenants/users/{id} | Gets a user | +| *TenantsApi* | [**GetUserGroup**](Docs/TenantsApi.md#getUserGroup) | **GET** /tenants/user-groups/{id} | Gets a user group | +| *TenantsApi* | [**GetUserGroups**](Docs/TenantsApi.md#getUserGroups) | **GET** /tenants/user-groups | Gets all user groups | +| *TenantsApi* | [**GetUsers**](Docs/TenantsApi.md#getUsers) | **GET** /tenants/users | Gets all users | +| *TenantsApi* | [**RemoveUser**](Docs/TenantsApi.md#removeUser) | **DELETE** /tenants/users/{id} | Deletes a user | +| *TenantsApi* | [**RemoveUserGroup**](Docs/TenantsApi.md#removeUserGroup) | **DELETE** /tenants/user-groups/{id} | Deletes a user group | +| *TenantsApi* | [**SearchCluster**](Docs/TenantsApi.md#searchCluster) | **GET** /tenants/search-results | Searches for a tenant with the specified identity | +| *TenantsApi* | [**UpdateUser**](Docs/TenantsApi.md#updateUser) | **PUT** /tenants/users/{id} | Updates a user | +| *TenantsApi* | [**UpdateUserGroup**](Docs/TenantsApi.md#updateUserGroup) | **PUT** /tenants/user-groups/{id} | Updates a user group | + +## Documentation for Models + +- [AboutDTO](Docs/AboutDTO.md) +- [AboutEntity](Docs/AboutEntity.md) +- [AccessConfigurationDTO](Docs/AccessConfigurationDTO.md) +- [AccessConfigurationEntity](Docs/AccessConfigurationEntity.md) +- [AccessPolicyDTO](Docs/AccessPolicyDTO.md) +- [AccessPolicyEntity](Docs/AccessPolicyEntity.md) +- [AccessPolicySummaryDTO](Docs/AccessPolicySummaryDTO.md) +- [AccessPolicySummaryEntity](Docs/AccessPolicySummaryEntity.md) +- [AccessStatusDTO](Docs/AccessStatusDTO.md) +- [AccessStatusEntity](Docs/AccessStatusEntity.md) +- [ActionDTO](Docs/ActionDTO.md) +- [ActionDetailsDTO](Docs/ActionDetailsDTO.md) +- [ActionEntity](Docs/ActionEntity.md) +- [AllowableValueDTO](Docs/AllowableValueDTO.md) +- [AllowableValueEntity](Docs/AllowableValueEntity.md) +- [AttributeDTO](Docs/AttributeDTO.md) +- [BannerDTO](Docs/BannerDTO.md) +- [BannerEntity](Docs/BannerEntity.md) +- [BatchSettingsDTO](Docs/BatchSettingsDTO.md) +- [BulletinBoardDTO](Docs/BulletinBoardDTO.md) +- [BulletinBoardEntity](Docs/BulletinBoardEntity.md) +- [BulletinDTO](Docs/BulletinDTO.md) +- [BulletinEntity](Docs/BulletinEntity.md) +- [BundleDTO](Docs/BundleDTO.md) +- [ClusteSummaryEntity](Docs/ClusteSummaryEntity.md) +- [ClusterDTO](Docs/ClusterDTO.md) +- [ClusterEntity](Docs/ClusterEntity.md) +- [ClusterSearchResultsEntity](Docs/ClusterSearchResultsEntity.md) +- [ClusterSummaryDTO](Docs/ClusterSummaryDTO.md) +- [ComponentDetailsDTO](Docs/ComponentDetailsDTO.md) +- [ComponentHistoryDTO](Docs/ComponentHistoryDTO.md) +- [ComponentHistoryEntity](Docs/ComponentHistoryEntity.md) +- [ComponentReferenceDTO](Docs/ComponentReferenceDTO.md) +- [ComponentReferenceEntity](Docs/ComponentReferenceEntity.md) +- [ComponentSearchResultDTO](Docs/ComponentSearchResultDTO.md) +- [ComponentStateDTO](Docs/ComponentStateDTO.md) +- [ConnectableDTO](Docs/ConnectableDTO.md) +- [ConnectionDTO](Docs/ConnectionDTO.md) +- [ConnectionEntity](Docs/ConnectionEntity.md) +- [ConnectionStatusDTO](Docs/ConnectionStatusDTO.md) +- [ConnectionStatusEntity](Docs/ConnectionStatusEntity.md) +- [ConnectionStatusSnapshotDTO](Docs/ConnectionStatusSnapshotDTO.md) +- [ConnectionStatusSnapshotEntity](Docs/ConnectionStatusSnapshotEntity.md) +- [ConnectionsEntity](Docs/ConnectionsEntity.md) +- [ControllerBulletinsEntity](Docs/ControllerBulletinsEntity.md) +- [ControllerConfigurationDTO](Docs/ControllerConfigurationDTO.md) +- [ControllerConfigurationEntity](Docs/ControllerConfigurationEntity.md) +- [ControllerDTO](Docs/ControllerDTO.md) +- [ControllerEntity](Docs/ControllerEntity.md) +- [ControllerServiceApiDTO](Docs/ControllerServiceApiDTO.md) +- [ControllerServiceDTO](Docs/ControllerServiceDTO.md) +- [ControllerServiceEntity](Docs/ControllerServiceEntity.md) +- [ControllerServiceReferencingComponentDTO](Docs/ControllerServiceReferencingComponentDTO.md) +- [ControllerServiceReferencingComponentEntity](Docs/ControllerServiceReferencingComponentEntity.md) +- [ControllerServiceReferencingComponentsEntity](Docs/ControllerServiceReferencingComponentsEntity.md) +- [ControllerServiceTypesEntity](Docs/ControllerServiceTypesEntity.md) +- [ControllerServicesEntity](Docs/ControllerServicesEntity.md) +- [ControllerStatusDTO](Docs/ControllerStatusDTO.md) +- [ControllerStatusEntity](Docs/ControllerStatusEntity.md) +- [CopySnippetRequestEntity](Docs/CopySnippetRequestEntity.md) +- [CounterDTO](Docs/CounterDTO.md) +- [CounterEntity](Docs/CounterEntity.md) +- [CountersDTO](Docs/CountersDTO.md) +- [CountersEntity](Docs/CountersEntity.md) +- [CountersSnapshotDTO](Docs/CountersSnapshotDTO.md) +- [CreateTemplateRequestEntity](Docs/CreateTemplateRequestEntity.md) +- [CurrentUserEntity](Docs/CurrentUserEntity.md) +- [DimensionsDTO](Docs/DimensionsDTO.md) +- [DocumentedTypeDTO](Docs/DocumentedTypeDTO.md) +- [DropRequestDTO](Docs/DropRequestDTO.md) +- [DropRequestEntity](Docs/DropRequestEntity.md) +- [FlowBreadcrumbDTO](Docs/FlowBreadcrumbDTO.md) +- [FlowBreadcrumbEntity](Docs/FlowBreadcrumbEntity.md) +- [FlowConfigurationDTO](Docs/FlowConfigurationDTO.md) +- [FlowConfigurationEntity](Docs/FlowConfigurationEntity.md) +- [FlowDTO](Docs/FlowDTO.md) +- [FlowEntity](Docs/FlowEntity.md) +- [FlowFileSummaryDTO](Docs/FlowFileSummaryDTO.md) +- [FlowSnippetDTO](Docs/FlowSnippetDTO.md) +- [FlowSnippetEntity](Docs/FlowSnippetEntity.md) +- [FunnelDTO](Docs/FunnelDTO.md) +- [FunnelEntity](Docs/FunnelEntity.md) +- [FunnelsEntity](Docs/FunnelsEntity.md) +- [GarbageCollectionDTO](Docs/GarbageCollectionDTO.md) +- [HistoryDTO](Docs/HistoryDTO.md) +- [HistoryEntity](Docs/HistoryEntity.md) +- [InputPortsEntity](Docs/InputPortsEntity.md) +- [InstantiateTemplateRequestEntity](Docs/InstantiateTemplateRequestEntity.md) +- [LabelDTO](Docs/LabelDTO.md) +- [LabelEntity](Docs/LabelEntity.md) +- [LabelsEntity](Docs/LabelsEntity.md) +- [LineageDTO](Docs/LineageDTO.md) +- [LineageEntity](Docs/LineageEntity.md) +- [LineageRequestDTO](Docs/LineageRequestDTO.md) +- [LineageResultsDTO](Docs/LineageResultsDTO.md) +- [ListingRequestDTO](Docs/ListingRequestDTO.md) +- [ListingRequestEntity](Docs/ListingRequestEntity.md) +- [NodeConnectionStatusSnapshotDTO](Docs/NodeConnectionStatusSnapshotDTO.md) +- [NodeCountersSnapshotDTO](Docs/NodeCountersSnapshotDTO.md) +- [NodeDTO](Docs/NodeDTO.md) +- [NodeEntity](Docs/NodeEntity.md) +- [NodeEventDTO](Docs/NodeEventDTO.md) +- [NodePortStatusSnapshotDTO](Docs/NodePortStatusSnapshotDTO.md) +- [NodeProcessGroupStatusSnapshotDTO](Docs/NodeProcessGroupStatusSnapshotDTO.md) +- [NodeProcessorStatusSnapshotDTO](Docs/NodeProcessorStatusSnapshotDTO.md) +- [NodeRemoteProcessGroupStatusSnapshotDTO](Docs/NodeRemoteProcessGroupStatusSnapshotDTO.md) +- [NodeSearchResultDTO](Docs/NodeSearchResultDTO.md) +- [NodeStatusSnapshotsDTO](Docs/NodeStatusSnapshotsDTO.md) +- [NodeSystemDiagnosticsSnapshotDTO](Docs/NodeSystemDiagnosticsSnapshotDTO.md) +- [OutputPortsEntity](Docs/OutputPortsEntity.md) +- [PeerDTO](Docs/PeerDTO.md) +- [PeersEntity](Docs/PeersEntity.md) +- [PermissionsDTO](Docs/PermissionsDTO.md) +- [PortDTO](Docs/PortDTO.md) +- [PortEntity](Docs/PortEntity.md) +- [PortStatusDTO](Docs/PortStatusDTO.md) +- [PortStatusEntity](Docs/PortStatusEntity.md) +- [PortStatusSnapshotDTO](Docs/PortStatusSnapshotDTO.md) +- [PortStatusSnapshotEntity](Docs/PortStatusSnapshotEntity.md) +- [PositionDTO](Docs/PositionDTO.md) +- [PreviousValueDTO](Docs/PreviousValueDTO.md) +- [PrioritizerTypesEntity](Docs/PrioritizerTypesEntity.md) +- [ProcessGroupDTO](Docs/ProcessGroupDTO.md) +- [ProcessGroupEntity](Docs/ProcessGroupEntity.md) +- [ProcessGroupFlowDTO](Docs/ProcessGroupFlowDTO.md) +- [ProcessGroupFlowEntity](Docs/ProcessGroupFlowEntity.md) +- [ProcessGroupStatusDTO](Docs/ProcessGroupStatusDTO.md) +- [ProcessGroupStatusEntity](Docs/ProcessGroupStatusEntity.md) +- [ProcessGroupStatusSnapshotDTO](Docs/ProcessGroupStatusSnapshotDTO.md) +- [ProcessGroupStatusSnapshotEntity](Docs/ProcessGroupStatusSnapshotEntity.md) +- [ProcessorConfigDTO](Docs/ProcessorConfigDTO.md) +- [ProcessorDTO](Docs/ProcessorDTO.md) +- [ProcessorEntity](Docs/ProcessorEntity.md) +- [ProcessorStatusDTO](Docs/ProcessorStatusDTO.md) +- [ProcessorStatusEntity](Docs/ProcessorStatusEntity.md) +- [ProcessorStatusSnapshotDTO](Docs/ProcessorStatusSnapshotDTO.md) +- [ProcessorStatusSnapshotEntity](Docs/ProcessorStatusSnapshotEntity.md) +- [ProcessorTypesEntity](Docs/ProcessorTypesEntity.md) +- [ProcessorsEntity](Docs/ProcessorsEntity.md) +- [PropertyDescriptorDTO](Docs/PropertyDescriptorDTO.md) +- [PropertyDescriptorEntity](Docs/PropertyDescriptorEntity.md) +- [PropertyHistoryDTO](Docs/PropertyHistoryDTO.md) +- [ProvenanceDTO](Docs/ProvenanceDTO.md) +- [ProvenanceEntity](Docs/ProvenanceEntity.md) +- [ProvenanceEventDTO](Docs/ProvenanceEventDTO.md) +- [ProvenanceEventEntity](Docs/ProvenanceEventEntity.md) +- [ProvenanceLinkDTO](Docs/ProvenanceLinkDTO.md) +- [ProvenanceNodeDTO](Docs/ProvenanceNodeDTO.md) +- [ProvenanceOptionsDTO](Docs/ProvenanceOptionsDTO.md) +- [ProvenanceOptionsEntity](Docs/ProvenanceOptionsEntity.md) +- [ProvenanceRequestDTO](Docs/ProvenanceRequestDTO.md) +- [ProvenanceResultsDTO](Docs/ProvenanceResultsDTO.md) +- [ProvenanceSearchableFieldDTO](Docs/ProvenanceSearchableFieldDTO.md) +- [QueueSizeDTO](Docs/QueueSizeDTO.md) +- [RelationshipDTO](Docs/RelationshipDTO.md) +- [RemoteProcessGroupContentsDTO](Docs/RemoteProcessGroupContentsDTO.md) +- [RemoteProcessGroupDTO](Docs/RemoteProcessGroupDTO.md) +- [RemoteProcessGroupEntity](Docs/RemoteProcessGroupEntity.md) +- [RemoteProcessGroupPortDTO](Docs/RemoteProcessGroupPortDTO.md) +- [RemoteProcessGroupPortEntity](Docs/RemoteProcessGroupPortEntity.md) +- [RemoteProcessGroupStatusDTO](Docs/RemoteProcessGroupStatusDTO.md) +- [RemoteProcessGroupStatusSnapshotDTO](Docs/RemoteProcessGroupStatusSnapshotDTO.md) +- [RemoteProcessGroupStatusSnapshotEntity](Docs/RemoteProcessGroupStatusSnapshotEntity.md) +- [RemoteProcessGroupsEntity](Docs/RemoteProcessGroupsEntity.md) +- [ReportingTaskDTO](Docs/ReportingTaskDTO.md) +- [ReportingTaskEntity](Docs/ReportingTaskEntity.md) +- [ReportingTaskTypesEntity](Docs/ReportingTaskTypesEntity.md) +- [ReportingTasksEntity](Docs/ReportingTasksEntity.md) +- [ResourceDTO](Docs/ResourceDTO.md) +- [ResourcesEntity](Docs/ResourcesEntity.md) +- [RevisionDTO](Docs/RevisionDTO.md) +- [ScheduleComponentsEntity](Docs/ScheduleComponentsEntity.md) +- [SearchResultsDTO](Docs/SearchResultsDTO.md) +- [SearchResultsEntity](Docs/SearchResultsEntity.md) +- [SnippetDTO](Docs/SnippetDTO.md) +- [SnippetEntity](Docs/SnippetEntity.md) +- [StateEntryDTO](Docs/StateEntryDTO.md) +- [StateMapDTO](Docs/StateMapDTO.md) +- [StatusDescriptorDTO](Docs/StatusDescriptorDTO.md) +- [StatusHistoryDTO](Docs/StatusHistoryDTO.md) +- [StatusHistoryEntity](Docs/StatusHistoryEntity.md) +- [StatusSnapshotDTO](Docs/StatusSnapshotDTO.md) +- [StorageUsageDTO](Docs/StorageUsageDTO.md) +- [StreamingOutput](Docs/StreamingOutput.md) +- [SubmitReplayRequestEntity](Docs/SubmitReplayRequestEntity.md) +- [SystemDiagnosticsDTO](Docs/SystemDiagnosticsDTO.md) +- [SystemDiagnosticsEntity](Docs/SystemDiagnosticsEntity.md) +- [SystemDiagnosticsSnapshotDTO](Docs/SystemDiagnosticsSnapshotDTO.md) +- [TemplateDTO](Docs/TemplateDTO.md) +- [TemplateEntity](Docs/TemplateEntity.md) +- [TemplatesEntity](Docs/TemplatesEntity.md) +- [TenantDTO](Docs/TenantDTO.md) +- [TenantEntity](Docs/TenantEntity.md) +- [TenantsEntity](Docs/TenantsEntity.md) +- [TransactionResultEntity](Docs/TransactionResultEntity.md) +- [UpdateControllerServiceReferenceRequestEntity](Docs/UpdateControllerServiceReferenceRequestEntity.md) +- [UserDTO](Docs/UserDTO.md) +- [UserEntity](Docs/UserEntity.md) +- [UserGroupDTO](Docs/UserGroupDTO.md) +- [UserGroupEntity](Docs/UserGroupEntity.md) +- [UserGroupsEntity](Docs/UserGroupsEntity.md) +- [UsersEntity](Docs/UsersEntity.md) +- [VersionInfoDTO](Docs/VersionInfoDTO.md) + +## Documentation for Authorization + +Authentication schemes defined for the API: +### auth + +- **Type**: OAuth +- **Flow**: implicit + +## Author +Andre Mendonca +