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
data/git_push.sh
ADDED
@@ -0,0 +1,58 @@
|
|
1
|
+
#!/bin/sh
|
2
|
+
# ref: https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/
|
3
|
+
#
|
4
|
+
# Usage example: /bin/sh ./git_push.sh wing328 openapi-pestore-perl "minor update" "gitlab.com"
|
5
|
+
|
6
|
+
git_user_id=$1
|
7
|
+
git_repo_id=$2
|
8
|
+
release_note=$3
|
9
|
+
git_host=$4
|
10
|
+
|
11
|
+
if [ "$git_host" = "" ]; then
|
12
|
+
git_host="github.com"
|
13
|
+
echo "[INFO] No command line input provided. Set \$git_host to $git_host"
|
14
|
+
fi
|
15
|
+
|
16
|
+
if [ "$git_user_id" = "" ]; then
|
17
|
+
git_user_id="nodeum-io"
|
18
|
+
echo "[INFO] No command line input provided. Set \$git_user_id to $git_user_id"
|
19
|
+
fi
|
20
|
+
|
21
|
+
if [ "$git_repo_id" = "" ]; then
|
22
|
+
git_repo_id="nodeum-sdk-ruby"
|
23
|
+
echo "[INFO] No command line input provided. Set \$git_repo_id to $git_repo_id"
|
24
|
+
fi
|
25
|
+
|
26
|
+
if [ "$release_note" = "" ]; then
|
27
|
+
release_note="Minor update"
|
28
|
+
echo "[INFO] No command line input provided. Set \$release_note to $release_note"
|
29
|
+
fi
|
30
|
+
|
31
|
+
# Initialize the local directory as a Git repository
|
32
|
+
git init
|
33
|
+
|
34
|
+
# Adds the files in the local repository and stages them for commit.
|
35
|
+
git add .
|
36
|
+
|
37
|
+
# Commits the tracked changes and prepares them to be pushed to a remote repository.
|
38
|
+
git commit -m "$release_note"
|
39
|
+
|
40
|
+
# Sets the new remote
|
41
|
+
git_remote=`git remote`
|
42
|
+
if [ "$git_remote" = "" ]; then # git remote not defined
|
43
|
+
|
44
|
+
if [ "$GIT_TOKEN" = "" ]; then
|
45
|
+
echo "[INFO] \$GIT_TOKEN (environment variable) is not set. Using the git credential in your environment."
|
46
|
+
git remote add origin https://${git_host}/${git_user_id}/${git_repo_id}.git
|
47
|
+
else
|
48
|
+
git remote add origin https://${git_user_id}:${GIT_TOKEN}@${git_host}/${git_user_id}/${git_repo_id}.git
|
49
|
+
fi
|
50
|
+
|
51
|
+
fi
|
52
|
+
|
53
|
+
git pull origin master
|
54
|
+
|
55
|
+
# Pushes (Forces) the changes in the local repository up to the remote repository
|
56
|
+
echo "Git pushing to https://${git_host}/${git_user_id}/${git_repo_id}.git"
|
57
|
+
git push origin master 2>&1 | grep -v 'To https'
|
58
|
+
|
data/lib/nodeum_sdk.rb
ADDED
@@ -0,0 +1,180 @@
|
|
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
|
+
# Common files
|
14
|
+
require 'nodeum_sdk/api_client'
|
15
|
+
require 'nodeum_sdk/api_error'
|
16
|
+
require 'nodeum_sdk/version'
|
17
|
+
require 'nodeum_sdk/configuration'
|
18
|
+
|
19
|
+
# Models
|
20
|
+
require 'nodeum_sdk/models/active_job_status'
|
21
|
+
require 'nodeum_sdk/models/api_key'
|
22
|
+
require 'nodeum_sdk/models/api_key_collection'
|
23
|
+
require 'nodeum_sdk/models/api_key_full'
|
24
|
+
require 'nodeum_sdk/models/api_key_full_all_of'
|
25
|
+
require 'nodeum_sdk/models/api_key_scope'
|
26
|
+
require 'nodeum_sdk/models/attribute_error'
|
27
|
+
require 'nodeum_sdk/models/blank'
|
28
|
+
require 'nodeum_sdk/models/by_date_facet'
|
29
|
+
require 'nodeum_sdk/models/by_date_facet_bucket'
|
30
|
+
require 'nodeum_sdk/models/by_date_facet_bucket_all_of'
|
31
|
+
require 'nodeum_sdk/models/by_date_facet_buckets'
|
32
|
+
require 'nodeum_sdk/models/by_file_extension_facet'
|
33
|
+
require 'nodeum_sdk/models/by_file_extension_facet_all_of'
|
34
|
+
require 'nodeum_sdk/models/by_group_owner_facet'
|
35
|
+
require 'nodeum_sdk/models/by_group_owner_facet_all_of'
|
36
|
+
require 'nodeum_sdk/models/by_primary_facet'
|
37
|
+
require 'nodeum_sdk/models/by_primary_facet_all_of'
|
38
|
+
require 'nodeum_sdk/models/by_secondary_bucket'
|
39
|
+
require 'nodeum_sdk/models/by_secondary_bucket_all_of'
|
40
|
+
require 'nodeum_sdk/models/by_secondary_buckets'
|
41
|
+
require 'nodeum_sdk/models/by_secondary_facet'
|
42
|
+
require 'nodeum_sdk/models/by_secondary_type_facet'
|
43
|
+
require 'nodeum_sdk/models/by_secondary_type_facet_all_of'
|
44
|
+
require 'nodeum_sdk/models/by_size_facet'
|
45
|
+
require 'nodeum_sdk/models/by_user_owner_facet'
|
46
|
+
require 'nodeum_sdk/models/by_user_owner_facet_all_of'
|
47
|
+
require 'nodeum_sdk/models/cloud_bucket'
|
48
|
+
require 'nodeum_sdk/models/cloud_bucket_collection'
|
49
|
+
require 'nodeum_sdk/models/cloud_bucket_simple_collection'
|
50
|
+
require 'nodeum_sdk/models/cloud_connector'
|
51
|
+
require 'nodeum_sdk/models/cloud_connector_collection'
|
52
|
+
require 'nodeum_sdk/models/container'
|
53
|
+
require 'nodeum_sdk/models/container_collection'
|
54
|
+
require 'nodeum_sdk/models/container_privilege'
|
55
|
+
require 'nodeum_sdk/models/container_privilege_collection'
|
56
|
+
require 'nodeum_sdk/models/date_to_file_facets'
|
57
|
+
require 'nodeum_sdk/models/error'
|
58
|
+
require 'nodeum_sdk/models/file_facet'
|
59
|
+
require 'nodeum_sdk/models/frozen'
|
60
|
+
require 'nodeum_sdk/models/greater_than'
|
61
|
+
require 'nodeum_sdk/models/greater_than_all_of'
|
62
|
+
require 'nodeum_sdk/models/greater_than_or_equal_to'
|
63
|
+
require 'nodeum_sdk/models/import_file'
|
64
|
+
require 'nodeum_sdk/models/import_file_collection'
|
65
|
+
require 'nodeum_sdk/models/import_file_with_path'
|
66
|
+
require 'nodeum_sdk/models/invalid'
|
67
|
+
require 'nodeum_sdk/models/less_than'
|
68
|
+
require 'nodeum_sdk/models/less_than_all_of'
|
69
|
+
require 'nodeum_sdk/models/less_than_or_equal_to'
|
70
|
+
require 'nodeum_sdk/models/mount_collection'
|
71
|
+
require 'nodeum_sdk/models/mount_info'
|
72
|
+
require 'nodeum_sdk/models/mount_notification'
|
73
|
+
require 'nodeum_sdk/models/mount_status'
|
74
|
+
require 'nodeum_sdk/models/nas'
|
75
|
+
require 'nodeum_sdk/models/nas_collection'
|
76
|
+
require 'nodeum_sdk/models/nas_share'
|
77
|
+
require 'nodeum_sdk/models/nas_share_collection'
|
78
|
+
require 'nodeum_sdk/models/nodeum_file'
|
79
|
+
require 'nodeum_sdk/models/nodeum_file_collection'
|
80
|
+
require 'nodeum_sdk/models/nodeum_file_with_path'
|
81
|
+
require 'nodeum_sdk/models/nodeum_file_with_path_all_of'
|
82
|
+
require 'nodeum_sdk/models/occurrence_less_than'
|
83
|
+
require 'nodeum_sdk/models/occurrence_less_than_all_of'
|
84
|
+
require 'nodeum_sdk/models/occurrence_less_than_or_equal_to'
|
85
|
+
require 'nodeum_sdk/models/on_tapes_file'
|
86
|
+
require 'nodeum_sdk/models/on_tapes_file_collection'
|
87
|
+
require 'nodeum_sdk/models/pool'
|
88
|
+
require 'nodeum_sdk/models/pool_collection'
|
89
|
+
require 'nodeum_sdk/models/pool_up'
|
90
|
+
require 'nodeum_sdk/models/pool_up_all_of'
|
91
|
+
require 'nodeum_sdk/models/primary_scan'
|
92
|
+
require 'nodeum_sdk/models/quota_on_cache'
|
93
|
+
require 'nodeum_sdk/models/reset'
|
94
|
+
require 'nodeum_sdk/models/reset_sections'
|
95
|
+
require 'nodeum_sdk/models/size_to_date_facets'
|
96
|
+
require 'nodeum_sdk/models/system_group'
|
97
|
+
require 'nodeum_sdk/models/system_group_collection'
|
98
|
+
require 'nodeum_sdk/models/system_user'
|
99
|
+
require 'nodeum_sdk/models/system_user_collection'
|
100
|
+
require 'nodeum_sdk/models/taken'
|
101
|
+
require 'nodeum_sdk/models/taken_all_of'
|
102
|
+
require 'nodeum_sdk/models/tape'
|
103
|
+
require 'nodeum_sdk/models/tape_collection'
|
104
|
+
require 'nodeum_sdk/models/tape_drive'
|
105
|
+
require 'nodeum_sdk/models/tape_drive_all_of'
|
106
|
+
require 'nodeum_sdk/models/tape_drive_collection'
|
107
|
+
require 'nodeum_sdk/models/tape_drive_device'
|
108
|
+
require 'nodeum_sdk/models/tape_drive_device_collection'
|
109
|
+
require 'nodeum_sdk/models/tape_library'
|
110
|
+
require 'nodeum_sdk/models/tape_library_all_of'
|
111
|
+
require 'nodeum_sdk/models/tape_library_collection'
|
112
|
+
require 'nodeum_sdk/models/tape_library_device'
|
113
|
+
require 'nodeum_sdk/models/tape_library_device_collection'
|
114
|
+
require 'nodeum_sdk/models/tape_stat'
|
115
|
+
require 'nodeum_sdk/models/tape_stat_collection'
|
116
|
+
require 'nodeum_sdk/models/task'
|
117
|
+
require 'nodeum_sdk/models/task_callback'
|
118
|
+
require 'nodeum_sdk/models/task_callback_collection'
|
119
|
+
require 'nodeum_sdk/models/task_collection'
|
120
|
+
require 'nodeum_sdk/models/task_destination_collection'
|
121
|
+
require 'nodeum_sdk/models/task_destination_down'
|
122
|
+
require 'nodeum_sdk/models/task_destination_up'
|
123
|
+
require 'nodeum_sdk/models/task_execution'
|
124
|
+
require 'nodeum_sdk/models/task_execution_collection'
|
125
|
+
require 'nodeum_sdk/models/task_metadatum'
|
126
|
+
require 'nodeum_sdk/models/task_metadatum_collection'
|
127
|
+
require 'nodeum_sdk/models/task_option'
|
128
|
+
require 'nodeum_sdk/models/task_option_collection'
|
129
|
+
require 'nodeum_sdk/models/task_schedule'
|
130
|
+
require 'nodeum_sdk/models/task_schedule_collection'
|
131
|
+
require 'nodeum_sdk/models/task_source_collection'
|
132
|
+
require 'nodeum_sdk/models/task_source_down'
|
133
|
+
require 'nodeum_sdk/models/task_source_up'
|
134
|
+
require 'nodeum_sdk/models/too_long'
|
135
|
+
require 'nodeum_sdk/models/too_long_all_of'
|
136
|
+
require 'nodeum_sdk/models/too_short'
|
137
|
+
require 'nodeum_sdk/models/too_short_all_of'
|
138
|
+
require 'nodeum_sdk/models/type_to_secondary_facets'
|
139
|
+
|
140
|
+
# APIs
|
141
|
+
require 'nodeum_sdk/api/cloud_buckets_api'
|
142
|
+
require 'nodeum_sdk/api/cloud_connectors_api'
|
143
|
+
require 'nodeum_sdk/api/containers_api'
|
144
|
+
require 'nodeum_sdk/api/files_api'
|
145
|
+
require 'nodeum_sdk/api/mounts_api'
|
146
|
+
require 'nodeum_sdk/api/nas_api'
|
147
|
+
require 'nodeum_sdk/api/nas_shares_api'
|
148
|
+
require 'nodeum_sdk/api/pools_api'
|
149
|
+
require 'nodeum_sdk/api/statistics_api'
|
150
|
+
require 'nodeum_sdk/api/systems_api'
|
151
|
+
require 'nodeum_sdk/api/tape_drives_api'
|
152
|
+
require 'nodeum_sdk/api/tape_libraries_api'
|
153
|
+
require 'nodeum_sdk/api/tapes_api'
|
154
|
+
require 'nodeum_sdk/api/task_callbacks_api'
|
155
|
+
require 'nodeum_sdk/api/task_destinations_api'
|
156
|
+
require 'nodeum_sdk/api/task_executions_api'
|
157
|
+
require 'nodeum_sdk/api/task_metadata_api'
|
158
|
+
require 'nodeum_sdk/api/task_options_api'
|
159
|
+
require 'nodeum_sdk/api/task_schedules_api'
|
160
|
+
require 'nodeum_sdk/api/task_sources_api'
|
161
|
+
require 'nodeum_sdk/api/tasks_api'
|
162
|
+
require 'nodeum_sdk/api/users_api'
|
163
|
+
|
164
|
+
module Nodeum
|
165
|
+
class << self
|
166
|
+
# Customize default settings for the SDK using block.
|
167
|
+
# Nodeum.configure do |config|
|
168
|
+
# config.username = "xxx"
|
169
|
+
# config.password = "xxx"
|
170
|
+
# end
|
171
|
+
# If no block given, return the default Configuration object.
|
172
|
+
def configure
|
173
|
+
if block_given?
|
174
|
+
yield(Configuration.default)
|
175
|
+
else
|
176
|
+
Configuration.default
|
177
|
+
end
|
178
|
+
end
|
179
|
+
end
|
180
|
+
end
|
@@ -0,0 +1,1026 @@
|
|
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 CloudBucketsApi
|
17
|
+
attr_accessor :api_client
|
18
|
+
|
19
|
+
def initialize(api_client = ApiClient.default)
|
20
|
+
@api_client = api_client
|
21
|
+
end
|
22
|
+
# Lists all cloud buckets.
|
23
|
+
# **API Key Scope**: cloud_buckets / index
|
24
|
+
# @param [Hash] opts the optional parameters
|
25
|
+
# @option opts [Integer] :limit The number of items to display for pagination.
|
26
|
+
# @option opts [Integer] :offset The number of items to skip for pagination.
|
27
|
+
# @option opts [Array<String>] :sort_by Sort results by attribute. Can sort on multiple attributes, separated by `|`. Order direction can be suffixing the attribute by either `:asc` (default) or `:desc`.
|
28
|
+
# @option opts [String] :id Filter on id
|
29
|
+
# @option opts [String] :cloud_connector_id Filter on cloud connector id
|
30
|
+
# @option opts [String] :pool_id Filter on a pool id
|
31
|
+
# @option opts [String] :name Filter on name
|
32
|
+
# @option opts [String] :location Filter on location
|
33
|
+
# @option opts [String] :price Filter on price
|
34
|
+
# @return [CloudBucketCollection]
|
35
|
+
def index_cloud_buckets(opts = {})
|
36
|
+
data, _status_code, _headers = index_cloud_buckets_with_http_info(opts)
|
37
|
+
data
|
38
|
+
end
|
39
|
+
|
40
|
+
# Lists all cloud buckets.
|
41
|
+
# **API Key Scope**: cloud_buckets / index
|
42
|
+
# @param [Hash] opts the optional parameters
|
43
|
+
# @option opts [Integer] :limit The number of items to display for pagination.
|
44
|
+
# @option opts [Integer] :offset The number of items to skip for pagination.
|
45
|
+
# @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`.
|
46
|
+
# @option opts [String] :id Filter on id
|
47
|
+
# @option opts [String] :cloud_connector_id Filter on cloud connector id
|
48
|
+
# @option opts [String] :pool_id Filter on a pool id
|
49
|
+
# @option opts [String] :name Filter on name
|
50
|
+
# @option opts [String] :location Filter on location
|
51
|
+
# @option opts [String] :price Filter on price
|
52
|
+
# @return [Array<(CloudBucketCollection, Integer, Hash)>] CloudBucketCollection data, response status code and response headers
|
53
|
+
def index_cloud_buckets_with_http_info(opts = {})
|
54
|
+
if @api_client.config.debugging
|
55
|
+
@api_client.config.logger.debug 'Calling API: CloudBucketsApi.index_cloud_buckets ...'
|
56
|
+
end
|
57
|
+
# resource path
|
58
|
+
local_var_path = '/cloud_buckets'
|
59
|
+
|
60
|
+
# query parameters
|
61
|
+
query_params = opts[:query_params] || {}
|
62
|
+
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
63
|
+
query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
|
64
|
+
query_params[:'sort_by'] = @api_client.build_collection_param(opts[:'sort_by'], :pipe) if !opts[:'sort_by'].nil?
|
65
|
+
query_params[:'id'] = opts[:'id'] if !opts[:'id'].nil?
|
66
|
+
query_params[:'cloud_connector_id'] = opts[:'cloud_connector_id'] if !opts[:'cloud_connector_id'].nil?
|
67
|
+
query_params[:'pool_id'] = opts[:'pool_id'] if !opts[:'pool_id'].nil?
|
68
|
+
query_params[:'name'] = opts[:'name'] if !opts[:'name'].nil?
|
69
|
+
query_params[:'location'] = opts[:'location'] if !opts[:'location'].nil?
|
70
|
+
query_params[:'price'] = opts[:'price'] if !opts[:'price'].nil?
|
71
|
+
|
72
|
+
# header parameters
|
73
|
+
header_params = opts[:header_params] || {}
|
74
|
+
# HTTP header 'Accept' (if needed)
|
75
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
76
|
+
|
77
|
+
# form parameters
|
78
|
+
form_params = opts[:form_params] || {}
|
79
|
+
|
80
|
+
# http body (model)
|
81
|
+
post_body = opts[:body]
|
82
|
+
|
83
|
+
# return_type
|
84
|
+
return_type = opts[:return_type] || 'CloudBucketCollection'
|
85
|
+
|
86
|
+
# auth_names
|
87
|
+
auth_names = opts[:auth_names] || ['BasicAuth', 'BearerAuth']
|
88
|
+
|
89
|
+
new_options = opts.merge(
|
90
|
+
:header_params => header_params,
|
91
|
+
:query_params => query_params,
|
92
|
+
:form_params => form_params,
|
93
|
+
:body => post_body,
|
94
|
+
:auth_names => auth_names,
|
95
|
+
:return_type => return_type
|
96
|
+
)
|
97
|
+
|
98
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
99
|
+
if @api_client.config.debugging
|
100
|
+
@api_client.config.logger.debug "API called: CloudBucketsApi#index_cloud_buckets\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
101
|
+
end
|
102
|
+
return data, status_code, headers
|
103
|
+
end
|
104
|
+
|
105
|
+
# Lists all cloud buckets.
|
106
|
+
# **API Key Scope**: cloud_buckets / index
|
107
|
+
# @param cloud_connector_id [String] Numeric ID or name of cloud connector.
|
108
|
+
# @param [Hash] opts the optional parameters
|
109
|
+
# @option opts [Integer] :limit The number of items to display for pagination.
|
110
|
+
# @option opts [Integer] :offset The number of items to skip for pagination.
|
111
|
+
# @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`.
|
112
|
+
# @option opts [String] :id Filter on id
|
113
|
+
# @option opts [String] :pool_id Filter on a pool id
|
114
|
+
# @option opts [String] :name Filter on name
|
115
|
+
# @option opts [String] :location Filter on location
|
116
|
+
# @option opts [String] :price Filter on price
|
117
|
+
# @return [CloudBucketCollection]
|
118
|
+
def index_cloud_buckets_by_cloud_connector(cloud_connector_id, opts = {})
|
119
|
+
data, _status_code, _headers = index_cloud_buckets_by_cloud_connector_with_http_info(cloud_connector_id, opts)
|
120
|
+
data
|
121
|
+
end
|
122
|
+
|
123
|
+
# Lists all cloud buckets.
|
124
|
+
# **API Key Scope**: cloud_buckets / index
|
125
|
+
# @param cloud_connector_id [String] Numeric ID or name of cloud connector.
|
126
|
+
# @param [Hash] opts the optional parameters
|
127
|
+
# @option opts [Integer] :limit The number of items to display for pagination.
|
128
|
+
# @option opts [Integer] :offset The number of items to skip for pagination.
|
129
|
+
# @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`.
|
130
|
+
# @option opts [String] :id Filter on id
|
131
|
+
# @option opts [String] :pool_id Filter on a pool id
|
132
|
+
# @option opts [String] :name Filter on name
|
133
|
+
# @option opts [String] :location Filter on location
|
134
|
+
# @option opts [String] :price Filter on price
|
135
|
+
# @return [Array<(CloudBucketCollection, Integer, Hash)>] CloudBucketCollection data, response status code and response headers
|
136
|
+
def index_cloud_buckets_by_cloud_connector_with_http_info(cloud_connector_id, opts = {})
|
137
|
+
if @api_client.config.debugging
|
138
|
+
@api_client.config.logger.debug 'Calling API: CloudBucketsApi.index_cloud_buckets_by_cloud_connector ...'
|
139
|
+
end
|
140
|
+
# verify the required parameter 'cloud_connector_id' is set
|
141
|
+
if @api_client.config.client_side_validation && cloud_connector_id.nil?
|
142
|
+
fail ArgumentError, "Missing the required parameter 'cloud_connector_id' when calling CloudBucketsApi.index_cloud_buckets_by_cloud_connector"
|
143
|
+
end
|
144
|
+
# resource path
|
145
|
+
local_var_path = '/cloud_connectors/{cloud_connector_id}/cloud_buckets'.sub('{' + 'cloud_connector_id' + '}', CGI.escape(cloud_connector_id.to_s))
|
146
|
+
|
147
|
+
# query parameters
|
148
|
+
query_params = opts[:query_params] || {}
|
149
|
+
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
150
|
+
query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
|
151
|
+
query_params[:'sort_by'] = @api_client.build_collection_param(opts[:'sort_by'], :pipe) if !opts[:'sort_by'].nil?
|
152
|
+
query_params[:'id'] = opts[:'id'] if !opts[:'id'].nil?
|
153
|
+
query_params[:'pool_id'] = opts[:'pool_id'] if !opts[:'pool_id'].nil?
|
154
|
+
query_params[:'name'] = opts[:'name'] if !opts[:'name'].nil?
|
155
|
+
query_params[:'location'] = opts[:'location'] if !opts[:'location'].nil?
|
156
|
+
query_params[:'price'] = opts[:'price'] if !opts[:'price'].nil?
|
157
|
+
|
158
|
+
# header parameters
|
159
|
+
header_params = opts[:header_params] || {}
|
160
|
+
# HTTP header 'Accept' (if needed)
|
161
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
162
|
+
|
163
|
+
# form parameters
|
164
|
+
form_params = opts[:form_params] || {}
|
165
|
+
|
166
|
+
# http body (model)
|
167
|
+
post_body = opts[:body]
|
168
|
+
|
169
|
+
# return_type
|
170
|
+
return_type = opts[:return_type] || 'CloudBucketCollection'
|
171
|
+
|
172
|
+
# auth_names
|
173
|
+
auth_names = opts[:auth_names] || ['BasicAuth', 'BearerAuth']
|
174
|
+
|
175
|
+
new_options = opts.merge(
|
176
|
+
:header_params => header_params,
|
177
|
+
:query_params => query_params,
|
178
|
+
:form_params => form_params,
|
179
|
+
:body => post_body,
|
180
|
+
:auth_names => auth_names,
|
181
|
+
:return_type => return_type
|
182
|
+
)
|
183
|
+
|
184
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
185
|
+
if @api_client.config.debugging
|
186
|
+
@api_client.config.logger.debug "API called: CloudBucketsApi#index_cloud_buckets_by_cloud_connector\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
187
|
+
end
|
188
|
+
return data, status_code, headers
|
189
|
+
end
|
190
|
+
|
191
|
+
# Lists all cloud buckets from pool.
|
192
|
+
# **API Key Scope**: cloud_buckets / index
|
193
|
+
# @param pool_id [String] Numeric ID, or name of pool.
|
194
|
+
# @param [Hash] opts the optional parameters
|
195
|
+
# @option opts [Integer] :limit The number of items to display for pagination.
|
196
|
+
# @option opts [Integer] :offset The number of items to skip for pagination.
|
197
|
+
# @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`.
|
198
|
+
# @option opts [String] :id Filter on id
|
199
|
+
# @option opts [String] :cloud_connector_id Filter on cloud connector id
|
200
|
+
# @option opts [String] :name Filter on name
|
201
|
+
# @option opts [String] :location Filter on location
|
202
|
+
# @option opts [String] :price Filter on price
|
203
|
+
# @return [CloudBucketCollection]
|
204
|
+
def index_cloud_buckets_by_pool(pool_id, opts = {})
|
205
|
+
data, _status_code, _headers = index_cloud_buckets_by_pool_with_http_info(pool_id, opts)
|
206
|
+
data
|
207
|
+
end
|
208
|
+
|
209
|
+
# Lists all cloud buckets from pool.
|
210
|
+
# **API Key Scope**: cloud_buckets / index
|
211
|
+
# @param pool_id [String] Numeric ID, or name of pool.
|
212
|
+
# @param [Hash] opts the optional parameters
|
213
|
+
# @option opts [Integer] :limit The number of items to display for pagination.
|
214
|
+
# @option opts [Integer] :offset The number of items to skip for pagination.
|
215
|
+
# @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`.
|
216
|
+
# @option opts [String] :id Filter on id
|
217
|
+
# @option opts [String] :cloud_connector_id Filter on cloud connector id
|
218
|
+
# @option opts [String] :name Filter on name
|
219
|
+
# @option opts [String] :location Filter on location
|
220
|
+
# @option opts [String] :price Filter on price
|
221
|
+
# @return [Array<(CloudBucketCollection, Integer, Hash)>] CloudBucketCollection data, response status code and response headers
|
222
|
+
def index_cloud_buckets_by_pool_with_http_info(pool_id, opts = {})
|
223
|
+
if @api_client.config.debugging
|
224
|
+
@api_client.config.logger.debug 'Calling API: CloudBucketsApi.index_cloud_buckets_by_pool ...'
|
225
|
+
end
|
226
|
+
# verify the required parameter 'pool_id' is set
|
227
|
+
if @api_client.config.client_side_validation && pool_id.nil?
|
228
|
+
fail ArgumentError, "Missing the required parameter 'pool_id' when calling CloudBucketsApi.index_cloud_buckets_by_pool"
|
229
|
+
end
|
230
|
+
# resource path
|
231
|
+
local_var_path = '/pools/{pool_id}/cloud_buckets'.sub('{' + 'pool_id' + '}', CGI.escape(pool_id.to_s))
|
232
|
+
|
233
|
+
# query parameters
|
234
|
+
query_params = opts[:query_params] || {}
|
235
|
+
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
236
|
+
query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
|
237
|
+
query_params[:'sort_by'] = @api_client.build_collection_param(opts[:'sort_by'], :pipe) if !opts[:'sort_by'].nil?
|
238
|
+
query_params[:'id'] = opts[:'id'] if !opts[:'id'].nil?
|
239
|
+
query_params[:'cloud_connector_id'] = opts[:'cloud_connector_id'] if !opts[:'cloud_connector_id'].nil?
|
240
|
+
query_params[:'name'] = opts[:'name'] if !opts[:'name'].nil?
|
241
|
+
query_params[:'location'] = opts[:'location'] if !opts[:'location'].nil?
|
242
|
+
query_params[:'price'] = opts[:'price'] if !opts[:'price'].nil?
|
243
|
+
|
244
|
+
# header parameters
|
245
|
+
header_params = opts[:header_params] || {}
|
246
|
+
# HTTP header 'Accept' (if needed)
|
247
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
248
|
+
|
249
|
+
# form parameters
|
250
|
+
form_params = opts[:form_params] || {}
|
251
|
+
|
252
|
+
# http body (model)
|
253
|
+
post_body = opts[:body]
|
254
|
+
|
255
|
+
# return_type
|
256
|
+
return_type = opts[:return_type] || 'CloudBucketCollection'
|
257
|
+
|
258
|
+
# auth_names
|
259
|
+
auth_names = opts[:auth_names] || ['BasicAuth', 'BearerAuth']
|
260
|
+
|
261
|
+
new_options = opts.merge(
|
262
|
+
:header_params => header_params,
|
263
|
+
:query_params => query_params,
|
264
|
+
:form_params => form_params,
|
265
|
+
:body => post_body,
|
266
|
+
:auth_names => auth_names,
|
267
|
+
:return_type => return_type
|
268
|
+
)
|
269
|
+
|
270
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
271
|
+
if @api_client.config.debugging
|
272
|
+
@api_client.config.logger.debug "API called: CloudBucketsApi#index_cloud_buckets_by_pool\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
273
|
+
end
|
274
|
+
return data, status_code, headers
|
275
|
+
end
|
276
|
+
|
277
|
+
# Get mount status of Cloud bucket.
|
278
|
+
# **API Key Scope**: cloud_buckets / mount_status
|
279
|
+
# @param cloud_bucket_id [String] Numeric ID or name of cloud bucket.
|
280
|
+
# @param [Hash] opts the optional parameters
|
281
|
+
# @return [MountStatus]
|
282
|
+
def mount_status_cloud_bucket(cloud_bucket_id, opts = {})
|
283
|
+
data, _status_code, _headers = mount_status_cloud_bucket_with_http_info(cloud_bucket_id, opts)
|
284
|
+
data
|
285
|
+
end
|
286
|
+
|
287
|
+
# Get mount status of Cloud bucket.
|
288
|
+
# **API Key Scope**: cloud_buckets / mount_status
|
289
|
+
# @param cloud_bucket_id [String] Numeric ID or name of cloud bucket.
|
290
|
+
# @param [Hash] opts the optional parameters
|
291
|
+
# @return [Array<(MountStatus, Integer, Hash)>] MountStatus data, response status code and response headers
|
292
|
+
def mount_status_cloud_bucket_with_http_info(cloud_bucket_id, opts = {})
|
293
|
+
if @api_client.config.debugging
|
294
|
+
@api_client.config.logger.debug 'Calling API: CloudBucketsApi.mount_status_cloud_bucket ...'
|
295
|
+
end
|
296
|
+
# verify the required parameter 'cloud_bucket_id' is set
|
297
|
+
if @api_client.config.client_side_validation && cloud_bucket_id.nil?
|
298
|
+
fail ArgumentError, "Missing the required parameter 'cloud_bucket_id' when calling CloudBucketsApi.mount_status_cloud_bucket"
|
299
|
+
end
|
300
|
+
# resource path
|
301
|
+
local_var_path = '/cloud_buckets/{cloud_bucket_id}/mount'.sub('{' + 'cloud_bucket_id' + '}', CGI.escape(cloud_bucket_id.to_s))
|
302
|
+
|
303
|
+
# query parameters
|
304
|
+
query_params = opts[:query_params] || {}
|
305
|
+
|
306
|
+
# header parameters
|
307
|
+
header_params = opts[:header_params] || {}
|
308
|
+
# HTTP header 'Accept' (if needed)
|
309
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
310
|
+
|
311
|
+
# form parameters
|
312
|
+
form_params = opts[:form_params] || {}
|
313
|
+
|
314
|
+
# http body (model)
|
315
|
+
post_body = opts[:body]
|
316
|
+
|
317
|
+
# return_type
|
318
|
+
return_type = opts[:return_type] || 'MountStatus'
|
319
|
+
|
320
|
+
# auth_names
|
321
|
+
auth_names = opts[:auth_names] || ['BasicAuth', 'BearerAuth']
|
322
|
+
|
323
|
+
new_options = opts.merge(
|
324
|
+
:header_params => header_params,
|
325
|
+
:query_params => query_params,
|
326
|
+
:form_params => form_params,
|
327
|
+
:body => post_body,
|
328
|
+
:auth_names => auth_names,
|
329
|
+
:return_type => return_type
|
330
|
+
)
|
331
|
+
|
332
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
333
|
+
if @api_client.config.debugging
|
334
|
+
@api_client.config.logger.debug "API called: CloudBucketsApi#mount_status_cloud_bucket\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
335
|
+
end
|
336
|
+
return data, status_code, headers
|
337
|
+
end
|
338
|
+
|
339
|
+
# Get mount status of Cloud bucket.
|
340
|
+
# **API Key Scope**: cloud_buckets / mount_status
|
341
|
+
# @param cloud_connector_id [String] Numeric ID or name of cloud connector.
|
342
|
+
# @param cloud_bucket_id [String] Numeric ID or name of cloud bucket.
|
343
|
+
# @param [Hash] opts the optional parameters
|
344
|
+
# @return [MountStatus]
|
345
|
+
def mount_status_cloud_bucket_by_cloud_connector(cloud_connector_id, cloud_bucket_id, opts = {})
|
346
|
+
data, _status_code, _headers = mount_status_cloud_bucket_by_cloud_connector_with_http_info(cloud_connector_id, cloud_bucket_id, opts)
|
347
|
+
data
|
348
|
+
end
|
349
|
+
|
350
|
+
# Get mount status of Cloud bucket.
|
351
|
+
# **API Key Scope**: cloud_buckets / mount_status
|
352
|
+
# @param cloud_connector_id [String] Numeric ID or name of cloud connector.
|
353
|
+
# @param cloud_bucket_id [String] Numeric ID or name of cloud bucket.
|
354
|
+
# @param [Hash] opts the optional parameters
|
355
|
+
# @return [Array<(MountStatus, Integer, Hash)>] MountStatus data, response status code and response headers
|
356
|
+
def mount_status_cloud_bucket_by_cloud_connector_with_http_info(cloud_connector_id, cloud_bucket_id, opts = {})
|
357
|
+
if @api_client.config.debugging
|
358
|
+
@api_client.config.logger.debug 'Calling API: CloudBucketsApi.mount_status_cloud_bucket_by_cloud_connector ...'
|
359
|
+
end
|
360
|
+
# verify the required parameter 'cloud_connector_id' is set
|
361
|
+
if @api_client.config.client_side_validation && cloud_connector_id.nil?
|
362
|
+
fail ArgumentError, "Missing the required parameter 'cloud_connector_id' when calling CloudBucketsApi.mount_status_cloud_bucket_by_cloud_connector"
|
363
|
+
end
|
364
|
+
# verify the required parameter 'cloud_bucket_id' is set
|
365
|
+
if @api_client.config.client_side_validation && cloud_bucket_id.nil?
|
366
|
+
fail ArgumentError, "Missing the required parameter 'cloud_bucket_id' when calling CloudBucketsApi.mount_status_cloud_bucket_by_cloud_connector"
|
367
|
+
end
|
368
|
+
# resource path
|
369
|
+
local_var_path = '/cloud_connectors/{cloud_connector_id}/cloud_buckets/{cloud_bucket_id}/mount'.sub('{' + 'cloud_connector_id' + '}', CGI.escape(cloud_connector_id.to_s)).sub('{' + 'cloud_bucket_id' + '}', CGI.escape(cloud_bucket_id.to_s))
|
370
|
+
|
371
|
+
# query parameters
|
372
|
+
query_params = opts[:query_params] || {}
|
373
|
+
|
374
|
+
# header parameters
|
375
|
+
header_params = opts[:header_params] || {}
|
376
|
+
# HTTP header 'Accept' (if needed)
|
377
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
378
|
+
|
379
|
+
# form parameters
|
380
|
+
form_params = opts[:form_params] || {}
|
381
|
+
|
382
|
+
# http body (model)
|
383
|
+
post_body = opts[:body]
|
384
|
+
|
385
|
+
# return_type
|
386
|
+
return_type = opts[:return_type] || 'MountStatus'
|
387
|
+
|
388
|
+
# auth_names
|
389
|
+
auth_names = opts[:auth_names] || ['BasicAuth', 'BearerAuth']
|
390
|
+
|
391
|
+
new_options = opts.merge(
|
392
|
+
:header_params => header_params,
|
393
|
+
:query_params => query_params,
|
394
|
+
:form_params => form_params,
|
395
|
+
:body => post_body,
|
396
|
+
:auth_names => auth_names,
|
397
|
+
:return_type => return_type
|
398
|
+
)
|
399
|
+
|
400
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
401
|
+
if @api_client.config.debugging
|
402
|
+
@api_client.config.logger.debug "API called: CloudBucketsApi#mount_status_cloud_bucket_by_cloud_connector\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
403
|
+
end
|
404
|
+
return data, status_code, headers
|
405
|
+
end
|
406
|
+
|
407
|
+
# Get mount status of Cloud bucket.
|
408
|
+
# **API Key Scope**: cloud_buckets / mount_status
|
409
|
+
# @param pool_id [String] Numeric ID, or name of pool.
|
410
|
+
# @param cloud_bucket_id [String] Numeric ID or name of cloud bucket.
|
411
|
+
# @param [Hash] opts the optional parameters
|
412
|
+
# @return [MountStatus]
|
413
|
+
def mount_status_cloud_bucket_by_pool(pool_id, cloud_bucket_id, opts = {})
|
414
|
+
data, _status_code, _headers = mount_status_cloud_bucket_by_pool_with_http_info(pool_id, cloud_bucket_id, opts)
|
415
|
+
data
|
416
|
+
end
|
417
|
+
|
418
|
+
# Get mount status of Cloud bucket.
|
419
|
+
# **API Key Scope**: cloud_buckets / mount_status
|
420
|
+
# @param pool_id [String] Numeric ID, or name of pool.
|
421
|
+
# @param cloud_bucket_id [String] Numeric ID or name of cloud bucket.
|
422
|
+
# @param [Hash] opts the optional parameters
|
423
|
+
# @return [Array<(MountStatus, Integer, Hash)>] MountStatus data, response status code and response headers
|
424
|
+
def mount_status_cloud_bucket_by_pool_with_http_info(pool_id, cloud_bucket_id, opts = {})
|
425
|
+
if @api_client.config.debugging
|
426
|
+
@api_client.config.logger.debug 'Calling API: CloudBucketsApi.mount_status_cloud_bucket_by_pool ...'
|
427
|
+
end
|
428
|
+
# verify the required parameter 'pool_id' is set
|
429
|
+
if @api_client.config.client_side_validation && pool_id.nil?
|
430
|
+
fail ArgumentError, "Missing the required parameter 'pool_id' when calling CloudBucketsApi.mount_status_cloud_bucket_by_pool"
|
431
|
+
end
|
432
|
+
# verify the required parameter 'cloud_bucket_id' is set
|
433
|
+
if @api_client.config.client_side_validation && cloud_bucket_id.nil?
|
434
|
+
fail ArgumentError, "Missing the required parameter 'cloud_bucket_id' when calling CloudBucketsApi.mount_status_cloud_bucket_by_pool"
|
435
|
+
end
|
436
|
+
# resource path
|
437
|
+
local_var_path = '/pools/{pool_id}/cloud_buckets/{cloud_bucket_id}/mount'.sub('{' + 'pool_id' + '}', CGI.escape(pool_id.to_s)).sub('{' + 'cloud_bucket_id' + '}', CGI.escape(cloud_bucket_id.to_s))
|
438
|
+
|
439
|
+
# query parameters
|
440
|
+
query_params = opts[:query_params] || {}
|
441
|
+
|
442
|
+
# header parameters
|
443
|
+
header_params = opts[:header_params] || {}
|
444
|
+
# HTTP header 'Accept' (if needed)
|
445
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
446
|
+
|
447
|
+
# form parameters
|
448
|
+
form_params = opts[:form_params] || {}
|
449
|
+
|
450
|
+
# http body (model)
|
451
|
+
post_body = opts[:body]
|
452
|
+
|
453
|
+
# return_type
|
454
|
+
return_type = opts[:return_type] || 'MountStatus'
|
455
|
+
|
456
|
+
# auth_names
|
457
|
+
auth_names = opts[:auth_names] || ['BasicAuth', 'BearerAuth']
|
458
|
+
|
459
|
+
new_options = opts.merge(
|
460
|
+
:header_params => header_params,
|
461
|
+
:query_params => query_params,
|
462
|
+
:form_params => form_params,
|
463
|
+
:body => post_body,
|
464
|
+
:auth_names => auth_names,
|
465
|
+
:return_type => return_type
|
466
|
+
)
|
467
|
+
|
468
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
469
|
+
if @api_client.config.debugging
|
470
|
+
@api_client.config.logger.debug "API called: CloudBucketsApi#mount_status_cloud_bucket_by_pool\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
471
|
+
end
|
472
|
+
return data, status_code, headers
|
473
|
+
end
|
474
|
+
|
475
|
+
# Displays a specific cloud bucket.
|
476
|
+
# **API Key Scope**: cloud_buckets / show
|
477
|
+
# @param cloud_bucket_id [String] Numeric ID or name of cloud bucket.
|
478
|
+
# @param [Hash] opts the optional parameters
|
479
|
+
# @return [CloudBucket]
|
480
|
+
def show_cloud_bucket(cloud_bucket_id, opts = {})
|
481
|
+
data, _status_code, _headers = show_cloud_bucket_with_http_info(cloud_bucket_id, opts)
|
482
|
+
data
|
483
|
+
end
|
484
|
+
|
485
|
+
# Displays a specific cloud bucket.
|
486
|
+
# **API Key Scope**: cloud_buckets / show
|
487
|
+
# @param cloud_bucket_id [String] Numeric ID or name of cloud bucket.
|
488
|
+
# @param [Hash] opts the optional parameters
|
489
|
+
# @return [Array<(CloudBucket, Integer, Hash)>] CloudBucket data, response status code and response headers
|
490
|
+
def show_cloud_bucket_with_http_info(cloud_bucket_id, opts = {})
|
491
|
+
if @api_client.config.debugging
|
492
|
+
@api_client.config.logger.debug 'Calling API: CloudBucketsApi.show_cloud_bucket ...'
|
493
|
+
end
|
494
|
+
# verify the required parameter 'cloud_bucket_id' is set
|
495
|
+
if @api_client.config.client_side_validation && cloud_bucket_id.nil?
|
496
|
+
fail ArgumentError, "Missing the required parameter 'cloud_bucket_id' when calling CloudBucketsApi.show_cloud_bucket"
|
497
|
+
end
|
498
|
+
# resource path
|
499
|
+
local_var_path = '/cloud_buckets/{cloud_bucket_id}'.sub('{' + 'cloud_bucket_id' + '}', CGI.escape(cloud_bucket_id.to_s))
|
500
|
+
|
501
|
+
# query parameters
|
502
|
+
query_params = opts[:query_params] || {}
|
503
|
+
|
504
|
+
# header parameters
|
505
|
+
header_params = opts[:header_params] || {}
|
506
|
+
# HTTP header 'Accept' (if needed)
|
507
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
508
|
+
|
509
|
+
# form parameters
|
510
|
+
form_params = opts[:form_params] || {}
|
511
|
+
|
512
|
+
# http body (model)
|
513
|
+
post_body = opts[:body]
|
514
|
+
|
515
|
+
# return_type
|
516
|
+
return_type = opts[:return_type] || 'CloudBucket'
|
517
|
+
|
518
|
+
# auth_names
|
519
|
+
auth_names = opts[:auth_names] || ['BasicAuth', 'BearerAuth']
|
520
|
+
|
521
|
+
new_options = opts.merge(
|
522
|
+
:header_params => header_params,
|
523
|
+
:query_params => query_params,
|
524
|
+
:form_params => form_params,
|
525
|
+
:body => post_body,
|
526
|
+
:auth_names => auth_names,
|
527
|
+
:return_type => return_type
|
528
|
+
)
|
529
|
+
|
530
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
531
|
+
if @api_client.config.debugging
|
532
|
+
@api_client.config.logger.debug "API called: CloudBucketsApi#show_cloud_bucket\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
533
|
+
end
|
534
|
+
return data, status_code, headers
|
535
|
+
end
|
536
|
+
|
537
|
+
# Displays a specific cloud bucket.
|
538
|
+
# **API Key Scope**: cloud_buckets / show
|
539
|
+
# @param cloud_connector_id [String] Numeric ID or name of cloud connector.
|
540
|
+
# @param cloud_bucket_id [String] Numeric ID or name of cloud bucket.
|
541
|
+
# @param [Hash] opts the optional parameters
|
542
|
+
# @return [CloudBucket]
|
543
|
+
def show_cloud_bucket_by_cloud_connector(cloud_connector_id, cloud_bucket_id, opts = {})
|
544
|
+
data, _status_code, _headers = show_cloud_bucket_by_cloud_connector_with_http_info(cloud_connector_id, cloud_bucket_id, opts)
|
545
|
+
data
|
546
|
+
end
|
547
|
+
|
548
|
+
# Displays a specific cloud bucket.
|
549
|
+
# **API Key Scope**: cloud_buckets / show
|
550
|
+
# @param cloud_connector_id [String] Numeric ID or name of cloud connector.
|
551
|
+
# @param cloud_bucket_id [String] Numeric ID or name of cloud bucket.
|
552
|
+
# @param [Hash] opts the optional parameters
|
553
|
+
# @return [Array<(CloudBucket, Integer, Hash)>] CloudBucket data, response status code and response headers
|
554
|
+
def show_cloud_bucket_by_cloud_connector_with_http_info(cloud_connector_id, cloud_bucket_id, opts = {})
|
555
|
+
if @api_client.config.debugging
|
556
|
+
@api_client.config.logger.debug 'Calling API: CloudBucketsApi.show_cloud_bucket_by_cloud_connector ...'
|
557
|
+
end
|
558
|
+
# verify the required parameter 'cloud_connector_id' is set
|
559
|
+
if @api_client.config.client_side_validation && cloud_connector_id.nil?
|
560
|
+
fail ArgumentError, "Missing the required parameter 'cloud_connector_id' when calling CloudBucketsApi.show_cloud_bucket_by_cloud_connector"
|
561
|
+
end
|
562
|
+
# verify the required parameter 'cloud_bucket_id' is set
|
563
|
+
if @api_client.config.client_side_validation && cloud_bucket_id.nil?
|
564
|
+
fail ArgumentError, "Missing the required parameter 'cloud_bucket_id' when calling CloudBucketsApi.show_cloud_bucket_by_cloud_connector"
|
565
|
+
end
|
566
|
+
# resource path
|
567
|
+
local_var_path = '/cloud_connectors/{cloud_connector_id}/cloud_buckets/{cloud_bucket_id}'.sub('{' + 'cloud_connector_id' + '}', CGI.escape(cloud_connector_id.to_s)).sub('{' + 'cloud_bucket_id' + '}', CGI.escape(cloud_bucket_id.to_s))
|
568
|
+
|
569
|
+
# query parameters
|
570
|
+
query_params = opts[:query_params] || {}
|
571
|
+
|
572
|
+
# header parameters
|
573
|
+
header_params = opts[:header_params] || {}
|
574
|
+
# HTTP header 'Accept' (if needed)
|
575
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
576
|
+
|
577
|
+
# form parameters
|
578
|
+
form_params = opts[:form_params] || {}
|
579
|
+
|
580
|
+
# http body (model)
|
581
|
+
post_body = opts[:body]
|
582
|
+
|
583
|
+
# return_type
|
584
|
+
return_type = opts[:return_type] || 'CloudBucket'
|
585
|
+
|
586
|
+
# auth_names
|
587
|
+
auth_names = opts[:auth_names] || ['BasicAuth', 'BearerAuth']
|
588
|
+
|
589
|
+
new_options = opts.merge(
|
590
|
+
:header_params => header_params,
|
591
|
+
:query_params => query_params,
|
592
|
+
:form_params => form_params,
|
593
|
+
:body => post_body,
|
594
|
+
:auth_names => auth_names,
|
595
|
+
:return_type => return_type
|
596
|
+
)
|
597
|
+
|
598
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
599
|
+
if @api_client.config.debugging
|
600
|
+
@api_client.config.logger.debug "API called: CloudBucketsApi#show_cloud_bucket_by_cloud_connector\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
601
|
+
end
|
602
|
+
return data, status_code, headers
|
603
|
+
end
|
604
|
+
|
605
|
+
# Displays a specific cloud bucket.
|
606
|
+
# **API Key Scope**: cloud_buckets / show
|
607
|
+
# @param pool_id [String] Numeric ID, or name of pool.
|
608
|
+
# @param cloud_bucket_id [String] Numeric ID or name of cloud bucket.
|
609
|
+
# @param [Hash] opts the optional parameters
|
610
|
+
# @return [CloudBucket]
|
611
|
+
def show_cloud_bucket_by_pool(pool_id, cloud_bucket_id, opts = {})
|
612
|
+
data, _status_code, _headers = show_cloud_bucket_by_pool_with_http_info(pool_id, cloud_bucket_id, opts)
|
613
|
+
data
|
614
|
+
end
|
615
|
+
|
616
|
+
# Displays a specific cloud bucket.
|
617
|
+
# **API Key Scope**: cloud_buckets / show
|
618
|
+
# @param pool_id [String] Numeric ID, or name of pool.
|
619
|
+
# @param cloud_bucket_id [String] Numeric ID or name of cloud bucket.
|
620
|
+
# @param [Hash] opts the optional parameters
|
621
|
+
# @return [Array<(CloudBucket, Integer, Hash)>] CloudBucket data, response status code and response headers
|
622
|
+
def show_cloud_bucket_by_pool_with_http_info(pool_id, cloud_bucket_id, opts = {})
|
623
|
+
if @api_client.config.debugging
|
624
|
+
@api_client.config.logger.debug 'Calling API: CloudBucketsApi.show_cloud_bucket_by_pool ...'
|
625
|
+
end
|
626
|
+
# verify the required parameter 'pool_id' is set
|
627
|
+
if @api_client.config.client_side_validation && pool_id.nil?
|
628
|
+
fail ArgumentError, "Missing the required parameter 'pool_id' when calling CloudBucketsApi.show_cloud_bucket_by_pool"
|
629
|
+
end
|
630
|
+
# verify the required parameter 'cloud_bucket_id' is set
|
631
|
+
if @api_client.config.client_side_validation && cloud_bucket_id.nil?
|
632
|
+
fail ArgumentError, "Missing the required parameter 'cloud_bucket_id' when calling CloudBucketsApi.show_cloud_bucket_by_pool"
|
633
|
+
end
|
634
|
+
# resource path
|
635
|
+
local_var_path = '/pools/{pool_id}/cloud_buckets/{cloud_bucket_id}'.sub('{' + 'pool_id' + '}', CGI.escape(pool_id.to_s)).sub('{' + 'cloud_bucket_id' + '}', CGI.escape(cloud_bucket_id.to_s))
|
636
|
+
|
637
|
+
# query parameters
|
638
|
+
query_params = opts[:query_params] || {}
|
639
|
+
|
640
|
+
# header parameters
|
641
|
+
header_params = opts[:header_params] || {}
|
642
|
+
# HTTP header 'Accept' (if needed)
|
643
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
644
|
+
|
645
|
+
# form parameters
|
646
|
+
form_params = opts[:form_params] || {}
|
647
|
+
|
648
|
+
# http body (model)
|
649
|
+
post_body = opts[:body]
|
650
|
+
|
651
|
+
# return_type
|
652
|
+
return_type = opts[:return_type] || 'CloudBucket'
|
653
|
+
|
654
|
+
# auth_names
|
655
|
+
auth_names = opts[:auth_names] || ['BasicAuth', 'BearerAuth']
|
656
|
+
|
657
|
+
new_options = opts.merge(
|
658
|
+
:header_params => header_params,
|
659
|
+
:query_params => query_params,
|
660
|
+
:form_params => form_params,
|
661
|
+
:body => post_body,
|
662
|
+
:auth_names => auth_names,
|
663
|
+
:return_type => return_type
|
664
|
+
)
|
665
|
+
|
666
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
667
|
+
if @api_client.config.debugging
|
668
|
+
@api_client.config.logger.debug "API called: CloudBucketsApi#show_cloud_bucket_by_pool\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
669
|
+
end
|
670
|
+
return data, status_code, headers
|
671
|
+
end
|
672
|
+
|
673
|
+
# Synchronize internal cloud buckets with their remote equivalent.
|
674
|
+
# **API Key Scope**: cloud_buckets / sync
|
675
|
+
# @param cloud_connector_id [String] Numeric ID or name of cloud connector.
|
676
|
+
# @param [Hash] opts the optional parameters
|
677
|
+
# @return [ActiveJobStatus]
|
678
|
+
def sync_cloud_buckets(cloud_connector_id, opts = {})
|
679
|
+
data, _status_code, _headers = sync_cloud_buckets_with_http_info(cloud_connector_id, opts)
|
680
|
+
data
|
681
|
+
end
|
682
|
+
|
683
|
+
# Synchronize internal cloud buckets with their remote equivalent.
|
684
|
+
# **API Key Scope**: cloud_buckets / sync
|
685
|
+
# @param cloud_connector_id [String] Numeric ID or name of cloud connector.
|
686
|
+
# @param [Hash] opts the optional parameters
|
687
|
+
# @return [Array<(ActiveJobStatus, Integer, Hash)>] ActiveJobStatus data, response status code and response headers
|
688
|
+
def sync_cloud_buckets_with_http_info(cloud_connector_id, opts = {})
|
689
|
+
if @api_client.config.debugging
|
690
|
+
@api_client.config.logger.debug 'Calling API: CloudBucketsApi.sync_cloud_buckets ...'
|
691
|
+
end
|
692
|
+
# verify the required parameter 'cloud_connector_id' is set
|
693
|
+
if @api_client.config.client_side_validation && cloud_connector_id.nil?
|
694
|
+
fail ArgumentError, "Missing the required parameter 'cloud_connector_id' when calling CloudBucketsApi.sync_cloud_buckets"
|
695
|
+
end
|
696
|
+
# resource path
|
697
|
+
local_var_path = '/cloud_connectors/{cloud_connector_id}/cloud_buckets/-/sync'.sub('{' + 'cloud_connector_id' + '}', CGI.escape(cloud_connector_id.to_s))
|
698
|
+
|
699
|
+
# query parameters
|
700
|
+
query_params = opts[:query_params] || {}
|
701
|
+
|
702
|
+
# header parameters
|
703
|
+
header_params = opts[:header_params] || {}
|
704
|
+
# HTTP header 'Accept' (if needed)
|
705
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json', 'queued', 'working', 'failed'])
|
706
|
+
|
707
|
+
# form parameters
|
708
|
+
form_params = opts[:form_params] || {}
|
709
|
+
|
710
|
+
# http body (model)
|
711
|
+
post_body = opts[:body]
|
712
|
+
|
713
|
+
# return_type
|
714
|
+
return_type = opts[:return_type] || 'ActiveJobStatus'
|
715
|
+
|
716
|
+
# auth_names
|
717
|
+
auth_names = opts[:auth_names] || ['BasicAuth', 'BearerAuth']
|
718
|
+
|
719
|
+
new_options = opts.merge(
|
720
|
+
:header_params => header_params,
|
721
|
+
:query_params => query_params,
|
722
|
+
:form_params => form_params,
|
723
|
+
:body => post_body,
|
724
|
+
:auth_names => auth_names,
|
725
|
+
:return_type => return_type
|
726
|
+
)
|
727
|
+
|
728
|
+
data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
|
729
|
+
if @api_client.config.debugging
|
730
|
+
@api_client.config.logger.debug "API called: CloudBucketsApi#sync_cloud_buckets\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
731
|
+
end
|
732
|
+
return data, status_code, headers
|
733
|
+
end
|
734
|
+
|
735
|
+
# Check result of cloud connector sync job.
|
736
|
+
# **API Key Scope**: cloud_buckets / sync
|
737
|
+
# @param cloud_connector_id [String] Numeric ID or name of cloud connector.
|
738
|
+
# @param job_id [String] ID of active job
|
739
|
+
# @param [Hash] opts the optional parameters
|
740
|
+
# @return [CloudBucketSimpleCollection]
|
741
|
+
def sync_result_cloud_buckets(cloud_connector_id, job_id, opts = {})
|
742
|
+
data, _status_code, _headers = sync_result_cloud_buckets_with_http_info(cloud_connector_id, job_id, opts)
|
743
|
+
data
|
744
|
+
end
|
745
|
+
|
746
|
+
# Check result of cloud connector sync job.
|
747
|
+
# **API Key Scope**: cloud_buckets / sync
|
748
|
+
# @param cloud_connector_id [String] Numeric ID or name of cloud connector.
|
749
|
+
# @param job_id [String] ID of active job
|
750
|
+
# @param [Hash] opts the optional parameters
|
751
|
+
# @return [Array<(CloudBucketSimpleCollection, Integer, Hash)>] CloudBucketSimpleCollection data, response status code and response headers
|
752
|
+
def sync_result_cloud_buckets_with_http_info(cloud_connector_id, job_id, opts = {})
|
753
|
+
if @api_client.config.debugging
|
754
|
+
@api_client.config.logger.debug 'Calling API: CloudBucketsApi.sync_result_cloud_buckets ...'
|
755
|
+
end
|
756
|
+
# verify the required parameter 'cloud_connector_id' is set
|
757
|
+
if @api_client.config.client_side_validation && cloud_connector_id.nil?
|
758
|
+
fail ArgumentError, "Missing the required parameter 'cloud_connector_id' when calling CloudBucketsApi.sync_result_cloud_buckets"
|
759
|
+
end
|
760
|
+
# verify the required parameter 'job_id' is set
|
761
|
+
if @api_client.config.client_side_validation && job_id.nil?
|
762
|
+
fail ArgumentError, "Missing the required parameter 'job_id' when calling CloudBucketsApi.sync_result_cloud_buckets"
|
763
|
+
end
|
764
|
+
# resource path
|
765
|
+
local_var_path = '/cloud_connectors/{cloud_connector_id}/cloud_buckets/-/sync'.sub('{' + 'cloud_connector_id' + '}', CGI.escape(cloud_connector_id.to_s))
|
766
|
+
|
767
|
+
# query parameters
|
768
|
+
query_params = opts[:query_params] || {}
|
769
|
+
query_params[:'job_id'] = job_id
|
770
|
+
|
771
|
+
# header parameters
|
772
|
+
header_params = opts[:header_params] || {}
|
773
|
+
# HTTP header 'Accept' (if needed)
|
774
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json', 'queued', 'working', 'failed', ])
|
775
|
+
|
776
|
+
# form parameters
|
777
|
+
form_params = opts[:form_params] || {}
|
778
|
+
|
779
|
+
# http body (model)
|
780
|
+
post_body = opts[:body]
|
781
|
+
|
782
|
+
# return_type
|
783
|
+
return_type = opts[:return_type] || 'CloudBucketSimpleCollection'
|
784
|
+
|
785
|
+
# auth_names
|
786
|
+
auth_names = opts[:auth_names] || ['BasicAuth', 'BearerAuth']
|
787
|
+
|
788
|
+
new_options = opts.merge(
|
789
|
+
:header_params => header_params,
|
790
|
+
:query_params => query_params,
|
791
|
+
:form_params => form_params,
|
792
|
+
:body => post_body,
|
793
|
+
:auth_names => auth_names,
|
794
|
+
:return_type => return_type
|
795
|
+
)
|
796
|
+
|
797
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
798
|
+
if @api_client.config.debugging
|
799
|
+
@api_client.config.logger.debug "API called: CloudBucketsApi#sync_result_cloud_buckets\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
800
|
+
end
|
801
|
+
return data, status_code, headers
|
802
|
+
end
|
803
|
+
|
804
|
+
# Updates a specific cloud bucket.
|
805
|
+
# **API Key Scope**: cloud_buckets / update
|
806
|
+
# @param cloud_bucket_id [String] Numeric ID or name of cloud bucket.
|
807
|
+
# @param cloud_bucket_body [CloudBucket]
|
808
|
+
# @param [Hash] opts the optional parameters
|
809
|
+
# @return [CloudBucket]
|
810
|
+
def update_cloud_bucket(cloud_bucket_id, cloud_bucket_body, opts = {})
|
811
|
+
data, _status_code, _headers = update_cloud_bucket_with_http_info(cloud_bucket_id, cloud_bucket_body, opts)
|
812
|
+
data
|
813
|
+
end
|
814
|
+
|
815
|
+
# Updates a specific cloud bucket.
|
816
|
+
# **API Key Scope**: cloud_buckets / update
|
817
|
+
# @param cloud_bucket_id [String] Numeric ID or name of cloud bucket.
|
818
|
+
# @param cloud_bucket_body [CloudBucket]
|
819
|
+
# @param [Hash] opts the optional parameters
|
820
|
+
# @return [Array<(CloudBucket, Integer, Hash)>] CloudBucket data, response status code and response headers
|
821
|
+
def update_cloud_bucket_with_http_info(cloud_bucket_id, cloud_bucket_body, opts = {})
|
822
|
+
if @api_client.config.debugging
|
823
|
+
@api_client.config.logger.debug 'Calling API: CloudBucketsApi.update_cloud_bucket ...'
|
824
|
+
end
|
825
|
+
# verify the required parameter 'cloud_bucket_id' is set
|
826
|
+
if @api_client.config.client_side_validation && cloud_bucket_id.nil?
|
827
|
+
fail ArgumentError, "Missing the required parameter 'cloud_bucket_id' when calling CloudBucketsApi.update_cloud_bucket"
|
828
|
+
end
|
829
|
+
# verify the required parameter 'cloud_bucket_body' is set
|
830
|
+
if @api_client.config.client_side_validation && cloud_bucket_body.nil?
|
831
|
+
fail ArgumentError, "Missing the required parameter 'cloud_bucket_body' when calling CloudBucketsApi.update_cloud_bucket"
|
832
|
+
end
|
833
|
+
# resource path
|
834
|
+
local_var_path = '/cloud_buckets/{cloud_bucket_id}'.sub('{' + 'cloud_bucket_id' + '}', CGI.escape(cloud_bucket_id.to_s))
|
835
|
+
|
836
|
+
# query parameters
|
837
|
+
query_params = opts[:query_params] || {}
|
838
|
+
|
839
|
+
# header parameters
|
840
|
+
header_params = opts[:header_params] || {}
|
841
|
+
# HTTP header 'Accept' (if needed)
|
842
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
843
|
+
# HTTP header 'Content-Type'
|
844
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
845
|
+
|
846
|
+
# form parameters
|
847
|
+
form_params = opts[:form_params] || {}
|
848
|
+
|
849
|
+
# http body (model)
|
850
|
+
post_body = opts[:body] || @api_client.object_to_http_body(cloud_bucket_body)
|
851
|
+
|
852
|
+
# return_type
|
853
|
+
return_type = opts[:return_type] || 'CloudBucket'
|
854
|
+
|
855
|
+
# auth_names
|
856
|
+
auth_names = opts[:auth_names] || ['BasicAuth', 'BearerAuth']
|
857
|
+
|
858
|
+
new_options = opts.merge(
|
859
|
+
:header_params => header_params,
|
860
|
+
:query_params => query_params,
|
861
|
+
:form_params => form_params,
|
862
|
+
:body => post_body,
|
863
|
+
:auth_names => auth_names,
|
864
|
+
:return_type => return_type
|
865
|
+
)
|
866
|
+
|
867
|
+
data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
|
868
|
+
if @api_client.config.debugging
|
869
|
+
@api_client.config.logger.debug "API called: CloudBucketsApi#update_cloud_bucket\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
870
|
+
end
|
871
|
+
return data, status_code, headers
|
872
|
+
end
|
873
|
+
|
874
|
+
# Updates a specific cloud bucket.
|
875
|
+
# **API Key Scope**: cloud_buckets / update
|
876
|
+
# @param cloud_connector_id [String] Numeric ID or name of cloud connector.
|
877
|
+
# @param cloud_bucket_id [String] Numeric ID or name of cloud bucket.
|
878
|
+
# @param cloud_bucket_body [CloudBucket]
|
879
|
+
# @param [Hash] opts the optional parameters
|
880
|
+
# @return [CloudBucket]
|
881
|
+
def update_cloud_bucket_by_cloud_connector(cloud_connector_id, cloud_bucket_id, cloud_bucket_body, opts = {})
|
882
|
+
data, _status_code, _headers = update_cloud_bucket_by_cloud_connector_with_http_info(cloud_connector_id, cloud_bucket_id, cloud_bucket_body, opts)
|
883
|
+
data
|
884
|
+
end
|
885
|
+
|
886
|
+
# Updates a specific cloud bucket.
|
887
|
+
# **API Key Scope**: cloud_buckets / update
|
888
|
+
# @param cloud_connector_id [String] Numeric ID or name of cloud connector.
|
889
|
+
# @param cloud_bucket_id [String] Numeric ID or name of cloud bucket.
|
890
|
+
# @param cloud_bucket_body [CloudBucket]
|
891
|
+
# @param [Hash] opts the optional parameters
|
892
|
+
# @return [Array<(CloudBucket, Integer, Hash)>] CloudBucket data, response status code and response headers
|
893
|
+
def update_cloud_bucket_by_cloud_connector_with_http_info(cloud_connector_id, cloud_bucket_id, cloud_bucket_body, opts = {})
|
894
|
+
if @api_client.config.debugging
|
895
|
+
@api_client.config.logger.debug 'Calling API: CloudBucketsApi.update_cloud_bucket_by_cloud_connector ...'
|
896
|
+
end
|
897
|
+
# verify the required parameter 'cloud_connector_id' is set
|
898
|
+
if @api_client.config.client_side_validation && cloud_connector_id.nil?
|
899
|
+
fail ArgumentError, "Missing the required parameter 'cloud_connector_id' when calling CloudBucketsApi.update_cloud_bucket_by_cloud_connector"
|
900
|
+
end
|
901
|
+
# verify the required parameter 'cloud_bucket_id' is set
|
902
|
+
if @api_client.config.client_side_validation && cloud_bucket_id.nil?
|
903
|
+
fail ArgumentError, "Missing the required parameter 'cloud_bucket_id' when calling CloudBucketsApi.update_cloud_bucket_by_cloud_connector"
|
904
|
+
end
|
905
|
+
# verify the required parameter 'cloud_bucket_body' is set
|
906
|
+
if @api_client.config.client_side_validation && cloud_bucket_body.nil?
|
907
|
+
fail ArgumentError, "Missing the required parameter 'cloud_bucket_body' when calling CloudBucketsApi.update_cloud_bucket_by_cloud_connector"
|
908
|
+
end
|
909
|
+
# resource path
|
910
|
+
local_var_path = '/cloud_connectors/{cloud_connector_id}/cloud_buckets/{cloud_bucket_id}'.sub('{' + 'cloud_connector_id' + '}', CGI.escape(cloud_connector_id.to_s)).sub('{' + 'cloud_bucket_id' + '}', CGI.escape(cloud_bucket_id.to_s))
|
911
|
+
|
912
|
+
# query parameters
|
913
|
+
query_params = opts[:query_params] || {}
|
914
|
+
|
915
|
+
# header parameters
|
916
|
+
header_params = opts[:header_params] || {}
|
917
|
+
# HTTP header 'Accept' (if needed)
|
918
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
919
|
+
# HTTP header 'Content-Type'
|
920
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
921
|
+
|
922
|
+
# form parameters
|
923
|
+
form_params = opts[:form_params] || {}
|
924
|
+
|
925
|
+
# http body (model)
|
926
|
+
post_body = opts[:body] || @api_client.object_to_http_body(cloud_bucket_body)
|
927
|
+
|
928
|
+
# return_type
|
929
|
+
return_type = opts[:return_type] || 'CloudBucket'
|
930
|
+
|
931
|
+
# auth_names
|
932
|
+
auth_names = opts[:auth_names] || ['BasicAuth', 'BearerAuth']
|
933
|
+
|
934
|
+
new_options = opts.merge(
|
935
|
+
:header_params => header_params,
|
936
|
+
:query_params => query_params,
|
937
|
+
:form_params => form_params,
|
938
|
+
:body => post_body,
|
939
|
+
:auth_names => auth_names,
|
940
|
+
:return_type => return_type
|
941
|
+
)
|
942
|
+
|
943
|
+
data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
|
944
|
+
if @api_client.config.debugging
|
945
|
+
@api_client.config.logger.debug "API called: CloudBucketsApi#update_cloud_bucket_by_cloud_connector\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
946
|
+
end
|
947
|
+
return data, status_code, headers
|
948
|
+
end
|
949
|
+
|
950
|
+
# Updates a specific cloud bucket.
|
951
|
+
# **API Key Scope**: cloud_buckets / update
|
952
|
+
# @param pool_id [String] Numeric ID, or name of pool.
|
953
|
+
# @param cloud_bucket_id [String] Numeric ID or name of cloud bucket.
|
954
|
+
# @param cloud_bucket_body [CloudBucket]
|
955
|
+
# @param [Hash] opts the optional parameters
|
956
|
+
# @return [CloudBucket]
|
957
|
+
def update_cloud_bucket_by_pool(pool_id, cloud_bucket_id, cloud_bucket_body, opts = {})
|
958
|
+
data, _status_code, _headers = update_cloud_bucket_by_pool_with_http_info(pool_id, cloud_bucket_id, cloud_bucket_body, opts)
|
959
|
+
data
|
960
|
+
end
|
961
|
+
|
962
|
+
# Updates a specific cloud bucket.
|
963
|
+
# **API Key Scope**: cloud_buckets / update
|
964
|
+
# @param pool_id [String] Numeric ID, or name of pool.
|
965
|
+
# @param cloud_bucket_id [String] Numeric ID or name of cloud bucket.
|
966
|
+
# @param cloud_bucket_body [CloudBucket]
|
967
|
+
# @param [Hash] opts the optional parameters
|
968
|
+
# @return [Array<(CloudBucket, Integer, Hash)>] CloudBucket data, response status code and response headers
|
969
|
+
def update_cloud_bucket_by_pool_with_http_info(pool_id, cloud_bucket_id, cloud_bucket_body, opts = {})
|
970
|
+
if @api_client.config.debugging
|
971
|
+
@api_client.config.logger.debug 'Calling API: CloudBucketsApi.update_cloud_bucket_by_pool ...'
|
972
|
+
end
|
973
|
+
# verify the required parameter 'pool_id' is set
|
974
|
+
if @api_client.config.client_side_validation && pool_id.nil?
|
975
|
+
fail ArgumentError, "Missing the required parameter 'pool_id' when calling CloudBucketsApi.update_cloud_bucket_by_pool"
|
976
|
+
end
|
977
|
+
# verify the required parameter 'cloud_bucket_id' is set
|
978
|
+
if @api_client.config.client_side_validation && cloud_bucket_id.nil?
|
979
|
+
fail ArgumentError, "Missing the required parameter 'cloud_bucket_id' when calling CloudBucketsApi.update_cloud_bucket_by_pool"
|
980
|
+
end
|
981
|
+
# verify the required parameter 'cloud_bucket_body' is set
|
982
|
+
if @api_client.config.client_side_validation && cloud_bucket_body.nil?
|
983
|
+
fail ArgumentError, "Missing the required parameter 'cloud_bucket_body' when calling CloudBucketsApi.update_cloud_bucket_by_pool"
|
984
|
+
end
|
985
|
+
# resource path
|
986
|
+
local_var_path = '/pools/{pool_id}/cloud_buckets/{cloud_bucket_id}'.sub('{' + 'pool_id' + '}', CGI.escape(pool_id.to_s)).sub('{' + 'cloud_bucket_id' + '}', CGI.escape(cloud_bucket_id.to_s))
|
987
|
+
|
988
|
+
# query parameters
|
989
|
+
query_params = opts[:query_params] || {}
|
990
|
+
|
991
|
+
# header parameters
|
992
|
+
header_params = opts[:header_params] || {}
|
993
|
+
# HTTP header 'Accept' (if needed)
|
994
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
995
|
+
# HTTP header 'Content-Type'
|
996
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
997
|
+
|
998
|
+
# form parameters
|
999
|
+
form_params = opts[:form_params] || {}
|
1000
|
+
|
1001
|
+
# http body (model)
|
1002
|
+
post_body = opts[:body] || @api_client.object_to_http_body(cloud_bucket_body)
|
1003
|
+
|
1004
|
+
# return_type
|
1005
|
+
return_type = opts[:return_type] || 'CloudBucket'
|
1006
|
+
|
1007
|
+
# auth_names
|
1008
|
+
auth_names = opts[:auth_names] || ['BasicAuth', 'BearerAuth']
|
1009
|
+
|
1010
|
+
new_options = opts.merge(
|
1011
|
+
:header_params => header_params,
|
1012
|
+
:query_params => query_params,
|
1013
|
+
:form_params => form_params,
|
1014
|
+
:body => post_body,
|
1015
|
+
:auth_names => auth_names,
|
1016
|
+
:return_type => return_type
|
1017
|
+
)
|
1018
|
+
|
1019
|
+
data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
|
1020
|
+
if @api_client.config.debugging
|
1021
|
+
@api_client.config.logger.debug "API called: CloudBucketsApi#update_cloud_bucket_by_pool\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1022
|
+
end
|
1023
|
+
return data, status_code, headers
|
1024
|
+
end
|
1025
|
+
end
|
1026
|
+
end
|