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,2418 @@
|
|
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 FilesApi
|
17
|
+
attr_accessor :api_client
|
18
|
+
|
19
|
+
def initialize(api_client = ApiClient.default)
|
20
|
+
@api_client = api_client
|
21
|
+
end
|
22
|
+
# Lists files under a specific folder.
|
23
|
+
# **API Key Scope**: files / index
|
24
|
+
# @param file_parent_id [Integer] Numeric ID of parent folder.
|
25
|
+
# @param [Hash] opts the optional parameters
|
26
|
+
# @option opts [Integer] :limit The number of items to display for pagination.
|
27
|
+
# @option opts [Integer] :offset The number of items to skip for pagination.
|
28
|
+
# @option opts [String] :file_id Filter on file id
|
29
|
+
# @option opts [String] :name Filter on name
|
30
|
+
# @option opts [String] :type Filter on type
|
31
|
+
# @option opts [String] :permission Filter on permission
|
32
|
+
# @option opts [String] :size Filter on size
|
33
|
+
# @option opts [String] :change_date Filter on change date
|
34
|
+
# @option opts [String] :modification_date Filter on modification date
|
35
|
+
# @option opts [String] :access_date Filter on access date
|
36
|
+
# @option opts [String] :gid Filter on gid
|
37
|
+
# @option opts [String] :uid Filter on uid
|
38
|
+
# @return [NodeumFileCollection]
|
39
|
+
def files_children(file_parent_id, opts = {})
|
40
|
+
data, _status_code, _headers = files_children_with_http_info(file_parent_id, opts)
|
41
|
+
data
|
42
|
+
end
|
43
|
+
|
44
|
+
# Lists files under a specific folder.
|
45
|
+
# **API Key Scope**: files / index
|
46
|
+
# @param file_parent_id [Integer] Numeric ID of parent folder.
|
47
|
+
# @param [Hash] opts the optional parameters
|
48
|
+
# @option opts [Integer] :limit The number of items to display for pagination.
|
49
|
+
# @option opts [Integer] :offset The number of items to skip for pagination.
|
50
|
+
# @option opts [String] :file_id Filter on file id
|
51
|
+
# @option opts [String] :name Filter on name
|
52
|
+
# @option opts [String] :type Filter on type
|
53
|
+
# @option opts [String] :permission Filter on permission
|
54
|
+
# @option opts [String] :size Filter on size
|
55
|
+
# @option opts [String] :change_date Filter on change date
|
56
|
+
# @option opts [String] :modification_date Filter on modification date
|
57
|
+
# @option opts [String] :access_date Filter on access date
|
58
|
+
# @option opts [String] :gid Filter on gid
|
59
|
+
# @option opts [String] :uid Filter on uid
|
60
|
+
# @return [Array<(NodeumFileCollection, Integer, Hash)>] NodeumFileCollection data, response status code and response headers
|
61
|
+
def files_children_with_http_info(file_parent_id, opts = {})
|
62
|
+
if @api_client.config.debugging
|
63
|
+
@api_client.config.logger.debug 'Calling API: FilesApi.files_children ...'
|
64
|
+
end
|
65
|
+
# verify the required parameter 'file_parent_id' is set
|
66
|
+
if @api_client.config.client_side_validation && file_parent_id.nil?
|
67
|
+
fail ArgumentError, "Missing the required parameter 'file_parent_id' when calling FilesApi.files_children"
|
68
|
+
end
|
69
|
+
# resource path
|
70
|
+
local_var_path = '/files/{file_parent_id}/children'.sub('{' + 'file_parent_id' + '}', CGI.escape(file_parent_id.to_s))
|
71
|
+
|
72
|
+
# query parameters
|
73
|
+
query_params = opts[:query_params] || {}
|
74
|
+
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
75
|
+
query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
|
76
|
+
query_params[:'file_id'] = opts[:'file_id'] if !opts[:'file_id'].nil?
|
77
|
+
query_params[:'name'] = opts[:'name'] if !opts[:'name'].nil?
|
78
|
+
query_params[:'type'] = opts[:'type'] if !opts[:'type'].nil?
|
79
|
+
query_params[:'permission'] = opts[:'permission'] if !opts[:'permission'].nil?
|
80
|
+
query_params[:'size'] = opts[:'size'] if !opts[:'size'].nil?
|
81
|
+
query_params[:'change_date'] = opts[:'change_date'] if !opts[:'change_date'].nil?
|
82
|
+
query_params[:'modification_date'] = opts[:'modification_date'] if !opts[:'modification_date'].nil?
|
83
|
+
query_params[:'access_date'] = opts[:'access_date'] if !opts[:'access_date'].nil?
|
84
|
+
query_params[:'gid'] = opts[:'gid'] if !opts[:'gid'].nil?
|
85
|
+
query_params[:'uid'] = opts[:'uid'] if !opts[:'uid'].nil?
|
86
|
+
|
87
|
+
# header parameters
|
88
|
+
header_params = opts[:header_params] || {}
|
89
|
+
# HTTP header 'Accept' (if needed)
|
90
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
91
|
+
|
92
|
+
# form parameters
|
93
|
+
form_params = opts[:form_params] || {}
|
94
|
+
|
95
|
+
# http body (model)
|
96
|
+
post_body = opts[:body]
|
97
|
+
|
98
|
+
# return_type
|
99
|
+
return_type = opts[:return_type] || 'NodeumFileCollection'
|
100
|
+
|
101
|
+
# auth_names
|
102
|
+
auth_names = opts[:auth_names] || ['BasicAuth', 'BearerAuth']
|
103
|
+
|
104
|
+
new_options = opts.merge(
|
105
|
+
:header_params => header_params,
|
106
|
+
:query_params => query_params,
|
107
|
+
:form_params => form_params,
|
108
|
+
:body => post_body,
|
109
|
+
:auth_names => auth_names,
|
110
|
+
:return_type => return_type
|
111
|
+
)
|
112
|
+
|
113
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
114
|
+
if @api_client.config.debugging
|
115
|
+
@api_client.config.logger.debug "API called: FilesApi#files_children\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
116
|
+
end
|
117
|
+
return data, status_code, headers
|
118
|
+
end
|
119
|
+
|
120
|
+
# Lists files under a specific folder.
|
121
|
+
# **API Key Scope**: files / index
|
122
|
+
# @param container_id [String] Numeric ID or name of container.
|
123
|
+
# @param file_parent_id [Integer] Numeric ID of parent folder.
|
124
|
+
# @param [Hash] opts the optional parameters
|
125
|
+
# @option opts [Integer] :limit The number of items to display for pagination.
|
126
|
+
# @option opts [Integer] :offset The number of items to skip for pagination.
|
127
|
+
# @option opts [String] :file_id Filter on file id
|
128
|
+
# @option opts [String] :name Filter on name
|
129
|
+
# @option opts [String] :type Filter on type
|
130
|
+
# @option opts [String] :permission Filter on permission
|
131
|
+
# @option opts [String] :size Filter on size
|
132
|
+
# @option opts [String] :change_date Filter on change date
|
133
|
+
# @option opts [String] :modification_date Filter on modification date
|
134
|
+
# @option opts [String] :access_date Filter on access date
|
135
|
+
# @option opts [String] :gid Filter on gid
|
136
|
+
# @option opts [String] :uid Filter on uid
|
137
|
+
# @return [NodeumFileCollection]
|
138
|
+
def files_children_by_container(container_id, file_parent_id, opts = {})
|
139
|
+
data, _status_code, _headers = files_children_by_container_with_http_info(container_id, file_parent_id, opts)
|
140
|
+
data
|
141
|
+
end
|
142
|
+
|
143
|
+
# Lists files under a specific folder.
|
144
|
+
# **API Key Scope**: files / index
|
145
|
+
# @param container_id [String] Numeric ID or name of container.
|
146
|
+
# @param file_parent_id [Integer] Numeric ID of parent folder.
|
147
|
+
# @param [Hash] opts the optional parameters
|
148
|
+
# @option opts [Integer] :limit The number of items to display for pagination.
|
149
|
+
# @option opts [Integer] :offset The number of items to skip for pagination.
|
150
|
+
# @option opts [String] :file_id Filter on file id
|
151
|
+
# @option opts [String] :name Filter on name
|
152
|
+
# @option opts [String] :type Filter on type
|
153
|
+
# @option opts [String] :permission Filter on permission
|
154
|
+
# @option opts [String] :size Filter on size
|
155
|
+
# @option opts [String] :change_date Filter on change date
|
156
|
+
# @option opts [String] :modification_date Filter on modification date
|
157
|
+
# @option opts [String] :access_date Filter on access date
|
158
|
+
# @option opts [String] :gid Filter on gid
|
159
|
+
# @option opts [String] :uid Filter on uid
|
160
|
+
# @return [Array<(NodeumFileCollection, Integer, Hash)>] NodeumFileCollection data, response status code and response headers
|
161
|
+
def files_children_by_container_with_http_info(container_id, file_parent_id, opts = {})
|
162
|
+
if @api_client.config.debugging
|
163
|
+
@api_client.config.logger.debug 'Calling API: FilesApi.files_children_by_container ...'
|
164
|
+
end
|
165
|
+
# verify the required parameter 'container_id' is set
|
166
|
+
if @api_client.config.client_side_validation && container_id.nil?
|
167
|
+
fail ArgumentError, "Missing the required parameter 'container_id' when calling FilesApi.files_children_by_container"
|
168
|
+
end
|
169
|
+
# verify the required parameter 'file_parent_id' is set
|
170
|
+
if @api_client.config.client_side_validation && file_parent_id.nil?
|
171
|
+
fail ArgumentError, "Missing the required parameter 'file_parent_id' when calling FilesApi.files_children_by_container"
|
172
|
+
end
|
173
|
+
# resource path
|
174
|
+
local_var_path = '/containers/{container_id}/files/{file_parent_id}/children'.sub('{' + 'container_id' + '}', CGI.escape(container_id.to_s)).sub('{' + 'file_parent_id' + '}', CGI.escape(file_parent_id.to_s))
|
175
|
+
|
176
|
+
# query parameters
|
177
|
+
query_params = opts[:query_params] || {}
|
178
|
+
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
179
|
+
query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
|
180
|
+
query_params[:'file_id'] = opts[:'file_id'] if !opts[:'file_id'].nil?
|
181
|
+
query_params[:'name'] = opts[:'name'] if !opts[:'name'].nil?
|
182
|
+
query_params[:'type'] = opts[:'type'] if !opts[:'type'].nil?
|
183
|
+
query_params[:'permission'] = opts[:'permission'] if !opts[:'permission'].nil?
|
184
|
+
query_params[:'size'] = opts[:'size'] if !opts[:'size'].nil?
|
185
|
+
query_params[:'change_date'] = opts[:'change_date'] if !opts[:'change_date'].nil?
|
186
|
+
query_params[:'modification_date'] = opts[:'modification_date'] if !opts[:'modification_date'].nil?
|
187
|
+
query_params[:'access_date'] = opts[:'access_date'] if !opts[:'access_date'].nil?
|
188
|
+
query_params[:'gid'] = opts[:'gid'] if !opts[:'gid'].nil?
|
189
|
+
query_params[:'uid'] = opts[:'uid'] if !opts[:'uid'].nil?
|
190
|
+
|
191
|
+
# header parameters
|
192
|
+
header_params = opts[:header_params] || {}
|
193
|
+
# HTTP header 'Accept' (if needed)
|
194
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
195
|
+
|
196
|
+
# form parameters
|
197
|
+
form_params = opts[:form_params] || {}
|
198
|
+
|
199
|
+
# http body (model)
|
200
|
+
post_body = opts[:body]
|
201
|
+
|
202
|
+
# return_type
|
203
|
+
return_type = opts[:return_type] || 'NodeumFileCollection'
|
204
|
+
|
205
|
+
# auth_names
|
206
|
+
auth_names = opts[:auth_names] || ['BasicAuth', 'BearerAuth']
|
207
|
+
|
208
|
+
new_options = opts.merge(
|
209
|
+
:header_params => header_params,
|
210
|
+
:query_params => query_params,
|
211
|
+
:form_params => form_params,
|
212
|
+
:body => post_body,
|
213
|
+
:auth_names => auth_names,
|
214
|
+
:return_type => return_type
|
215
|
+
)
|
216
|
+
|
217
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
218
|
+
if @api_client.config.debugging
|
219
|
+
@api_client.config.logger.debug "API called: FilesApi#files_children_by_container\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
220
|
+
end
|
221
|
+
return data, status_code, headers
|
222
|
+
end
|
223
|
+
|
224
|
+
# Lists files under a specific folder.
|
225
|
+
# **API Key Scope**: files / index
|
226
|
+
# @param pool_id [String] Numeric ID, or name of pool.
|
227
|
+
# @param file_parent_id [Integer] Numeric ID of parent folder.
|
228
|
+
# @param [Hash] opts the optional parameters
|
229
|
+
# @option opts [Integer] :limit The number of items to display for pagination.
|
230
|
+
# @option opts [Integer] :offset The number of items to skip for pagination.
|
231
|
+
# @option opts [String] :file_id Filter on file id
|
232
|
+
# @option opts [String] :name Filter on name
|
233
|
+
# @option opts [String] :type Filter on type
|
234
|
+
# @option opts [String] :permission Filter on permission
|
235
|
+
# @option opts [String] :size Filter on size
|
236
|
+
# @option opts [String] :change_date Filter on change date
|
237
|
+
# @option opts [String] :modification_date Filter on modification date
|
238
|
+
# @option opts [String] :access_date Filter on access date
|
239
|
+
# @option opts [String] :gid Filter on gid
|
240
|
+
# @option opts [String] :uid Filter on uid
|
241
|
+
# @return [NodeumFileCollection]
|
242
|
+
def files_children_by_pool(pool_id, file_parent_id, opts = {})
|
243
|
+
data, _status_code, _headers = files_children_by_pool_with_http_info(pool_id, file_parent_id, opts)
|
244
|
+
data
|
245
|
+
end
|
246
|
+
|
247
|
+
# Lists files under a specific folder.
|
248
|
+
# **API Key Scope**: files / index
|
249
|
+
# @param pool_id [String] Numeric ID, or name of pool.
|
250
|
+
# @param file_parent_id [Integer] Numeric ID of parent folder.
|
251
|
+
# @param [Hash] opts the optional parameters
|
252
|
+
# @option opts [Integer] :limit The number of items to display for pagination.
|
253
|
+
# @option opts [Integer] :offset The number of items to skip for pagination.
|
254
|
+
# @option opts [String] :file_id Filter on file id
|
255
|
+
# @option opts [String] :name Filter on name
|
256
|
+
# @option opts [String] :type Filter on type
|
257
|
+
# @option opts [String] :permission Filter on permission
|
258
|
+
# @option opts [String] :size Filter on size
|
259
|
+
# @option opts [String] :change_date Filter on change date
|
260
|
+
# @option opts [String] :modification_date Filter on modification date
|
261
|
+
# @option opts [String] :access_date Filter on access date
|
262
|
+
# @option opts [String] :gid Filter on gid
|
263
|
+
# @option opts [String] :uid Filter on uid
|
264
|
+
# @return [Array<(NodeumFileCollection, Integer, Hash)>] NodeumFileCollection data, response status code and response headers
|
265
|
+
def files_children_by_pool_with_http_info(pool_id, file_parent_id, opts = {})
|
266
|
+
if @api_client.config.debugging
|
267
|
+
@api_client.config.logger.debug 'Calling API: FilesApi.files_children_by_pool ...'
|
268
|
+
end
|
269
|
+
# verify the required parameter 'pool_id' is set
|
270
|
+
if @api_client.config.client_side_validation && pool_id.nil?
|
271
|
+
fail ArgumentError, "Missing the required parameter 'pool_id' when calling FilesApi.files_children_by_pool"
|
272
|
+
end
|
273
|
+
# verify the required parameter 'file_parent_id' is set
|
274
|
+
if @api_client.config.client_side_validation && file_parent_id.nil?
|
275
|
+
fail ArgumentError, "Missing the required parameter 'file_parent_id' when calling FilesApi.files_children_by_pool"
|
276
|
+
end
|
277
|
+
# resource path
|
278
|
+
local_var_path = '/pools/{pool_id}/files/{file_parent_id}/children'.sub('{' + 'pool_id' + '}', CGI.escape(pool_id.to_s)).sub('{' + 'file_parent_id' + '}', CGI.escape(file_parent_id.to_s))
|
279
|
+
|
280
|
+
# query parameters
|
281
|
+
query_params = opts[:query_params] || {}
|
282
|
+
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
283
|
+
query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
|
284
|
+
query_params[:'file_id'] = opts[:'file_id'] if !opts[:'file_id'].nil?
|
285
|
+
query_params[:'name'] = opts[:'name'] if !opts[:'name'].nil?
|
286
|
+
query_params[:'type'] = opts[:'type'] if !opts[:'type'].nil?
|
287
|
+
query_params[:'permission'] = opts[:'permission'] if !opts[:'permission'].nil?
|
288
|
+
query_params[:'size'] = opts[:'size'] if !opts[:'size'].nil?
|
289
|
+
query_params[:'change_date'] = opts[:'change_date'] if !opts[:'change_date'].nil?
|
290
|
+
query_params[:'modification_date'] = opts[:'modification_date'] if !opts[:'modification_date'].nil?
|
291
|
+
query_params[:'access_date'] = opts[:'access_date'] if !opts[:'access_date'].nil?
|
292
|
+
query_params[:'gid'] = opts[:'gid'] if !opts[:'gid'].nil?
|
293
|
+
query_params[:'uid'] = opts[:'uid'] if !opts[:'uid'].nil?
|
294
|
+
|
295
|
+
# header parameters
|
296
|
+
header_params = opts[:header_params] || {}
|
297
|
+
# HTTP header 'Accept' (if needed)
|
298
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
299
|
+
|
300
|
+
# form parameters
|
301
|
+
form_params = opts[:form_params] || {}
|
302
|
+
|
303
|
+
# http body (model)
|
304
|
+
post_body = opts[:body]
|
305
|
+
|
306
|
+
# return_type
|
307
|
+
return_type = opts[:return_type] || 'NodeumFileCollection'
|
308
|
+
|
309
|
+
# auth_names
|
310
|
+
auth_names = opts[:auth_names] || ['BasicAuth', 'BearerAuth']
|
311
|
+
|
312
|
+
new_options = opts.merge(
|
313
|
+
:header_params => header_params,
|
314
|
+
:query_params => query_params,
|
315
|
+
:form_params => form_params,
|
316
|
+
:body => post_body,
|
317
|
+
:auth_names => auth_names,
|
318
|
+
:return_type => return_type
|
319
|
+
)
|
320
|
+
|
321
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
322
|
+
if @api_client.config.debugging
|
323
|
+
@api_client.config.logger.debug "API called: FilesApi#files_children_by_pool\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
324
|
+
end
|
325
|
+
return data, status_code, headers
|
326
|
+
end
|
327
|
+
|
328
|
+
# Lists files under a specific folder.
|
329
|
+
# **API Key Scope**: files / index
|
330
|
+
# @param task_id [String] Numeric ID or name of task. Task names are not unique, it's recommanded to use numeric ID.
|
331
|
+
# @param file_parent_id [Integer] Numeric ID of parent folder.
|
332
|
+
# @param [Hash] opts the optional parameters
|
333
|
+
# @option opts [Integer] :limit The number of items to display for pagination.
|
334
|
+
# @option opts [Integer] :offset The number of items to skip for pagination.
|
335
|
+
# @option opts [String] :file_id Filter on file id
|
336
|
+
# @option opts [String] :name Filter on name
|
337
|
+
# @option opts [String] :type Filter on type
|
338
|
+
# @option opts [String] :permission Filter on permission
|
339
|
+
# @option opts [String] :size Filter on size
|
340
|
+
# @option opts [String] :change_date Filter on change date
|
341
|
+
# @option opts [String] :modification_date Filter on modification date
|
342
|
+
# @option opts [String] :access_date Filter on access date
|
343
|
+
# @option opts [String] :gid Filter on gid
|
344
|
+
# @option opts [String] :uid Filter on uid
|
345
|
+
# @return [NodeumFileCollection]
|
346
|
+
def files_children_by_task(task_id, file_parent_id, opts = {})
|
347
|
+
data, _status_code, _headers = files_children_by_task_with_http_info(task_id, file_parent_id, opts)
|
348
|
+
data
|
349
|
+
end
|
350
|
+
|
351
|
+
# Lists files under a specific folder.
|
352
|
+
# **API Key Scope**: files / index
|
353
|
+
# @param task_id [String] Numeric ID or name of task. Task names are not unique, it's recommanded to use numeric ID.
|
354
|
+
# @param file_parent_id [Integer] Numeric ID of parent folder.
|
355
|
+
# @param [Hash] opts the optional parameters
|
356
|
+
# @option opts [Integer] :limit The number of items to display for pagination.
|
357
|
+
# @option opts [Integer] :offset The number of items to skip for pagination.
|
358
|
+
# @option opts [String] :file_id Filter on file id
|
359
|
+
# @option opts [String] :name Filter on name
|
360
|
+
# @option opts [String] :type Filter on type
|
361
|
+
# @option opts [String] :permission Filter on permission
|
362
|
+
# @option opts [String] :size Filter on size
|
363
|
+
# @option opts [String] :change_date Filter on change date
|
364
|
+
# @option opts [String] :modification_date Filter on modification date
|
365
|
+
# @option opts [String] :access_date Filter on access date
|
366
|
+
# @option opts [String] :gid Filter on gid
|
367
|
+
# @option opts [String] :uid Filter on uid
|
368
|
+
# @return [Array<(NodeumFileCollection, Integer, Hash)>] NodeumFileCollection data, response status code and response headers
|
369
|
+
def files_children_by_task_with_http_info(task_id, file_parent_id, opts = {})
|
370
|
+
if @api_client.config.debugging
|
371
|
+
@api_client.config.logger.debug 'Calling API: FilesApi.files_children_by_task ...'
|
372
|
+
end
|
373
|
+
# verify the required parameter 'task_id' is set
|
374
|
+
if @api_client.config.client_side_validation && task_id.nil?
|
375
|
+
fail ArgumentError, "Missing the required parameter 'task_id' when calling FilesApi.files_children_by_task"
|
376
|
+
end
|
377
|
+
# verify the required parameter 'file_parent_id' is set
|
378
|
+
if @api_client.config.client_side_validation && file_parent_id.nil?
|
379
|
+
fail ArgumentError, "Missing the required parameter 'file_parent_id' when calling FilesApi.files_children_by_task"
|
380
|
+
end
|
381
|
+
# resource path
|
382
|
+
local_var_path = '/tasks/{task_id}/files/{file_parent_id}/children'.sub('{' + 'task_id' + '}', CGI.escape(task_id.to_s)).sub('{' + 'file_parent_id' + '}', CGI.escape(file_parent_id.to_s))
|
383
|
+
|
384
|
+
# query parameters
|
385
|
+
query_params = opts[:query_params] || {}
|
386
|
+
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
387
|
+
query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
|
388
|
+
query_params[:'file_id'] = opts[:'file_id'] if !opts[:'file_id'].nil?
|
389
|
+
query_params[:'name'] = opts[:'name'] if !opts[:'name'].nil?
|
390
|
+
query_params[:'type'] = opts[:'type'] if !opts[:'type'].nil?
|
391
|
+
query_params[:'permission'] = opts[:'permission'] if !opts[:'permission'].nil?
|
392
|
+
query_params[:'size'] = opts[:'size'] if !opts[:'size'].nil?
|
393
|
+
query_params[:'change_date'] = opts[:'change_date'] if !opts[:'change_date'].nil?
|
394
|
+
query_params[:'modification_date'] = opts[:'modification_date'] if !opts[:'modification_date'].nil?
|
395
|
+
query_params[:'access_date'] = opts[:'access_date'] if !opts[:'access_date'].nil?
|
396
|
+
query_params[:'gid'] = opts[:'gid'] if !opts[:'gid'].nil?
|
397
|
+
query_params[:'uid'] = opts[:'uid'] if !opts[:'uid'].nil?
|
398
|
+
|
399
|
+
# header parameters
|
400
|
+
header_params = opts[:header_params] || {}
|
401
|
+
# HTTP header 'Accept' (if needed)
|
402
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
403
|
+
|
404
|
+
# form parameters
|
405
|
+
form_params = opts[:form_params] || {}
|
406
|
+
|
407
|
+
# http body (model)
|
408
|
+
post_body = opts[:body]
|
409
|
+
|
410
|
+
# return_type
|
411
|
+
return_type = opts[:return_type] || 'NodeumFileCollection'
|
412
|
+
|
413
|
+
# auth_names
|
414
|
+
auth_names = opts[:auth_names] || ['BasicAuth', 'BearerAuth']
|
415
|
+
|
416
|
+
new_options = opts.merge(
|
417
|
+
:header_params => header_params,
|
418
|
+
:query_params => query_params,
|
419
|
+
:form_params => form_params,
|
420
|
+
:body => post_body,
|
421
|
+
:auth_names => auth_names,
|
422
|
+
:return_type => return_type
|
423
|
+
)
|
424
|
+
|
425
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
426
|
+
if @api_client.config.debugging
|
427
|
+
@api_client.config.logger.debug "API called: FilesApi#files_children_by_task\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
428
|
+
end
|
429
|
+
return data, status_code, headers
|
430
|
+
end
|
431
|
+
|
432
|
+
# Lists files under a specific folder.
|
433
|
+
# **API Key Scope**: files / index
|
434
|
+
# @param task_execution_id [String] Numeric ID of task execution.
|
435
|
+
# @param file_parent_id [Integer] Numeric ID of parent folder.
|
436
|
+
# @param [Hash] opts the optional parameters
|
437
|
+
# @option opts [Integer] :limit The number of items to display for pagination.
|
438
|
+
# @option opts [Integer] :offset The number of items to skip for pagination.
|
439
|
+
# @option opts [String] :file_id Filter on file id
|
440
|
+
# @option opts [String] :name Filter on name
|
441
|
+
# @option opts [String] :type Filter on type
|
442
|
+
# @option opts [String] :permission Filter on permission
|
443
|
+
# @option opts [String] :size Filter on size
|
444
|
+
# @option opts [String] :change_date Filter on change date
|
445
|
+
# @option opts [String] :modification_date Filter on modification date
|
446
|
+
# @option opts [String] :access_date Filter on access date
|
447
|
+
# @option opts [String] :gid Filter on gid
|
448
|
+
# @option opts [String] :uid Filter on uid
|
449
|
+
# @return [NodeumFileCollection]
|
450
|
+
def files_children_by_task_execution(task_execution_id, file_parent_id, opts = {})
|
451
|
+
data, _status_code, _headers = files_children_by_task_execution_with_http_info(task_execution_id, file_parent_id, opts)
|
452
|
+
data
|
453
|
+
end
|
454
|
+
|
455
|
+
# Lists files under a specific folder.
|
456
|
+
# **API Key Scope**: files / index
|
457
|
+
# @param task_execution_id [String] Numeric ID of task execution.
|
458
|
+
# @param file_parent_id [Integer] Numeric ID of parent folder.
|
459
|
+
# @param [Hash] opts the optional parameters
|
460
|
+
# @option opts [Integer] :limit The number of items to display for pagination.
|
461
|
+
# @option opts [Integer] :offset The number of items to skip for pagination.
|
462
|
+
# @option opts [String] :file_id Filter on file id
|
463
|
+
# @option opts [String] :name Filter on name
|
464
|
+
# @option opts [String] :type Filter on type
|
465
|
+
# @option opts [String] :permission Filter on permission
|
466
|
+
# @option opts [String] :size Filter on size
|
467
|
+
# @option opts [String] :change_date Filter on change date
|
468
|
+
# @option opts [String] :modification_date Filter on modification date
|
469
|
+
# @option opts [String] :access_date Filter on access date
|
470
|
+
# @option opts [String] :gid Filter on gid
|
471
|
+
# @option opts [String] :uid Filter on uid
|
472
|
+
# @return [Array<(NodeumFileCollection, Integer, Hash)>] NodeumFileCollection data, response status code and response headers
|
473
|
+
def files_children_by_task_execution_with_http_info(task_execution_id, file_parent_id, opts = {})
|
474
|
+
if @api_client.config.debugging
|
475
|
+
@api_client.config.logger.debug 'Calling API: FilesApi.files_children_by_task_execution ...'
|
476
|
+
end
|
477
|
+
# verify the required parameter 'task_execution_id' is set
|
478
|
+
if @api_client.config.client_side_validation && task_execution_id.nil?
|
479
|
+
fail ArgumentError, "Missing the required parameter 'task_execution_id' when calling FilesApi.files_children_by_task_execution"
|
480
|
+
end
|
481
|
+
# verify the required parameter 'file_parent_id' is set
|
482
|
+
if @api_client.config.client_side_validation && file_parent_id.nil?
|
483
|
+
fail ArgumentError, "Missing the required parameter 'file_parent_id' when calling FilesApi.files_children_by_task_execution"
|
484
|
+
end
|
485
|
+
# resource path
|
486
|
+
local_var_path = '/task_executions/{task_execution_id}/files/{file_parent_id}/children'.sub('{' + 'task_execution_id' + '}', CGI.escape(task_execution_id.to_s)).sub('{' + 'file_parent_id' + '}', CGI.escape(file_parent_id.to_s))
|
487
|
+
|
488
|
+
# query parameters
|
489
|
+
query_params = opts[:query_params] || {}
|
490
|
+
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
491
|
+
query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
|
492
|
+
query_params[:'file_id'] = opts[:'file_id'] if !opts[:'file_id'].nil?
|
493
|
+
query_params[:'name'] = opts[:'name'] if !opts[:'name'].nil?
|
494
|
+
query_params[:'type'] = opts[:'type'] if !opts[:'type'].nil?
|
495
|
+
query_params[:'permission'] = opts[:'permission'] if !opts[:'permission'].nil?
|
496
|
+
query_params[:'size'] = opts[:'size'] if !opts[:'size'].nil?
|
497
|
+
query_params[:'change_date'] = opts[:'change_date'] if !opts[:'change_date'].nil?
|
498
|
+
query_params[:'modification_date'] = opts[:'modification_date'] if !opts[:'modification_date'].nil?
|
499
|
+
query_params[:'access_date'] = opts[:'access_date'] if !opts[:'access_date'].nil?
|
500
|
+
query_params[:'gid'] = opts[:'gid'] if !opts[:'gid'].nil?
|
501
|
+
query_params[:'uid'] = opts[:'uid'] if !opts[:'uid'].nil?
|
502
|
+
|
503
|
+
# header parameters
|
504
|
+
header_params = opts[:header_params] || {}
|
505
|
+
# HTTP header 'Accept' (if needed)
|
506
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
507
|
+
|
508
|
+
# form parameters
|
509
|
+
form_params = opts[:form_params] || {}
|
510
|
+
|
511
|
+
# http body (model)
|
512
|
+
post_body = opts[:body]
|
513
|
+
|
514
|
+
# return_type
|
515
|
+
return_type = opts[:return_type] || 'NodeumFileCollection'
|
516
|
+
|
517
|
+
# auth_names
|
518
|
+
auth_names = opts[:auth_names] || ['BasicAuth', 'BearerAuth']
|
519
|
+
|
520
|
+
new_options = opts.merge(
|
521
|
+
:header_params => header_params,
|
522
|
+
:query_params => query_params,
|
523
|
+
:form_params => form_params,
|
524
|
+
:body => post_body,
|
525
|
+
:auth_names => auth_names,
|
526
|
+
:return_type => return_type
|
527
|
+
)
|
528
|
+
|
529
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
530
|
+
if @api_client.config.debugging
|
531
|
+
@api_client.config.logger.debug "API called: FilesApi#files_children_by_task_execution\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
532
|
+
end
|
533
|
+
return data, status_code, headers
|
534
|
+
end
|
535
|
+
|
536
|
+
# Lists files under a specific folder.
|
537
|
+
# **API Key Scope**: files / index
|
538
|
+
# @param task_id [String] Numeric ID or name of task. Task names are not unique, it's recommanded to use numeric ID.
|
539
|
+
# @param task_execution_id [String] Numeric ID of task execution.
|
540
|
+
# @param file_parent_id [Integer] Numeric ID of parent folder.
|
541
|
+
# @param [Hash] opts the optional parameters
|
542
|
+
# @option opts [Integer] :limit The number of items to display for pagination.
|
543
|
+
# @option opts [Integer] :offset The number of items to skip for pagination.
|
544
|
+
# @option opts [String] :file_id Filter on file id
|
545
|
+
# @option opts [String] :name Filter on name
|
546
|
+
# @option opts [String] :type Filter on type
|
547
|
+
# @option opts [String] :permission Filter on permission
|
548
|
+
# @option opts [String] :size Filter on size
|
549
|
+
# @option opts [String] :change_date Filter on change date
|
550
|
+
# @option opts [String] :modification_date Filter on modification date
|
551
|
+
# @option opts [String] :access_date Filter on access date
|
552
|
+
# @option opts [String] :gid Filter on gid
|
553
|
+
# @option opts [String] :uid Filter on uid
|
554
|
+
# @return [NodeumFileCollection]
|
555
|
+
def files_children_by_task_execution_by_task(task_id, task_execution_id, file_parent_id, opts = {})
|
556
|
+
data, _status_code, _headers = files_children_by_task_execution_by_task_with_http_info(task_id, task_execution_id, file_parent_id, opts)
|
557
|
+
data
|
558
|
+
end
|
559
|
+
|
560
|
+
# Lists files under a specific folder.
|
561
|
+
# **API Key Scope**: files / index
|
562
|
+
# @param task_id [String] Numeric ID or name of task. Task names are not unique, it's recommanded to use numeric ID.
|
563
|
+
# @param task_execution_id [String] Numeric ID of task execution.
|
564
|
+
# @param file_parent_id [Integer] Numeric ID of parent folder.
|
565
|
+
# @param [Hash] opts the optional parameters
|
566
|
+
# @option opts [Integer] :limit The number of items to display for pagination.
|
567
|
+
# @option opts [Integer] :offset The number of items to skip for pagination.
|
568
|
+
# @option opts [String] :file_id Filter on file id
|
569
|
+
# @option opts [String] :name Filter on name
|
570
|
+
# @option opts [String] :type Filter on type
|
571
|
+
# @option opts [String] :permission Filter on permission
|
572
|
+
# @option opts [String] :size Filter on size
|
573
|
+
# @option opts [String] :change_date Filter on change date
|
574
|
+
# @option opts [String] :modification_date Filter on modification date
|
575
|
+
# @option opts [String] :access_date Filter on access date
|
576
|
+
# @option opts [String] :gid Filter on gid
|
577
|
+
# @option opts [String] :uid Filter on uid
|
578
|
+
# @return [Array<(NodeumFileCollection, Integer, Hash)>] NodeumFileCollection data, response status code and response headers
|
579
|
+
def files_children_by_task_execution_by_task_with_http_info(task_id, task_execution_id, file_parent_id, opts = {})
|
580
|
+
if @api_client.config.debugging
|
581
|
+
@api_client.config.logger.debug 'Calling API: FilesApi.files_children_by_task_execution_by_task ...'
|
582
|
+
end
|
583
|
+
# verify the required parameter 'task_id' is set
|
584
|
+
if @api_client.config.client_side_validation && task_id.nil?
|
585
|
+
fail ArgumentError, "Missing the required parameter 'task_id' when calling FilesApi.files_children_by_task_execution_by_task"
|
586
|
+
end
|
587
|
+
# verify the required parameter 'task_execution_id' is set
|
588
|
+
if @api_client.config.client_side_validation && task_execution_id.nil?
|
589
|
+
fail ArgumentError, "Missing the required parameter 'task_execution_id' when calling FilesApi.files_children_by_task_execution_by_task"
|
590
|
+
end
|
591
|
+
# verify the required parameter 'file_parent_id' is set
|
592
|
+
if @api_client.config.client_side_validation && file_parent_id.nil?
|
593
|
+
fail ArgumentError, "Missing the required parameter 'file_parent_id' when calling FilesApi.files_children_by_task_execution_by_task"
|
594
|
+
end
|
595
|
+
# resource path
|
596
|
+
local_var_path = '/tasks/{task_id}/task_executions/{task_execution_id}/files/{file_parent_id}/children'.sub('{' + 'task_id' + '}', CGI.escape(task_id.to_s)).sub('{' + 'task_execution_id' + '}', CGI.escape(task_execution_id.to_s)).sub('{' + 'file_parent_id' + '}', CGI.escape(file_parent_id.to_s))
|
597
|
+
|
598
|
+
# query parameters
|
599
|
+
query_params = opts[:query_params] || {}
|
600
|
+
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
601
|
+
query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
|
602
|
+
query_params[:'file_id'] = opts[:'file_id'] if !opts[:'file_id'].nil?
|
603
|
+
query_params[:'name'] = opts[:'name'] if !opts[:'name'].nil?
|
604
|
+
query_params[:'type'] = opts[:'type'] if !opts[:'type'].nil?
|
605
|
+
query_params[:'permission'] = opts[:'permission'] if !opts[:'permission'].nil?
|
606
|
+
query_params[:'size'] = opts[:'size'] if !opts[:'size'].nil?
|
607
|
+
query_params[:'change_date'] = opts[:'change_date'] if !opts[:'change_date'].nil?
|
608
|
+
query_params[:'modification_date'] = opts[:'modification_date'] if !opts[:'modification_date'].nil?
|
609
|
+
query_params[:'access_date'] = opts[:'access_date'] if !opts[:'access_date'].nil?
|
610
|
+
query_params[:'gid'] = opts[:'gid'] if !opts[:'gid'].nil?
|
611
|
+
query_params[:'uid'] = opts[:'uid'] if !opts[:'uid'].nil?
|
612
|
+
|
613
|
+
# header parameters
|
614
|
+
header_params = opts[:header_params] || {}
|
615
|
+
# HTTP header 'Accept' (if needed)
|
616
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
617
|
+
|
618
|
+
# form parameters
|
619
|
+
form_params = opts[:form_params] || {}
|
620
|
+
|
621
|
+
# http body (model)
|
622
|
+
post_body = opts[:body]
|
623
|
+
|
624
|
+
# return_type
|
625
|
+
return_type = opts[:return_type] || 'NodeumFileCollection'
|
626
|
+
|
627
|
+
# auth_names
|
628
|
+
auth_names = opts[:auth_names] || ['BasicAuth', 'BearerAuth']
|
629
|
+
|
630
|
+
new_options = opts.merge(
|
631
|
+
:header_params => header_params,
|
632
|
+
:query_params => query_params,
|
633
|
+
:form_params => form_params,
|
634
|
+
:body => post_body,
|
635
|
+
:auth_names => auth_names,
|
636
|
+
:return_type => return_type
|
637
|
+
)
|
638
|
+
|
639
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
640
|
+
if @api_client.config.debugging
|
641
|
+
@api_client.config.logger.debug "API called: FilesApi#files_children_by_task_execution_by_task\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
642
|
+
end
|
643
|
+
return data, status_code, headers
|
644
|
+
end
|
645
|
+
|
646
|
+
# Lists files under a specific folder on tape of pools, specific for Data Exchange.
|
647
|
+
# **API Key Scope**: import_files / index
|
648
|
+
# @param pool_id [String] Numeric ID, or name of pool.
|
649
|
+
# @param file_parent_id [Integer] Numeric ID of parent folder.
|
650
|
+
# @param [Hash] opts the optional parameters
|
651
|
+
# @option opts [Integer] :limit The number of items to display for pagination.
|
652
|
+
# @option opts [Integer] :offset The number of items to skip for pagination.
|
653
|
+
# @option opts [String] :file_id Filter on file id
|
654
|
+
# @option opts [String] :name Filter on name
|
655
|
+
# @option opts [String] :type Filter on type
|
656
|
+
# @option opts [String] :permission Filter on permission
|
657
|
+
# @option opts [String] :size Filter on size
|
658
|
+
# @option opts [String] :change_date Filter on change date
|
659
|
+
# @option opts [String] :modification_date Filter on modification date
|
660
|
+
# @option opts [String] :access_date Filter on access date
|
661
|
+
# @option opts [String] :gid Filter on gid
|
662
|
+
# @option opts [String] :uid Filter on uid
|
663
|
+
# @return [ImportFileCollection]
|
664
|
+
def import_files_children_by_pool(pool_id, file_parent_id, opts = {})
|
665
|
+
data, _status_code, _headers = import_files_children_by_pool_with_http_info(pool_id, file_parent_id, opts)
|
666
|
+
data
|
667
|
+
end
|
668
|
+
|
669
|
+
# Lists files under a specific folder on tape of pools, specific for Data Exchange.
|
670
|
+
# **API Key Scope**: import_files / index
|
671
|
+
# @param pool_id [String] Numeric ID, or name of pool.
|
672
|
+
# @param file_parent_id [Integer] Numeric ID of parent folder.
|
673
|
+
# @param [Hash] opts the optional parameters
|
674
|
+
# @option opts [Integer] :limit The number of items to display for pagination.
|
675
|
+
# @option opts [Integer] :offset The number of items to skip for pagination.
|
676
|
+
# @option opts [String] :file_id Filter on file id
|
677
|
+
# @option opts [String] :name Filter on name
|
678
|
+
# @option opts [String] :type Filter on type
|
679
|
+
# @option opts [String] :permission Filter on permission
|
680
|
+
# @option opts [String] :size Filter on size
|
681
|
+
# @option opts [String] :change_date Filter on change date
|
682
|
+
# @option opts [String] :modification_date Filter on modification date
|
683
|
+
# @option opts [String] :access_date Filter on access date
|
684
|
+
# @option opts [String] :gid Filter on gid
|
685
|
+
# @option opts [String] :uid Filter on uid
|
686
|
+
# @return [Array<(ImportFileCollection, Integer, Hash)>] ImportFileCollection data, response status code and response headers
|
687
|
+
def import_files_children_by_pool_with_http_info(pool_id, file_parent_id, opts = {})
|
688
|
+
if @api_client.config.debugging
|
689
|
+
@api_client.config.logger.debug 'Calling API: FilesApi.import_files_children_by_pool ...'
|
690
|
+
end
|
691
|
+
# verify the required parameter 'pool_id' is set
|
692
|
+
if @api_client.config.client_side_validation && pool_id.nil?
|
693
|
+
fail ArgumentError, "Missing the required parameter 'pool_id' when calling FilesApi.import_files_children_by_pool"
|
694
|
+
end
|
695
|
+
# verify the required parameter 'file_parent_id' is set
|
696
|
+
if @api_client.config.client_side_validation && file_parent_id.nil?
|
697
|
+
fail ArgumentError, "Missing the required parameter 'file_parent_id' when calling FilesApi.import_files_children_by_pool"
|
698
|
+
end
|
699
|
+
# resource path
|
700
|
+
local_var_path = '/pools/{pool_id}/import_files/{file_parent_id}/children'.sub('{' + 'pool_id' + '}', CGI.escape(pool_id.to_s)).sub('{' + 'file_parent_id' + '}', CGI.escape(file_parent_id.to_s))
|
701
|
+
|
702
|
+
# query parameters
|
703
|
+
query_params = opts[:query_params] || {}
|
704
|
+
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
705
|
+
query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
|
706
|
+
query_params[:'file_id'] = opts[:'file_id'] if !opts[:'file_id'].nil?
|
707
|
+
query_params[:'name'] = opts[:'name'] if !opts[:'name'].nil?
|
708
|
+
query_params[:'type'] = opts[:'type'] if !opts[:'type'].nil?
|
709
|
+
query_params[:'permission'] = opts[:'permission'] if !opts[:'permission'].nil?
|
710
|
+
query_params[:'size'] = opts[:'size'] if !opts[:'size'].nil?
|
711
|
+
query_params[:'change_date'] = opts[:'change_date'] if !opts[:'change_date'].nil?
|
712
|
+
query_params[:'modification_date'] = opts[:'modification_date'] if !opts[:'modification_date'].nil?
|
713
|
+
query_params[:'access_date'] = opts[:'access_date'] if !opts[:'access_date'].nil?
|
714
|
+
query_params[:'gid'] = opts[:'gid'] if !opts[:'gid'].nil?
|
715
|
+
query_params[:'uid'] = opts[:'uid'] if !opts[:'uid'].nil?
|
716
|
+
|
717
|
+
# header parameters
|
718
|
+
header_params = opts[:header_params] || {}
|
719
|
+
# HTTP header 'Accept' (if needed)
|
720
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
721
|
+
|
722
|
+
# form parameters
|
723
|
+
form_params = opts[:form_params] || {}
|
724
|
+
|
725
|
+
# http body (model)
|
726
|
+
post_body = opts[:body]
|
727
|
+
|
728
|
+
# return_type
|
729
|
+
return_type = opts[:return_type] || 'ImportFileCollection'
|
730
|
+
|
731
|
+
# auth_names
|
732
|
+
auth_names = opts[:auth_names] || ['BasicAuth', 'BearerAuth']
|
733
|
+
|
734
|
+
new_options = opts.merge(
|
735
|
+
:header_params => header_params,
|
736
|
+
:query_params => query_params,
|
737
|
+
:form_params => form_params,
|
738
|
+
:body => post_body,
|
739
|
+
:auth_names => auth_names,
|
740
|
+
:return_type => return_type
|
741
|
+
)
|
742
|
+
|
743
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
744
|
+
if @api_client.config.debugging
|
745
|
+
@api_client.config.logger.debug "API called: FilesApi#import_files_children_by_pool\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
746
|
+
end
|
747
|
+
return data, status_code, headers
|
748
|
+
end
|
749
|
+
|
750
|
+
# Lists files on root.
|
751
|
+
# **API Key Scope**: files / index
|
752
|
+
# @param [Hash] opts the optional parameters
|
753
|
+
# @option opts [Integer] :limit The number of items to display for pagination.
|
754
|
+
# @option opts [Integer] :offset The number of items to skip for pagination.
|
755
|
+
# @option opts [String] :file_id Filter on file id
|
756
|
+
# @option opts [String] :name Filter on name
|
757
|
+
# @option opts [String] :type Filter on type
|
758
|
+
# @option opts [String] :permission Filter on permission
|
759
|
+
# @option opts [String] :size Filter on size
|
760
|
+
# @option opts [String] :change_date Filter on change date
|
761
|
+
# @option opts [String] :modification_date Filter on modification date
|
762
|
+
# @option opts [String] :access_date Filter on access date
|
763
|
+
# @option opts [String] :gid Filter on gid
|
764
|
+
# @option opts [String] :uid Filter on uid
|
765
|
+
# @return [NodeumFileCollection]
|
766
|
+
def index_files(opts = {})
|
767
|
+
data, _status_code, _headers = index_files_with_http_info(opts)
|
768
|
+
data
|
769
|
+
end
|
770
|
+
|
771
|
+
# Lists files on root.
|
772
|
+
# **API Key Scope**: files / index
|
773
|
+
# @param [Hash] opts the optional parameters
|
774
|
+
# @option opts [Integer] :limit The number of items to display for pagination.
|
775
|
+
# @option opts [Integer] :offset The number of items to skip for pagination.
|
776
|
+
# @option opts [String] :file_id Filter on file id
|
777
|
+
# @option opts [String] :name Filter on name
|
778
|
+
# @option opts [String] :type Filter on type
|
779
|
+
# @option opts [String] :permission Filter on permission
|
780
|
+
# @option opts [String] :size Filter on size
|
781
|
+
# @option opts [String] :change_date Filter on change date
|
782
|
+
# @option opts [String] :modification_date Filter on modification date
|
783
|
+
# @option opts [String] :access_date Filter on access date
|
784
|
+
# @option opts [String] :gid Filter on gid
|
785
|
+
# @option opts [String] :uid Filter on uid
|
786
|
+
# @return [Array<(NodeumFileCollection, Integer, Hash)>] NodeumFileCollection data, response status code and response headers
|
787
|
+
def index_files_with_http_info(opts = {})
|
788
|
+
if @api_client.config.debugging
|
789
|
+
@api_client.config.logger.debug 'Calling API: FilesApi.index_files ...'
|
790
|
+
end
|
791
|
+
# resource path
|
792
|
+
local_var_path = '/files'
|
793
|
+
|
794
|
+
# query parameters
|
795
|
+
query_params = opts[:query_params] || {}
|
796
|
+
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
797
|
+
query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
|
798
|
+
query_params[:'file_id'] = opts[:'file_id'] if !opts[:'file_id'].nil?
|
799
|
+
query_params[:'name'] = opts[:'name'] if !opts[:'name'].nil?
|
800
|
+
query_params[:'type'] = opts[:'type'] if !opts[:'type'].nil?
|
801
|
+
query_params[:'permission'] = opts[:'permission'] if !opts[:'permission'].nil?
|
802
|
+
query_params[:'size'] = opts[:'size'] if !opts[:'size'].nil?
|
803
|
+
query_params[:'change_date'] = opts[:'change_date'] if !opts[:'change_date'].nil?
|
804
|
+
query_params[:'modification_date'] = opts[:'modification_date'] if !opts[:'modification_date'].nil?
|
805
|
+
query_params[:'access_date'] = opts[:'access_date'] if !opts[:'access_date'].nil?
|
806
|
+
query_params[:'gid'] = opts[:'gid'] if !opts[:'gid'].nil?
|
807
|
+
query_params[:'uid'] = opts[:'uid'] if !opts[:'uid'].nil?
|
808
|
+
|
809
|
+
# header parameters
|
810
|
+
header_params = opts[:header_params] || {}
|
811
|
+
# HTTP header 'Accept' (if needed)
|
812
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
813
|
+
|
814
|
+
# form parameters
|
815
|
+
form_params = opts[:form_params] || {}
|
816
|
+
|
817
|
+
# http body (model)
|
818
|
+
post_body = opts[:body]
|
819
|
+
|
820
|
+
# return_type
|
821
|
+
return_type = opts[:return_type] || 'NodeumFileCollection'
|
822
|
+
|
823
|
+
# auth_names
|
824
|
+
auth_names = opts[:auth_names] || ['BasicAuth', 'BearerAuth']
|
825
|
+
|
826
|
+
new_options = opts.merge(
|
827
|
+
:header_params => header_params,
|
828
|
+
:query_params => query_params,
|
829
|
+
:form_params => form_params,
|
830
|
+
:body => post_body,
|
831
|
+
:auth_names => auth_names,
|
832
|
+
:return_type => return_type
|
833
|
+
)
|
834
|
+
|
835
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
836
|
+
if @api_client.config.debugging
|
837
|
+
@api_client.config.logger.debug "API called: FilesApi#index_files\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
838
|
+
end
|
839
|
+
return data, status_code, headers
|
840
|
+
end
|
841
|
+
|
842
|
+
# Lists files on root.
|
843
|
+
# **API Key Scope**: files / index
|
844
|
+
# @param container_id [String] Numeric ID or name of container.
|
845
|
+
# @param [Hash] opts the optional parameters
|
846
|
+
# @option opts [Integer] :limit The number of items to display for pagination.
|
847
|
+
# @option opts [Integer] :offset The number of items to skip for pagination.
|
848
|
+
# @option opts [String] :file_id Filter on file id
|
849
|
+
# @option opts [String] :name Filter on name
|
850
|
+
# @option opts [String] :type Filter on type
|
851
|
+
# @option opts [String] :permission Filter on permission
|
852
|
+
# @option opts [String] :size Filter on size
|
853
|
+
# @option opts [String] :change_date Filter on change date
|
854
|
+
# @option opts [String] :modification_date Filter on modification date
|
855
|
+
# @option opts [String] :access_date Filter on access date
|
856
|
+
# @option opts [String] :gid Filter on gid
|
857
|
+
# @option opts [String] :uid Filter on uid
|
858
|
+
# @return [NodeumFileCollection]
|
859
|
+
def index_files_by_container(container_id, opts = {})
|
860
|
+
data, _status_code, _headers = index_files_by_container_with_http_info(container_id, opts)
|
861
|
+
data
|
862
|
+
end
|
863
|
+
|
864
|
+
# Lists files on root.
|
865
|
+
# **API Key Scope**: files / index
|
866
|
+
# @param container_id [String] Numeric ID or name of container.
|
867
|
+
# @param [Hash] opts the optional parameters
|
868
|
+
# @option opts [Integer] :limit The number of items to display for pagination.
|
869
|
+
# @option opts [Integer] :offset The number of items to skip for pagination.
|
870
|
+
# @option opts [String] :file_id Filter on file id
|
871
|
+
# @option opts [String] :name Filter on name
|
872
|
+
# @option opts [String] :type Filter on type
|
873
|
+
# @option opts [String] :permission Filter on permission
|
874
|
+
# @option opts [String] :size Filter on size
|
875
|
+
# @option opts [String] :change_date Filter on change date
|
876
|
+
# @option opts [String] :modification_date Filter on modification date
|
877
|
+
# @option opts [String] :access_date Filter on access date
|
878
|
+
# @option opts [String] :gid Filter on gid
|
879
|
+
# @option opts [String] :uid Filter on uid
|
880
|
+
# @return [Array<(NodeumFileCollection, Integer, Hash)>] NodeumFileCollection data, response status code and response headers
|
881
|
+
def index_files_by_container_with_http_info(container_id, opts = {})
|
882
|
+
if @api_client.config.debugging
|
883
|
+
@api_client.config.logger.debug 'Calling API: FilesApi.index_files_by_container ...'
|
884
|
+
end
|
885
|
+
# verify the required parameter 'container_id' is set
|
886
|
+
if @api_client.config.client_side_validation && container_id.nil?
|
887
|
+
fail ArgumentError, "Missing the required parameter 'container_id' when calling FilesApi.index_files_by_container"
|
888
|
+
end
|
889
|
+
# resource path
|
890
|
+
local_var_path = '/containers/{container_id}/files'.sub('{' + 'container_id' + '}', CGI.escape(container_id.to_s))
|
891
|
+
|
892
|
+
# query parameters
|
893
|
+
query_params = opts[:query_params] || {}
|
894
|
+
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
895
|
+
query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
|
896
|
+
query_params[:'file_id'] = opts[:'file_id'] if !opts[:'file_id'].nil?
|
897
|
+
query_params[:'name'] = opts[:'name'] if !opts[:'name'].nil?
|
898
|
+
query_params[:'type'] = opts[:'type'] if !opts[:'type'].nil?
|
899
|
+
query_params[:'permission'] = opts[:'permission'] if !opts[:'permission'].nil?
|
900
|
+
query_params[:'size'] = opts[:'size'] if !opts[:'size'].nil?
|
901
|
+
query_params[:'change_date'] = opts[:'change_date'] if !opts[:'change_date'].nil?
|
902
|
+
query_params[:'modification_date'] = opts[:'modification_date'] if !opts[:'modification_date'].nil?
|
903
|
+
query_params[:'access_date'] = opts[:'access_date'] if !opts[:'access_date'].nil?
|
904
|
+
query_params[:'gid'] = opts[:'gid'] if !opts[:'gid'].nil?
|
905
|
+
query_params[:'uid'] = opts[:'uid'] if !opts[:'uid'].nil?
|
906
|
+
|
907
|
+
# header parameters
|
908
|
+
header_params = opts[:header_params] || {}
|
909
|
+
# HTTP header 'Accept' (if needed)
|
910
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
911
|
+
|
912
|
+
# form parameters
|
913
|
+
form_params = opts[:form_params] || {}
|
914
|
+
|
915
|
+
# http body (model)
|
916
|
+
post_body = opts[:body]
|
917
|
+
|
918
|
+
# return_type
|
919
|
+
return_type = opts[:return_type] || 'NodeumFileCollection'
|
920
|
+
|
921
|
+
# auth_names
|
922
|
+
auth_names = opts[:auth_names] || ['BasicAuth', 'BearerAuth']
|
923
|
+
|
924
|
+
new_options = opts.merge(
|
925
|
+
:header_params => header_params,
|
926
|
+
:query_params => query_params,
|
927
|
+
:form_params => form_params,
|
928
|
+
:body => post_body,
|
929
|
+
:auth_names => auth_names,
|
930
|
+
:return_type => return_type
|
931
|
+
)
|
932
|
+
|
933
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
934
|
+
if @api_client.config.debugging
|
935
|
+
@api_client.config.logger.debug "API called: FilesApi#index_files_by_container\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
936
|
+
end
|
937
|
+
return data, status_code, headers
|
938
|
+
end
|
939
|
+
|
940
|
+
# Lists files on root.
|
941
|
+
# **API Key Scope**: files / index
|
942
|
+
# @param pool_id [String] Numeric ID, or name of pool.
|
943
|
+
# @param [Hash] opts the optional parameters
|
944
|
+
# @option opts [Integer] :limit The number of items to display for pagination.
|
945
|
+
# @option opts [Integer] :offset The number of items to skip for pagination.
|
946
|
+
# @option opts [String] :file_id Filter on file id
|
947
|
+
# @option opts [String] :name Filter on name
|
948
|
+
# @option opts [String] :type Filter on type
|
949
|
+
# @option opts [String] :permission Filter on permission
|
950
|
+
# @option opts [String] :size Filter on size
|
951
|
+
# @option opts [String] :change_date Filter on change date
|
952
|
+
# @option opts [String] :modification_date Filter on modification date
|
953
|
+
# @option opts [String] :access_date Filter on access date
|
954
|
+
# @option opts [String] :gid Filter on gid
|
955
|
+
# @option opts [String] :uid Filter on uid
|
956
|
+
# @return [NodeumFileCollection]
|
957
|
+
def index_files_by_pool(pool_id, opts = {})
|
958
|
+
data, _status_code, _headers = index_files_by_pool_with_http_info(pool_id, opts)
|
959
|
+
data
|
960
|
+
end
|
961
|
+
|
962
|
+
# Lists files on root.
|
963
|
+
# **API Key Scope**: files / index
|
964
|
+
# @param pool_id [String] Numeric ID, or name of pool.
|
965
|
+
# @param [Hash] opts the optional parameters
|
966
|
+
# @option opts [Integer] :limit The number of items to display for pagination.
|
967
|
+
# @option opts [Integer] :offset The number of items to skip for pagination.
|
968
|
+
# @option opts [String] :file_id Filter on file id
|
969
|
+
# @option opts [String] :name Filter on name
|
970
|
+
# @option opts [String] :type Filter on type
|
971
|
+
# @option opts [String] :permission Filter on permission
|
972
|
+
# @option opts [String] :size Filter on size
|
973
|
+
# @option opts [String] :change_date Filter on change date
|
974
|
+
# @option opts [String] :modification_date Filter on modification date
|
975
|
+
# @option opts [String] :access_date Filter on access date
|
976
|
+
# @option opts [String] :gid Filter on gid
|
977
|
+
# @option opts [String] :uid Filter on uid
|
978
|
+
# @return [Array<(NodeumFileCollection, Integer, Hash)>] NodeumFileCollection data, response status code and response headers
|
979
|
+
def index_files_by_pool_with_http_info(pool_id, opts = {})
|
980
|
+
if @api_client.config.debugging
|
981
|
+
@api_client.config.logger.debug 'Calling API: FilesApi.index_files_by_pool ...'
|
982
|
+
end
|
983
|
+
# verify the required parameter 'pool_id' is set
|
984
|
+
if @api_client.config.client_side_validation && pool_id.nil?
|
985
|
+
fail ArgumentError, "Missing the required parameter 'pool_id' when calling FilesApi.index_files_by_pool"
|
986
|
+
end
|
987
|
+
# resource path
|
988
|
+
local_var_path = '/pools/{pool_id}/files'.sub('{' + 'pool_id' + '}', CGI.escape(pool_id.to_s))
|
989
|
+
|
990
|
+
# query parameters
|
991
|
+
query_params = opts[:query_params] || {}
|
992
|
+
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
993
|
+
query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
|
994
|
+
query_params[:'file_id'] = opts[:'file_id'] if !opts[:'file_id'].nil?
|
995
|
+
query_params[:'name'] = opts[:'name'] if !opts[:'name'].nil?
|
996
|
+
query_params[:'type'] = opts[:'type'] if !opts[:'type'].nil?
|
997
|
+
query_params[:'permission'] = opts[:'permission'] if !opts[:'permission'].nil?
|
998
|
+
query_params[:'size'] = opts[:'size'] if !opts[:'size'].nil?
|
999
|
+
query_params[:'change_date'] = opts[:'change_date'] if !opts[:'change_date'].nil?
|
1000
|
+
query_params[:'modification_date'] = opts[:'modification_date'] if !opts[:'modification_date'].nil?
|
1001
|
+
query_params[:'access_date'] = opts[:'access_date'] if !opts[:'access_date'].nil?
|
1002
|
+
query_params[:'gid'] = opts[:'gid'] if !opts[:'gid'].nil?
|
1003
|
+
query_params[:'uid'] = opts[:'uid'] if !opts[:'uid'].nil?
|
1004
|
+
|
1005
|
+
# header parameters
|
1006
|
+
header_params = opts[:header_params] || {}
|
1007
|
+
# HTTP header 'Accept' (if needed)
|
1008
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
1009
|
+
|
1010
|
+
# form parameters
|
1011
|
+
form_params = opts[:form_params] || {}
|
1012
|
+
|
1013
|
+
# http body (model)
|
1014
|
+
post_body = opts[:body]
|
1015
|
+
|
1016
|
+
# return_type
|
1017
|
+
return_type = opts[:return_type] || 'NodeumFileCollection'
|
1018
|
+
|
1019
|
+
# auth_names
|
1020
|
+
auth_names = opts[:auth_names] || ['BasicAuth', 'BearerAuth']
|
1021
|
+
|
1022
|
+
new_options = opts.merge(
|
1023
|
+
:header_params => header_params,
|
1024
|
+
:query_params => query_params,
|
1025
|
+
:form_params => form_params,
|
1026
|
+
:body => post_body,
|
1027
|
+
:auth_names => auth_names,
|
1028
|
+
:return_type => return_type
|
1029
|
+
)
|
1030
|
+
|
1031
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
1032
|
+
if @api_client.config.debugging
|
1033
|
+
@api_client.config.logger.debug "API called: FilesApi#index_files_by_pool\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1034
|
+
end
|
1035
|
+
return data, status_code, headers
|
1036
|
+
end
|
1037
|
+
|
1038
|
+
# Lists files on root.
|
1039
|
+
# **API Key Scope**: files / index
|
1040
|
+
# @param task_id [String] Numeric ID or name of task. Task names are not unique, it's recommanded to use numeric ID.
|
1041
|
+
# @param [Hash] opts the optional parameters
|
1042
|
+
# @option opts [Integer] :limit The number of items to display for pagination.
|
1043
|
+
# @option opts [Integer] :offset The number of items to skip for pagination.
|
1044
|
+
# @option opts [String] :file_id Filter on file id
|
1045
|
+
# @option opts [String] :name Filter on name
|
1046
|
+
# @option opts [String] :type Filter on type
|
1047
|
+
# @option opts [String] :permission Filter on permission
|
1048
|
+
# @option opts [String] :size Filter on size
|
1049
|
+
# @option opts [String] :change_date Filter on change date
|
1050
|
+
# @option opts [String] :modification_date Filter on modification date
|
1051
|
+
# @option opts [String] :access_date Filter on access date
|
1052
|
+
# @option opts [String] :gid Filter on gid
|
1053
|
+
# @option opts [String] :uid Filter on uid
|
1054
|
+
# @return [NodeumFileCollection]
|
1055
|
+
def index_files_by_task(task_id, opts = {})
|
1056
|
+
data, _status_code, _headers = index_files_by_task_with_http_info(task_id, opts)
|
1057
|
+
data
|
1058
|
+
end
|
1059
|
+
|
1060
|
+
# Lists files on root.
|
1061
|
+
# **API Key Scope**: files / index
|
1062
|
+
# @param task_id [String] Numeric ID or name of task. Task names are not unique, it's recommanded to use numeric ID.
|
1063
|
+
# @param [Hash] opts the optional parameters
|
1064
|
+
# @option opts [Integer] :limit The number of items to display for pagination.
|
1065
|
+
# @option opts [Integer] :offset The number of items to skip for pagination.
|
1066
|
+
# @option opts [String] :file_id Filter on file id
|
1067
|
+
# @option opts [String] :name Filter on name
|
1068
|
+
# @option opts [String] :type Filter on type
|
1069
|
+
# @option opts [String] :permission Filter on permission
|
1070
|
+
# @option opts [String] :size Filter on size
|
1071
|
+
# @option opts [String] :change_date Filter on change date
|
1072
|
+
# @option opts [String] :modification_date Filter on modification date
|
1073
|
+
# @option opts [String] :access_date Filter on access date
|
1074
|
+
# @option opts [String] :gid Filter on gid
|
1075
|
+
# @option opts [String] :uid Filter on uid
|
1076
|
+
# @return [Array<(NodeumFileCollection, Integer, Hash)>] NodeumFileCollection data, response status code and response headers
|
1077
|
+
def index_files_by_task_with_http_info(task_id, opts = {})
|
1078
|
+
if @api_client.config.debugging
|
1079
|
+
@api_client.config.logger.debug 'Calling API: FilesApi.index_files_by_task ...'
|
1080
|
+
end
|
1081
|
+
# verify the required parameter 'task_id' is set
|
1082
|
+
if @api_client.config.client_side_validation && task_id.nil?
|
1083
|
+
fail ArgumentError, "Missing the required parameter 'task_id' when calling FilesApi.index_files_by_task"
|
1084
|
+
end
|
1085
|
+
# resource path
|
1086
|
+
local_var_path = '/tasks/{task_id}/files'.sub('{' + 'task_id' + '}', CGI.escape(task_id.to_s))
|
1087
|
+
|
1088
|
+
# query parameters
|
1089
|
+
query_params = opts[:query_params] || {}
|
1090
|
+
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
1091
|
+
query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
|
1092
|
+
query_params[:'file_id'] = opts[:'file_id'] if !opts[:'file_id'].nil?
|
1093
|
+
query_params[:'name'] = opts[:'name'] if !opts[:'name'].nil?
|
1094
|
+
query_params[:'type'] = opts[:'type'] if !opts[:'type'].nil?
|
1095
|
+
query_params[:'permission'] = opts[:'permission'] if !opts[:'permission'].nil?
|
1096
|
+
query_params[:'size'] = opts[:'size'] if !opts[:'size'].nil?
|
1097
|
+
query_params[:'change_date'] = opts[:'change_date'] if !opts[:'change_date'].nil?
|
1098
|
+
query_params[:'modification_date'] = opts[:'modification_date'] if !opts[:'modification_date'].nil?
|
1099
|
+
query_params[:'access_date'] = opts[:'access_date'] if !opts[:'access_date'].nil?
|
1100
|
+
query_params[:'gid'] = opts[:'gid'] if !opts[:'gid'].nil?
|
1101
|
+
query_params[:'uid'] = opts[:'uid'] if !opts[:'uid'].nil?
|
1102
|
+
|
1103
|
+
# header parameters
|
1104
|
+
header_params = opts[:header_params] || {}
|
1105
|
+
# HTTP header 'Accept' (if needed)
|
1106
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
1107
|
+
|
1108
|
+
# form parameters
|
1109
|
+
form_params = opts[:form_params] || {}
|
1110
|
+
|
1111
|
+
# http body (model)
|
1112
|
+
post_body = opts[:body]
|
1113
|
+
|
1114
|
+
# return_type
|
1115
|
+
return_type = opts[:return_type] || 'NodeumFileCollection'
|
1116
|
+
|
1117
|
+
# auth_names
|
1118
|
+
auth_names = opts[:auth_names] || ['BasicAuth', 'BearerAuth']
|
1119
|
+
|
1120
|
+
new_options = opts.merge(
|
1121
|
+
:header_params => header_params,
|
1122
|
+
:query_params => query_params,
|
1123
|
+
:form_params => form_params,
|
1124
|
+
:body => post_body,
|
1125
|
+
:auth_names => auth_names,
|
1126
|
+
:return_type => return_type
|
1127
|
+
)
|
1128
|
+
|
1129
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
1130
|
+
if @api_client.config.debugging
|
1131
|
+
@api_client.config.logger.debug "API called: FilesApi#index_files_by_task\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1132
|
+
end
|
1133
|
+
return data, status_code, headers
|
1134
|
+
end
|
1135
|
+
|
1136
|
+
# Lists files on root.
|
1137
|
+
# **API Key Scope**: files / index
|
1138
|
+
# @param task_execution_id [String] Numeric ID of task execution.
|
1139
|
+
# @param [Hash] opts the optional parameters
|
1140
|
+
# @option opts [Integer] :limit The number of items to display for pagination.
|
1141
|
+
# @option opts [Integer] :offset The number of items to skip for pagination.
|
1142
|
+
# @option opts [String] :file_id Filter on file id
|
1143
|
+
# @option opts [String] :name Filter on name
|
1144
|
+
# @option opts [String] :type Filter on type
|
1145
|
+
# @option opts [String] :permission Filter on permission
|
1146
|
+
# @option opts [String] :size Filter on size
|
1147
|
+
# @option opts [String] :change_date Filter on change date
|
1148
|
+
# @option opts [String] :modification_date Filter on modification date
|
1149
|
+
# @option opts [String] :access_date Filter on access date
|
1150
|
+
# @option opts [String] :gid Filter on gid
|
1151
|
+
# @option opts [String] :uid Filter on uid
|
1152
|
+
# @return [NodeumFileCollection]
|
1153
|
+
def index_files_by_task_execution(task_execution_id, opts = {})
|
1154
|
+
data, _status_code, _headers = index_files_by_task_execution_with_http_info(task_execution_id, opts)
|
1155
|
+
data
|
1156
|
+
end
|
1157
|
+
|
1158
|
+
# Lists files on root.
|
1159
|
+
# **API Key Scope**: files / index
|
1160
|
+
# @param task_execution_id [String] Numeric ID of task execution.
|
1161
|
+
# @param [Hash] opts the optional parameters
|
1162
|
+
# @option opts [Integer] :limit The number of items to display for pagination.
|
1163
|
+
# @option opts [Integer] :offset The number of items to skip for pagination.
|
1164
|
+
# @option opts [String] :file_id Filter on file id
|
1165
|
+
# @option opts [String] :name Filter on name
|
1166
|
+
# @option opts [String] :type Filter on type
|
1167
|
+
# @option opts [String] :permission Filter on permission
|
1168
|
+
# @option opts [String] :size Filter on size
|
1169
|
+
# @option opts [String] :change_date Filter on change date
|
1170
|
+
# @option opts [String] :modification_date Filter on modification date
|
1171
|
+
# @option opts [String] :access_date Filter on access date
|
1172
|
+
# @option opts [String] :gid Filter on gid
|
1173
|
+
# @option opts [String] :uid Filter on uid
|
1174
|
+
# @return [Array<(NodeumFileCollection, Integer, Hash)>] NodeumFileCollection data, response status code and response headers
|
1175
|
+
def index_files_by_task_execution_with_http_info(task_execution_id, opts = {})
|
1176
|
+
if @api_client.config.debugging
|
1177
|
+
@api_client.config.logger.debug 'Calling API: FilesApi.index_files_by_task_execution ...'
|
1178
|
+
end
|
1179
|
+
# verify the required parameter 'task_execution_id' is set
|
1180
|
+
if @api_client.config.client_side_validation && task_execution_id.nil?
|
1181
|
+
fail ArgumentError, "Missing the required parameter 'task_execution_id' when calling FilesApi.index_files_by_task_execution"
|
1182
|
+
end
|
1183
|
+
# resource path
|
1184
|
+
local_var_path = '/task_executions/{task_execution_id}/files'.sub('{' + 'task_execution_id' + '}', CGI.escape(task_execution_id.to_s))
|
1185
|
+
|
1186
|
+
# query parameters
|
1187
|
+
query_params = opts[:query_params] || {}
|
1188
|
+
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
1189
|
+
query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
|
1190
|
+
query_params[:'file_id'] = opts[:'file_id'] if !opts[:'file_id'].nil?
|
1191
|
+
query_params[:'name'] = opts[:'name'] if !opts[:'name'].nil?
|
1192
|
+
query_params[:'type'] = opts[:'type'] if !opts[:'type'].nil?
|
1193
|
+
query_params[:'permission'] = opts[:'permission'] if !opts[:'permission'].nil?
|
1194
|
+
query_params[:'size'] = opts[:'size'] if !opts[:'size'].nil?
|
1195
|
+
query_params[:'change_date'] = opts[:'change_date'] if !opts[:'change_date'].nil?
|
1196
|
+
query_params[:'modification_date'] = opts[:'modification_date'] if !opts[:'modification_date'].nil?
|
1197
|
+
query_params[:'access_date'] = opts[:'access_date'] if !opts[:'access_date'].nil?
|
1198
|
+
query_params[:'gid'] = opts[:'gid'] if !opts[:'gid'].nil?
|
1199
|
+
query_params[:'uid'] = opts[:'uid'] if !opts[:'uid'].nil?
|
1200
|
+
|
1201
|
+
# header parameters
|
1202
|
+
header_params = opts[:header_params] || {}
|
1203
|
+
# HTTP header 'Accept' (if needed)
|
1204
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
1205
|
+
|
1206
|
+
# form parameters
|
1207
|
+
form_params = opts[:form_params] || {}
|
1208
|
+
|
1209
|
+
# http body (model)
|
1210
|
+
post_body = opts[:body]
|
1211
|
+
|
1212
|
+
# return_type
|
1213
|
+
return_type = opts[:return_type] || 'NodeumFileCollection'
|
1214
|
+
|
1215
|
+
# auth_names
|
1216
|
+
auth_names = opts[:auth_names] || ['BasicAuth', 'BearerAuth']
|
1217
|
+
|
1218
|
+
new_options = opts.merge(
|
1219
|
+
:header_params => header_params,
|
1220
|
+
:query_params => query_params,
|
1221
|
+
:form_params => form_params,
|
1222
|
+
:body => post_body,
|
1223
|
+
:auth_names => auth_names,
|
1224
|
+
:return_type => return_type
|
1225
|
+
)
|
1226
|
+
|
1227
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
1228
|
+
if @api_client.config.debugging
|
1229
|
+
@api_client.config.logger.debug "API called: FilesApi#index_files_by_task_execution\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1230
|
+
end
|
1231
|
+
return data, status_code, headers
|
1232
|
+
end
|
1233
|
+
|
1234
|
+
# Lists files on root.
|
1235
|
+
# **API Key Scope**: files / index
|
1236
|
+
# @param task_id [String] Numeric ID or name of task. Task names are not unique, it's recommanded to use numeric ID.
|
1237
|
+
# @param task_execution_id [String] Numeric ID of task execution.
|
1238
|
+
# @param [Hash] opts the optional parameters
|
1239
|
+
# @option opts [Integer] :limit The number of items to display for pagination.
|
1240
|
+
# @option opts [Integer] :offset The number of items to skip for pagination.
|
1241
|
+
# @option opts [String] :file_id Filter on file id
|
1242
|
+
# @option opts [String] :name Filter on name
|
1243
|
+
# @option opts [String] :type Filter on type
|
1244
|
+
# @option opts [String] :permission Filter on permission
|
1245
|
+
# @option opts [String] :size Filter on size
|
1246
|
+
# @option opts [String] :change_date Filter on change date
|
1247
|
+
# @option opts [String] :modification_date Filter on modification date
|
1248
|
+
# @option opts [String] :access_date Filter on access date
|
1249
|
+
# @option opts [String] :gid Filter on gid
|
1250
|
+
# @option opts [String] :uid Filter on uid
|
1251
|
+
# @return [NodeumFileCollection]
|
1252
|
+
def index_files_by_task_execution_by_task(task_id, task_execution_id, opts = {})
|
1253
|
+
data, _status_code, _headers = index_files_by_task_execution_by_task_with_http_info(task_id, task_execution_id, opts)
|
1254
|
+
data
|
1255
|
+
end
|
1256
|
+
|
1257
|
+
# Lists files on root.
|
1258
|
+
# **API Key Scope**: files / index
|
1259
|
+
# @param task_id [String] Numeric ID or name of task. Task names are not unique, it's recommanded to use numeric ID.
|
1260
|
+
# @param task_execution_id [String] Numeric ID of task execution.
|
1261
|
+
# @param [Hash] opts the optional parameters
|
1262
|
+
# @option opts [Integer] :limit The number of items to display for pagination.
|
1263
|
+
# @option opts [Integer] :offset The number of items to skip for pagination.
|
1264
|
+
# @option opts [String] :file_id Filter on file id
|
1265
|
+
# @option opts [String] :name Filter on name
|
1266
|
+
# @option opts [String] :type Filter on type
|
1267
|
+
# @option opts [String] :permission Filter on permission
|
1268
|
+
# @option opts [String] :size Filter on size
|
1269
|
+
# @option opts [String] :change_date Filter on change date
|
1270
|
+
# @option opts [String] :modification_date Filter on modification date
|
1271
|
+
# @option opts [String] :access_date Filter on access date
|
1272
|
+
# @option opts [String] :gid Filter on gid
|
1273
|
+
# @option opts [String] :uid Filter on uid
|
1274
|
+
# @return [Array<(NodeumFileCollection, Integer, Hash)>] NodeumFileCollection data, response status code and response headers
|
1275
|
+
def index_files_by_task_execution_by_task_with_http_info(task_id, task_execution_id, opts = {})
|
1276
|
+
if @api_client.config.debugging
|
1277
|
+
@api_client.config.logger.debug 'Calling API: FilesApi.index_files_by_task_execution_by_task ...'
|
1278
|
+
end
|
1279
|
+
# verify the required parameter 'task_id' is set
|
1280
|
+
if @api_client.config.client_side_validation && task_id.nil?
|
1281
|
+
fail ArgumentError, "Missing the required parameter 'task_id' when calling FilesApi.index_files_by_task_execution_by_task"
|
1282
|
+
end
|
1283
|
+
# verify the required parameter 'task_execution_id' is set
|
1284
|
+
if @api_client.config.client_side_validation && task_execution_id.nil?
|
1285
|
+
fail ArgumentError, "Missing the required parameter 'task_execution_id' when calling FilesApi.index_files_by_task_execution_by_task"
|
1286
|
+
end
|
1287
|
+
# resource path
|
1288
|
+
local_var_path = '/tasks/{task_id}/task_executions/{task_execution_id}/files'.sub('{' + 'task_id' + '}', CGI.escape(task_id.to_s)).sub('{' + 'task_execution_id' + '}', CGI.escape(task_execution_id.to_s))
|
1289
|
+
|
1290
|
+
# query parameters
|
1291
|
+
query_params = opts[:query_params] || {}
|
1292
|
+
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
1293
|
+
query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
|
1294
|
+
query_params[:'file_id'] = opts[:'file_id'] if !opts[:'file_id'].nil?
|
1295
|
+
query_params[:'name'] = opts[:'name'] if !opts[:'name'].nil?
|
1296
|
+
query_params[:'type'] = opts[:'type'] if !opts[:'type'].nil?
|
1297
|
+
query_params[:'permission'] = opts[:'permission'] if !opts[:'permission'].nil?
|
1298
|
+
query_params[:'size'] = opts[:'size'] if !opts[:'size'].nil?
|
1299
|
+
query_params[:'change_date'] = opts[:'change_date'] if !opts[:'change_date'].nil?
|
1300
|
+
query_params[:'modification_date'] = opts[:'modification_date'] if !opts[:'modification_date'].nil?
|
1301
|
+
query_params[:'access_date'] = opts[:'access_date'] if !opts[:'access_date'].nil?
|
1302
|
+
query_params[:'gid'] = opts[:'gid'] if !opts[:'gid'].nil?
|
1303
|
+
query_params[:'uid'] = opts[:'uid'] if !opts[:'uid'].nil?
|
1304
|
+
|
1305
|
+
# header parameters
|
1306
|
+
header_params = opts[:header_params] || {}
|
1307
|
+
# HTTP header 'Accept' (if needed)
|
1308
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
1309
|
+
|
1310
|
+
# form parameters
|
1311
|
+
form_params = opts[:form_params] || {}
|
1312
|
+
|
1313
|
+
# http body (model)
|
1314
|
+
post_body = opts[:body]
|
1315
|
+
|
1316
|
+
# return_type
|
1317
|
+
return_type = opts[:return_type] || 'NodeumFileCollection'
|
1318
|
+
|
1319
|
+
# auth_names
|
1320
|
+
auth_names = opts[:auth_names] || ['BasicAuth', 'BearerAuth']
|
1321
|
+
|
1322
|
+
new_options = opts.merge(
|
1323
|
+
:header_params => header_params,
|
1324
|
+
:query_params => query_params,
|
1325
|
+
:form_params => form_params,
|
1326
|
+
:body => post_body,
|
1327
|
+
:auth_names => auth_names,
|
1328
|
+
:return_type => return_type
|
1329
|
+
)
|
1330
|
+
|
1331
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
1332
|
+
if @api_client.config.debugging
|
1333
|
+
@api_client.config.logger.debug "API called: FilesApi#index_files_by_task_execution_by_task\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1334
|
+
end
|
1335
|
+
return data, status_code, headers
|
1336
|
+
end
|
1337
|
+
|
1338
|
+
# Lists files on root of tape of pools, specific for Data Exchange.
|
1339
|
+
# **API Key Scope**: import_files / index
|
1340
|
+
# @param pool_id [String] Numeric ID, or name of pool.
|
1341
|
+
# @param [Hash] opts the optional parameters
|
1342
|
+
# @option opts [Integer] :limit The number of items to display for pagination.
|
1343
|
+
# @option opts [Integer] :offset The number of items to skip for pagination.
|
1344
|
+
# @option opts [String] :file_id Filter on file id
|
1345
|
+
# @option opts [String] :name Filter on name
|
1346
|
+
# @option opts [String] :type Filter on type
|
1347
|
+
# @option opts [String] :permission Filter on permission
|
1348
|
+
# @option opts [String] :size Filter on size
|
1349
|
+
# @option opts [String] :change_date Filter on change date
|
1350
|
+
# @option opts [String] :modification_date Filter on modification date
|
1351
|
+
# @option opts [String] :access_date Filter on access date
|
1352
|
+
# @option opts [String] :gid Filter on gid
|
1353
|
+
# @option opts [String] :uid Filter on uid
|
1354
|
+
# @return [ImportFileCollection]
|
1355
|
+
def index_import_files_by_pool(pool_id, opts = {})
|
1356
|
+
data, _status_code, _headers = index_import_files_by_pool_with_http_info(pool_id, opts)
|
1357
|
+
data
|
1358
|
+
end
|
1359
|
+
|
1360
|
+
# Lists files on root of tape of pools, specific for Data Exchange.
|
1361
|
+
# **API Key Scope**: import_files / index
|
1362
|
+
# @param pool_id [String] Numeric ID, or name of pool.
|
1363
|
+
# @param [Hash] opts the optional parameters
|
1364
|
+
# @option opts [Integer] :limit The number of items to display for pagination.
|
1365
|
+
# @option opts [Integer] :offset The number of items to skip for pagination.
|
1366
|
+
# @option opts [String] :file_id Filter on file id
|
1367
|
+
# @option opts [String] :name Filter on name
|
1368
|
+
# @option opts [String] :type Filter on type
|
1369
|
+
# @option opts [String] :permission Filter on permission
|
1370
|
+
# @option opts [String] :size Filter on size
|
1371
|
+
# @option opts [String] :change_date Filter on change date
|
1372
|
+
# @option opts [String] :modification_date Filter on modification date
|
1373
|
+
# @option opts [String] :access_date Filter on access date
|
1374
|
+
# @option opts [String] :gid Filter on gid
|
1375
|
+
# @option opts [String] :uid Filter on uid
|
1376
|
+
# @return [Array<(ImportFileCollection, Integer, Hash)>] ImportFileCollection data, response status code and response headers
|
1377
|
+
def index_import_files_by_pool_with_http_info(pool_id, opts = {})
|
1378
|
+
if @api_client.config.debugging
|
1379
|
+
@api_client.config.logger.debug 'Calling API: FilesApi.index_import_files_by_pool ...'
|
1380
|
+
end
|
1381
|
+
# verify the required parameter 'pool_id' is set
|
1382
|
+
if @api_client.config.client_side_validation && pool_id.nil?
|
1383
|
+
fail ArgumentError, "Missing the required parameter 'pool_id' when calling FilesApi.index_import_files_by_pool"
|
1384
|
+
end
|
1385
|
+
# resource path
|
1386
|
+
local_var_path = '/pools/{pool_id}/import_files'.sub('{' + 'pool_id' + '}', CGI.escape(pool_id.to_s))
|
1387
|
+
|
1388
|
+
# query parameters
|
1389
|
+
query_params = opts[:query_params] || {}
|
1390
|
+
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
1391
|
+
query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
|
1392
|
+
query_params[:'file_id'] = opts[:'file_id'] if !opts[:'file_id'].nil?
|
1393
|
+
query_params[:'name'] = opts[:'name'] if !opts[:'name'].nil?
|
1394
|
+
query_params[:'type'] = opts[:'type'] if !opts[:'type'].nil?
|
1395
|
+
query_params[:'permission'] = opts[:'permission'] if !opts[:'permission'].nil?
|
1396
|
+
query_params[:'size'] = opts[:'size'] if !opts[:'size'].nil?
|
1397
|
+
query_params[:'change_date'] = opts[:'change_date'] if !opts[:'change_date'].nil?
|
1398
|
+
query_params[:'modification_date'] = opts[:'modification_date'] if !opts[:'modification_date'].nil?
|
1399
|
+
query_params[:'access_date'] = opts[:'access_date'] if !opts[:'access_date'].nil?
|
1400
|
+
query_params[:'gid'] = opts[:'gid'] if !opts[:'gid'].nil?
|
1401
|
+
query_params[:'uid'] = opts[:'uid'] if !opts[:'uid'].nil?
|
1402
|
+
|
1403
|
+
# header parameters
|
1404
|
+
header_params = opts[:header_params] || {}
|
1405
|
+
# HTTP header 'Accept' (if needed)
|
1406
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
1407
|
+
|
1408
|
+
# form parameters
|
1409
|
+
form_params = opts[:form_params] || {}
|
1410
|
+
|
1411
|
+
# http body (model)
|
1412
|
+
post_body = opts[:body]
|
1413
|
+
|
1414
|
+
# return_type
|
1415
|
+
return_type = opts[:return_type] || 'ImportFileCollection'
|
1416
|
+
|
1417
|
+
# auth_names
|
1418
|
+
auth_names = opts[:auth_names] || ['BasicAuth', 'BearerAuth']
|
1419
|
+
|
1420
|
+
new_options = opts.merge(
|
1421
|
+
:header_params => header_params,
|
1422
|
+
:query_params => query_params,
|
1423
|
+
:form_params => form_params,
|
1424
|
+
:body => post_body,
|
1425
|
+
:auth_names => auth_names,
|
1426
|
+
:return_type => return_type
|
1427
|
+
)
|
1428
|
+
|
1429
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
1430
|
+
if @api_client.config.debugging
|
1431
|
+
@api_client.config.logger.debug "API called: FilesApi#index_import_files_by_pool\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1432
|
+
end
|
1433
|
+
return data, status_code, headers
|
1434
|
+
end
|
1435
|
+
|
1436
|
+
# Lists files on root of tape of pools, specific for Active and Offline.
|
1437
|
+
# **API Key Scope**: on_tapes_files / index
|
1438
|
+
# @param pool_id [String] Numeric ID, or name of pool.
|
1439
|
+
# @param [Hash] opts the optional parameters
|
1440
|
+
# @option opts [Integer] :limit The number of items to display for pagination.
|
1441
|
+
# @option opts [Integer] :offset The number of items to skip for pagination.
|
1442
|
+
# @option opts [String] :name Filter on name
|
1443
|
+
# @option opts [String] :type Filter on type
|
1444
|
+
# @option opts [String] :size Filter on size
|
1445
|
+
# @return [OnTapesFileCollection]
|
1446
|
+
def index_on_tapes_files_by_pool(pool_id, opts = {})
|
1447
|
+
data, _status_code, _headers = index_on_tapes_files_by_pool_with_http_info(pool_id, opts)
|
1448
|
+
data
|
1449
|
+
end
|
1450
|
+
|
1451
|
+
# Lists files on root of tape of pools, specific for Active and Offline.
|
1452
|
+
# **API Key Scope**: on_tapes_files / index
|
1453
|
+
# @param pool_id [String] Numeric ID, or name of pool.
|
1454
|
+
# @param [Hash] opts the optional parameters
|
1455
|
+
# @option opts [Integer] :limit The number of items to display for pagination.
|
1456
|
+
# @option opts [Integer] :offset The number of items to skip for pagination.
|
1457
|
+
# @option opts [String] :name Filter on name
|
1458
|
+
# @option opts [String] :type Filter on type
|
1459
|
+
# @option opts [String] :size Filter on size
|
1460
|
+
# @return [Array<(OnTapesFileCollection, Integer, Hash)>] OnTapesFileCollection data, response status code and response headers
|
1461
|
+
def index_on_tapes_files_by_pool_with_http_info(pool_id, opts = {})
|
1462
|
+
if @api_client.config.debugging
|
1463
|
+
@api_client.config.logger.debug 'Calling API: FilesApi.index_on_tapes_files_by_pool ...'
|
1464
|
+
end
|
1465
|
+
# verify the required parameter 'pool_id' is set
|
1466
|
+
if @api_client.config.client_side_validation && pool_id.nil?
|
1467
|
+
fail ArgumentError, "Missing the required parameter 'pool_id' when calling FilesApi.index_on_tapes_files_by_pool"
|
1468
|
+
end
|
1469
|
+
# resource path
|
1470
|
+
local_var_path = '/pools/{pool_id}/on_tapes_files'.sub('{' + 'pool_id' + '}', CGI.escape(pool_id.to_s))
|
1471
|
+
|
1472
|
+
# query parameters
|
1473
|
+
query_params = opts[:query_params] || {}
|
1474
|
+
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
1475
|
+
query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
|
1476
|
+
query_params[:'name'] = opts[:'name'] if !opts[:'name'].nil?
|
1477
|
+
query_params[:'type'] = opts[:'type'] if !opts[:'type'].nil?
|
1478
|
+
query_params[:'size'] = opts[:'size'] if !opts[:'size'].nil?
|
1479
|
+
|
1480
|
+
# header parameters
|
1481
|
+
header_params = opts[:header_params] || {}
|
1482
|
+
# HTTP header 'Accept' (if needed)
|
1483
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
1484
|
+
|
1485
|
+
# form parameters
|
1486
|
+
form_params = opts[:form_params] || {}
|
1487
|
+
|
1488
|
+
# http body (model)
|
1489
|
+
post_body = opts[:body]
|
1490
|
+
|
1491
|
+
# return_type
|
1492
|
+
return_type = opts[:return_type] || 'OnTapesFileCollection'
|
1493
|
+
|
1494
|
+
# auth_names
|
1495
|
+
auth_names = opts[:auth_names] || ['BasicAuth', 'BearerAuth']
|
1496
|
+
|
1497
|
+
new_options = opts.merge(
|
1498
|
+
:header_params => header_params,
|
1499
|
+
:query_params => query_params,
|
1500
|
+
:form_params => form_params,
|
1501
|
+
:body => post_body,
|
1502
|
+
:auth_names => auth_names,
|
1503
|
+
:return_type => return_type
|
1504
|
+
)
|
1505
|
+
|
1506
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
1507
|
+
if @api_client.config.debugging
|
1508
|
+
@api_client.config.logger.debug "API called: FilesApi#index_on_tapes_files_by_pool\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1509
|
+
end
|
1510
|
+
return data, status_code, headers
|
1511
|
+
end
|
1512
|
+
|
1513
|
+
# Displays tapes containing specific file, related to the specific pool.
|
1514
|
+
# **API Key Scope**: files / tapes
|
1515
|
+
# @param pool_id [String] Numeric ID, or name of pool.
|
1516
|
+
# @param file_id [Integer] Numeric ID of file.
|
1517
|
+
# @param [Hash] opts the optional parameters
|
1518
|
+
# @return [TapeCollection]
|
1519
|
+
def index_tapes_by_file_by_pool(pool_id, file_id, opts = {})
|
1520
|
+
data, _status_code, _headers = index_tapes_by_file_by_pool_with_http_info(pool_id, file_id, opts)
|
1521
|
+
data
|
1522
|
+
end
|
1523
|
+
|
1524
|
+
# Displays tapes containing specific file, related to the specific pool.
|
1525
|
+
# **API Key Scope**: files / tapes
|
1526
|
+
# @param pool_id [String] Numeric ID, or name of pool.
|
1527
|
+
# @param file_id [Integer] Numeric ID of file.
|
1528
|
+
# @param [Hash] opts the optional parameters
|
1529
|
+
# @return [Array<(TapeCollection, Integer, Hash)>] TapeCollection data, response status code and response headers
|
1530
|
+
def index_tapes_by_file_by_pool_with_http_info(pool_id, file_id, opts = {})
|
1531
|
+
if @api_client.config.debugging
|
1532
|
+
@api_client.config.logger.debug 'Calling API: FilesApi.index_tapes_by_file_by_pool ...'
|
1533
|
+
end
|
1534
|
+
# verify the required parameter 'pool_id' is set
|
1535
|
+
if @api_client.config.client_side_validation && pool_id.nil?
|
1536
|
+
fail ArgumentError, "Missing the required parameter 'pool_id' when calling FilesApi.index_tapes_by_file_by_pool"
|
1537
|
+
end
|
1538
|
+
# verify the required parameter 'file_id' is set
|
1539
|
+
if @api_client.config.client_side_validation && file_id.nil?
|
1540
|
+
fail ArgumentError, "Missing the required parameter 'file_id' when calling FilesApi.index_tapes_by_file_by_pool"
|
1541
|
+
end
|
1542
|
+
# resource path
|
1543
|
+
local_var_path = '/pools/{pool_id}/files/{file_id}/tapes'.sub('{' + 'pool_id' + '}', CGI.escape(pool_id.to_s)).sub('{' + 'file_id' + '}', CGI.escape(file_id.to_s))
|
1544
|
+
|
1545
|
+
# query parameters
|
1546
|
+
query_params = opts[:query_params] || {}
|
1547
|
+
|
1548
|
+
# header parameters
|
1549
|
+
header_params = opts[:header_params] || {}
|
1550
|
+
# HTTP header 'Accept' (if needed)
|
1551
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
1552
|
+
|
1553
|
+
# form parameters
|
1554
|
+
form_params = opts[:form_params] || {}
|
1555
|
+
|
1556
|
+
# http body (model)
|
1557
|
+
post_body = opts[:body]
|
1558
|
+
|
1559
|
+
# return_type
|
1560
|
+
return_type = opts[:return_type] || 'TapeCollection'
|
1561
|
+
|
1562
|
+
# auth_names
|
1563
|
+
auth_names = opts[:auth_names] || ['BasicAuth', 'BearerAuth']
|
1564
|
+
|
1565
|
+
new_options = opts.merge(
|
1566
|
+
:header_params => header_params,
|
1567
|
+
:query_params => query_params,
|
1568
|
+
:form_params => form_params,
|
1569
|
+
:body => post_body,
|
1570
|
+
:auth_names => auth_names,
|
1571
|
+
:return_type => return_type
|
1572
|
+
)
|
1573
|
+
|
1574
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
1575
|
+
if @api_client.config.debugging
|
1576
|
+
@api_client.config.logger.debug "API called: FilesApi#index_tapes_by_file_by_pool\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1577
|
+
end
|
1578
|
+
return data, status_code, headers
|
1579
|
+
end
|
1580
|
+
|
1581
|
+
# Displays tapes containing specific file, related to the specific task.
|
1582
|
+
# **API Key Scope**: files / tapes
|
1583
|
+
# @param task_id [String] Numeric ID or name of task. Task names are not unique, it's recommanded to use numeric ID.
|
1584
|
+
# @param file_id [Integer] Numeric ID of file.
|
1585
|
+
# @param [Hash] opts the optional parameters
|
1586
|
+
# @return [TapeCollection]
|
1587
|
+
def index_tapes_by_file_by_task(task_id, file_id, opts = {})
|
1588
|
+
data, _status_code, _headers = index_tapes_by_file_by_task_with_http_info(task_id, file_id, opts)
|
1589
|
+
data
|
1590
|
+
end
|
1591
|
+
|
1592
|
+
# Displays tapes containing specific file, related to the specific task.
|
1593
|
+
# **API Key Scope**: files / tapes
|
1594
|
+
# @param task_id [String] Numeric ID or name of task. Task names are not unique, it's recommanded to use numeric ID.
|
1595
|
+
# @param file_id [Integer] Numeric ID of file.
|
1596
|
+
# @param [Hash] opts the optional parameters
|
1597
|
+
# @return [Array<(TapeCollection, Integer, Hash)>] TapeCollection data, response status code and response headers
|
1598
|
+
def index_tapes_by_file_by_task_with_http_info(task_id, file_id, opts = {})
|
1599
|
+
if @api_client.config.debugging
|
1600
|
+
@api_client.config.logger.debug 'Calling API: FilesApi.index_tapes_by_file_by_task ...'
|
1601
|
+
end
|
1602
|
+
# verify the required parameter 'task_id' is set
|
1603
|
+
if @api_client.config.client_side_validation && task_id.nil?
|
1604
|
+
fail ArgumentError, "Missing the required parameter 'task_id' when calling FilesApi.index_tapes_by_file_by_task"
|
1605
|
+
end
|
1606
|
+
# verify the required parameter 'file_id' is set
|
1607
|
+
if @api_client.config.client_side_validation && file_id.nil?
|
1608
|
+
fail ArgumentError, "Missing the required parameter 'file_id' when calling FilesApi.index_tapes_by_file_by_task"
|
1609
|
+
end
|
1610
|
+
# resource path
|
1611
|
+
local_var_path = '/tasks/{task_id}/files/{file_id}/tapes'.sub('{' + 'task_id' + '}', CGI.escape(task_id.to_s)).sub('{' + 'file_id' + '}', CGI.escape(file_id.to_s))
|
1612
|
+
|
1613
|
+
# query parameters
|
1614
|
+
query_params = opts[:query_params] || {}
|
1615
|
+
|
1616
|
+
# header parameters
|
1617
|
+
header_params = opts[:header_params] || {}
|
1618
|
+
# HTTP header 'Accept' (if needed)
|
1619
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
1620
|
+
|
1621
|
+
# form parameters
|
1622
|
+
form_params = opts[:form_params] || {}
|
1623
|
+
|
1624
|
+
# http body (model)
|
1625
|
+
post_body = opts[:body]
|
1626
|
+
|
1627
|
+
# return_type
|
1628
|
+
return_type = opts[:return_type] || 'TapeCollection'
|
1629
|
+
|
1630
|
+
# auth_names
|
1631
|
+
auth_names = opts[:auth_names] || ['BasicAuth', 'BearerAuth']
|
1632
|
+
|
1633
|
+
new_options = opts.merge(
|
1634
|
+
:header_params => header_params,
|
1635
|
+
:query_params => query_params,
|
1636
|
+
:form_params => form_params,
|
1637
|
+
:body => post_body,
|
1638
|
+
:auth_names => auth_names,
|
1639
|
+
:return_type => return_type
|
1640
|
+
)
|
1641
|
+
|
1642
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
1643
|
+
if @api_client.config.debugging
|
1644
|
+
@api_client.config.logger.debug "API called: FilesApi#index_tapes_by_file_by_task\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1645
|
+
end
|
1646
|
+
return data, status_code, headers
|
1647
|
+
end
|
1648
|
+
|
1649
|
+
# Displays tapes containing specific file, related to the specific task.
|
1650
|
+
# **API Key Scope**: files / tapes
|
1651
|
+
# @param task_execution_id [String] Numeric ID of task execution.
|
1652
|
+
# @param file_id [Integer] Numeric ID of file.
|
1653
|
+
# @param [Hash] opts the optional parameters
|
1654
|
+
# @return [TapeCollection]
|
1655
|
+
def index_tapes_by_file_by_task_execution(task_execution_id, file_id, opts = {})
|
1656
|
+
data, _status_code, _headers = index_tapes_by_file_by_task_execution_with_http_info(task_execution_id, file_id, opts)
|
1657
|
+
data
|
1658
|
+
end
|
1659
|
+
|
1660
|
+
# Displays tapes containing specific file, related to the specific task.
|
1661
|
+
# **API Key Scope**: files / tapes
|
1662
|
+
# @param task_execution_id [String] Numeric ID of task execution.
|
1663
|
+
# @param file_id [Integer] Numeric ID of file.
|
1664
|
+
# @param [Hash] opts the optional parameters
|
1665
|
+
# @return [Array<(TapeCollection, Integer, Hash)>] TapeCollection data, response status code and response headers
|
1666
|
+
def index_tapes_by_file_by_task_execution_with_http_info(task_execution_id, file_id, opts = {})
|
1667
|
+
if @api_client.config.debugging
|
1668
|
+
@api_client.config.logger.debug 'Calling API: FilesApi.index_tapes_by_file_by_task_execution ...'
|
1669
|
+
end
|
1670
|
+
# verify the required parameter 'task_execution_id' is set
|
1671
|
+
if @api_client.config.client_side_validation && task_execution_id.nil?
|
1672
|
+
fail ArgumentError, "Missing the required parameter 'task_execution_id' when calling FilesApi.index_tapes_by_file_by_task_execution"
|
1673
|
+
end
|
1674
|
+
# verify the required parameter 'file_id' is set
|
1675
|
+
if @api_client.config.client_side_validation && file_id.nil?
|
1676
|
+
fail ArgumentError, "Missing the required parameter 'file_id' when calling FilesApi.index_tapes_by_file_by_task_execution"
|
1677
|
+
end
|
1678
|
+
# resource path
|
1679
|
+
local_var_path = '/task_executions/{task_execution_id}/files/{file_id}/tapes'.sub('{' + 'task_execution_id' + '}', CGI.escape(task_execution_id.to_s)).sub('{' + 'file_id' + '}', CGI.escape(file_id.to_s))
|
1680
|
+
|
1681
|
+
# query parameters
|
1682
|
+
query_params = opts[:query_params] || {}
|
1683
|
+
|
1684
|
+
# header parameters
|
1685
|
+
header_params = opts[:header_params] || {}
|
1686
|
+
# HTTP header 'Accept' (if needed)
|
1687
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
1688
|
+
|
1689
|
+
# form parameters
|
1690
|
+
form_params = opts[:form_params] || {}
|
1691
|
+
|
1692
|
+
# http body (model)
|
1693
|
+
post_body = opts[:body]
|
1694
|
+
|
1695
|
+
# return_type
|
1696
|
+
return_type = opts[:return_type] || 'TapeCollection'
|
1697
|
+
|
1698
|
+
# auth_names
|
1699
|
+
auth_names = opts[:auth_names] || ['BasicAuth', 'BearerAuth']
|
1700
|
+
|
1701
|
+
new_options = opts.merge(
|
1702
|
+
:header_params => header_params,
|
1703
|
+
:query_params => query_params,
|
1704
|
+
:form_params => form_params,
|
1705
|
+
:body => post_body,
|
1706
|
+
:auth_names => auth_names,
|
1707
|
+
:return_type => return_type
|
1708
|
+
)
|
1709
|
+
|
1710
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
1711
|
+
if @api_client.config.debugging
|
1712
|
+
@api_client.config.logger.debug "API called: FilesApi#index_tapes_by_file_by_task_execution\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1713
|
+
end
|
1714
|
+
return data, status_code, headers
|
1715
|
+
end
|
1716
|
+
|
1717
|
+
# Displays tapes containing specific file, related to the specific task.
|
1718
|
+
# **API Key Scope**: files / tapes
|
1719
|
+
# @param task_id [String] Numeric ID or name of task. Task names are not unique, it's recommanded to use numeric ID.
|
1720
|
+
# @param task_execution_id [String] Numeric ID of task execution.
|
1721
|
+
# @param file_id [Integer] Numeric ID of file.
|
1722
|
+
# @param [Hash] opts the optional parameters
|
1723
|
+
# @return [TapeCollection]
|
1724
|
+
def index_tapes_by_file_by_task_execution_by_task(task_id, task_execution_id, file_id, opts = {})
|
1725
|
+
data, _status_code, _headers = index_tapes_by_file_by_task_execution_by_task_with_http_info(task_id, task_execution_id, file_id, opts)
|
1726
|
+
data
|
1727
|
+
end
|
1728
|
+
|
1729
|
+
# Displays tapes containing specific file, related to the specific task.
|
1730
|
+
# **API Key Scope**: files / tapes
|
1731
|
+
# @param task_id [String] Numeric ID or name of task. Task names are not unique, it's recommanded to use numeric ID.
|
1732
|
+
# @param task_execution_id [String] Numeric ID of task execution.
|
1733
|
+
# @param file_id [Integer] Numeric ID of file.
|
1734
|
+
# @param [Hash] opts the optional parameters
|
1735
|
+
# @return [Array<(TapeCollection, Integer, Hash)>] TapeCollection data, response status code and response headers
|
1736
|
+
def index_tapes_by_file_by_task_execution_by_task_with_http_info(task_id, task_execution_id, file_id, opts = {})
|
1737
|
+
if @api_client.config.debugging
|
1738
|
+
@api_client.config.logger.debug 'Calling API: FilesApi.index_tapes_by_file_by_task_execution_by_task ...'
|
1739
|
+
end
|
1740
|
+
# verify the required parameter 'task_id' is set
|
1741
|
+
if @api_client.config.client_side_validation && task_id.nil?
|
1742
|
+
fail ArgumentError, "Missing the required parameter 'task_id' when calling FilesApi.index_tapes_by_file_by_task_execution_by_task"
|
1743
|
+
end
|
1744
|
+
# verify the required parameter 'task_execution_id' is set
|
1745
|
+
if @api_client.config.client_side_validation && task_execution_id.nil?
|
1746
|
+
fail ArgumentError, "Missing the required parameter 'task_execution_id' when calling FilesApi.index_tapes_by_file_by_task_execution_by_task"
|
1747
|
+
end
|
1748
|
+
# verify the required parameter 'file_id' is set
|
1749
|
+
if @api_client.config.client_side_validation && file_id.nil?
|
1750
|
+
fail ArgumentError, "Missing the required parameter 'file_id' when calling FilesApi.index_tapes_by_file_by_task_execution_by_task"
|
1751
|
+
end
|
1752
|
+
# resource path
|
1753
|
+
local_var_path = '/tasks/{task_id}/task_executions/{task_execution_id}/files/{file_id}/tapes'.sub('{' + 'task_id' + '}', CGI.escape(task_id.to_s)).sub('{' + 'task_execution_id' + '}', CGI.escape(task_execution_id.to_s)).sub('{' + 'file_id' + '}', CGI.escape(file_id.to_s))
|
1754
|
+
|
1755
|
+
# query parameters
|
1756
|
+
query_params = opts[:query_params] || {}
|
1757
|
+
|
1758
|
+
# header parameters
|
1759
|
+
header_params = opts[:header_params] || {}
|
1760
|
+
# HTTP header 'Accept' (if needed)
|
1761
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
1762
|
+
|
1763
|
+
# form parameters
|
1764
|
+
form_params = opts[:form_params] || {}
|
1765
|
+
|
1766
|
+
# http body (model)
|
1767
|
+
post_body = opts[:body]
|
1768
|
+
|
1769
|
+
# return_type
|
1770
|
+
return_type = opts[:return_type] || 'TapeCollection'
|
1771
|
+
|
1772
|
+
# auth_names
|
1773
|
+
auth_names = opts[:auth_names] || ['BasicAuth', 'BearerAuth']
|
1774
|
+
|
1775
|
+
new_options = opts.merge(
|
1776
|
+
:header_params => header_params,
|
1777
|
+
:query_params => query_params,
|
1778
|
+
:form_params => form_params,
|
1779
|
+
:body => post_body,
|
1780
|
+
:auth_names => auth_names,
|
1781
|
+
:return_type => return_type
|
1782
|
+
)
|
1783
|
+
|
1784
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
1785
|
+
if @api_client.config.debugging
|
1786
|
+
@api_client.config.logger.debug "API called: FilesApi#index_tapes_by_file_by_task_execution_by_task\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1787
|
+
end
|
1788
|
+
return data, status_code, headers
|
1789
|
+
end
|
1790
|
+
|
1791
|
+
# Lists files under a specific folder on tape of pools, specific for Active and Offline.
|
1792
|
+
# **API Key Scope**: on_tapes_files / index
|
1793
|
+
# @param pool_id [String] Numeric ID, or name of pool.
|
1794
|
+
# @param file_parent_id [Integer] Numeric ID of parent folder.
|
1795
|
+
# @param [Hash] opts the optional parameters
|
1796
|
+
# @option opts [Integer] :limit The number of items to display for pagination.
|
1797
|
+
# @option opts [Integer] :offset The number of items to skip for pagination.
|
1798
|
+
# @option opts [String] :name Filter on name
|
1799
|
+
# @option opts [String] :type Filter on type
|
1800
|
+
# @option opts [String] :size Filter on size
|
1801
|
+
# @return [OnTapesFileCollection]
|
1802
|
+
def on_tapes_files_children_by_pool(pool_id, file_parent_id, opts = {})
|
1803
|
+
data, _status_code, _headers = on_tapes_files_children_by_pool_with_http_info(pool_id, file_parent_id, opts)
|
1804
|
+
data
|
1805
|
+
end
|
1806
|
+
|
1807
|
+
# Lists files under a specific folder on tape of pools, specific for Active and Offline.
|
1808
|
+
# **API Key Scope**: on_tapes_files / index
|
1809
|
+
# @param pool_id [String] Numeric ID, or name of pool.
|
1810
|
+
# @param file_parent_id [Integer] Numeric ID of parent folder.
|
1811
|
+
# @param [Hash] opts the optional parameters
|
1812
|
+
# @option opts [Integer] :limit The number of items to display for pagination.
|
1813
|
+
# @option opts [Integer] :offset The number of items to skip for pagination.
|
1814
|
+
# @option opts [String] :name Filter on name
|
1815
|
+
# @option opts [String] :type Filter on type
|
1816
|
+
# @option opts [String] :size Filter on size
|
1817
|
+
# @return [Array<(OnTapesFileCollection, Integer, Hash)>] OnTapesFileCollection data, response status code and response headers
|
1818
|
+
def on_tapes_files_children_by_pool_with_http_info(pool_id, file_parent_id, opts = {})
|
1819
|
+
if @api_client.config.debugging
|
1820
|
+
@api_client.config.logger.debug 'Calling API: FilesApi.on_tapes_files_children_by_pool ...'
|
1821
|
+
end
|
1822
|
+
# verify the required parameter 'pool_id' is set
|
1823
|
+
if @api_client.config.client_side_validation && pool_id.nil?
|
1824
|
+
fail ArgumentError, "Missing the required parameter 'pool_id' when calling FilesApi.on_tapes_files_children_by_pool"
|
1825
|
+
end
|
1826
|
+
# verify the required parameter 'file_parent_id' is set
|
1827
|
+
if @api_client.config.client_side_validation && file_parent_id.nil?
|
1828
|
+
fail ArgumentError, "Missing the required parameter 'file_parent_id' when calling FilesApi.on_tapes_files_children_by_pool"
|
1829
|
+
end
|
1830
|
+
# resource path
|
1831
|
+
local_var_path = '/pools/{pool_id}/on_tapes_files/{file_parent_id}/children'.sub('{' + 'pool_id' + '}', CGI.escape(pool_id.to_s)).sub('{' + 'file_parent_id' + '}', CGI.escape(file_parent_id.to_s))
|
1832
|
+
|
1833
|
+
# query parameters
|
1834
|
+
query_params = opts[:query_params] || {}
|
1835
|
+
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
1836
|
+
query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
|
1837
|
+
query_params[:'name'] = opts[:'name'] if !opts[:'name'].nil?
|
1838
|
+
query_params[:'type'] = opts[:'type'] if !opts[:'type'].nil?
|
1839
|
+
query_params[:'size'] = opts[:'size'] if !opts[:'size'].nil?
|
1840
|
+
|
1841
|
+
# header parameters
|
1842
|
+
header_params = opts[:header_params] || {}
|
1843
|
+
# HTTP header 'Accept' (if needed)
|
1844
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
1845
|
+
|
1846
|
+
# form parameters
|
1847
|
+
form_params = opts[:form_params] || {}
|
1848
|
+
|
1849
|
+
# http body (model)
|
1850
|
+
post_body = opts[:body]
|
1851
|
+
|
1852
|
+
# return_type
|
1853
|
+
return_type = opts[:return_type] || 'OnTapesFileCollection'
|
1854
|
+
|
1855
|
+
# auth_names
|
1856
|
+
auth_names = opts[:auth_names] || ['BasicAuth', 'BearerAuth']
|
1857
|
+
|
1858
|
+
new_options = opts.merge(
|
1859
|
+
:header_params => header_params,
|
1860
|
+
:query_params => query_params,
|
1861
|
+
:form_params => form_params,
|
1862
|
+
:body => post_body,
|
1863
|
+
:auth_names => auth_names,
|
1864
|
+
:return_type => return_type
|
1865
|
+
)
|
1866
|
+
|
1867
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
1868
|
+
if @api_client.config.debugging
|
1869
|
+
@api_client.config.logger.debug "API called: FilesApi#on_tapes_files_children_by_pool\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1870
|
+
end
|
1871
|
+
return data, status_code, headers
|
1872
|
+
end
|
1873
|
+
|
1874
|
+
# Displays a specific file.
|
1875
|
+
# **API Key Scope**: files / show
|
1876
|
+
# @param file_id [Integer] Numeric ID of file.
|
1877
|
+
# @param [Hash] opts the optional parameters
|
1878
|
+
# @return [NodeumFileWithPath]
|
1879
|
+
def show_file(file_id, opts = {})
|
1880
|
+
data, _status_code, _headers = show_file_with_http_info(file_id, opts)
|
1881
|
+
data
|
1882
|
+
end
|
1883
|
+
|
1884
|
+
# Displays a specific file.
|
1885
|
+
# **API Key Scope**: files / show
|
1886
|
+
# @param file_id [Integer] Numeric ID of file.
|
1887
|
+
# @param [Hash] opts the optional parameters
|
1888
|
+
# @return [Array<(NodeumFileWithPath, Integer, Hash)>] NodeumFileWithPath data, response status code and response headers
|
1889
|
+
def show_file_with_http_info(file_id, opts = {})
|
1890
|
+
if @api_client.config.debugging
|
1891
|
+
@api_client.config.logger.debug 'Calling API: FilesApi.show_file ...'
|
1892
|
+
end
|
1893
|
+
# verify the required parameter 'file_id' is set
|
1894
|
+
if @api_client.config.client_side_validation && file_id.nil?
|
1895
|
+
fail ArgumentError, "Missing the required parameter 'file_id' when calling FilesApi.show_file"
|
1896
|
+
end
|
1897
|
+
# resource path
|
1898
|
+
local_var_path = '/files/{file_id}'.sub('{' + 'file_id' + '}', CGI.escape(file_id.to_s))
|
1899
|
+
|
1900
|
+
# query parameters
|
1901
|
+
query_params = opts[:query_params] || {}
|
1902
|
+
|
1903
|
+
# header parameters
|
1904
|
+
header_params = opts[:header_params] || {}
|
1905
|
+
# HTTP header 'Accept' (if needed)
|
1906
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
1907
|
+
|
1908
|
+
# form parameters
|
1909
|
+
form_params = opts[:form_params] || {}
|
1910
|
+
|
1911
|
+
# http body (model)
|
1912
|
+
post_body = opts[:body]
|
1913
|
+
|
1914
|
+
# return_type
|
1915
|
+
return_type = opts[:return_type] || 'NodeumFileWithPath'
|
1916
|
+
|
1917
|
+
# auth_names
|
1918
|
+
auth_names = opts[:auth_names] || ['BasicAuth', 'BearerAuth']
|
1919
|
+
|
1920
|
+
new_options = opts.merge(
|
1921
|
+
:header_params => header_params,
|
1922
|
+
:query_params => query_params,
|
1923
|
+
:form_params => form_params,
|
1924
|
+
:body => post_body,
|
1925
|
+
:auth_names => auth_names,
|
1926
|
+
:return_type => return_type
|
1927
|
+
)
|
1928
|
+
|
1929
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
1930
|
+
if @api_client.config.debugging
|
1931
|
+
@api_client.config.logger.debug "API called: FilesApi#show_file\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1932
|
+
end
|
1933
|
+
return data, status_code, headers
|
1934
|
+
end
|
1935
|
+
|
1936
|
+
# Displays a specific file.
|
1937
|
+
# **API Key Scope**: files / show
|
1938
|
+
# @param container_id [String] Numeric ID or name of container.
|
1939
|
+
# @param file_id [Integer] Numeric ID of file.
|
1940
|
+
# @param [Hash] opts the optional parameters
|
1941
|
+
# @return [NodeumFileWithPath]
|
1942
|
+
def show_file_by_container(container_id, file_id, opts = {})
|
1943
|
+
data, _status_code, _headers = show_file_by_container_with_http_info(container_id, file_id, opts)
|
1944
|
+
data
|
1945
|
+
end
|
1946
|
+
|
1947
|
+
# Displays a specific file.
|
1948
|
+
# **API Key Scope**: files / show
|
1949
|
+
# @param container_id [String] Numeric ID or name of container.
|
1950
|
+
# @param file_id [Integer] Numeric ID of file.
|
1951
|
+
# @param [Hash] opts the optional parameters
|
1952
|
+
# @return [Array<(NodeumFileWithPath, Integer, Hash)>] NodeumFileWithPath data, response status code and response headers
|
1953
|
+
def show_file_by_container_with_http_info(container_id, file_id, opts = {})
|
1954
|
+
if @api_client.config.debugging
|
1955
|
+
@api_client.config.logger.debug 'Calling API: FilesApi.show_file_by_container ...'
|
1956
|
+
end
|
1957
|
+
# verify the required parameter 'container_id' is set
|
1958
|
+
if @api_client.config.client_side_validation && container_id.nil?
|
1959
|
+
fail ArgumentError, "Missing the required parameter 'container_id' when calling FilesApi.show_file_by_container"
|
1960
|
+
end
|
1961
|
+
# verify the required parameter 'file_id' is set
|
1962
|
+
if @api_client.config.client_side_validation && file_id.nil?
|
1963
|
+
fail ArgumentError, "Missing the required parameter 'file_id' when calling FilesApi.show_file_by_container"
|
1964
|
+
end
|
1965
|
+
# resource path
|
1966
|
+
local_var_path = '/containers/{container_id}/files/{file_id}'.sub('{' + 'container_id' + '}', CGI.escape(container_id.to_s)).sub('{' + 'file_id' + '}', CGI.escape(file_id.to_s))
|
1967
|
+
|
1968
|
+
# query parameters
|
1969
|
+
query_params = opts[:query_params] || {}
|
1970
|
+
|
1971
|
+
# header parameters
|
1972
|
+
header_params = opts[:header_params] || {}
|
1973
|
+
# HTTP header 'Accept' (if needed)
|
1974
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
1975
|
+
|
1976
|
+
# form parameters
|
1977
|
+
form_params = opts[:form_params] || {}
|
1978
|
+
|
1979
|
+
# http body (model)
|
1980
|
+
post_body = opts[:body]
|
1981
|
+
|
1982
|
+
# return_type
|
1983
|
+
return_type = opts[:return_type] || 'NodeumFileWithPath'
|
1984
|
+
|
1985
|
+
# auth_names
|
1986
|
+
auth_names = opts[:auth_names] || ['BasicAuth', 'BearerAuth']
|
1987
|
+
|
1988
|
+
new_options = opts.merge(
|
1989
|
+
:header_params => header_params,
|
1990
|
+
:query_params => query_params,
|
1991
|
+
:form_params => form_params,
|
1992
|
+
:body => post_body,
|
1993
|
+
:auth_names => auth_names,
|
1994
|
+
:return_type => return_type
|
1995
|
+
)
|
1996
|
+
|
1997
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
1998
|
+
if @api_client.config.debugging
|
1999
|
+
@api_client.config.logger.debug "API called: FilesApi#show_file_by_container\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
2000
|
+
end
|
2001
|
+
return data, status_code, headers
|
2002
|
+
end
|
2003
|
+
|
2004
|
+
# Displays a specific file.
|
2005
|
+
# **API Key Scope**: files / show
|
2006
|
+
# @param pool_id [String] Numeric ID, or name of pool.
|
2007
|
+
# @param file_id [Integer] Numeric ID of file.
|
2008
|
+
# @param [Hash] opts the optional parameters
|
2009
|
+
# @return [NodeumFileWithPath]
|
2010
|
+
def show_file_by_pool(pool_id, file_id, opts = {})
|
2011
|
+
data, _status_code, _headers = show_file_by_pool_with_http_info(pool_id, file_id, opts)
|
2012
|
+
data
|
2013
|
+
end
|
2014
|
+
|
2015
|
+
# Displays a specific file.
|
2016
|
+
# **API Key Scope**: files / show
|
2017
|
+
# @param pool_id [String] Numeric ID, or name of pool.
|
2018
|
+
# @param file_id [Integer] Numeric ID of file.
|
2019
|
+
# @param [Hash] opts the optional parameters
|
2020
|
+
# @return [Array<(NodeumFileWithPath, Integer, Hash)>] NodeumFileWithPath data, response status code and response headers
|
2021
|
+
def show_file_by_pool_with_http_info(pool_id, file_id, opts = {})
|
2022
|
+
if @api_client.config.debugging
|
2023
|
+
@api_client.config.logger.debug 'Calling API: FilesApi.show_file_by_pool ...'
|
2024
|
+
end
|
2025
|
+
# verify the required parameter 'pool_id' is set
|
2026
|
+
if @api_client.config.client_side_validation && pool_id.nil?
|
2027
|
+
fail ArgumentError, "Missing the required parameter 'pool_id' when calling FilesApi.show_file_by_pool"
|
2028
|
+
end
|
2029
|
+
# verify the required parameter 'file_id' is set
|
2030
|
+
if @api_client.config.client_side_validation && file_id.nil?
|
2031
|
+
fail ArgumentError, "Missing the required parameter 'file_id' when calling FilesApi.show_file_by_pool"
|
2032
|
+
end
|
2033
|
+
# resource path
|
2034
|
+
local_var_path = '/pools/{pool_id}/files/{file_id}'.sub('{' + 'pool_id' + '}', CGI.escape(pool_id.to_s)).sub('{' + 'file_id' + '}', CGI.escape(file_id.to_s))
|
2035
|
+
|
2036
|
+
# query parameters
|
2037
|
+
query_params = opts[:query_params] || {}
|
2038
|
+
|
2039
|
+
# header parameters
|
2040
|
+
header_params = opts[:header_params] || {}
|
2041
|
+
# HTTP header 'Accept' (if needed)
|
2042
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
2043
|
+
|
2044
|
+
# form parameters
|
2045
|
+
form_params = opts[:form_params] || {}
|
2046
|
+
|
2047
|
+
# http body (model)
|
2048
|
+
post_body = opts[:body]
|
2049
|
+
|
2050
|
+
# return_type
|
2051
|
+
return_type = opts[:return_type] || 'NodeumFileWithPath'
|
2052
|
+
|
2053
|
+
# auth_names
|
2054
|
+
auth_names = opts[:auth_names] || ['BasicAuth', 'BearerAuth']
|
2055
|
+
|
2056
|
+
new_options = opts.merge(
|
2057
|
+
:header_params => header_params,
|
2058
|
+
:query_params => query_params,
|
2059
|
+
:form_params => form_params,
|
2060
|
+
:body => post_body,
|
2061
|
+
:auth_names => auth_names,
|
2062
|
+
:return_type => return_type
|
2063
|
+
)
|
2064
|
+
|
2065
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
2066
|
+
if @api_client.config.debugging
|
2067
|
+
@api_client.config.logger.debug "API called: FilesApi#show_file_by_pool\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
2068
|
+
end
|
2069
|
+
return data, status_code, headers
|
2070
|
+
end
|
2071
|
+
|
2072
|
+
# Displays a specific file.
|
2073
|
+
# **API Key Scope**: files / show
|
2074
|
+
# @param task_id [String] Numeric ID or name of task. Task names are not unique, it's recommanded to use numeric ID.
|
2075
|
+
# @param file_id [Integer] Numeric ID of file.
|
2076
|
+
# @param [Hash] opts the optional parameters
|
2077
|
+
# @return [NodeumFileWithPath]
|
2078
|
+
def show_file_by_task(task_id, file_id, opts = {})
|
2079
|
+
data, _status_code, _headers = show_file_by_task_with_http_info(task_id, file_id, opts)
|
2080
|
+
data
|
2081
|
+
end
|
2082
|
+
|
2083
|
+
# Displays a specific file.
|
2084
|
+
# **API Key Scope**: files / show
|
2085
|
+
# @param task_id [String] Numeric ID or name of task. Task names are not unique, it's recommanded to use numeric ID.
|
2086
|
+
# @param file_id [Integer] Numeric ID of file.
|
2087
|
+
# @param [Hash] opts the optional parameters
|
2088
|
+
# @return [Array<(NodeumFileWithPath, Integer, Hash)>] NodeumFileWithPath data, response status code and response headers
|
2089
|
+
def show_file_by_task_with_http_info(task_id, file_id, opts = {})
|
2090
|
+
if @api_client.config.debugging
|
2091
|
+
@api_client.config.logger.debug 'Calling API: FilesApi.show_file_by_task ...'
|
2092
|
+
end
|
2093
|
+
# verify the required parameter 'task_id' is set
|
2094
|
+
if @api_client.config.client_side_validation && task_id.nil?
|
2095
|
+
fail ArgumentError, "Missing the required parameter 'task_id' when calling FilesApi.show_file_by_task"
|
2096
|
+
end
|
2097
|
+
# verify the required parameter 'file_id' is set
|
2098
|
+
if @api_client.config.client_side_validation && file_id.nil?
|
2099
|
+
fail ArgumentError, "Missing the required parameter 'file_id' when calling FilesApi.show_file_by_task"
|
2100
|
+
end
|
2101
|
+
# resource path
|
2102
|
+
local_var_path = '/tasks/{task_id}/files/{file_id}'.sub('{' + 'task_id' + '}', CGI.escape(task_id.to_s)).sub('{' + 'file_id' + '}', CGI.escape(file_id.to_s))
|
2103
|
+
|
2104
|
+
# query parameters
|
2105
|
+
query_params = opts[:query_params] || {}
|
2106
|
+
|
2107
|
+
# header parameters
|
2108
|
+
header_params = opts[:header_params] || {}
|
2109
|
+
# HTTP header 'Accept' (if needed)
|
2110
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
2111
|
+
|
2112
|
+
# form parameters
|
2113
|
+
form_params = opts[:form_params] || {}
|
2114
|
+
|
2115
|
+
# http body (model)
|
2116
|
+
post_body = opts[:body]
|
2117
|
+
|
2118
|
+
# return_type
|
2119
|
+
return_type = opts[:return_type] || 'NodeumFileWithPath'
|
2120
|
+
|
2121
|
+
# auth_names
|
2122
|
+
auth_names = opts[:auth_names] || ['BasicAuth', 'BearerAuth']
|
2123
|
+
|
2124
|
+
new_options = opts.merge(
|
2125
|
+
:header_params => header_params,
|
2126
|
+
:query_params => query_params,
|
2127
|
+
:form_params => form_params,
|
2128
|
+
:body => post_body,
|
2129
|
+
:auth_names => auth_names,
|
2130
|
+
:return_type => return_type
|
2131
|
+
)
|
2132
|
+
|
2133
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
2134
|
+
if @api_client.config.debugging
|
2135
|
+
@api_client.config.logger.debug "API called: FilesApi#show_file_by_task\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
2136
|
+
end
|
2137
|
+
return data, status_code, headers
|
2138
|
+
end
|
2139
|
+
|
2140
|
+
# Displays a specific file.
|
2141
|
+
# **API Key Scope**: files / show
|
2142
|
+
# @param task_execution_id [String] Numeric ID of task execution.
|
2143
|
+
# @param file_id [Integer] Numeric ID of file.
|
2144
|
+
# @param [Hash] opts the optional parameters
|
2145
|
+
# @return [NodeumFileWithPath]
|
2146
|
+
def show_file_by_task_execution(task_execution_id, file_id, opts = {})
|
2147
|
+
data, _status_code, _headers = show_file_by_task_execution_with_http_info(task_execution_id, file_id, opts)
|
2148
|
+
data
|
2149
|
+
end
|
2150
|
+
|
2151
|
+
# Displays a specific file.
|
2152
|
+
# **API Key Scope**: files / show
|
2153
|
+
# @param task_execution_id [String] Numeric ID of task execution.
|
2154
|
+
# @param file_id [Integer] Numeric ID of file.
|
2155
|
+
# @param [Hash] opts the optional parameters
|
2156
|
+
# @return [Array<(NodeumFileWithPath, Integer, Hash)>] NodeumFileWithPath data, response status code and response headers
|
2157
|
+
def show_file_by_task_execution_with_http_info(task_execution_id, file_id, opts = {})
|
2158
|
+
if @api_client.config.debugging
|
2159
|
+
@api_client.config.logger.debug 'Calling API: FilesApi.show_file_by_task_execution ...'
|
2160
|
+
end
|
2161
|
+
# verify the required parameter 'task_execution_id' is set
|
2162
|
+
if @api_client.config.client_side_validation && task_execution_id.nil?
|
2163
|
+
fail ArgumentError, "Missing the required parameter 'task_execution_id' when calling FilesApi.show_file_by_task_execution"
|
2164
|
+
end
|
2165
|
+
# verify the required parameter 'file_id' is set
|
2166
|
+
if @api_client.config.client_side_validation && file_id.nil?
|
2167
|
+
fail ArgumentError, "Missing the required parameter 'file_id' when calling FilesApi.show_file_by_task_execution"
|
2168
|
+
end
|
2169
|
+
# resource path
|
2170
|
+
local_var_path = '/task_executions/{task_execution_id}/files/{file_id}'.sub('{' + 'task_execution_id' + '}', CGI.escape(task_execution_id.to_s)).sub('{' + 'file_id' + '}', CGI.escape(file_id.to_s))
|
2171
|
+
|
2172
|
+
# query parameters
|
2173
|
+
query_params = opts[:query_params] || {}
|
2174
|
+
|
2175
|
+
# header parameters
|
2176
|
+
header_params = opts[:header_params] || {}
|
2177
|
+
# HTTP header 'Accept' (if needed)
|
2178
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
2179
|
+
|
2180
|
+
# form parameters
|
2181
|
+
form_params = opts[:form_params] || {}
|
2182
|
+
|
2183
|
+
# http body (model)
|
2184
|
+
post_body = opts[:body]
|
2185
|
+
|
2186
|
+
# return_type
|
2187
|
+
return_type = opts[:return_type] || 'NodeumFileWithPath'
|
2188
|
+
|
2189
|
+
# auth_names
|
2190
|
+
auth_names = opts[:auth_names] || ['BasicAuth', 'BearerAuth']
|
2191
|
+
|
2192
|
+
new_options = opts.merge(
|
2193
|
+
:header_params => header_params,
|
2194
|
+
:query_params => query_params,
|
2195
|
+
:form_params => form_params,
|
2196
|
+
:body => post_body,
|
2197
|
+
:auth_names => auth_names,
|
2198
|
+
:return_type => return_type
|
2199
|
+
)
|
2200
|
+
|
2201
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
2202
|
+
if @api_client.config.debugging
|
2203
|
+
@api_client.config.logger.debug "API called: FilesApi#show_file_by_task_execution\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
2204
|
+
end
|
2205
|
+
return data, status_code, headers
|
2206
|
+
end
|
2207
|
+
|
2208
|
+
# Displays a specific file.
|
2209
|
+
# **API Key Scope**: files / show
|
2210
|
+
# @param task_id [String] Numeric ID or name of task. Task names are not unique, it's recommanded to use numeric ID.
|
2211
|
+
# @param task_execution_id [String] Numeric ID of task execution.
|
2212
|
+
# @param file_id [Integer] Numeric ID of file.
|
2213
|
+
# @param [Hash] opts the optional parameters
|
2214
|
+
# @return [NodeumFileWithPath]
|
2215
|
+
def show_file_by_task_execution_by_task(task_id, task_execution_id, file_id, opts = {})
|
2216
|
+
data, _status_code, _headers = show_file_by_task_execution_by_task_with_http_info(task_id, task_execution_id, file_id, opts)
|
2217
|
+
data
|
2218
|
+
end
|
2219
|
+
|
2220
|
+
# Displays a specific file.
|
2221
|
+
# **API Key Scope**: files / show
|
2222
|
+
# @param task_id [String] Numeric ID or name of task. Task names are not unique, it's recommanded to use numeric ID.
|
2223
|
+
# @param task_execution_id [String] Numeric ID of task execution.
|
2224
|
+
# @param file_id [Integer] Numeric ID of file.
|
2225
|
+
# @param [Hash] opts the optional parameters
|
2226
|
+
# @return [Array<(NodeumFileWithPath, Integer, Hash)>] NodeumFileWithPath data, response status code and response headers
|
2227
|
+
def show_file_by_task_execution_by_task_with_http_info(task_id, task_execution_id, file_id, opts = {})
|
2228
|
+
if @api_client.config.debugging
|
2229
|
+
@api_client.config.logger.debug 'Calling API: FilesApi.show_file_by_task_execution_by_task ...'
|
2230
|
+
end
|
2231
|
+
# verify the required parameter 'task_id' is set
|
2232
|
+
if @api_client.config.client_side_validation && task_id.nil?
|
2233
|
+
fail ArgumentError, "Missing the required parameter 'task_id' when calling FilesApi.show_file_by_task_execution_by_task"
|
2234
|
+
end
|
2235
|
+
# verify the required parameter 'task_execution_id' is set
|
2236
|
+
if @api_client.config.client_side_validation && task_execution_id.nil?
|
2237
|
+
fail ArgumentError, "Missing the required parameter 'task_execution_id' when calling FilesApi.show_file_by_task_execution_by_task"
|
2238
|
+
end
|
2239
|
+
# verify the required parameter 'file_id' is set
|
2240
|
+
if @api_client.config.client_side_validation && file_id.nil?
|
2241
|
+
fail ArgumentError, "Missing the required parameter 'file_id' when calling FilesApi.show_file_by_task_execution_by_task"
|
2242
|
+
end
|
2243
|
+
# resource path
|
2244
|
+
local_var_path = '/tasks/{task_id}/task_executions/{task_execution_id}/files/{file_id}'.sub('{' + 'task_id' + '}', CGI.escape(task_id.to_s)).sub('{' + 'task_execution_id' + '}', CGI.escape(task_execution_id.to_s)).sub('{' + 'file_id' + '}', CGI.escape(file_id.to_s))
|
2245
|
+
|
2246
|
+
# query parameters
|
2247
|
+
query_params = opts[:query_params] || {}
|
2248
|
+
|
2249
|
+
# header parameters
|
2250
|
+
header_params = opts[:header_params] || {}
|
2251
|
+
# HTTP header 'Accept' (if needed)
|
2252
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
2253
|
+
|
2254
|
+
# form parameters
|
2255
|
+
form_params = opts[:form_params] || {}
|
2256
|
+
|
2257
|
+
# http body (model)
|
2258
|
+
post_body = opts[:body]
|
2259
|
+
|
2260
|
+
# return_type
|
2261
|
+
return_type = opts[:return_type] || 'NodeumFileWithPath'
|
2262
|
+
|
2263
|
+
# auth_names
|
2264
|
+
auth_names = opts[:auth_names] || ['BasicAuth', 'BearerAuth']
|
2265
|
+
|
2266
|
+
new_options = opts.merge(
|
2267
|
+
:header_params => header_params,
|
2268
|
+
:query_params => query_params,
|
2269
|
+
:form_params => form_params,
|
2270
|
+
:body => post_body,
|
2271
|
+
:auth_names => auth_names,
|
2272
|
+
:return_type => return_type
|
2273
|
+
)
|
2274
|
+
|
2275
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
2276
|
+
if @api_client.config.debugging
|
2277
|
+
@api_client.config.logger.debug "API called: FilesApi#show_file_by_task_execution_by_task\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
2278
|
+
end
|
2279
|
+
return data, status_code, headers
|
2280
|
+
end
|
2281
|
+
|
2282
|
+
# Displays a specific file on tape of pools, specific for Data Exchange.
|
2283
|
+
# **API Key Scope**: import_files / show
|
2284
|
+
# @param pool_id [String] Numeric ID, or name of pool.
|
2285
|
+
# @param file_id [Integer] Numeric ID of file.
|
2286
|
+
# @param [Hash] opts the optional parameters
|
2287
|
+
# @return [ImportFileWithPath]
|
2288
|
+
def show_import_file_by_pool(pool_id, file_id, opts = {})
|
2289
|
+
data, _status_code, _headers = show_import_file_by_pool_with_http_info(pool_id, file_id, opts)
|
2290
|
+
data
|
2291
|
+
end
|
2292
|
+
|
2293
|
+
# Displays a specific file on tape of pools, specific for Data Exchange.
|
2294
|
+
# **API Key Scope**: import_files / show
|
2295
|
+
# @param pool_id [String] Numeric ID, or name of pool.
|
2296
|
+
# @param file_id [Integer] Numeric ID of file.
|
2297
|
+
# @param [Hash] opts the optional parameters
|
2298
|
+
# @return [Array<(ImportFileWithPath, Integer, Hash)>] ImportFileWithPath data, response status code and response headers
|
2299
|
+
def show_import_file_by_pool_with_http_info(pool_id, file_id, opts = {})
|
2300
|
+
if @api_client.config.debugging
|
2301
|
+
@api_client.config.logger.debug 'Calling API: FilesApi.show_import_file_by_pool ...'
|
2302
|
+
end
|
2303
|
+
# verify the required parameter 'pool_id' is set
|
2304
|
+
if @api_client.config.client_side_validation && pool_id.nil?
|
2305
|
+
fail ArgumentError, "Missing the required parameter 'pool_id' when calling FilesApi.show_import_file_by_pool"
|
2306
|
+
end
|
2307
|
+
# verify the required parameter 'file_id' is set
|
2308
|
+
if @api_client.config.client_side_validation && file_id.nil?
|
2309
|
+
fail ArgumentError, "Missing the required parameter 'file_id' when calling FilesApi.show_import_file_by_pool"
|
2310
|
+
end
|
2311
|
+
# resource path
|
2312
|
+
local_var_path = '/pools/{pool_id}/import_files/{file_id}'.sub('{' + 'pool_id' + '}', CGI.escape(pool_id.to_s)).sub('{' + 'file_id' + '}', CGI.escape(file_id.to_s))
|
2313
|
+
|
2314
|
+
# query parameters
|
2315
|
+
query_params = opts[:query_params] || {}
|
2316
|
+
|
2317
|
+
# header parameters
|
2318
|
+
header_params = opts[:header_params] || {}
|
2319
|
+
# HTTP header 'Accept' (if needed)
|
2320
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
2321
|
+
|
2322
|
+
# form parameters
|
2323
|
+
form_params = opts[:form_params] || {}
|
2324
|
+
|
2325
|
+
# http body (model)
|
2326
|
+
post_body = opts[:body]
|
2327
|
+
|
2328
|
+
# return_type
|
2329
|
+
return_type = opts[:return_type] || 'ImportFileWithPath'
|
2330
|
+
|
2331
|
+
# auth_names
|
2332
|
+
auth_names = opts[:auth_names] || ['BasicAuth', 'BearerAuth']
|
2333
|
+
|
2334
|
+
new_options = opts.merge(
|
2335
|
+
:header_params => header_params,
|
2336
|
+
:query_params => query_params,
|
2337
|
+
:form_params => form_params,
|
2338
|
+
:body => post_body,
|
2339
|
+
:auth_names => auth_names,
|
2340
|
+
:return_type => return_type
|
2341
|
+
)
|
2342
|
+
|
2343
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
2344
|
+
if @api_client.config.debugging
|
2345
|
+
@api_client.config.logger.debug "API called: FilesApi#show_import_file_by_pool\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
2346
|
+
end
|
2347
|
+
return data, status_code, headers
|
2348
|
+
end
|
2349
|
+
|
2350
|
+
# Displays a specific file on tape of pools, specific for Active and Offline.
|
2351
|
+
# **API Key Scope**: on_tapes_files / show
|
2352
|
+
# @param pool_id [String] Numeric ID, or name of pool.
|
2353
|
+
# @param file_id [Integer] Numeric ID of file.
|
2354
|
+
# @param [Hash] opts the optional parameters
|
2355
|
+
# @return [OnTapesFile]
|
2356
|
+
def show_on_tape_file_by_pool(pool_id, file_id, opts = {})
|
2357
|
+
data, _status_code, _headers = show_on_tape_file_by_pool_with_http_info(pool_id, file_id, opts)
|
2358
|
+
data
|
2359
|
+
end
|
2360
|
+
|
2361
|
+
# Displays a specific file on tape of pools, specific for Active and Offline.
|
2362
|
+
# **API Key Scope**: on_tapes_files / show
|
2363
|
+
# @param pool_id [String] Numeric ID, or name of pool.
|
2364
|
+
# @param file_id [Integer] Numeric ID of file.
|
2365
|
+
# @param [Hash] opts the optional parameters
|
2366
|
+
# @return [Array<(OnTapesFile, Integer, Hash)>] OnTapesFile data, response status code and response headers
|
2367
|
+
def show_on_tape_file_by_pool_with_http_info(pool_id, file_id, opts = {})
|
2368
|
+
if @api_client.config.debugging
|
2369
|
+
@api_client.config.logger.debug 'Calling API: FilesApi.show_on_tape_file_by_pool ...'
|
2370
|
+
end
|
2371
|
+
# verify the required parameter 'pool_id' is set
|
2372
|
+
if @api_client.config.client_side_validation && pool_id.nil?
|
2373
|
+
fail ArgumentError, "Missing the required parameter 'pool_id' when calling FilesApi.show_on_tape_file_by_pool"
|
2374
|
+
end
|
2375
|
+
# verify the required parameter 'file_id' is set
|
2376
|
+
if @api_client.config.client_side_validation && file_id.nil?
|
2377
|
+
fail ArgumentError, "Missing the required parameter 'file_id' when calling FilesApi.show_on_tape_file_by_pool"
|
2378
|
+
end
|
2379
|
+
# resource path
|
2380
|
+
local_var_path = '/pools/{pool_id}/on_tapes_files/{file_id}'.sub('{' + 'pool_id' + '}', CGI.escape(pool_id.to_s)).sub('{' + 'file_id' + '}', CGI.escape(file_id.to_s))
|
2381
|
+
|
2382
|
+
# query parameters
|
2383
|
+
query_params = opts[:query_params] || {}
|
2384
|
+
|
2385
|
+
# header parameters
|
2386
|
+
header_params = opts[:header_params] || {}
|
2387
|
+
# HTTP header 'Accept' (if needed)
|
2388
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
2389
|
+
|
2390
|
+
# form parameters
|
2391
|
+
form_params = opts[:form_params] || {}
|
2392
|
+
|
2393
|
+
# http body (model)
|
2394
|
+
post_body = opts[:body]
|
2395
|
+
|
2396
|
+
# return_type
|
2397
|
+
return_type = opts[:return_type] || 'OnTapesFile'
|
2398
|
+
|
2399
|
+
# auth_names
|
2400
|
+
auth_names = opts[:auth_names] || ['BasicAuth', 'BearerAuth']
|
2401
|
+
|
2402
|
+
new_options = opts.merge(
|
2403
|
+
:header_params => header_params,
|
2404
|
+
:query_params => query_params,
|
2405
|
+
:form_params => form_params,
|
2406
|
+
:body => post_body,
|
2407
|
+
:auth_names => auth_names,
|
2408
|
+
:return_type => return_type
|
2409
|
+
)
|
2410
|
+
|
2411
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
2412
|
+
if @api_client.config.debugging
|
2413
|
+
@api_client.config.logger.debug "API called: FilesApi#show_on_tape_file_by_pool\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
2414
|
+
end
|
2415
|
+
return data, status_code, headers
|
2416
|
+
end
|
2417
|
+
end
|
2418
|
+
end
|