nodeum_sdk 1.85.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +7 -0
- data/Gemfile +9 -0
- data/LICENSE +21 -0
- data/README.md +472 -0
- data/Rakefile +10 -0
- data/docs/ActiveJobStatus.md +23 -0
- data/docs/ApiKey.md +21 -0
- data/docs/ApiKeyCollection.md +19 -0
- data/docs/ApiKeyFull.md +17 -0
- data/docs/ApiKeyFullAllOf.md +17 -0
- data/docs/ApiKeyScope.md +19 -0
- data/docs/AttributeError.md +17 -0
- data/docs/Blank.md +16 -0
- data/docs/ByDateFacet.md +35 -0
- data/docs/ByDateFacetBucket.md +17 -0
- data/docs/ByDateFacetBucketAllOf.md +17 -0
- data/docs/ByDateFacetBuckets.md +17 -0
- data/docs/ByFileExtensionFacet.md +17 -0
- data/docs/ByFileExtensionFacetAllOf.md +17 -0
- data/docs/ByGroupOwnerFacet.md +17 -0
- data/docs/ByGroupOwnerFacetAllOf.md +17 -0
- data/docs/ByPrimaryFacet.md +17 -0
- data/docs/ByPrimaryFacetAllOf.md +17 -0
- data/docs/BySecondaryBucket.md +17 -0
- data/docs/BySecondaryBucketAllOf.md +17 -0
- data/docs/BySecondaryBuckets.md +17 -0
- data/docs/BySecondaryFacet.md +29 -0
- data/docs/BySecondaryTypeFacet.md +17 -0
- data/docs/BySecondaryTypeFacetAllOf.md +17 -0
- data/docs/BySizeFacet.md +35 -0
- data/docs/ByUserOwnerFacet.md +17 -0
- data/docs/ByUserOwnerFacetAllOf.md +17 -0
- data/docs/CloudBucket.md +31 -0
- data/docs/CloudBucketCollection.md +19 -0
- data/docs/CloudBucketSimpleCollection.md +17 -0
- data/docs/CloudBucketsApi.md +908 -0
- data/docs/CloudConnector.md +31 -0
- data/docs/CloudConnectorCollection.md +19 -0
- data/docs/CloudConnectorsApi.md +442 -0
- data/docs/Container.md +35 -0
- data/docs/ContainerCollection.md +19 -0
- data/docs/ContainerPrivilege.md +23 -0
- data/docs/ContainerPrivilegeCollection.md +19 -0
- data/docs/ContainersApi.md +650 -0
- data/docs/DateToFileFacets.md +31 -0
- data/docs/Error.md +19 -0
- data/docs/FileFacet.md +19 -0
- data/docs/FilesApi.md +2090 -0
- data/docs/Frozen.md +16 -0
- data/docs/GreaterThan.md +19 -0
- data/docs/GreaterThanAllOf.md +19 -0
- data/docs/GreaterThanOrEqualTo.md +19 -0
- data/docs/ImportFile.md +39 -0
- data/docs/ImportFileCollection.md +19 -0
- data/docs/ImportFileWithPath.md +41 -0
- data/docs/Invalid.md +17 -0
- data/docs/LessThan.md +19 -0
- data/docs/LessThanAllOf.md +19 -0
- data/docs/LessThanOrEqualTo.md +19 -0
- data/docs/MountCollection.md +17 -0
- data/docs/MountInfo.md +57 -0
- data/docs/MountNotification.md +19 -0
- data/docs/MountStatus.md +21 -0
- data/docs/MountsApi.md +63 -0
- data/docs/Nas.md +27 -0
- data/docs/NasApi.md +322 -0
- data/docs/NasCollection.md +19 -0
- data/docs/NasShare.md +35 -0
- data/docs/NasShareCollection.md +19 -0
- data/docs/NasSharesApi.md +1155 -0
- data/docs/NodeumFile.md +39 -0
- data/docs/NodeumFileCollection.md +19 -0
- data/docs/NodeumFileWithPath.md +17 -0
- data/docs/NodeumFileWithPathAllOf.md +17 -0
- data/docs/OccurrenceLessThan.md +19 -0
- data/docs/OccurrenceLessThanAllOf.md +19 -0
- data/docs/OccurrenceLessThanOrEqualTo.md +19 -0
- data/docs/OnTapesFile.md +25 -0
- data/docs/OnTapesFileCollection.md +19 -0
- data/docs/Pool.md +27 -0
- data/docs/PoolCollection.md +19 -0
- data/docs/PoolUp.md +21 -0
- data/docs/PoolUpAllOf.md +21 -0
- data/docs/PoolsApi.md +798 -0
- data/docs/PrimaryScan.md +25 -0
- data/docs/QuotaOnCache.md +16 -0
- data/docs/Reset.md +17 -0
- data/docs/ResetSections.md +21 -0
- data/docs/SizeToDateFacets.md +31 -0
- data/docs/StatisticsApi.md +386 -0
- data/docs/SystemGroup.md +21 -0
- data/docs/SystemGroupCollection.md +19 -0
- data/docs/SystemUser.md +23 -0
- data/docs/SystemUserCollection.md +19 -0
- data/docs/SystemsApi.md +183 -0
- data/docs/Taken.md +17 -0
- data/docs/TakenAllOf.md +17 -0
- data/docs/Tape.md +65 -0
- data/docs/TapeCollection.md +19 -0
- data/docs/TapeDrive.md +55 -0
- data/docs/TapeDriveAllOf.md +55 -0
- data/docs/TapeDriveCollection.md +19 -0
- data/docs/TapeDriveDevice.md +29 -0
- data/docs/TapeDriveDeviceCollection.md +17 -0
- data/docs/TapeDrivesApi.md +730 -0
- data/docs/TapeLibrariesApi.md +403 -0
- data/docs/TapeLibrary.md +27 -0
- data/docs/TapeLibraryAllOf.md +27 -0
- data/docs/TapeLibraryCollection.md +19 -0
- data/docs/TapeLibraryDevice.md +37 -0
- data/docs/TapeLibraryDeviceCollection.md +17 -0
- data/docs/TapeStat.md +115 -0
- data/docs/TapeStatCollection.md +19 -0
- data/docs/TapesApi.md +959 -0
- data/docs/Task.md +55 -0
- data/docs/TaskCallback.md +21 -0
- data/docs/TaskCallbackCollection.md +19 -0
- data/docs/TaskCallbacksApi.md +326 -0
- data/docs/TaskCollection.md +19 -0
- data/docs/TaskDestinationCollection.md +19 -0
- data/docs/TaskDestinationDown.md +25 -0
- data/docs/TaskDestinationUp.md +27 -0
- data/docs/TaskDestinationsApi.md +328 -0
- data/docs/TaskExecution.md +51 -0
- data/docs/TaskExecutionCollection.md +19 -0
- data/docs/TaskExecutionsApi.md +336 -0
- data/docs/TaskMetadataApi.md +326 -0
- data/docs/TaskMetadatum.md +21 -0
- data/docs/TaskMetadatumCollection.md +19 -0
- data/docs/TaskOption.md +21 -0
- data/docs/TaskOptionCollection.md +19 -0
- data/docs/TaskOptionsApi.md +326 -0
- data/docs/TaskSchedule.md +34 -0
- data/docs/TaskScheduleCollection.md +19 -0
- data/docs/TaskSchedulesApi.md +322 -0
- data/docs/TaskSourceCollection.md +19 -0
- data/docs/TaskSourceDown.md +29 -0
- data/docs/TaskSourceUp.md +33 -0
- data/docs/TaskSourcesApi.md +330 -0
- data/docs/TasksApi.md +846 -0
- data/docs/TooLong.md +17 -0
- data/docs/TooLongAllOf.md +17 -0
- data/docs/TooShort.md +17 -0
- data/docs/TooShortAllOf.md +17 -0
- data/docs/TypeToSecondaryFacets.md +25 -0
- data/docs/UsersApi.md +418 -0
- data/git_push.sh +58 -0
- data/lib/nodeum_sdk.rb +180 -0
- data/lib/nodeum_sdk/api/cloud_buckets_api.rb +1026 -0
- data/lib/nodeum_sdk/api/cloud_connectors_api.rb +491 -0
- data/lib/nodeum_sdk/api/containers_api.rb +736 -0
- data/lib/nodeum_sdk/api/files_api.rb +2418 -0
- data/lib/nodeum_sdk/api/mounts_api.rb +78 -0
- data/lib/nodeum_sdk/api/nas_api.rb +361 -0
- data/lib/nodeum_sdk/api/nas_shares_api.rb +1305 -0
- data/lib/nodeum_sdk/api/pools_api.rb +876 -0
- data/lib/nodeum_sdk/api/statistics_api.rb +418 -0
- data/lib/nodeum_sdk/api/systems_api.rb +215 -0
- data/lib/nodeum_sdk/api/tape_drives_api.rb +858 -0
- data/lib/nodeum_sdk/api/tape_libraries_api.rb +457 -0
- data/lib/nodeum_sdk/api/tapes_api.rb +1104 -0
- data/lib/nodeum_sdk/api/task_callbacks_api.rb +382 -0
- data/lib/nodeum_sdk/api/task_destinations_api.rb +385 -0
- data/lib/nodeum_sdk/api/task_executions_api.rb +399 -0
- data/lib/nodeum_sdk/api/task_metadata_api.rb +382 -0
- data/lib/nodeum_sdk/api/task_options_api.rb +382 -0
- data/lib/nodeum_sdk/api/task_schedules_api.rb +364 -0
- data/lib/nodeum_sdk/api/task_sources_api.rb +388 -0
- data/lib/nodeum_sdk/api/tasks_api.rb +951 -0
- data/lib/nodeum_sdk/api/users_api.rb +452 -0
- data/lib/nodeum_sdk/api_client.rb +386 -0
- data/lib/nodeum_sdk/api_error.rb +57 -0
- data/lib/nodeum_sdk/configuration.rb +255 -0
- data/lib/nodeum_sdk/models/active_job_status.rb +267 -0
- data/lib/nodeum_sdk/models/api_key.rb +224 -0
- data/lib/nodeum_sdk/models/api_key_collection.rb +217 -0
- data/lib/nodeum_sdk/models/api_key_full.rb +220 -0
- data/lib/nodeum_sdk/models/api_key_full_all_of.rb +208 -0
- data/lib/nodeum_sdk/models/api_key_scope.rb +215 -0
- data/lib/nodeum_sdk/models/attribute_error.rb +216 -0
- data/lib/nodeum_sdk/models/blank.rb +209 -0
- data/lib/nodeum_sdk/models/by_date_facet.rb +295 -0
- data/lib/nodeum_sdk/models/by_date_facet_bucket.rb +218 -0
- data/lib/nodeum_sdk/models/by_date_facet_bucket_all_of.rb +206 -0
- data/lib/nodeum_sdk/models/by_date_facet_buckets.rb +208 -0
- data/lib/nodeum_sdk/models/by_file_extension_facet.rb +218 -0
- data/lib/nodeum_sdk/models/by_file_extension_facet_all_of.rb +206 -0
- data/lib/nodeum_sdk/models/by_group_owner_facet.rb +218 -0
- data/lib/nodeum_sdk/models/by_group_owner_facet_all_of.rb +206 -0
- data/lib/nodeum_sdk/models/by_primary_facet.rb +218 -0
- data/lib/nodeum_sdk/models/by_primary_facet_all_of.rb +206 -0
- data/lib/nodeum_sdk/models/by_secondary_bucket.rb +218 -0
- data/lib/nodeum_sdk/models/by_secondary_bucket_all_of.rb +206 -0
- data/lib/nodeum_sdk/models/by_secondary_buckets.rb +208 -0
- data/lib/nodeum_sdk/models/by_secondary_facet.rb +268 -0
- data/lib/nodeum_sdk/models/by_secondary_type_facet.rb +218 -0
- data/lib/nodeum_sdk/models/by_secondary_type_facet_all_of.rb +206 -0
- data/lib/nodeum_sdk/models/by_size_facet.rb +295 -0
- data/lib/nodeum_sdk/models/by_user_owner_facet.rb +218 -0
- data/lib/nodeum_sdk/models/by_user_owner_facet_all_of.rb +206 -0
- data/lib/nodeum_sdk/models/cloud_bucket.rb +269 -0
- data/lib/nodeum_sdk/models/cloud_bucket_collection.rb +217 -0
- data/lib/nodeum_sdk/models/cloud_bucket_simple_collection.rb +208 -0
- data/lib/nodeum_sdk/models/cloud_connector.rb +303 -0
- data/lib/nodeum_sdk/models/cloud_connector_collection.rb +217 -0
- data/lib/nodeum_sdk/models/container.rb +321 -0
- data/lib/nodeum_sdk/models/container_collection.rb +217 -0
- data/lib/nodeum_sdk/models/container_privilege.rb +279 -0
- data/lib/nodeum_sdk/models/container_privilege_collection.rb +217 -0
- data/lib/nodeum_sdk/models/date_to_file_facets.rb +269 -0
- data/lib/nodeum_sdk/models/error.rb +221 -0
- data/lib/nodeum_sdk/models/file_facet.rb +215 -0
- data/lib/nodeum_sdk/models/frozen.rb +209 -0
- data/lib/nodeum_sdk/models/greater_than.rb +230 -0
- data/lib/nodeum_sdk/models/greater_than_all_of.rb +217 -0
- data/lib/nodeum_sdk/models/greater_than_or_equal_to.rb +230 -0
- data/lib/nodeum_sdk/models/import_file.rb +339 -0
- data/lib/nodeum_sdk/models/import_file_collection.rb +217 -0
- data/lib/nodeum_sdk/models/import_file_with_path.rb +356 -0
- data/lib/nodeum_sdk/models/invalid.rb +220 -0
- data/lib/nodeum_sdk/models/less_than.rb +230 -0
- data/lib/nodeum_sdk/models/less_than_all_of.rb +217 -0
- data/lib/nodeum_sdk/models/less_than_or_equal_to.rb +230 -0
- data/lib/nodeum_sdk/models/mount_collection.rb +208 -0
- data/lib/nodeum_sdk/models/mount_info.rb +420 -0
- data/lib/nodeum_sdk/models/mount_notification.rb +249 -0
- data/lib/nodeum_sdk/models/mount_status.rb +224 -0
- data/lib/nodeum_sdk/models/nas.rb +285 -0
- data/lib/nodeum_sdk/models/nas_collection.rb +217 -0
- data/lib/nodeum_sdk/models/nas_share.rb +287 -0
- data/lib/nodeum_sdk/models/nas_share_collection.rb +217 -0
- data/lib/nodeum_sdk/models/nodeum_file.rb +339 -0
- data/lib/nodeum_sdk/models/nodeum_file_collection.rb +217 -0
- data/lib/nodeum_sdk/models/nodeum_file_with_path.rb +240 -0
- data/lib/nodeum_sdk/models/nodeum_file_with_path_all_of.rb +206 -0
- data/lib/nodeum_sdk/models/occurrence_less_than.rb +230 -0
- data/lib/nodeum_sdk/models/occurrence_less_than_all_of.rb +217 -0
- data/lib/nodeum_sdk/models/occurrence_less_than_or_equal_to.rb +230 -0
- data/lib/nodeum_sdk/models/on_tapes_file.rb +278 -0
- data/lib/nodeum_sdk/models/on_tapes_file_collection.rb +217 -0
- data/lib/nodeum_sdk/models/pool.rb +297 -0
- data/lib/nodeum_sdk/models/pool_collection.rb +217 -0
- data/lib/nodeum_sdk/models/pool_up.rb +264 -0
- data/lib/nodeum_sdk/models/pool_up_all_of.rb +230 -0
- data/lib/nodeum_sdk/models/primary_scan.rb +276 -0
- data/lib/nodeum_sdk/models/quota_on_cache.rb +209 -0
- data/lib/nodeum_sdk/models/reset.rb +209 -0
- data/lib/nodeum_sdk/models/reset_sections.rb +265 -0
- data/lib/nodeum_sdk/models/size_to_date_facets.rb +269 -0
- data/lib/nodeum_sdk/models/system_group.rb +226 -0
- data/lib/nodeum_sdk/models/system_group_collection.rb +217 -0
- data/lib/nodeum_sdk/models/system_user.rb +233 -0
- data/lib/nodeum_sdk/models/system_user_collection.rb +217 -0
- data/lib/nodeum_sdk/models/taken.rb +220 -0
- data/lib/nodeum_sdk/models/taken_all_of.rb +207 -0
- data/lib/nodeum_sdk/models/tape.rb +456 -0
- data/lib/nodeum_sdk/models/tape_collection.rb +217 -0
- data/lib/nodeum_sdk/models/tape_drive.rb +423 -0
- data/lib/nodeum_sdk/models/tape_drive_all_of.rb +411 -0
- data/lib/nodeum_sdk/models/tape_drive_collection.rb +217 -0
- data/lib/nodeum_sdk/models/tape_drive_device.rb +261 -0
- data/lib/nodeum_sdk/models/tape_drive_device_collection.rb +208 -0
- data/lib/nodeum_sdk/models/tape_library.rb +297 -0
- data/lib/nodeum_sdk/models/tape_library_all_of.rb +285 -0
- data/lib/nodeum_sdk/models/tape_library_collection.rb +217 -0
- data/lib/nodeum_sdk/models/tape_library_device.rb +330 -0
- data/lib/nodeum_sdk/models/tape_library_device_collection.rb +208 -0
- data/lib/nodeum_sdk/models/tape_stat.rb +647 -0
- data/lib/nodeum_sdk/models/tape_stat_collection.rb +217 -0
- data/lib/nodeum_sdk/models/task.rb +483 -0
- data/lib/nodeum_sdk/models/task_callback.rb +258 -0
- data/lib/nodeum_sdk/models/task_callback_collection.rb +217 -0
- data/lib/nodeum_sdk/models/task_collection.rb +217 -0
- data/lib/nodeum_sdk/models/task_destination_collection.rb +217 -0
- data/lib/nodeum_sdk/models/task_destination_down.rb +242 -0
- data/lib/nodeum_sdk/models/task_destination_up.rb +251 -0
- data/lib/nodeum_sdk/models/task_execution.rb +441 -0
- data/lib/nodeum_sdk/models/task_execution_collection.rb +217 -0
- data/lib/nodeum_sdk/models/task_metadatum.rb +224 -0
- data/lib/nodeum_sdk/models/task_metadatum_collection.rb +217 -0
- data/lib/nodeum_sdk/models/task_option.rb +258 -0
- data/lib/nodeum_sdk/models/task_option_collection.rb +217 -0
- data/lib/nodeum_sdk/models/task_schedule.rb +278 -0
- data/lib/nodeum_sdk/models/task_schedule_collection.rb +217 -0
- data/lib/nodeum_sdk/models/task_source_collection.rb +217 -0
- data/lib/nodeum_sdk/models/task_source_down.rb +262 -0
- data/lib/nodeum_sdk/models/task_source_up.rb +280 -0
- data/lib/nodeum_sdk/models/too_long.rb +220 -0
- data/lib/nodeum_sdk/models/too_long_all_of.rb +207 -0
- data/lib/nodeum_sdk/models/too_short.rb +220 -0
- data/lib/nodeum_sdk/models/too_short_all_of.rb +207 -0
- data/lib/nodeum_sdk/models/type_to_secondary_facets.rb +242 -0
- data/lib/nodeum_sdk/version.rb +15 -0
- data/nodeum_sdk.gemspec +39 -0
- data/spec/api/cloud_buckets_api_spec.rb +237 -0
- data/spec/api/cloud_connectors_api_spec.rb +129 -0
- data/spec/api/containers_api_spec.rb +180 -0
- data/spec/api/files_api_spec.rb +570 -0
- data/spec/api/mounts_api_spec.rb +46 -0
- data/spec/api/nas_api_spec.rb +104 -0
- data/spec/api/nas_shares_api_spec.rb +292 -0
- data/spec/api/pools_api_spec.rb +203 -0
- data/spec/api/statistics_api_spec.rb +113 -0
- data/spec/api/systems_api_spec.rb +70 -0
- data/spec/api/tape_drives_api_spec.rb +220 -0
- data/spec/api/tape_libraries_api_spec.rb +127 -0
- data/spec/api/tapes_api_spec.rb +279 -0
- data/spec/api/task_callbacks_api_spec.rb +106 -0
- data/spec/api/task_destinations_api_spec.rb +107 -0
- data/spec/api/task_executions_api_spec.rb +127 -0
- data/spec/api/task_metadata_api_spec.rb +106 -0
- data/spec/api/task_options_api_spec.rb +106 -0
- data/spec/api/task_schedules_api_spec.rb +104 -0
- data/spec/api/task_sources_api_spec.rb +108 -0
- data/spec/api/tasks_api_spec.rb +226 -0
- data/spec/api/users_api_spec.rb +119 -0
- data/spec/api_client_spec.rb +226 -0
- data/spec/configuration_spec.rb +42 -0
- data/spec/models/active_job_status_spec.rb +63 -0
- data/spec/models/api_key_collection_spec.rb +47 -0
- data/spec/models/api_key_full_all_of_spec.rb +41 -0
- data/spec/models/api_key_full_spec.rb +41 -0
- data/spec/models/api_key_scope_spec.rb +47 -0
- data/spec/models/api_key_spec.rb +53 -0
- data/spec/models/attribute_error_spec.rb +41 -0
- data/spec/models/blank_spec.rb +35 -0
- data/spec/models/by_date_facet_bucket_all_of_spec.rb +41 -0
- data/spec/models/by_date_facet_bucket_spec.rb +41 -0
- data/spec/models/by_date_facet_buckets_spec.rb +41 -0
- data/spec/models/by_date_facet_spec.rb +95 -0
- data/spec/models/by_file_extension_facet_all_of_spec.rb +41 -0
- data/spec/models/by_file_extension_facet_spec.rb +41 -0
- data/spec/models/by_group_owner_facet_all_of_spec.rb +41 -0
- data/spec/models/by_group_owner_facet_spec.rb +41 -0
- data/spec/models/by_primary_facet_all_of_spec.rb +41 -0
- data/spec/models/by_primary_facet_spec.rb +41 -0
- data/spec/models/by_secondary_bucket_all_of_spec.rb +41 -0
- data/spec/models/by_secondary_bucket_spec.rb +41 -0
- data/spec/models/by_secondary_buckets_spec.rb +41 -0
- data/spec/models/by_secondary_facet_spec.rb +77 -0
- data/spec/models/by_secondary_type_facet_all_of_spec.rb +41 -0
- data/spec/models/by_secondary_type_facet_spec.rb +41 -0
- data/spec/models/by_size_facet_spec.rb +95 -0
- data/spec/models/by_user_owner_facet_all_of_spec.rb +41 -0
- data/spec/models/by_user_owner_facet_spec.rb +41 -0
- data/spec/models/cloud_bucket_collection_spec.rb +47 -0
- data/spec/models/cloud_bucket_simple_collection_spec.rb +41 -0
- data/spec/models/cloud_bucket_spec.rb +83 -0
- data/spec/models/cloud_connector_collection_spec.rb +47 -0
- data/spec/models/cloud_connector_spec.rb +87 -0
- data/spec/models/container_collection_spec.rb +47 -0
- data/spec/models/container_privilege_collection_spec.rb +47 -0
- data/spec/models/container_privilege_spec.rb +67 -0
- data/spec/models/container_spec.rb +99 -0
- data/spec/models/date_to_file_facets_spec.rb +83 -0
- data/spec/models/error_spec.rb +47 -0
- data/spec/models/file_facet_spec.rb +47 -0
- data/spec/models/frozen_spec.rb +35 -0
- data/spec/models/greater_than_all_of_spec.rb +47 -0
- data/spec/models/greater_than_or_equal_to_spec.rb +47 -0
- data/spec/models/greater_than_spec.rb +47 -0
- data/spec/models/import_file_collection_spec.rb +47 -0
- data/spec/models/import_file_spec.rb +111 -0
- data/spec/models/import_file_with_path_spec.rb +117 -0
- data/spec/models/invalid_spec.rb +41 -0
- data/spec/models/less_than_all_of_spec.rb +47 -0
- data/spec/models/less_than_or_equal_to_spec.rb +47 -0
- data/spec/models/less_than_spec.rb +47 -0
- data/spec/models/mount_collection_spec.rb +41 -0
- data/spec/models/mount_info_spec.rb +165 -0
- data/spec/models/mount_notification_spec.rb +51 -0
- data/spec/models/mount_status_spec.rb +53 -0
- data/spec/models/nas_collection_spec.rb +47 -0
- data/spec/models/nas_share_collection_spec.rb +47 -0
- data/spec/models/nas_share_spec.rb +95 -0
- data/spec/models/nas_spec.rb +75 -0
- data/spec/models/nodeum_file_collection_spec.rb +47 -0
- data/spec/models/nodeum_file_spec.rb +111 -0
- data/spec/models/nodeum_file_with_path_all_of_spec.rb +41 -0
- data/spec/models/nodeum_file_with_path_spec.rb +41 -0
- data/spec/models/occurrence_less_than_all_of_spec.rb +47 -0
- data/spec/models/occurrence_less_than_or_equal_to_spec.rb +47 -0
- data/spec/models/occurrence_less_than_spec.rb +47 -0
- data/spec/models/on_tapes_file_collection_spec.rb +47 -0
- data/spec/models/on_tapes_file_spec.rb +69 -0
- data/spec/models/pool_collection_spec.rb +47 -0
- data/spec/models/pool_spec.rb +79 -0
- data/spec/models/pool_up_all_of_spec.rb +53 -0
- data/spec/models/pool_up_spec.rb +53 -0
- data/spec/models/primary_scan_spec.rb +69 -0
- data/spec/models/quota_on_cache_spec.rb +35 -0
- data/spec/models/reset_sections_spec.rb +57 -0
- data/spec/models/reset_spec.rb +41 -0
- data/spec/models/size_to_date_facets_spec.rb +83 -0
- data/spec/models/system_group_collection_spec.rb +47 -0
- data/spec/models/system_group_spec.rb +53 -0
- data/spec/models/system_user_collection_spec.rb +47 -0
- data/spec/models/system_user_spec.rb +59 -0
- data/spec/models/taken_all_of_spec.rb +41 -0
- data/spec/models/taken_spec.rb +41 -0
- data/spec/models/tape_collection_spec.rb +47 -0
- data/spec/models/tape_drive_all_of_spec.rb +159 -0
- data/spec/models/tape_drive_collection_spec.rb +47 -0
- data/spec/models/tape_drive_device_collection_spec.rb +41 -0
- data/spec/models/tape_drive_device_spec.rb +77 -0
- data/spec/models/tape_drive_spec.rb +159 -0
- data/spec/models/tape_library_all_of_spec.rb +75 -0
- data/spec/models/tape_library_collection_spec.rb +47 -0
- data/spec/models/tape_library_device_collection_spec.rb +41 -0
- data/spec/models/tape_library_device_spec.rb +105 -0
- data/spec/models/tape_library_spec.rb +75 -0
- data/spec/models/tape_spec.rb +189 -0
- data/spec/models/tape_stat_collection_spec.rb +47 -0
- data/spec/models/tape_stat_spec.rb +335 -0
- data/spec/models/task_callback_collection_spec.rb +47 -0
- data/spec/models/task_callback_spec.rb +57 -0
- data/spec/models/task_collection_spec.rb +47 -0
- data/spec/models/task_destination_collection_spec.rb +47 -0
- data/spec/models/task_destination_down_spec.rb +65 -0
- data/spec/models/task_destination_up_spec.rb +71 -0
- data/spec/models/task_execution_collection_spec.rb +47 -0
- data/spec/models/task_execution_spec.rb +163 -0
- data/spec/models/task_metadatum_collection_spec.rb +47 -0
- data/spec/models/task_metadatum_spec.rb +53 -0
- data/spec/models/task_option_collection_spec.rb +47 -0
- data/spec/models/task_option_spec.rb +57 -0
- data/spec/models/task_schedule_collection_spec.rb +47 -0
- data/spec/models/task_schedule_spec.rb +89 -0
- data/spec/models/task_source_collection_spec.rb +47 -0
- data/spec/models/task_source_down_spec.rb +77 -0
- data/spec/models/task_source_up_spec.rb +89 -0
- data/spec/models/task_spec.rb +183 -0
- data/spec/models/too_long_all_of_spec.rb +41 -0
- data/spec/models/too_long_spec.rb +41 -0
- data/spec/models/too_short_all_of_spec.rb +41 -0
- data/spec/models/too_short_spec.rb +41 -0
- data/spec/models/type_to_secondary_facets_spec.rb +65 -0
- data/spec/spec_helper.rb +111 -0
- metadata +718 -0
@@ -0,0 +1,399 @@
|
|
1
|
+
=begin
|
2
|
+
#Nodeum API
|
3
|
+
|
4
|
+
#The Nodeum API makes it easy to tap into the digital data mesh that runs across your organisation. Make requests to our API endpoints and we’ll give you everything you need to interconnect your business workflows with your storage. All production API requests are made to: http://nodeumhostname/api/ The current production version of the API is v1. **REST** The Nodeum API is a RESTful API. This means that the API is designed to allow you to get, create, update, & delete objects with the HTTP verbs GET, POST, PUT, PATCH, & DELETE. **JSON** The Nodeum API speaks exclusively in JSON. This means that you should always set the Content-Type header to application/json to ensure that your requests are properly accepted and processed by the API. **Authentication** All API calls require user-password authentication. **Cross-Origin Resource Sharing** The Nodeum API supports CORS for communicating from Javascript for these endpoints. You will need to specify an Origin URI when creating your application to allow for CORS to be whitelisted for your domain. **Pagination** Some endpoints such as File Listing return a potentially lengthy array of objects. In order to keep the response sizes manageable the API will take advantage of pagination. Pagination is a mechanism for returning a subset of the results for a request and allowing for subsequent requests to “page” through the rest of the results until the end is reached. Paginated endpoints follow a standard interface that accepts two query parameters, limit and offset, and return a payload that follows a standard form. These parameters names and their behavior are borrowed from SQL LIMIT and OFFSET keywords. **Versioning** The Nodeum API is constantly being worked on to add features, make improvements, and fix bugs. This means that you should expect changes to be introduced and documented. However, there are some changes or additions that are considered backwards-compatible and your applications should be flexible enough to handle them. These include: - Adding new endpoints to the API - Adding new attributes to the response of an existing endpoint - Changing the order of attributes of responses (JSON by definition is an object of unordered key/value pairs) **Filter parameters** When browsing a list of items, multiple filter parameters may be applied. Some operators can be added to the value as a prefix: - `=` value is equal. Default operator, may be omitted - `!=` value is different - `>` greater than - `>=` greater than or equal - `<` lower than - `>=` lower than or equal - `><` included in list, items should be separated by `|` - `!><` not included in list, items should be separated by `|` - `~` pattern matching, may include `%` (any characters) and `_` (one character) - `!~` pattern not matching, may include `%` (any characters) and `_` (one character)
|
5
|
+
|
6
|
+
The version of the OpenAPI document: 2.1.0
|
7
|
+
Contact: info@nodeum.io
|
8
|
+
Generated by: https://openapi-generator.tech
|
9
|
+
OpenAPI Generator version: 4.3.0
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'cgi'
|
14
|
+
|
15
|
+
module Nodeum
|
16
|
+
class TaskExecutionsApi
|
17
|
+
attr_accessor :api_client
|
18
|
+
|
19
|
+
def initialize(api_client = ApiClient.default)
|
20
|
+
@api_client = api_client
|
21
|
+
end
|
22
|
+
# Lists all task executions.
|
23
|
+
# **API Key Scope**: task_executions / index
|
24
|
+
# @param [Hash] opts the optional parameters
|
25
|
+
# @option opts [Integer] :limit The number of items to display for pagination.
|
26
|
+
# @option opts [Integer] :offset The number of items to skip for pagination.
|
27
|
+
# @option opts [Array<String>] :sort_by Sort results by attribute. Can sort on multiple attributes, separated by `|`. Order direction can be suffixing the attribute by either `:asc` (default) or `:desc`.
|
28
|
+
# @option opts [Boolean] :complete_list If `false`, only includes the last correct execution of a task. (default to true)
|
29
|
+
# @option opts [String] :id Filter on id
|
30
|
+
# @option opts [String] :task_id Filter on task id
|
31
|
+
# @option opts [String] :name Filter on name
|
32
|
+
# @option opts [String] :workflow_type Filter on task workflow type
|
33
|
+
# @option opts [String] :workflow_action Filter on task workflow action
|
34
|
+
# @option opts [String] :source_type Filter on task source type
|
35
|
+
# @option opts [String] :destination_type Filter on task destination type
|
36
|
+
# @option opts [String] :status Filter on status
|
37
|
+
# @option opts [String] :log_time Filter on log time
|
38
|
+
# @option opts [String] :job_started Filter on job started
|
39
|
+
# @option opts [String] :job_finished Filter on job finished
|
40
|
+
# @option opts [String] :creation_date Filter on creation date
|
41
|
+
# @option opts [String] :modification_date Filter on modification date
|
42
|
+
# @option opts [String] :to_process_size Filter on to process size
|
43
|
+
# @option opts [String] :processed_size Filter on processed size
|
44
|
+
# @option opts [String] :to_process_files Filter on to process files
|
45
|
+
# @option opts [String] :processed_files Filter on processed files
|
46
|
+
# @option opts [String] :finalized_files Filter on finalized files
|
47
|
+
# @option opts [String] :estimation_time Filter on estimation time
|
48
|
+
# @option opts [String] :bandwidth Filter on bandwidth
|
49
|
+
# @return [TaskExecutionCollection]
|
50
|
+
def index_task_executions(opts = {})
|
51
|
+
data, _status_code, _headers = index_task_executions_with_http_info(opts)
|
52
|
+
data
|
53
|
+
end
|
54
|
+
|
55
|
+
# Lists all task executions.
|
56
|
+
# **API Key Scope**: task_executions / index
|
57
|
+
# @param [Hash] opts the optional parameters
|
58
|
+
# @option opts [Integer] :limit The number of items to display for pagination.
|
59
|
+
# @option opts [Integer] :offset The number of items to skip for pagination.
|
60
|
+
# @option opts [Array<String>] :sort_by Sort results by attribute. Can sort on multiple attributes, separated by `|`. Order direction can be suffixing the attribute by either `:asc` (default) or `:desc`.
|
61
|
+
# @option opts [Boolean] :complete_list If `false`, only includes the last correct execution of a task.
|
62
|
+
# @option opts [String] :id Filter on id
|
63
|
+
# @option opts [String] :task_id Filter on task id
|
64
|
+
# @option opts [String] :name Filter on name
|
65
|
+
# @option opts [String] :workflow_type Filter on task workflow type
|
66
|
+
# @option opts [String] :workflow_action Filter on task workflow action
|
67
|
+
# @option opts [String] :source_type Filter on task source type
|
68
|
+
# @option opts [String] :destination_type Filter on task destination type
|
69
|
+
# @option opts [String] :status Filter on status
|
70
|
+
# @option opts [String] :log_time Filter on log time
|
71
|
+
# @option opts [String] :job_started Filter on job started
|
72
|
+
# @option opts [String] :job_finished Filter on job finished
|
73
|
+
# @option opts [String] :creation_date Filter on creation date
|
74
|
+
# @option opts [String] :modification_date Filter on modification date
|
75
|
+
# @option opts [String] :to_process_size Filter on to process size
|
76
|
+
# @option opts [String] :processed_size Filter on processed size
|
77
|
+
# @option opts [String] :to_process_files Filter on to process files
|
78
|
+
# @option opts [String] :processed_files Filter on processed files
|
79
|
+
# @option opts [String] :finalized_files Filter on finalized files
|
80
|
+
# @option opts [String] :estimation_time Filter on estimation time
|
81
|
+
# @option opts [String] :bandwidth Filter on bandwidth
|
82
|
+
# @return [Array<(TaskExecutionCollection, Integer, Hash)>] TaskExecutionCollection data, response status code and response headers
|
83
|
+
def index_task_executions_with_http_info(opts = {})
|
84
|
+
if @api_client.config.debugging
|
85
|
+
@api_client.config.logger.debug 'Calling API: TaskExecutionsApi.index_task_executions ...'
|
86
|
+
end
|
87
|
+
# resource path
|
88
|
+
local_var_path = '/task_executions'
|
89
|
+
|
90
|
+
# query parameters
|
91
|
+
query_params = opts[:query_params] || {}
|
92
|
+
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
93
|
+
query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
|
94
|
+
query_params[:'sort_by'] = @api_client.build_collection_param(opts[:'sort_by'], :pipe) if !opts[:'sort_by'].nil?
|
95
|
+
query_params[:'complete_list'] = opts[:'complete_list'] if !opts[:'complete_list'].nil?
|
96
|
+
query_params[:'id'] = opts[:'id'] if !opts[:'id'].nil?
|
97
|
+
query_params[:'task_id'] = opts[:'task_id'] if !opts[:'task_id'].nil?
|
98
|
+
query_params[:'name'] = opts[:'name'] if !opts[:'name'].nil?
|
99
|
+
query_params[:'workflow_type'] = opts[:'workflow_type'] if !opts[:'workflow_type'].nil?
|
100
|
+
query_params[:'workflow_action'] = opts[:'workflow_action'] if !opts[:'workflow_action'].nil?
|
101
|
+
query_params[:'source_type'] = opts[:'source_type'] if !opts[:'source_type'].nil?
|
102
|
+
query_params[:'destination_type'] = opts[:'destination_type'] if !opts[:'destination_type'].nil?
|
103
|
+
query_params[:'status'] = opts[:'status'] if !opts[:'status'].nil?
|
104
|
+
query_params[:'log_time'] = opts[:'log_time'] if !opts[:'log_time'].nil?
|
105
|
+
query_params[:'job_started'] = opts[:'job_started'] if !opts[:'job_started'].nil?
|
106
|
+
query_params[:'job_finished'] = opts[:'job_finished'] if !opts[:'job_finished'].nil?
|
107
|
+
query_params[:'creation_date'] = opts[:'creation_date'] if !opts[:'creation_date'].nil?
|
108
|
+
query_params[:'modification_date'] = opts[:'modification_date'] if !opts[:'modification_date'].nil?
|
109
|
+
query_params[:'to_process_size'] = opts[:'to_process_size'] if !opts[:'to_process_size'].nil?
|
110
|
+
query_params[:'processed_size'] = opts[:'processed_size'] if !opts[:'processed_size'].nil?
|
111
|
+
query_params[:'to_process_files'] = opts[:'to_process_files'] if !opts[:'to_process_files'].nil?
|
112
|
+
query_params[:'processed_files'] = opts[:'processed_files'] if !opts[:'processed_files'].nil?
|
113
|
+
query_params[:'finalized_files'] = opts[:'finalized_files'] if !opts[:'finalized_files'].nil?
|
114
|
+
query_params[:'estimation_time'] = opts[:'estimation_time'] if !opts[:'estimation_time'].nil?
|
115
|
+
query_params[:'bandwidth'] = opts[:'bandwidth'] if !opts[:'bandwidth'].nil?
|
116
|
+
|
117
|
+
# header parameters
|
118
|
+
header_params = opts[:header_params] || {}
|
119
|
+
# HTTP header 'Accept' (if needed)
|
120
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
121
|
+
|
122
|
+
# form parameters
|
123
|
+
form_params = opts[:form_params] || {}
|
124
|
+
|
125
|
+
# http body (model)
|
126
|
+
post_body = opts[:body]
|
127
|
+
|
128
|
+
# return_type
|
129
|
+
return_type = opts[:return_type] || 'TaskExecutionCollection'
|
130
|
+
|
131
|
+
# auth_names
|
132
|
+
auth_names = opts[:auth_names] || ['BasicAuth', 'BearerAuth']
|
133
|
+
|
134
|
+
new_options = opts.merge(
|
135
|
+
:header_params => header_params,
|
136
|
+
:query_params => query_params,
|
137
|
+
:form_params => form_params,
|
138
|
+
:body => post_body,
|
139
|
+
:auth_names => auth_names,
|
140
|
+
:return_type => return_type
|
141
|
+
)
|
142
|
+
|
143
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
144
|
+
if @api_client.config.debugging
|
145
|
+
@api_client.config.logger.debug "API called: TaskExecutionsApi#index_task_executions\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
146
|
+
end
|
147
|
+
return data, status_code, headers
|
148
|
+
end
|
149
|
+
|
150
|
+
# Lists all task executions.
|
151
|
+
# **API Key Scope**: task_executions / index
|
152
|
+
# @param [Hash] opts the optional parameters
|
153
|
+
# @option opts [String] :task_id Filter on task id
|
154
|
+
# @option opts [Integer] :limit The number of items to display for pagination.
|
155
|
+
# @option opts [Integer] :offset The number of items to skip for pagination.
|
156
|
+
# @option opts [Array<String>] :sort_by Sort results by attribute. Can sort on multiple attributes, separated by `|`. Order direction can be suffixing the attribute by either `:asc` (default) or `:desc`.
|
157
|
+
# @option opts [String] :id Filter on id
|
158
|
+
# @option opts [String] :name Filter on name
|
159
|
+
# @option opts [String] :workflow_type Filter on task workflow type
|
160
|
+
# @option opts [String] :workflow_action Filter on task workflow action
|
161
|
+
# @option opts [String] :source_type Filter on task source type
|
162
|
+
# @option opts [String] :destination_type Filter on task destination type
|
163
|
+
# @option opts [String] :status Filter on status
|
164
|
+
# @option opts [String] :log_time Filter on log time
|
165
|
+
# @option opts [String] :job_started Filter on job started
|
166
|
+
# @option opts [String] :job_finished Filter on job finished
|
167
|
+
# @option opts [String] :to_process_size Filter on to process size
|
168
|
+
# @option opts [String] :processed_size Filter on processed size
|
169
|
+
# @option opts [String] :to_process_files Filter on to process files
|
170
|
+
# @option opts [String] :processed_files Filter on processed files
|
171
|
+
# @option opts [String] :finalized_files Filter on finalized files
|
172
|
+
# @option opts [String] :estimation_time Filter on estimation time
|
173
|
+
# @option opts [String] :bandwidth Filter on bandwidth
|
174
|
+
# @return [TaskExecutionCollection]
|
175
|
+
def index_task_executions_by_task(opts = {})
|
176
|
+
data, _status_code, _headers = index_task_executions_by_task_with_http_info(opts)
|
177
|
+
data
|
178
|
+
end
|
179
|
+
|
180
|
+
# Lists all task executions.
|
181
|
+
# **API Key Scope**: task_executions / index
|
182
|
+
# @param [Hash] opts the optional parameters
|
183
|
+
# @option opts [String] :task_id Filter on task id
|
184
|
+
# @option opts [Integer] :limit The number of items to display for pagination.
|
185
|
+
# @option opts [Integer] :offset The number of items to skip for pagination.
|
186
|
+
# @option opts [Array<String>] :sort_by Sort results by attribute. Can sort on multiple attributes, separated by `|`. Order direction can be suffixing the attribute by either `:asc` (default) or `:desc`.
|
187
|
+
# @option opts [String] :id Filter on id
|
188
|
+
# @option opts [String] :name Filter on name
|
189
|
+
# @option opts [String] :workflow_type Filter on task workflow type
|
190
|
+
# @option opts [String] :workflow_action Filter on task workflow action
|
191
|
+
# @option opts [String] :source_type Filter on task source type
|
192
|
+
# @option opts [String] :destination_type Filter on task destination type
|
193
|
+
# @option opts [String] :status Filter on status
|
194
|
+
# @option opts [String] :log_time Filter on log time
|
195
|
+
# @option opts [String] :job_started Filter on job started
|
196
|
+
# @option opts [String] :job_finished Filter on job finished
|
197
|
+
# @option opts [String] :to_process_size Filter on to process size
|
198
|
+
# @option opts [String] :processed_size Filter on processed size
|
199
|
+
# @option opts [String] :to_process_files Filter on to process files
|
200
|
+
# @option opts [String] :processed_files Filter on processed files
|
201
|
+
# @option opts [String] :finalized_files Filter on finalized files
|
202
|
+
# @option opts [String] :estimation_time Filter on estimation time
|
203
|
+
# @option opts [String] :bandwidth Filter on bandwidth
|
204
|
+
# @return [Array<(TaskExecutionCollection, Integer, Hash)>] TaskExecutionCollection data, response status code and response headers
|
205
|
+
def index_task_executions_by_task_with_http_info(opts = {})
|
206
|
+
if @api_client.config.debugging
|
207
|
+
@api_client.config.logger.debug 'Calling API: TaskExecutionsApi.index_task_executions_by_task ...'
|
208
|
+
end
|
209
|
+
# resource path
|
210
|
+
local_var_path = '/tasks/{task_id}/task_executions'
|
211
|
+
|
212
|
+
# query parameters
|
213
|
+
query_params = opts[:query_params] || {}
|
214
|
+
query_params[:'task_id'] = opts[:'task_id'] if !opts[:'task_id'].nil?
|
215
|
+
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
216
|
+
query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
|
217
|
+
query_params[:'sort_by'] = @api_client.build_collection_param(opts[:'sort_by'], :pipe) if !opts[:'sort_by'].nil?
|
218
|
+
query_params[:'id'] = opts[:'id'] if !opts[:'id'].nil?
|
219
|
+
query_params[:'name'] = opts[:'name'] if !opts[:'name'].nil?
|
220
|
+
query_params[:'workflow_type'] = opts[:'workflow_type'] if !opts[:'workflow_type'].nil?
|
221
|
+
query_params[:'workflow_action'] = opts[:'workflow_action'] if !opts[:'workflow_action'].nil?
|
222
|
+
query_params[:'source_type'] = opts[:'source_type'] if !opts[:'source_type'].nil?
|
223
|
+
query_params[:'destination_type'] = opts[:'destination_type'] if !opts[:'destination_type'].nil?
|
224
|
+
query_params[:'status'] = opts[:'status'] if !opts[:'status'].nil?
|
225
|
+
query_params[:'log_time'] = opts[:'log_time'] if !opts[:'log_time'].nil?
|
226
|
+
query_params[:'job_started'] = opts[:'job_started'] if !opts[:'job_started'].nil?
|
227
|
+
query_params[:'job_finished'] = opts[:'job_finished'] if !opts[:'job_finished'].nil?
|
228
|
+
query_params[:'to_process_size'] = opts[:'to_process_size'] if !opts[:'to_process_size'].nil?
|
229
|
+
query_params[:'processed_size'] = opts[:'processed_size'] if !opts[:'processed_size'].nil?
|
230
|
+
query_params[:'to_process_files'] = opts[:'to_process_files'] if !opts[:'to_process_files'].nil?
|
231
|
+
query_params[:'processed_files'] = opts[:'processed_files'] if !opts[:'processed_files'].nil?
|
232
|
+
query_params[:'finalized_files'] = opts[:'finalized_files'] if !opts[:'finalized_files'].nil?
|
233
|
+
query_params[:'estimation_time'] = opts[:'estimation_time'] if !opts[:'estimation_time'].nil?
|
234
|
+
query_params[:'bandwidth'] = opts[:'bandwidth'] if !opts[:'bandwidth'].nil?
|
235
|
+
|
236
|
+
# header parameters
|
237
|
+
header_params = opts[:header_params] || {}
|
238
|
+
# HTTP header 'Accept' (if needed)
|
239
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
240
|
+
|
241
|
+
# form parameters
|
242
|
+
form_params = opts[:form_params] || {}
|
243
|
+
|
244
|
+
# http body (model)
|
245
|
+
post_body = opts[:body]
|
246
|
+
|
247
|
+
# return_type
|
248
|
+
return_type = opts[:return_type] || 'TaskExecutionCollection'
|
249
|
+
|
250
|
+
# auth_names
|
251
|
+
auth_names = opts[:auth_names] || ['BasicAuth', 'BearerAuth']
|
252
|
+
|
253
|
+
new_options = opts.merge(
|
254
|
+
:header_params => header_params,
|
255
|
+
:query_params => query_params,
|
256
|
+
:form_params => form_params,
|
257
|
+
:body => post_body,
|
258
|
+
:auth_names => auth_names,
|
259
|
+
:return_type => return_type
|
260
|
+
)
|
261
|
+
|
262
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
263
|
+
if @api_client.config.debugging
|
264
|
+
@api_client.config.logger.debug "API called: TaskExecutionsApi#index_task_executions_by_task\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
265
|
+
end
|
266
|
+
return data, status_code, headers
|
267
|
+
end
|
268
|
+
|
269
|
+
# Displays a specific task execution.
|
270
|
+
# **API Key Scope**: task_executions / show
|
271
|
+
# @param task_execution_id [String] Numeric ID of task execution.
|
272
|
+
# @param [Hash] opts the optional parameters
|
273
|
+
# @return [TaskExecution]
|
274
|
+
def show_task_execution(task_execution_id, opts = {})
|
275
|
+
data, _status_code, _headers = show_task_execution_with_http_info(task_execution_id, opts)
|
276
|
+
data
|
277
|
+
end
|
278
|
+
|
279
|
+
# Displays a specific task execution.
|
280
|
+
# **API Key Scope**: task_executions / show
|
281
|
+
# @param task_execution_id [String] Numeric ID of task execution.
|
282
|
+
# @param [Hash] opts the optional parameters
|
283
|
+
# @return [Array<(TaskExecution, Integer, Hash)>] TaskExecution data, response status code and response headers
|
284
|
+
def show_task_execution_with_http_info(task_execution_id, opts = {})
|
285
|
+
if @api_client.config.debugging
|
286
|
+
@api_client.config.logger.debug 'Calling API: TaskExecutionsApi.show_task_execution ...'
|
287
|
+
end
|
288
|
+
# verify the required parameter 'task_execution_id' is set
|
289
|
+
if @api_client.config.client_side_validation && task_execution_id.nil?
|
290
|
+
fail ArgumentError, "Missing the required parameter 'task_execution_id' when calling TaskExecutionsApi.show_task_execution"
|
291
|
+
end
|
292
|
+
# resource path
|
293
|
+
local_var_path = '/task_executions/{task_execution_id}'.sub('{' + 'task_execution_id' + '}', CGI.escape(task_execution_id.to_s))
|
294
|
+
|
295
|
+
# query parameters
|
296
|
+
query_params = opts[:query_params] || {}
|
297
|
+
|
298
|
+
# header parameters
|
299
|
+
header_params = opts[:header_params] || {}
|
300
|
+
# HTTP header 'Accept' (if needed)
|
301
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
302
|
+
|
303
|
+
# form parameters
|
304
|
+
form_params = opts[:form_params] || {}
|
305
|
+
|
306
|
+
# http body (model)
|
307
|
+
post_body = opts[:body]
|
308
|
+
|
309
|
+
# return_type
|
310
|
+
return_type = opts[:return_type] || 'TaskExecution'
|
311
|
+
|
312
|
+
# auth_names
|
313
|
+
auth_names = opts[:auth_names] || ['BasicAuth', 'BearerAuth']
|
314
|
+
|
315
|
+
new_options = opts.merge(
|
316
|
+
:header_params => header_params,
|
317
|
+
:query_params => query_params,
|
318
|
+
:form_params => form_params,
|
319
|
+
:body => post_body,
|
320
|
+
:auth_names => auth_names,
|
321
|
+
:return_type => return_type
|
322
|
+
)
|
323
|
+
|
324
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
325
|
+
if @api_client.config.debugging
|
326
|
+
@api_client.config.logger.debug "API called: TaskExecutionsApi#show_task_execution\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
327
|
+
end
|
328
|
+
return data, status_code, headers
|
329
|
+
end
|
330
|
+
|
331
|
+
# Displays a specific task execution.
|
332
|
+
# **API Key Scope**: task_executions / show
|
333
|
+
# @param task_id [String] Numeric ID or name of task. Task names are not unique, it's recommanded to use numeric ID.
|
334
|
+
# @param task_execution_id [String] Numeric ID of task execution.
|
335
|
+
# @param [Hash] opts the optional parameters
|
336
|
+
# @return [TaskExecution]
|
337
|
+
def show_task_execution_by_task(task_id, task_execution_id, opts = {})
|
338
|
+
data, _status_code, _headers = show_task_execution_by_task_with_http_info(task_id, task_execution_id, opts)
|
339
|
+
data
|
340
|
+
end
|
341
|
+
|
342
|
+
# Displays a specific task execution.
|
343
|
+
# **API Key Scope**: task_executions / show
|
344
|
+
# @param task_id [String] Numeric ID or name of task. Task names are not unique, it's recommanded to use numeric ID.
|
345
|
+
# @param task_execution_id [String] Numeric ID of task execution.
|
346
|
+
# @param [Hash] opts the optional parameters
|
347
|
+
# @return [Array<(TaskExecution, Integer, Hash)>] TaskExecution data, response status code and response headers
|
348
|
+
def show_task_execution_by_task_with_http_info(task_id, task_execution_id, opts = {})
|
349
|
+
if @api_client.config.debugging
|
350
|
+
@api_client.config.logger.debug 'Calling API: TaskExecutionsApi.show_task_execution_by_task ...'
|
351
|
+
end
|
352
|
+
# verify the required parameter 'task_id' is set
|
353
|
+
if @api_client.config.client_side_validation && task_id.nil?
|
354
|
+
fail ArgumentError, "Missing the required parameter 'task_id' when calling TaskExecutionsApi.show_task_execution_by_task"
|
355
|
+
end
|
356
|
+
# verify the required parameter 'task_execution_id' is set
|
357
|
+
if @api_client.config.client_side_validation && task_execution_id.nil?
|
358
|
+
fail ArgumentError, "Missing the required parameter 'task_execution_id' when calling TaskExecutionsApi.show_task_execution_by_task"
|
359
|
+
end
|
360
|
+
# resource path
|
361
|
+
local_var_path = '/tasks/{task_id}/task_executions/{task_execution_id}'.sub('{' + 'task_id' + '}', CGI.escape(task_id.to_s)).sub('{' + 'task_execution_id' + '}', CGI.escape(task_execution_id.to_s))
|
362
|
+
|
363
|
+
# query parameters
|
364
|
+
query_params = opts[:query_params] || {}
|
365
|
+
|
366
|
+
# header parameters
|
367
|
+
header_params = opts[:header_params] || {}
|
368
|
+
# HTTP header 'Accept' (if needed)
|
369
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
370
|
+
|
371
|
+
# form parameters
|
372
|
+
form_params = opts[:form_params] || {}
|
373
|
+
|
374
|
+
# http body (model)
|
375
|
+
post_body = opts[:body]
|
376
|
+
|
377
|
+
# return_type
|
378
|
+
return_type = opts[:return_type] || 'TaskExecution'
|
379
|
+
|
380
|
+
# auth_names
|
381
|
+
auth_names = opts[:auth_names] || ['BasicAuth', 'BearerAuth']
|
382
|
+
|
383
|
+
new_options = opts.merge(
|
384
|
+
:header_params => header_params,
|
385
|
+
:query_params => query_params,
|
386
|
+
:form_params => form_params,
|
387
|
+
:body => post_body,
|
388
|
+
:auth_names => auth_names,
|
389
|
+
:return_type => return_type
|
390
|
+
)
|
391
|
+
|
392
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
393
|
+
if @api_client.config.debugging
|
394
|
+
@api_client.config.logger.debug "API called: TaskExecutionsApi#show_task_execution_by_task\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
395
|
+
end
|
396
|
+
return data, status_code, headers
|
397
|
+
end
|
398
|
+
end
|
399
|
+
end
|
@@ -0,0 +1,382 @@
|
|
1
|
+
=begin
|
2
|
+
#Nodeum API
|
3
|
+
|
4
|
+
#The Nodeum API makes it easy to tap into the digital data mesh that runs across your organisation. Make requests to our API endpoints and we’ll give you everything you need to interconnect your business workflows with your storage. All production API requests are made to: http://nodeumhostname/api/ The current production version of the API is v1. **REST** The Nodeum API is a RESTful API. This means that the API is designed to allow you to get, create, update, & delete objects with the HTTP verbs GET, POST, PUT, PATCH, & DELETE. **JSON** The Nodeum API speaks exclusively in JSON. This means that you should always set the Content-Type header to application/json to ensure that your requests are properly accepted and processed by the API. **Authentication** All API calls require user-password authentication. **Cross-Origin Resource Sharing** The Nodeum API supports CORS for communicating from Javascript for these endpoints. You will need to specify an Origin URI when creating your application to allow for CORS to be whitelisted for your domain. **Pagination** Some endpoints such as File Listing return a potentially lengthy array of objects. In order to keep the response sizes manageable the API will take advantage of pagination. Pagination is a mechanism for returning a subset of the results for a request and allowing for subsequent requests to “page” through the rest of the results until the end is reached. Paginated endpoints follow a standard interface that accepts two query parameters, limit and offset, and return a payload that follows a standard form. These parameters names and their behavior are borrowed from SQL LIMIT and OFFSET keywords. **Versioning** The Nodeum API is constantly being worked on to add features, make improvements, and fix bugs. This means that you should expect changes to be introduced and documented. However, there are some changes or additions that are considered backwards-compatible and your applications should be flexible enough to handle them. These include: - Adding new endpoints to the API - Adding new attributes to the response of an existing endpoint - Changing the order of attributes of responses (JSON by definition is an object of unordered key/value pairs) **Filter parameters** When browsing a list of items, multiple filter parameters may be applied. Some operators can be added to the value as a prefix: - `=` value is equal. Default operator, may be omitted - `!=` value is different - `>` greater than - `>=` greater than or equal - `<` lower than - `>=` lower than or equal - `><` included in list, items should be separated by `|` - `!><` not included in list, items should be separated by `|` - `~` pattern matching, may include `%` (any characters) and `_` (one character) - `!~` pattern not matching, may include `%` (any characters) and `_` (one character)
|
5
|
+
|
6
|
+
The version of the OpenAPI document: 2.1.0
|
7
|
+
Contact: info@nodeum.io
|
8
|
+
Generated by: https://openapi-generator.tech
|
9
|
+
OpenAPI Generator version: 4.3.0
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'cgi'
|
14
|
+
|
15
|
+
module Nodeum
|
16
|
+
class TaskMetadataApi
|
17
|
+
attr_accessor :api_client
|
18
|
+
|
19
|
+
def initialize(api_client = ApiClient.default)
|
20
|
+
@api_client = api_client
|
21
|
+
end
|
22
|
+
# Creates a new task metadatum.
|
23
|
+
# **API Key Scope**: task_metadata / create
|
24
|
+
# @param task_id [String] Numeric ID or name of task. Task names are not unique, it's recommanded to use numeric ID.
|
25
|
+
# @param task_metadatum_body [TaskMetadatum]
|
26
|
+
# @param [Hash] opts the optional parameters
|
27
|
+
# @return [TaskMetadatum]
|
28
|
+
def create_task_metadatum(task_id, task_metadatum_body, opts = {})
|
29
|
+
data, _status_code, _headers = create_task_metadatum_with_http_info(task_id, task_metadatum_body, opts)
|
30
|
+
data
|
31
|
+
end
|
32
|
+
|
33
|
+
# Creates a new task metadatum.
|
34
|
+
# **API Key Scope**: task_metadata / create
|
35
|
+
# @param task_id [String] Numeric ID or name of task. Task names are not unique, it's recommanded to use numeric ID.
|
36
|
+
# @param task_metadatum_body [TaskMetadatum]
|
37
|
+
# @param [Hash] opts the optional parameters
|
38
|
+
# @return [Array<(TaskMetadatum, Integer, Hash)>] TaskMetadatum data, response status code and response headers
|
39
|
+
def create_task_metadatum_with_http_info(task_id, task_metadatum_body, opts = {})
|
40
|
+
if @api_client.config.debugging
|
41
|
+
@api_client.config.logger.debug 'Calling API: TaskMetadataApi.create_task_metadatum ...'
|
42
|
+
end
|
43
|
+
# verify the required parameter 'task_id' is set
|
44
|
+
if @api_client.config.client_side_validation && task_id.nil?
|
45
|
+
fail ArgumentError, "Missing the required parameter 'task_id' when calling TaskMetadataApi.create_task_metadatum"
|
46
|
+
end
|
47
|
+
# verify the required parameter 'task_metadatum_body' is set
|
48
|
+
if @api_client.config.client_side_validation && task_metadatum_body.nil?
|
49
|
+
fail ArgumentError, "Missing the required parameter 'task_metadatum_body' when calling TaskMetadataApi.create_task_metadatum"
|
50
|
+
end
|
51
|
+
# resource path
|
52
|
+
local_var_path = '/tasks/{task_id}/task_metadata'.sub('{' + 'task_id' + '}', CGI.escape(task_id.to_s))
|
53
|
+
|
54
|
+
# query parameters
|
55
|
+
query_params = opts[:query_params] || {}
|
56
|
+
|
57
|
+
# header parameters
|
58
|
+
header_params = opts[:header_params] || {}
|
59
|
+
# HTTP header 'Accept' (if needed)
|
60
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
61
|
+
# HTTP header 'Content-Type'
|
62
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
63
|
+
|
64
|
+
# form parameters
|
65
|
+
form_params = opts[:form_params] || {}
|
66
|
+
|
67
|
+
# http body (model)
|
68
|
+
post_body = opts[:body] || @api_client.object_to_http_body(task_metadatum_body)
|
69
|
+
|
70
|
+
# return_type
|
71
|
+
return_type = opts[:return_type] || 'TaskMetadatum'
|
72
|
+
|
73
|
+
# auth_names
|
74
|
+
auth_names = opts[:auth_names] || ['BasicAuth', 'BearerAuth']
|
75
|
+
|
76
|
+
new_options = opts.merge(
|
77
|
+
:header_params => header_params,
|
78
|
+
:query_params => query_params,
|
79
|
+
:form_params => form_params,
|
80
|
+
:body => post_body,
|
81
|
+
:auth_names => auth_names,
|
82
|
+
:return_type => return_type
|
83
|
+
)
|
84
|
+
|
85
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
86
|
+
if @api_client.config.debugging
|
87
|
+
@api_client.config.logger.debug "API called: TaskMetadataApi#create_task_metadatum\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
88
|
+
end
|
89
|
+
return data, status_code, headers
|
90
|
+
end
|
91
|
+
|
92
|
+
# Destroys a specific task metadatum.
|
93
|
+
# **API Key Scope**: task_metadata / destroy
|
94
|
+
# @param task_id [String] Numeric ID or name of task. Task names are not unique, it's recommanded to use numeric ID.
|
95
|
+
# @param task_metadatum_id [Integer] Numeric ID of task metadatum.
|
96
|
+
# @param [Hash] opts the optional parameters
|
97
|
+
# @return [nil]
|
98
|
+
def destroy_task_metadatum(task_id, task_metadatum_id, opts = {})
|
99
|
+
destroy_task_metadatum_with_http_info(task_id, task_metadatum_id, opts)
|
100
|
+
nil
|
101
|
+
end
|
102
|
+
|
103
|
+
# Destroys a specific task metadatum.
|
104
|
+
# **API Key Scope**: task_metadata / destroy
|
105
|
+
# @param task_id [String] Numeric ID or name of task. Task names are not unique, it's recommanded to use numeric ID.
|
106
|
+
# @param task_metadatum_id [Integer] Numeric ID of task metadatum.
|
107
|
+
# @param [Hash] opts the optional parameters
|
108
|
+
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
109
|
+
def destroy_task_metadatum_with_http_info(task_id, task_metadatum_id, opts = {})
|
110
|
+
if @api_client.config.debugging
|
111
|
+
@api_client.config.logger.debug 'Calling API: TaskMetadataApi.destroy_task_metadatum ...'
|
112
|
+
end
|
113
|
+
# verify the required parameter 'task_id' is set
|
114
|
+
if @api_client.config.client_side_validation && task_id.nil?
|
115
|
+
fail ArgumentError, "Missing the required parameter 'task_id' when calling TaskMetadataApi.destroy_task_metadatum"
|
116
|
+
end
|
117
|
+
# verify the required parameter 'task_metadatum_id' is set
|
118
|
+
if @api_client.config.client_side_validation && task_metadatum_id.nil?
|
119
|
+
fail ArgumentError, "Missing the required parameter 'task_metadatum_id' when calling TaskMetadataApi.destroy_task_metadatum"
|
120
|
+
end
|
121
|
+
# resource path
|
122
|
+
local_var_path = '/tasks/{task_id}/task_metadata/{task_metadatum_id}'.sub('{' + 'task_id' + '}', CGI.escape(task_id.to_s)).sub('{' + 'task_metadatum_id' + '}', CGI.escape(task_metadatum_id.to_s))
|
123
|
+
|
124
|
+
# query parameters
|
125
|
+
query_params = opts[:query_params] || {}
|
126
|
+
|
127
|
+
# header parameters
|
128
|
+
header_params = opts[:header_params] || {}
|
129
|
+
|
130
|
+
# form parameters
|
131
|
+
form_params = opts[:form_params] || {}
|
132
|
+
|
133
|
+
# http body (model)
|
134
|
+
post_body = opts[:body]
|
135
|
+
|
136
|
+
# return_type
|
137
|
+
return_type = opts[:return_type]
|
138
|
+
|
139
|
+
# auth_names
|
140
|
+
auth_names = opts[:auth_names] || ['BasicAuth', 'BearerAuth']
|
141
|
+
|
142
|
+
new_options = opts.merge(
|
143
|
+
:header_params => header_params,
|
144
|
+
:query_params => query_params,
|
145
|
+
:form_params => form_params,
|
146
|
+
:body => post_body,
|
147
|
+
:auth_names => auth_names,
|
148
|
+
:return_type => return_type
|
149
|
+
)
|
150
|
+
|
151
|
+
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
|
152
|
+
if @api_client.config.debugging
|
153
|
+
@api_client.config.logger.debug "API called: TaskMetadataApi#destroy_task_metadatum\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
154
|
+
end
|
155
|
+
return data, status_code, headers
|
156
|
+
end
|
157
|
+
|
158
|
+
# Lists all task metadata.
|
159
|
+
# **API Key Scope**: task_metadata / index
|
160
|
+
# @param task_id [String] Numeric ID or name of task. Task names are not unique, it's recommanded to use numeric ID.
|
161
|
+
# @param [Hash] opts the optional parameters
|
162
|
+
# @option opts [Integer] :limit The number of items to display for pagination.
|
163
|
+
# @option opts [Integer] :offset The number of items to skip for pagination.
|
164
|
+
# @option opts [Array<String>] :sort_by Sort results by attribute. Can sort on multiple attributes, separated by `|`. Order direction can be suffixing the attribute by either `:asc` (default) or `:desc`.
|
165
|
+
# @option opts [String] :id Filter on id
|
166
|
+
# @option opts [String] :key Filter on key
|
167
|
+
# @option opts [String] :value Filter on value
|
168
|
+
# @return [TaskMetadatumCollection]
|
169
|
+
def index_task_metadata(task_id, opts = {})
|
170
|
+
data, _status_code, _headers = index_task_metadata_with_http_info(task_id, opts)
|
171
|
+
data
|
172
|
+
end
|
173
|
+
|
174
|
+
# Lists all task metadata.
|
175
|
+
# **API Key Scope**: task_metadata / index
|
176
|
+
# @param task_id [String] Numeric ID or name of task. Task names are not unique, it's recommanded to use numeric ID.
|
177
|
+
# @param [Hash] opts the optional parameters
|
178
|
+
# @option opts [Integer] :limit The number of items to display for pagination.
|
179
|
+
# @option opts [Integer] :offset The number of items to skip for pagination.
|
180
|
+
# @option opts [Array<String>] :sort_by Sort results by attribute. Can sort on multiple attributes, separated by `|`. Order direction can be suffixing the attribute by either `:asc` (default) or `:desc`.
|
181
|
+
# @option opts [String] :id Filter on id
|
182
|
+
# @option opts [String] :key Filter on key
|
183
|
+
# @option opts [String] :value Filter on value
|
184
|
+
# @return [Array<(TaskMetadatumCollection, Integer, Hash)>] TaskMetadatumCollection data, response status code and response headers
|
185
|
+
def index_task_metadata_with_http_info(task_id, opts = {})
|
186
|
+
if @api_client.config.debugging
|
187
|
+
@api_client.config.logger.debug 'Calling API: TaskMetadataApi.index_task_metadata ...'
|
188
|
+
end
|
189
|
+
# verify the required parameter 'task_id' is set
|
190
|
+
if @api_client.config.client_side_validation && task_id.nil?
|
191
|
+
fail ArgumentError, "Missing the required parameter 'task_id' when calling TaskMetadataApi.index_task_metadata"
|
192
|
+
end
|
193
|
+
# resource path
|
194
|
+
local_var_path = '/tasks/{task_id}/task_metadata'.sub('{' + 'task_id' + '}', CGI.escape(task_id.to_s))
|
195
|
+
|
196
|
+
# query parameters
|
197
|
+
query_params = opts[:query_params] || {}
|
198
|
+
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
199
|
+
query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
|
200
|
+
query_params[:'sort_by'] = @api_client.build_collection_param(opts[:'sort_by'], :pipe) if !opts[:'sort_by'].nil?
|
201
|
+
query_params[:'id'] = opts[:'id'] if !opts[:'id'].nil?
|
202
|
+
query_params[:'key'] = opts[:'key'] if !opts[:'key'].nil?
|
203
|
+
query_params[:'value'] = opts[:'value'] if !opts[:'value'].nil?
|
204
|
+
|
205
|
+
# header parameters
|
206
|
+
header_params = opts[:header_params] || {}
|
207
|
+
# HTTP header 'Accept' (if needed)
|
208
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
209
|
+
|
210
|
+
# form parameters
|
211
|
+
form_params = opts[:form_params] || {}
|
212
|
+
|
213
|
+
# http body (model)
|
214
|
+
post_body = opts[:body]
|
215
|
+
|
216
|
+
# return_type
|
217
|
+
return_type = opts[:return_type] || 'TaskMetadatumCollection'
|
218
|
+
|
219
|
+
# auth_names
|
220
|
+
auth_names = opts[:auth_names] || ['BasicAuth', 'BearerAuth']
|
221
|
+
|
222
|
+
new_options = opts.merge(
|
223
|
+
:header_params => header_params,
|
224
|
+
:query_params => query_params,
|
225
|
+
:form_params => form_params,
|
226
|
+
:body => post_body,
|
227
|
+
:auth_names => auth_names,
|
228
|
+
:return_type => return_type
|
229
|
+
)
|
230
|
+
|
231
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
232
|
+
if @api_client.config.debugging
|
233
|
+
@api_client.config.logger.debug "API called: TaskMetadataApi#index_task_metadata\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
234
|
+
end
|
235
|
+
return data, status_code, headers
|
236
|
+
end
|
237
|
+
|
238
|
+
# Displays a specific task metadatum.
|
239
|
+
# **API Key Scope**: task_metadata / show
|
240
|
+
# @param task_id [String] Numeric ID or name of task. Task names are not unique, it's recommanded to use numeric ID.
|
241
|
+
# @param task_metadatum_id [Integer] Numeric ID of task metadatum.
|
242
|
+
# @param [Hash] opts the optional parameters
|
243
|
+
# @return [TaskMetadatum]
|
244
|
+
def show_task_metadatum(task_id, task_metadatum_id, opts = {})
|
245
|
+
data, _status_code, _headers = show_task_metadatum_with_http_info(task_id, task_metadatum_id, opts)
|
246
|
+
data
|
247
|
+
end
|
248
|
+
|
249
|
+
# Displays a specific task metadatum.
|
250
|
+
# **API Key Scope**: task_metadata / show
|
251
|
+
# @param task_id [String] Numeric ID or name of task. Task names are not unique, it's recommanded to use numeric ID.
|
252
|
+
# @param task_metadatum_id [Integer] Numeric ID of task metadatum.
|
253
|
+
# @param [Hash] opts the optional parameters
|
254
|
+
# @return [Array<(TaskMetadatum, Integer, Hash)>] TaskMetadatum data, response status code and response headers
|
255
|
+
def show_task_metadatum_with_http_info(task_id, task_metadatum_id, opts = {})
|
256
|
+
if @api_client.config.debugging
|
257
|
+
@api_client.config.logger.debug 'Calling API: TaskMetadataApi.show_task_metadatum ...'
|
258
|
+
end
|
259
|
+
# verify the required parameter 'task_id' is set
|
260
|
+
if @api_client.config.client_side_validation && task_id.nil?
|
261
|
+
fail ArgumentError, "Missing the required parameter 'task_id' when calling TaskMetadataApi.show_task_metadatum"
|
262
|
+
end
|
263
|
+
# verify the required parameter 'task_metadatum_id' is set
|
264
|
+
if @api_client.config.client_side_validation && task_metadatum_id.nil?
|
265
|
+
fail ArgumentError, "Missing the required parameter 'task_metadatum_id' when calling TaskMetadataApi.show_task_metadatum"
|
266
|
+
end
|
267
|
+
# resource path
|
268
|
+
local_var_path = '/tasks/{task_id}/task_metadata/{task_metadatum_id}'.sub('{' + 'task_id' + '}', CGI.escape(task_id.to_s)).sub('{' + 'task_metadatum_id' + '}', CGI.escape(task_metadatum_id.to_s))
|
269
|
+
|
270
|
+
# query parameters
|
271
|
+
query_params = opts[:query_params] || {}
|
272
|
+
|
273
|
+
# header parameters
|
274
|
+
header_params = opts[:header_params] || {}
|
275
|
+
# HTTP header 'Accept' (if needed)
|
276
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
277
|
+
|
278
|
+
# form parameters
|
279
|
+
form_params = opts[:form_params] || {}
|
280
|
+
|
281
|
+
# http body (model)
|
282
|
+
post_body = opts[:body]
|
283
|
+
|
284
|
+
# return_type
|
285
|
+
return_type = opts[:return_type] || 'TaskMetadatum'
|
286
|
+
|
287
|
+
# auth_names
|
288
|
+
auth_names = opts[:auth_names] || ['BasicAuth', 'BearerAuth']
|
289
|
+
|
290
|
+
new_options = opts.merge(
|
291
|
+
:header_params => header_params,
|
292
|
+
:query_params => query_params,
|
293
|
+
:form_params => form_params,
|
294
|
+
:body => post_body,
|
295
|
+
:auth_names => auth_names,
|
296
|
+
:return_type => return_type
|
297
|
+
)
|
298
|
+
|
299
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
300
|
+
if @api_client.config.debugging
|
301
|
+
@api_client.config.logger.debug "API called: TaskMetadataApi#show_task_metadatum\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
302
|
+
end
|
303
|
+
return data, status_code, headers
|
304
|
+
end
|
305
|
+
|
306
|
+
# Updates a specific task metadatum.
|
307
|
+
# **API Key Scope**: task_metadata / update
|
308
|
+
# @param task_id [String] Numeric ID or name of task. Task names are not unique, it's recommanded to use numeric ID.
|
309
|
+
# @param task_metadatum_id [Integer] Numeric ID of task metadatum.
|
310
|
+
# @param task_metadatum_body [TaskMetadatum]
|
311
|
+
# @param [Hash] opts the optional parameters
|
312
|
+
# @return [TaskMetadatum]
|
313
|
+
def update_task_metadatum(task_id, task_metadatum_id, task_metadatum_body, opts = {})
|
314
|
+
data, _status_code, _headers = update_task_metadatum_with_http_info(task_id, task_metadatum_id, task_metadatum_body, opts)
|
315
|
+
data
|
316
|
+
end
|
317
|
+
|
318
|
+
# Updates a specific task metadatum.
|
319
|
+
# **API Key Scope**: task_metadata / update
|
320
|
+
# @param task_id [String] Numeric ID or name of task. Task names are not unique, it's recommanded to use numeric ID.
|
321
|
+
# @param task_metadatum_id [Integer] Numeric ID of task metadatum.
|
322
|
+
# @param task_metadatum_body [TaskMetadatum]
|
323
|
+
# @param [Hash] opts the optional parameters
|
324
|
+
# @return [Array<(TaskMetadatum, Integer, Hash)>] TaskMetadatum data, response status code and response headers
|
325
|
+
def update_task_metadatum_with_http_info(task_id, task_metadatum_id, task_metadatum_body, opts = {})
|
326
|
+
if @api_client.config.debugging
|
327
|
+
@api_client.config.logger.debug 'Calling API: TaskMetadataApi.update_task_metadatum ...'
|
328
|
+
end
|
329
|
+
# verify the required parameter 'task_id' is set
|
330
|
+
if @api_client.config.client_side_validation && task_id.nil?
|
331
|
+
fail ArgumentError, "Missing the required parameter 'task_id' when calling TaskMetadataApi.update_task_metadatum"
|
332
|
+
end
|
333
|
+
# verify the required parameter 'task_metadatum_id' is set
|
334
|
+
if @api_client.config.client_side_validation && task_metadatum_id.nil?
|
335
|
+
fail ArgumentError, "Missing the required parameter 'task_metadatum_id' when calling TaskMetadataApi.update_task_metadatum"
|
336
|
+
end
|
337
|
+
# verify the required parameter 'task_metadatum_body' is set
|
338
|
+
if @api_client.config.client_side_validation && task_metadatum_body.nil?
|
339
|
+
fail ArgumentError, "Missing the required parameter 'task_metadatum_body' when calling TaskMetadataApi.update_task_metadatum"
|
340
|
+
end
|
341
|
+
# resource path
|
342
|
+
local_var_path = '/tasks/{task_id}/task_metadata/{task_metadatum_id}'.sub('{' + 'task_id' + '}', CGI.escape(task_id.to_s)).sub('{' + 'task_metadatum_id' + '}', CGI.escape(task_metadatum_id.to_s))
|
343
|
+
|
344
|
+
# query parameters
|
345
|
+
query_params = opts[:query_params] || {}
|
346
|
+
|
347
|
+
# header parameters
|
348
|
+
header_params = opts[:header_params] || {}
|
349
|
+
# HTTP header 'Accept' (if needed)
|
350
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
351
|
+
# HTTP header 'Content-Type'
|
352
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
353
|
+
|
354
|
+
# form parameters
|
355
|
+
form_params = opts[:form_params] || {}
|
356
|
+
|
357
|
+
# http body (model)
|
358
|
+
post_body = opts[:body] || @api_client.object_to_http_body(task_metadatum_body)
|
359
|
+
|
360
|
+
# return_type
|
361
|
+
return_type = opts[:return_type] || 'TaskMetadatum'
|
362
|
+
|
363
|
+
# auth_names
|
364
|
+
auth_names = opts[:auth_names] || ['BasicAuth', 'BearerAuth']
|
365
|
+
|
366
|
+
new_options = opts.merge(
|
367
|
+
:header_params => header_params,
|
368
|
+
:query_params => query_params,
|
369
|
+
:form_params => form_params,
|
370
|
+
:body => post_body,
|
371
|
+
:auth_names => auth_names,
|
372
|
+
:return_type => return_type
|
373
|
+
)
|
374
|
+
|
375
|
+
data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
|
376
|
+
if @api_client.config.debugging
|
377
|
+
@api_client.config.logger.debug "API called: TaskMetadataApi#update_task_metadatum\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
378
|
+
end
|
379
|
+
return data, status_code, headers
|
380
|
+
end
|
381
|
+
end
|
382
|
+
end
|