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,736 @@
|
|
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 ContainersApi
|
17
|
+
attr_accessor :api_client
|
18
|
+
|
19
|
+
def initialize(api_client = ApiClient.default)
|
20
|
+
@api_client = api_client
|
21
|
+
end
|
22
|
+
# Creates a new container.
|
23
|
+
# It **does not** yet create the file structure and configure the samba connection. Use API v1 instead. **API Key Scope**: containers / create
|
24
|
+
# @param container_body [Container]
|
25
|
+
# @param [Hash] opts the optional parameters
|
26
|
+
# @return [Container]
|
27
|
+
def create_container(container_body, opts = {})
|
28
|
+
data, _status_code, _headers = create_container_with_http_info(container_body, opts)
|
29
|
+
data
|
30
|
+
end
|
31
|
+
|
32
|
+
# Creates a new container.
|
33
|
+
# It **does not** yet create the file structure and configure the samba connection. Use API v1 instead. **API Key Scope**: containers / create
|
34
|
+
# @param container_body [Container]
|
35
|
+
# @param [Hash] opts the optional parameters
|
36
|
+
# @return [Array<(Container, Integer, Hash)>] Container data, response status code and response headers
|
37
|
+
def create_container_with_http_info(container_body, opts = {})
|
38
|
+
if @api_client.config.debugging
|
39
|
+
@api_client.config.logger.debug 'Calling API: ContainersApi.create_container ...'
|
40
|
+
end
|
41
|
+
# verify the required parameter 'container_body' is set
|
42
|
+
if @api_client.config.client_side_validation && container_body.nil?
|
43
|
+
fail ArgumentError, "Missing the required parameter 'container_body' when calling ContainersApi.create_container"
|
44
|
+
end
|
45
|
+
# resource path
|
46
|
+
local_var_path = '/containers'
|
47
|
+
|
48
|
+
# query parameters
|
49
|
+
query_params = opts[:query_params] || {}
|
50
|
+
|
51
|
+
# header parameters
|
52
|
+
header_params = opts[:header_params] || {}
|
53
|
+
# HTTP header 'Accept' (if needed)
|
54
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
55
|
+
# HTTP header 'Content-Type'
|
56
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
57
|
+
|
58
|
+
# form parameters
|
59
|
+
form_params = opts[:form_params] || {}
|
60
|
+
|
61
|
+
# http body (model)
|
62
|
+
post_body = opts[:body] || @api_client.object_to_http_body(container_body)
|
63
|
+
|
64
|
+
# return_type
|
65
|
+
return_type = opts[:return_type] || 'Container'
|
66
|
+
|
67
|
+
# auth_names
|
68
|
+
auth_names = opts[:auth_names] || ['BasicAuth', 'BearerAuth']
|
69
|
+
|
70
|
+
new_options = opts.merge(
|
71
|
+
:header_params => header_params,
|
72
|
+
:query_params => query_params,
|
73
|
+
:form_params => form_params,
|
74
|
+
:body => post_body,
|
75
|
+
:auth_names => auth_names,
|
76
|
+
:return_type => return_type
|
77
|
+
)
|
78
|
+
|
79
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
80
|
+
if @api_client.config.debugging
|
81
|
+
@api_client.config.logger.debug "API called: ContainersApi#create_container\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
82
|
+
end
|
83
|
+
return data, status_code, headers
|
84
|
+
end
|
85
|
+
|
86
|
+
# Creates a new privilege on the container.
|
87
|
+
# **API Key Scope**: container_privileges / create
|
88
|
+
# @param container_id [String] Numeric ID or name of container.
|
89
|
+
# @param container_privilege_body [ContainerPrivilege]
|
90
|
+
# @param [Hash] opts the optional parameters
|
91
|
+
# @return [ContainerPrivilege]
|
92
|
+
def create_container_privilege(container_id, container_privilege_body, opts = {})
|
93
|
+
data, _status_code, _headers = create_container_privilege_with_http_info(container_id, container_privilege_body, opts)
|
94
|
+
data
|
95
|
+
end
|
96
|
+
|
97
|
+
# Creates a new privilege on the container.
|
98
|
+
# **API Key Scope**: container_privileges / create
|
99
|
+
# @param container_id [String] Numeric ID or name of container.
|
100
|
+
# @param container_privilege_body [ContainerPrivilege]
|
101
|
+
# @param [Hash] opts the optional parameters
|
102
|
+
# @return [Array<(ContainerPrivilege, Integer, Hash)>] ContainerPrivilege data, response status code and response headers
|
103
|
+
def create_container_privilege_with_http_info(container_id, container_privilege_body, opts = {})
|
104
|
+
if @api_client.config.debugging
|
105
|
+
@api_client.config.logger.debug 'Calling API: ContainersApi.create_container_privilege ...'
|
106
|
+
end
|
107
|
+
# verify the required parameter 'container_id' is set
|
108
|
+
if @api_client.config.client_side_validation && container_id.nil?
|
109
|
+
fail ArgumentError, "Missing the required parameter 'container_id' when calling ContainersApi.create_container_privilege"
|
110
|
+
end
|
111
|
+
# verify the required parameter 'container_privilege_body' is set
|
112
|
+
if @api_client.config.client_side_validation && container_privilege_body.nil?
|
113
|
+
fail ArgumentError, "Missing the required parameter 'container_privilege_body' when calling ContainersApi.create_container_privilege"
|
114
|
+
end
|
115
|
+
# resource path
|
116
|
+
local_var_path = '/containers/{container_id}/container_privileges'.sub('{' + 'container_id' + '}', CGI.escape(container_id.to_s))
|
117
|
+
|
118
|
+
# query parameters
|
119
|
+
query_params = opts[:query_params] || {}
|
120
|
+
|
121
|
+
# header parameters
|
122
|
+
header_params = opts[:header_params] || {}
|
123
|
+
# HTTP header 'Accept' (if needed)
|
124
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
125
|
+
# HTTP header 'Content-Type'
|
126
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
127
|
+
|
128
|
+
# form parameters
|
129
|
+
form_params = opts[:form_params] || {}
|
130
|
+
|
131
|
+
# http body (model)
|
132
|
+
post_body = opts[:body] || @api_client.object_to_http_body(container_privilege_body)
|
133
|
+
|
134
|
+
# return_type
|
135
|
+
return_type = opts[:return_type] || 'ContainerPrivilege'
|
136
|
+
|
137
|
+
# auth_names
|
138
|
+
auth_names = opts[:auth_names] || ['BasicAuth', 'BearerAuth']
|
139
|
+
|
140
|
+
new_options = opts.merge(
|
141
|
+
:header_params => header_params,
|
142
|
+
:query_params => query_params,
|
143
|
+
:form_params => form_params,
|
144
|
+
:body => post_body,
|
145
|
+
:auth_names => auth_names,
|
146
|
+
:return_type => return_type
|
147
|
+
)
|
148
|
+
|
149
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
150
|
+
if @api_client.config.debugging
|
151
|
+
@api_client.config.logger.debug "API called: ContainersApi#create_container_privilege\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
152
|
+
end
|
153
|
+
return data, status_code, headers
|
154
|
+
end
|
155
|
+
|
156
|
+
# Destroys a specific container.
|
157
|
+
# **API Key Scope**: containers / destroy
|
158
|
+
# @param container_id [String] Numeric ID or name of container.
|
159
|
+
# @param [Hash] opts the optional parameters
|
160
|
+
# @return [nil]
|
161
|
+
def destroy_container(container_id, opts = {})
|
162
|
+
destroy_container_with_http_info(container_id, opts)
|
163
|
+
nil
|
164
|
+
end
|
165
|
+
|
166
|
+
# Destroys a specific container.
|
167
|
+
# **API Key Scope**: containers / destroy
|
168
|
+
# @param container_id [String] Numeric ID or name of container.
|
169
|
+
# @param [Hash] opts the optional parameters
|
170
|
+
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
171
|
+
def destroy_container_with_http_info(container_id, opts = {})
|
172
|
+
if @api_client.config.debugging
|
173
|
+
@api_client.config.logger.debug 'Calling API: ContainersApi.destroy_container ...'
|
174
|
+
end
|
175
|
+
# verify the required parameter 'container_id' is set
|
176
|
+
if @api_client.config.client_side_validation && container_id.nil?
|
177
|
+
fail ArgumentError, "Missing the required parameter 'container_id' when calling ContainersApi.destroy_container"
|
178
|
+
end
|
179
|
+
# resource path
|
180
|
+
local_var_path = '/containers/{container_id}'.sub('{' + 'container_id' + '}', CGI.escape(container_id.to_s))
|
181
|
+
|
182
|
+
# query parameters
|
183
|
+
query_params = opts[:query_params] || {}
|
184
|
+
|
185
|
+
# header parameters
|
186
|
+
header_params = opts[:header_params] || {}
|
187
|
+
|
188
|
+
# form parameters
|
189
|
+
form_params = opts[:form_params] || {}
|
190
|
+
|
191
|
+
# http body (model)
|
192
|
+
post_body = opts[:body]
|
193
|
+
|
194
|
+
# return_type
|
195
|
+
return_type = opts[:return_type]
|
196
|
+
|
197
|
+
# auth_names
|
198
|
+
auth_names = opts[:auth_names] || ['BasicAuth', 'BearerAuth']
|
199
|
+
|
200
|
+
new_options = opts.merge(
|
201
|
+
:header_params => header_params,
|
202
|
+
:query_params => query_params,
|
203
|
+
:form_params => form_params,
|
204
|
+
:body => post_body,
|
205
|
+
:auth_names => auth_names,
|
206
|
+
:return_type => return_type
|
207
|
+
)
|
208
|
+
|
209
|
+
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
|
210
|
+
if @api_client.config.debugging
|
211
|
+
@api_client.config.logger.debug "API called: ContainersApi#destroy_container\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
212
|
+
end
|
213
|
+
return data, status_code, headers
|
214
|
+
end
|
215
|
+
|
216
|
+
# Destroys a specific privilege.
|
217
|
+
# **API Key Scope**: container_privileges / destroy
|
218
|
+
# @param container_id [String] Numeric ID or name of container.
|
219
|
+
# @param container_privilege_id [Integer] Numeric ID of container privilege.
|
220
|
+
# @param [Hash] opts the optional parameters
|
221
|
+
# @return [nil]
|
222
|
+
def destroy_container_privilege(container_id, container_privilege_id, opts = {})
|
223
|
+
destroy_container_privilege_with_http_info(container_id, container_privilege_id, opts)
|
224
|
+
nil
|
225
|
+
end
|
226
|
+
|
227
|
+
# Destroys a specific privilege.
|
228
|
+
# **API Key Scope**: container_privileges / destroy
|
229
|
+
# @param container_id [String] Numeric ID or name of container.
|
230
|
+
# @param container_privilege_id [Integer] Numeric ID of container privilege.
|
231
|
+
# @param [Hash] opts the optional parameters
|
232
|
+
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
233
|
+
def destroy_container_privilege_with_http_info(container_id, container_privilege_id, opts = {})
|
234
|
+
if @api_client.config.debugging
|
235
|
+
@api_client.config.logger.debug 'Calling API: ContainersApi.destroy_container_privilege ...'
|
236
|
+
end
|
237
|
+
# verify the required parameter 'container_id' is set
|
238
|
+
if @api_client.config.client_side_validation && container_id.nil?
|
239
|
+
fail ArgumentError, "Missing the required parameter 'container_id' when calling ContainersApi.destroy_container_privilege"
|
240
|
+
end
|
241
|
+
# verify the required parameter 'container_privilege_id' is set
|
242
|
+
if @api_client.config.client_side_validation && container_privilege_id.nil?
|
243
|
+
fail ArgumentError, "Missing the required parameter 'container_privilege_id' when calling ContainersApi.destroy_container_privilege"
|
244
|
+
end
|
245
|
+
# resource path
|
246
|
+
local_var_path = '/containers/{container_id}/container_privileges/{container_privilege_id}'.sub('{' + 'container_id' + '}', CGI.escape(container_id.to_s)).sub('{' + 'container_privilege_id' + '}', CGI.escape(container_privilege_id.to_s))
|
247
|
+
|
248
|
+
# query parameters
|
249
|
+
query_params = opts[:query_params] || {}
|
250
|
+
|
251
|
+
# header parameters
|
252
|
+
header_params = opts[:header_params] || {}
|
253
|
+
|
254
|
+
# form parameters
|
255
|
+
form_params = opts[:form_params] || {}
|
256
|
+
|
257
|
+
# http body (model)
|
258
|
+
post_body = opts[:body]
|
259
|
+
|
260
|
+
# return_type
|
261
|
+
return_type = opts[:return_type]
|
262
|
+
|
263
|
+
# auth_names
|
264
|
+
auth_names = opts[:auth_names] || ['BasicAuth', 'BearerAuth']
|
265
|
+
|
266
|
+
new_options = opts.merge(
|
267
|
+
:header_params => header_params,
|
268
|
+
:query_params => query_params,
|
269
|
+
:form_params => form_params,
|
270
|
+
:body => post_body,
|
271
|
+
:auth_names => auth_names,
|
272
|
+
:return_type => return_type
|
273
|
+
)
|
274
|
+
|
275
|
+
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
|
276
|
+
if @api_client.config.debugging
|
277
|
+
@api_client.config.logger.debug "API called: ContainersApi#destroy_container_privilege\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
278
|
+
end
|
279
|
+
return data, status_code, headers
|
280
|
+
end
|
281
|
+
|
282
|
+
# Lists all privilege on the container.
|
283
|
+
# **API Key Scope**: container_privileges / index
|
284
|
+
# @param container_id [String] Numeric ID or name of container.
|
285
|
+
# @param [Hash] opts the optional parameters
|
286
|
+
# @option opts [Integer] :limit The number of items to display for pagination.
|
287
|
+
# @option opts [Integer] :offset The number of items to skip for pagination.
|
288
|
+
# @option opts [Array<String>] :sort_by Sort results by attribute. Can sort on multiple attributes, separated by `|`. Order direction can be suffixing the attribute by either `:asc` (default) or `:desc`.
|
289
|
+
# @option opts [String] :id Filter on id
|
290
|
+
# @option opts [String] :name Filter on name
|
291
|
+
# @option opts [String] :privilege Filter on privilege
|
292
|
+
# @option opts [String] :type Filter on type
|
293
|
+
# @return [ContainerPrivilegeCollection]
|
294
|
+
def index_container_privileges(container_id, opts = {})
|
295
|
+
data, _status_code, _headers = index_container_privileges_with_http_info(container_id, opts)
|
296
|
+
data
|
297
|
+
end
|
298
|
+
|
299
|
+
# Lists all privilege on the container.
|
300
|
+
# **API Key Scope**: container_privileges / index
|
301
|
+
# @param container_id [String] Numeric ID or name of container.
|
302
|
+
# @param [Hash] opts the optional parameters
|
303
|
+
# @option opts [Integer] :limit The number of items to display for pagination.
|
304
|
+
# @option opts [Integer] :offset The number of items to skip for pagination.
|
305
|
+
# @option opts [Array<String>] :sort_by Sort results by attribute. Can sort on multiple attributes, separated by `|`. Order direction can be suffixing the attribute by either `:asc` (default) or `:desc`.
|
306
|
+
# @option opts [String] :id Filter on id
|
307
|
+
# @option opts [String] :name Filter on name
|
308
|
+
# @option opts [String] :privilege Filter on privilege
|
309
|
+
# @option opts [String] :type Filter on type
|
310
|
+
# @return [Array<(ContainerPrivilegeCollection, Integer, Hash)>] ContainerPrivilegeCollection data, response status code and response headers
|
311
|
+
def index_container_privileges_with_http_info(container_id, opts = {})
|
312
|
+
if @api_client.config.debugging
|
313
|
+
@api_client.config.logger.debug 'Calling API: ContainersApi.index_container_privileges ...'
|
314
|
+
end
|
315
|
+
# verify the required parameter 'container_id' is set
|
316
|
+
if @api_client.config.client_side_validation && container_id.nil?
|
317
|
+
fail ArgumentError, "Missing the required parameter 'container_id' when calling ContainersApi.index_container_privileges"
|
318
|
+
end
|
319
|
+
# resource path
|
320
|
+
local_var_path = '/containers/{container_id}/container_privileges'.sub('{' + 'container_id' + '}', CGI.escape(container_id.to_s))
|
321
|
+
|
322
|
+
# query parameters
|
323
|
+
query_params = opts[:query_params] || {}
|
324
|
+
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
325
|
+
query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
|
326
|
+
query_params[:'sort_by'] = @api_client.build_collection_param(opts[:'sort_by'], :pipe) if !opts[:'sort_by'].nil?
|
327
|
+
query_params[:'id'] = opts[:'id'] if !opts[:'id'].nil?
|
328
|
+
query_params[:'name'] = opts[:'name'] if !opts[:'name'].nil?
|
329
|
+
query_params[:'privilege'] = opts[:'privilege'] if !opts[:'privilege'].nil?
|
330
|
+
query_params[:'type'] = opts[:'type'] if !opts[:'type'].nil?
|
331
|
+
|
332
|
+
# header parameters
|
333
|
+
header_params = opts[:header_params] || {}
|
334
|
+
# HTTP header 'Accept' (if needed)
|
335
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
336
|
+
|
337
|
+
# form parameters
|
338
|
+
form_params = opts[:form_params] || {}
|
339
|
+
|
340
|
+
# http body (model)
|
341
|
+
post_body = opts[:body]
|
342
|
+
|
343
|
+
# return_type
|
344
|
+
return_type = opts[:return_type] || 'ContainerPrivilegeCollection'
|
345
|
+
|
346
|
+
# auth_names
|
347
|
+
auth_names = opts[:auth_names] || ['BasicAuth', 'BearerAuth']
|
348
|
+
|
349
|
+
new_options = opts.merge(
|
350
|
+
:header_params => header_params,
|
351
|
+
:query_params => query_params,
|
352
|
+
:form_params => form_params,
|
353
|
+
:body => post_body,
|
354
|
+
:auth_names => auth_names,
|
355
|
+
:return_type => return_type
|
356
|
+
)
|
357
|
+
|
358
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
359
|
+
if @api_client.config.debugging
|
360
|
+
@api_client.config.logger.debug "API called: ContainersApi#index_container_privileges\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
361
|
+
end
|
362
|
+
return data, status_code, headers
|
363
|
+
end
|
364
|
+
|
365
|
+
# Lists all containers.
|
366
|
+
# **API Key Scope**: containers / index
|
367
|
+
# @param [Hash] opts the optional parameters
|
368
|
+
# @option opts [Integer] :limit The number of items to display for pagination.
|
369
|
+
# @option opts [Integer] :offset The number of items to skip for pagination.
|
370
|
+
# @option opts [Array<String>] :sort_by Sort results by attribute. Can sort on multiple attributes, separated by `|`. Order direction can be suffixing the attribute by either `:asc` (default) or `:desc`.
|
371
|
+
# @option opts [String] :id Filter on id
|
372
|
+
# @option opts [String] :name Filter on name
|
373
|
+
# @option opts [String] :comment Filter on comment
|
374
|
+
# @option opts [String] :quota_total_size Filter on quota total size
|
375
|
+
# @option opts [String] :quota_on_cache Filter on quota on cache
|
376
|
+
# @option opts [String] :stat_total_files Filter on stat total files
|
377
|
+
# @option opts [String] :stat_total_size Filter on stat total size
|
378
|
+
# @option opts [String] :stat_size_on_cache Filter on stat size on cache
|
379
|
+
# @option opts [String] :guest_right Filter on guest right
|
380
|
+
# @option opts [String] :last_update Filter on last update
|
381
|
+
# @return [ContainerCollection]
|
382
|
+
def index_containers(opts = {})
|
383
|
+
data, _status_code, _headers = index_containers_with_http_info(opts)
|
384
|
+
data
|
385
|
+
end
|
386
|
+
|
387
|
+
# Lists all containers.
|
388
|
+
# **API Key Scope**: containers / index
|
389
|
+
# @param [Hash] opts the optional parameters
|
390
|
+
# @option opts [Integer] :limit The number of items to display for pagination.
|
391
|
+
# @option opts [Integer] :offset The number of items to skip for pagination.
|
392
|
+
# @option opts [Array<String>] :sort_by Sort results by attribute. Can sort on multiple attributes, separated by `|`. Order direction can be suffixing the attribute by either `:asc` (default) or `:desc`.
|
393
|
+
# @option opts [String] :id Filter on id
|
394
|
+
# @option opts [String] :name Filter on name
|
395
|
+
# @option opts [String] :comment Filter on comment
|
396
|
+
# @option opts [String] :quota_total_size Filter on quota total size
|
397
|
+
# @option opts [String] :quota_on_cache Filter on quota on cache
|
398
|
+
# @option opts [String] :stat_total_files Filter on stat total files
|
399
|
+
# @option opts [String] :stat_total_size Filter on stat total size
|
400
|
+
# @option opts [String] :stat_size_on_cache Filter on stat size on cache
|
401
|
+
# @option opts [String] :guest_right Filter on guest right
|
402
|
+
# @option opts [String] :last_update Filter on last update
|
403
|
+
# @return [Array<(ContainerCollection, Integer, Hash)>] ContainerCollection data, response status code and response headers
|
404
|
+
def index_containers_with_http_info(opts = {})
|
405
|
+
if @api_client.config.debugging
|
406
|
+
@api_client.config.logger.debug 'Calling API: ContainersApi.index_containers ...'
|
407
|
+
end
|
408
|
+
# resource path
|
409
|
+
local_var_path = '/containers'
|
410
|
+
|
411
|
+
# query parameters
|
412
|
+
query_params = opts[:query_params] || {}
|
413
|
+
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
414
|
+
query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
|
415
|
+
query_params[:'sort_by'] = @api_client.build_collection_param(opts[:'sort_by'], :pipe) if !opts[:'sort_by'].nil?
|
416
|
+
query_params[:'id'] = opts[:'id'] if !opts[:'id'].nil?
|
417
|
+
query_params[:'name'] = opts[:'name'] if !opts[:'name'].nil?
|
418
|
+
query_params[:'comment'] = opts[:'comment'] if !opts[:'comment'].nil?
|
419
|
+
query_params[:'quota_total_size'] = opts[:'quota_total_size'] if !opts[:'quota_total_size'].nil?
|
420
|
+
query_params[:'quota_on_cache'] = opts[:'quota_on_cache'] if !opts[:'quota_on_cache'].nil?
|
421
|
+
query_params[:'stat_total_files'] = opts[:'stat_total_files'] if !opts[:'stat_total_files'].nil?
|
422
|
+
query_params[:'stat_total_size'] = opts[:'stat_total_size'] if !opts[:'stat_total_size'].nil?
|
423
|
+
query_params[:'stat_size_on_cache'] = opts[:'stat_size_on_cache'] if !opts[:'stat_size_on_cache'].nil?
|
424
|
+
query_params[:'guest_right'] = opts[:'guest_right'] if !opts[:'guest_right'].nil?
|
425
|
+
query_params[:'last_update'] = opts[:'last_update'] if !opts[:'last_update'].nil?
|
426
|
+
|
427
|
+
# header parameters
|
428
|
+
header_params = opts[:header_params] || {}
|
429
|
+
# HTTP header 'Accept' (if needed)
|
430
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
431
|
+
|
432
|
+
# form parameters
|
433
|
+
form_params = opts[:form_params] || {}
|
434
|
+
|
435
|
+
# http body (model)
|
436
|
+
post_body = opts[:body]
|
437
|
+
|
438
|
+
# return_type
|
439
|
+
return_type = opts[:return_type] || 'ContainerCollection'
|
440
|
+
|
441
|
+
# auth_names
|
442
|
+
auth_names = opts[:auth_names] || ['BasicAuth', 'BearerAuth']
|
443
|
+
|
444
|
+
new_options = opts.merge(
|
445
|
+
:header_params => header_params,
|
446
|
+
:query_params => query_params,
|
447
|
+
:form_params => form_params,
|
448
|
+
:body => post_body,
|
449
|
+
:auth_names => auth_names,
|
450
|
+
:return_type => return_type
|
451
|
+
)
|
452
|
+
|
453
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
454
|
+
if @api_client.config.debugging
|
455
|
+
@api_client.config.logger.debug "API called: ContainersApi#index_containers\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
456
|
+
end
|
457
|
+
return data, status_code, headers
|
458
|
+
end
|
459
|
+
|
460
|
+
# Displays a specific container.
|
461
|
+
# **API Key Scope**: containers / show
|
462
|
+
# @param container_id [String] Numeric ID or name of container.
|
463
|
+
# @param [Hash] opts the optional parameters
|
464
|
+
# @return [Container]
|
465
|
+
def show_container(container_id, opts = {})
|
466
|
+
data, _status_code, _headers = show_container_with_http_info(container_id, opts)
|
467
|
+
data
|
468
|
+
end
|
469
|
+
|
470
|
+
# Displays a specific container.
|
471
|
+
# **API Key Scope**: containers / show
|
472
|
+
# @param container_id [String] Numeric ID or name of container.
|
473
|
+
# @param [Hash] opts the optional parameters
|
474
|
+
# @return [Array<(Container, Integer, Hash)>] Container data, response status code and response headers
|
475
|
+
def show_container_with_http_info(container_id, opts = {})
|
476
|
+
if @api_client.config.debugging
|
477
|
+
@api_client.config.logger.debug 'Calling API: ContainersApi.show_container ...'
|
478
|
+
end
|
479
|
+
# verify the required parameter 'container_id' is set
|
480
|
+
if @api_client.config.client_side_validation && container_id.nil?
|
481
|
+
fail ArgumentError, "Missing the required parameter 'container_id' when calling ContainersApi.show_container"
|
482
|
+
end
|
483
|
+
# resource path
|
484
|
+
local_var_path = '/containers/{container_id}'.sub('{' + 'container_id' + '}', CGI.escape(container_id.to_s))
|
485
|
+
|
486
|
+
# query parameters
|
487
|
+
query_params = opts[:query_params] || {}
|
488
|
+
|
489
|
+
# header parameters
|
490
|
+
header_params = opts[:header_params] || {}
|
491
|
+
# HTTP header 'Accept' (if needed)
|
492
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
493
|
+
|
494
|
+
# form parameters
|
495
|
+
form_params = opts[:form_params] || {}
|
496
|
+
|
497
|
+
# http body (model)
|
498
|
+
post_body = opts[:body]
|
499
|
+
|
500
|
+
# return_type
|
501
|
+
return_type = opts[:return_type] || 'Container'
|
502
|
+
|
503
|
+
# auth_names
|
504
|
+
auth_names = opts[:auth_names] || ['BasicAuth', 'BearerAuth']
|
505
|
+
|
506
|
+
new_options = opts.merge(
|
507
|
+
:header_params => header_params,
|
508
|
+
:query_params => query_params,
|
509
|
+
:form_params => form_params,
|
510
|
+
:body => post_body,
|
511
|
+
:auth_names => auth_names,
|
512
|
+
:return_type => return_type
|
513
|
+
)
|
514
|
+
|
515
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
516
|
+
if @api_client.config.debugging
|
517
|
+
@api_client.config.logger.debug "API called: ContainersApi#show_container\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
518
|
+
end
|
519
|
+
return data, status_code, headers
|
520
|
+
end
|
521
|
+
|
522
|
+
# Displays a specific privilege.
|
523
|
+
# **API Key Scope**: container_privileges / show
|
524
|
+
# @param container_id [String] Numeric ID or name of container.
|
525
|
+
# @param container_privilege_id [Integer] Numeric ID of container privilege.
|
526
|
+
# @param [Hash] opts the optional parameters
|
527
|
+
# @return [ContainerPrivilege]
|
528
|
+
def show_container_privilege(container_id, container_privilege_id, opts = {})
|
529
|
+
data, _status_code, _headers = show_container_privilege_with_http_info(container_id, container_privilege_id, opts)
|
530
|
+
data
|
531
|
+
end
|
532
|
+
|
533
|
+
# Displays a specific privilege.
|
534
|
+
# **API Key Scope**: container_privileges / show
|
535
|
+
# @param container_id [String] Numeric ID or name of container.
|
536
|
+
# @param container_privilege_id [Integer] Numeric ID of container privilege.
|
537
|
+
# @param [Hash] opts the optional parameters
|
538
|
+
# @return [Array<(ContainerPrivilege, Integer, Hash)>] ContainerPrivilege data, response status code and response headers
|
539
|
+
def show_container_privilege_with_http_info(container_id, container_privilege_id, opts = {})
|
540
|
+
if @api_client.config.debugging
|
541
|
+
@api_client.config.logger.debug 'Calling API: ContainersApi.show_container_privilege ...'
|
542
|
+
end
|
543
|
+
# verify the required parameter 'container_id' is set
|
544
|
+
if @api_client.config.client_side_validation && container_id.nil?
|
545
|
+
fail ArgumentError, "Missing the required parameter 'container_id' when calling ContainersApi.show_container_privilege"
|
546
|
+
end
|
547
|
+
# verify the required parameter 'container_privilege_id' is set
|
548
|
+
if @api_client.config.client_side_validation && container_privilege_id.nil?
|
549
|
+
fail ArgumentError, "Missing the required parameter 'container_privilege_id' when calling ContainersApi.show_container_privilege"
|
550
|
+
end
|
551
|
+
# resource path
|
552
|
+
local_var_path = '/containers/{container_id}/container_privileges/{container_privilege_id}'.sub('{' + 'container_id' + '}', CGI.escape(container_id.to_s)).sub('{' + 'container_privilege_id' + '}', CGI.escape(container_privilege_id.to_s))
|
553
|
+
|
554
|
+
# query parameters
|
555
|
+
query_params = opts[:query_params] || {}
|
556
|
+
|
557
|
+
# header parameters
|
558
|
+
header_params = opts[:header_params] || {}
|
559
|
+
# HTTP header 'Accept' (if needed)
|
560
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
561
|
+
|
562
|
+
# form parameters
|
563
|
+
form_params = opts[:form_params] || {}
|
564
|
+
|
565
|
+
# http body (model)
|
566
|
+
post_body = opts[:body]
|
567
|
+
|
568
|
+
# return_type
|
569
|
+
return_type = opts[:return_type] || 'ContainerPrivilege'
|
570
|
+
|
571
|
+
# auth_names
|
572
|
+
auth_names = opts[:auth_names] || ['BasicAuth', 'BearerAuth']
|
573
|
+
|
574
|
+
new_options = opts.merge(
|
575
|
+
:header_params => header_params,
|
576
|
+
:query_params => query_params,
|
577
|
+
:form_params => form_params,
|
578
|
+
:body => post_body,
|
579
|
+
:auth_names => auth_names,
|
580
|
+
:return_type => return_type
|
581
|
+
)
|
582
|
+
|
583
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
584
|
+
if @api_client.config.debugging
|
585
|
+
@api_client.config.logger.debug "API called: ContainersApi#show_container_privilege\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
586
|
+
end
|
587
|
+
return data, status_code, headers
|
588
|
+
end
|
589
|
+
|
590
|
+
# Updates a specific container.
|
591
|
+
# It **does not** yet create the file structure and configure the samba connection. Use API v1 instead. **API Key Scope**: containers / update
|
592
|
+
# @param container_id [String] Numeric ID or name of container.
|
593
|
+
# @param container_body [Container]
|
594
|
+
# @param [Hash] opts the optional parameters
|
595
|
+
# @return [Container]
|
596
|
+
def update_container(container_id, container_body, opts = {})
|
597
|
+
data, _status_code, _headers = update_container_with_http_info(container_id, container_body, opts)
|
598
|
+
data
|
599
|
+
end
|
600
|
+
|
601
|
+
# Updates a specific container.
|
602
|
+
# It **does not** yet create the file structure and configure the samba connection. Use API v1 instead. **API Key Scope**: containers / update
|
603
|
+
# @param container_id [String] Numeric ID or name of container.
|
604
|
+
# @param container_body [Container]
|
605
|
+
# @param [Hash] opts the optional parameters
|
606
|
+
# @return [Array<(Container, Integer, Hash)>] Container data, response status code and response headers
|
607
|
+
def update_container_with_http_info(container_id, container_body, opts = {})
|
608
|
+
if @api_client.config.debugging
|
609
|
+
@api_client.config.logger.debug 'Calling API: ContainersApi.update_container ...'
|
610
|
+
end
|
611
|
+
# verify the required parameter 'container_id' is set
|
612
|
+
if @api_client.config.client_side_validation && container_id.nil?
|
613
|
+
fail ArgumentError, "Missing the required parameter 'container_id' when calling ContainersApi.update_container"
|
614
|
+
end
|
615
|
+
# verify the required parameter 'container_body' is set
|
616
|
+
if @api_client.config.client_side_validation && container_body.nil?
|
617
|
+
fail ArgumentError, "Missing the required parameter 'container_body' when calling ContainersApi.update_container"
|
618
|
+
end
|
619
|
+
# resource path
|
620
|
+
local_var_path = '/containers/{container_id}'.sub('{' + 'container_id' + '}', CGI.escape(container_id.to_s))
|
621
|
+
|
622
|
+
# query parameters
|
623
|
+
query_params = opts[:query_params] || {}
|
624
|
+
|
625
|
+
# header parameters
|
626
|
+
header_params = opts[:header_params] || {}
|
627
|
+
# HTTP header 'Accept' (if needed)
|
628
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
629
|
+
# HTTP header 'Content-Type'
|
630
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
631
|
+
|
632
|
+
# form parameters
|
633
|
+
form_params = opts[:form_params] || {}
|
634
|
+
|
635
|
+
# http body (model)
|
636
|
+
post_body = opts[:body] || @api_client.object_to_http_body(container_body)
|
637
|
+
|
638
|
+
# return_type
|
639
|
+
return_type = opts[:return_type] || 'Container'
|
640
|
+
|
641
|
+
# auth_names
|
642
|
+
auth_names = opts[:auth_names] || ['BasicAuth', 'BearerAuth']
|
643
|
+
|
644
|
+
new_options = opts.merge(
|
645
|
+
:header_params => header_params,
|
646
|
+
:query_params => query_params,
|
647
|
+
:form_params => form_params,
|
648
|
+
:body => post_body,
|
649
|
+
:auth_names => auth_names,
|
650
|
+
:return_type => return_type
|
651
|
+
)
|
652
|
+
|
653
|
+
data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
|
654
|
+
if @api_client.config.debugging
|
655
|
+
@api_client.config.logger.debug "API called: ContainersApi#update_container\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
656
|
+
end
|
657
|
+
return data, status_code, headers
|
658
|
+
end
|
659
|
+
|
660
|
+
# Updates a specific privilege.
|
661
|
+
# **API Key Scope**: container_privileges / update
|
662
|
+
# @param container_id [String] Numeric ID or name of container.
|
663
|
+
# @param container_privilege_id [Integer] Numeric ID of container privilege.
|
664
|
+
# @param container_privilege_body [ContainerPrivilege]
|
665
|
+
# @param [Hash] opts the optional parameters
|
666
|
+
# @return [ContainerPrivilege]
|
667
|
+
def update_container_privilege(container_id, container_privilege_id, container_privilege_body, opts = {})
|
668
|
+
data, _status_code, _headers = update_container_privilege_with_http_info(container_id, container_privilege_id, container_privilege_body, opts)
|
669
|
+
data
|
670
|
+
end
|
671
|
+
|
672
|
+
# Updates a specific privilege.
|
673
|
+
# **API Key Scope**: container_privileges / update
|
674
|
+
# @param container_id [String] Numeric ID or name of container.
|
675
|
+
# @param container_privilege_id [Integer] Numeric ID of container privilege.
|
676
|
+
# @param container_privilege_body [ContainerPrivilege]
|
677
|
+
# @param [Hash] opts the optional parameters
|
678
|
+
# @return [Array<(ContainerPrivilege, Integer, Hash)>] ContainerPrivilege data, response status code and response headers
|
679
|
+
def update_container_privilege_with_http_info(container_id, container_privilege_id, container_privilege_body, opts = {})
|
680
|
+
if @api_client.config.debugging
|
681
|
+
@api_client.config.logger.debug 'Calling API: ContainersApi.update_container_privilege ...'
|
682
|
+
end
|
683
|
+
# verify the required parameter 'container_id' is set
|
684
|
+
if @api_client.config.client_side_validation && container_id.nil?
|
685
|
+
fail ArgumentError, "Missing the required parameter 'container_id' when calling ContainersApi.update_container_privilege"
|
686
|
+
end
|
687
|
+
# verify the required parameter 'container_privilege_id' is set
|
688
|
+
if @api_client.config.client_side_validation && container_privilege_id.nil?
|
689
|
+
fail ArgumentError, "Missing the required parameter 'container_privilege_id' when calling ContainersApi.update_container_privilege"
|
690
|
+
end
|
691
|
+
# verify the required parameter 'container_privilege_body' is set
|
692
|
+
if @api_client.config.client_side_validation && container_privilege_body.nil?
|
693
|
+
fail ArgumentError, "Missing the required parameter 'container_privilege_body' when calling ContainersApi.update_container_privilege"
|
694
|
+
end
|
695
|
+
# resource path
|
696
|
+
local_var_path = '/containers/{container_id}/container_privileges/{container_privilege_id}'.sub('{' + 'container_id' + '}', CGI.escape(container_id.to_s)).sub('{' + 'container_privilege_id' + '}', CGI.escape(container_privilege_id.to_s))
|
697
|
+
|
698
|
+
# query parameters
|
699
|
+
query_params = opts[:query_params] || {}
|
700
|
+
|
701
|
+
# header parameters
|
702
|
+
header_params = opts[:header_params] || {}
|
703
|
+
# HTTP header 'Accept' (if needed)
|
704
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
705
|
+
# HTTP header 'Content-Type'
|
706
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
707
|
+
|
708
|
+
# form parameters
|
709
|
+
form_params = opts[:form_params] || {}
|
710
|
+
|
711
|
+
# http body (model)
|
712
|
+
post_body = opts[:body] || @api_client.object_to_http_body(container_privilege_body)
|
713
|
+
|
714
|
+
# return_type
|
715
|
+
return_type = opts[:return_type] || 'ContainerPrivilege'
|
716
|
+
|
717
|
+
# auth_names
|
718
|
+
auth_names = opts[:auth_names] || ['BasicAuth', 'BearerAuth']
|
719
|
+
|
720
|
+
new_options = opts.merge(
|
721
|
+
:header_params => header_params,
|
722
|
+
:query_params => query_params,
|
723
|
+
:form_params => form_params,
|
724
|
+
:body => post_body,
|
725
|
+
:auth_names => auth_names,
|
726
|
+
:return_type => return_type
|
727
|
+
)
|
728
|
+
|
729
|
+
data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
|
730
|
+
if @api_client.config.debugging
|
731
|
+
@api_client.config.logger.debug "API called: ContainersApi#update_container_privilege\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
732
|
+
end
|
733
|
+
return data, status_code, headers
|
734
|
+
end
|
735
|
+
end
|
736
|
+
end
|