From 19958108ec550865ebeb1f2a4d250322cf4681c2 Mon Sep 17 00:00:00 2001 From: Brandon Krueger Date: Wed, 30 May 2018 14:49:05 -0700 Subject: [PATCH] OneFS 8.0.0 Python Swagger bindings for v0.2.3 --- README.md | 64 +- docs/AccessPointCreateParams.md | 10 + docs/AclObject.md | 14 + docs/ClusterApi.md | 4 +- docs/ClusterNodeStateExtended.md | 2 +- docs/ClusterNodesExtended.md | 9 +- docs/ClusterNodesExtendedExtended.md | 9 +- docs/CopyErrors.md | 10 + docs/CopyErrorsCopyErrors.md | 13 + docs/DirectoryQuery.md | 11 + docs/DirectoryQueryScope.md | 11 + docs/DirectoryQueryScopeConditions.md | 12 + docs/EventChannelExtendedExtended.md | 17 + docs/EventChannelsExtended.md | 2 +- docs/FilepoolTemplate.md | 2 +- docs/FilepoolTemplateAction.md | 11 + docs/FilepoolTemplates.md | 2 +- docs/JobEvent.md | 2 + docs/JobJobCreateParams.md | 2 +- docs/JobJobExtended.md | 4 +- docs/JobJobSummarySummary.md | 2 +- docs/JobPolicies.md | 2 +- docs/JobPoliciesExtended.md | 2 +- docs/JobPolicyExtended.md | 14 + docs/MappingUsersRulesParameters.md | 2 +- ...pingUsersRulesParametersDefaultUnixUser.md | 11 + docs/MappingUsersRulesRuleExtended.md | 2 +- docs/MappingUsersRulesRuleUser1.md | 11 + docs/MemberObject.md | 12 + docs/NamespaceAccessPoints.md | 11 + docs/NamespaceAccessPointsNamespaces.md | 11 + docs/NamespaceAcl.md | 14 + docs/NamespaceApi.md | 1392 +++++++++ docs/NamespaceMetadata.md | 11 + docs/NamespaceMetadataAttrs.md | 13 + docs/NamespaceMetadataList.md | 10 + docs/NamespaceMetadataListAttrs.md | 12 + docs/NamespaceObject.md | 31 + docs/NamespaceObjects.md | 11 + docs/NdmpUserExtended.md | 11 + docs/NdmpUsers.md | 3 +- docs/NdmpUsersExtended.md | 2 +- docs/ProtocolsApi.md | 4 +- docs/ProtocolsHdfsApi.md | 4 +- docs/SettingsMappingExtendedExtended.md | 1 + docs/UpgradeApi.md | 8 +- docs/WormCreateParams.md | 11 + docs/WormProperties.md | 18 + isi_sdk/__init__.py | 40 +- isi_sdk/api/__init__.py | 1 + isi_sdk/api/cluster_api.py | 6 +- isi_sdk/api/namespace_api.py | 2718 +++++++++++++++++ isi_sdk/api/protocols_api.py | 18 +- isi_sdk/api/protocols_hdfs_api.py | 6 +- isi_sdk/api/upgrade_api.py | 12 +- isi_sdk/api_client.py | 4 +- isi_sdk/configuration.py | 2 +- isi_sdk/models/__init__.py | 39 +- isi_sdk/models/access_point_create_params.py | 115 + isi_sdk/models/acl_object.py | 218 ++ isi_sdk/models/cluster_node_state_extended.py | 8 +- isi_sdk/models/cluster_nodes_extended.py | 211 +- .../models/cluster_nodes_extended_extended.py | 213 +- isi_sdk/models/copy_errors.py | 114 + isi_sdk/models/copy_errors_copy_errors.py | 190 ++ isi_sdk/models/directory_query.py | 140 + isi_sdk/models/directory_query_scope.py | 140 + .../directory_query_scope_conditions.py | 164 + .../models/event_channel_extended_extended.py | 318 ++ isi_sdk/models/event_channels_extended.py | 9 +- isi_sdk/models/event_eventlist_event.py | 2 +- ...tern_or_criteria_item_and_criteria_item.py | 6 - isi_sdk/models/filepool_template.py | 313 +- isi_sdk/models/filepool_template_action.py | 147 + isi_sdk/models/filepool_templates.py | 8 +- isi_sdk/models/job_event.py | 54 +- isi_sdk/models/job_job_create_params.py | 5 +- isi_sdk/models/job_job_extended.py | 10 +- isi_sdk/models/job_job_summary_summary.py | 5 +- isi_sdk/models/job_policies.py | 36 +- isi_sdk/models/job_policies_extended.py | 9 +- isi_sdk/models/job_policy_extended.py | 233 ++ .../models/mapping_users_rules_parameters.py | 8 +- ...sers_rules_parameters_default_unix_user.py | 145 + .../mapping_users_rules_rule_extended.py | 8 +- .../models/mapping_users_rules_rule_user1.py | 145 + isi_sdk/models/member_object.py | 164 + isi_sdk/models/namespace_access_points.py | 140 + .../namespace_access_points_namespaces.py | 138 + isi_sdk/models/namespace_acl.py | 229 ++ isi_sdk/models/namespace_metadata.py | 140 + isi_sdk/models/namespace_metadata_attrs.py | 190 ++ isi_sdk/models/namespace_metadata_list.py | 114 + .../models/namespace_metadata_list_attrs.py | 164 + isi_sdk/models/namespace_object.py | 700 +++++ isi_sdk/models/namespace_objects.py | 140 + isi_sdk/models/ndmp_user_extended.py | 142 + isi_sdk/models/ndmp_users.py | 66 +- isi_sdk/models/ndmp_users_extended.py | 59 +- isi_sdk/models/nfs_check.py | 32 +- isi_sdk/models/nfs_exports_extended.py | 28 +- ...tern_or_criteria_item_and_criteria_item.py | 6 - .../settings_mapping_extended_extended.py | 28 +- .../models/smb_log_level_filters_filter.py | 6 - isi_sdk/models/smb_shares_extended.py | 28 +- isi_sdk/models/snmp_settings_settings.py | 4 +- isi_sdk/models/worm_create_params.py | 142 + isi_sdk/models/worm_properties.py | 338 ++ setup.py | 6 +- swagger_config.json | 1832 +++++++++-- test/test_access_point_create_params.py | 40 + test/test_acl_object.py | 40 + test/test_copy_errors.py | 40 + test/test_copy_errors_copy_errors.py | 40 + test/test_directory_query.py | 40 + test/test_directory_query_scope.py | 40 + test/test_directory_query_scope_conditions.py | 40 + test/test_event_channel_extended_extended.py | 40 + test/test_filepool_template.py | 39 +- test/test_filepool_template_action.py | 40 + test/test_job_policy_extended.py | 40 + ...sers_rules_parameters_default_unix_user.py | 40 + test/test_mapping_users_rules_rule_user1.py | 40 + test/test_member_object.py | 40 + test/test_namespace_access_points.py | 40 + ...test_namespace_access_points_namespaces.py | 40 + test/test_namespace_acl.py | 40 + test/test_namespace_api.py | 178 ++ test/test_namespace_metadata.py | 40 + test/test_namespace_metadata_attrs.py | 40 + test/test_namespace_metadata_list.py | 40 + test/test_namespace_metadata_list_attrs.py | 40 + test/test_namespace_object.py | 40 + test/test_namespace_objects.py | 40 + test/test_ndmp_user_extended.py | 40 + test/test_worm_create_params.py | 40 + test/test_worm_properties.py | 40 + 137 files changed, 12870 insertions(+), 850 deletions(-) create mode 100644 docs/AccessPointCreateParams.md create mode 100644 docs/AclObject.md create mode 100644 docs/CopyErrors.md create mode 100644 docs/CopyErrorsCopyErrors.md create mode 100644 docs/DirectoryQuery.md create mode 100644 docs/DirectoryQueryScope.md create mode 100644 docs/DirectoryQueryScopeConditions.md create mode 100644 docs/EventChannelExtendedExtended.md create mode 100644 docs/FilepoolTemplateAction.md create mode 100644 docs/JobPolicyExtended.md create mode 100644 docs/MappingUsersRulesParametersDefaultUnixUser.md create mode 100644 docs/MappingUsersRulesRuleUser1.md create mode 100644 docs/MemberObject.md create mode 100644 docs/NamespaceAccessPoints.md create mode 100644 docs/NamespaceAccessPointsNamespaces.md create mode 100644 docs/NamespaceAcl.md create mode 100644 docs/NamespaceApi.md create mode 100644 docs/NamespaceMetadata.md create mode 100644 docs/NamespaceMetadataAttrs.md create mode 100644 docs/NamespaceMetadataList.md create mode 100644 docs/NamespaceMetadataListAttrs.md create mode 100644 docs/NamespaceObject.md create mode 100644 docs/NamespaceObjects.md create mode 100644 docs/NdmpUserExtended.md create mode 100644 docs/WormCreateParams.md create mode 100644 docs/WormProperties.md create mode 100644 isi_sdk/api/namespace_api.py create mode 100644 isi_sdk/models/access_point_create_params.py create mode 100644 isi_sdk/models/acl_object.py create mode 100644 isi_sdk/models/copy_errors.py create mode 100644 isi_sdk/models/copy_errors_copy_errors.py create mode 100644 isi_sdk/models/directory_query.py create mode 100644 isi_sdk/models/directory_query_scope.py create mode 100644 isi_sdk/models/directory_query_scope_conditions.py create mode 100644 isi_sdk/models/event_channel_extended_extended.py create mode 100644 isi_sdk/models/filepool_template_action.py create mode 100644 isi_sdk/models/job_policy_extended.py create mode 100644 isi_sdk/models/mapping_users_rules_parameters_default_unix_user.py create mode 100644 isi_sdk/models/mapping_users_rules_rule_user1.py create mode 100644 isi_sdk/models/member_object.py create mode 100644 isi_sdk/models/namespace_access_points.py create mode 100644 isi_sdk/models/namespace_access_points_namespaces.py create mode 100644 isi_sdk/models/namespace_acl.py create mode 100644 isi_sdk/models/namespace_metadata.py create mode 100644 isi_sdk/models/namespace_metadata_attrs.py create mode 100644 isi_sdk/models/namespace_metadata_list.py create mode 100644 isi_sdk/models/namespace_metadata_list_attrs.py create mode 100644 isi_sdk/models/namespace_object.py create mode 100644 isi_sdk/models/namespace_objects.py create mode 100644 isi_sdk/models/ndmp_user_extended.py create mode 100644 isi_sdk/models/worm_create_params.py create mode 100644 isi_sdk/models/worm_properties.py create mode 100644 test/test_access_point_create_params.py create mode 100644 test/test_acl_object.py create mode 100644 test/test_copy_errors.py create mode 100644 test/test_copy_errors_copy_errors.py create mode 100644 test/test_directory_query.py create mode 100644 test/test_directory_query_scope.py create mode 100644 test/test_directory_query_scope_conditions.py create mode 100644 test/test_event_channel_extended_extended.py create mode 100644 test/test_filepool_template_action.py create mode 100644 test/test_job_policy_extended.py create mode 100644 test/test_mapping_users_rules_parameters_default_unix_user.py create mode 100644 test/test_mapping_users_rules_rule_user1.py create mode 100644 test/test_member_object.py create mode 100644 test/test_namespace_access_points.py create mode 100644 test/test_namespace_access_points_namespaces.py create mode 100644 test/test_namespace_acl.py create mode 100644 test/test_namespace_api.py create mode 100644 test/test_namespace_metadata.py create mode 100644 test/test_namespace_metadata_attrs.py create mode 100644 test/test_namespace_metadata_list.py create mode 100644 test/test_namespace_metadata_list_attrs.py create mode 100644 test/test_namespace_object.py create mode 100644 test/test_namespace_objects.py create mode 100644 test/test_ndmp_user_extended.py create mode 100644 test/test_worm_create_params.py create mode 100644 test/test_worm_properties.py diff --git a/README.md b/README.md index 20d83e12..aa7c9cf0 100644 --- a/README.md +++ b/README.md @@ -18,7 +18,7 @@ Isilon SDK - Language bindings for the OneFS API This Python package is automatically generated by the [Swagger Codegen](https://github.com/swagger-api/swagger-codegen) project: - API version: 3 -- Package version: 0.2.2 +- Package version: 0.2.3 - Build package: io.swagger.codegen.languages.PythonClientCodegen For more information, please visit [https://github.com/Isilon/isilon_sdk](https://github.com/Isilon/isilon_sdk) @@ -389,6 +389,30 @@ Class | Method | HTTP request | Description *LicenseApi* | [**get_license_license**](docs/LicenseApi.md#get_license_license) | **GET** /platform/1/license/licenses/{LicenseLicenseId} | *LicenseApi* | [**list_license_licenses**](docs/LicenseApi.md#list_license_licenses) | **GET** /platform/1/license/licenses | *LocalApi* | [**get_cluster_time**](docs/LocalApi.md#get_cluster_time) | **GET** /platform/3/local/cluster/time | +*NamespaceApi* | [**copy_directory**](docs/NamespaceApi.md#copy_directory) | **PUT** /namespace/{DirectoryCopyTarget} | +*NamespaceApi* | [**copy_file**](docs/NamespaceApi.md#copy_file) | **PUT** /namespace/{FileCopyTarget} | +*NamespaceApi* | [**create_access_point**](docs/NamespaceApi.md#create_access_point) | **PUT** /namespace/{AccessPointName} | +*NamespaceApi* | [**create_directory**](docs/NamespaceApi.md#create_directory) | **PUT** /namespace/{DirectoryPath} | +*NamespaceApi* | [**create_file**](docs/NamespaceApi.md#create_file) | **PUT** /namespace/{FilePath} | +*NamespaceApi* | [**delete_access_point**](docs/NamespaceApi.md#delete_access_point) | **DELETE** /namespace/{AccessPointName} | +*NamespaceApi* | [**delete_directory**](docs/NamespaceApi.md#delete_directory) | **DELETE** /namespace/{DirectoryPath} | +*NamespaceApi* | [**delete_file**](docs/NamespaceApi.md#delete_file) | **DELETE** /namespace/{FilePath} | +*NamespaceApi* | [**get_acl**](docs/NamespaceApi.md#get_acl) | **GET** /namespace/{NamespacePath} | +*NamespaceApi* | [**get_directory_attributes**](docs/NamespaceApi.md#get_directory_attributes) | **HEAD** /namespace/{DirectoryPath} | +*NamespaceApi* | [**get_directory_contents**](docs/NamespaceApi.md#get_directory_contents) | **GET** /namespace/{DirectoryPath} | +*NamespaceApi* | [**get_directory_metadata**](docs/NamespaceApi.md#get_directory_metadata) | **GET** /namespace/{DirectoryMetadataPath} | +*NamespaceApi* | [**get_file_attributes**](docs/NamespaceApi.md#get_file_attributes) | **HEAD** /namespace/{FilePath} | +*NamespaceApi* | [**get_file_contents**](docs/NamespaceApi.md#get_file_contents) | **GET** /namespace/{FilePath} | +*NamespaceApi* | [**get_file_metadata**](docs/NamespaceApi.md#get_file_metadata) | **GET** /namespace/{FileMetadataPath} | +*NamespaceApi* | [**get_worm_properties**](docs/NamespaceApi.md#get_worm_properties) | **GET** /namespace/{WormFilePath} | +*NamespaceApi* | [**list_access_points**](docs/NamespaceApi.md#list_access_points) | **GET** /namespace | +*NamespaceApi* | [**move_directory**](docs/NamespaceApi.md#move_directory) | **POST** /namespace/{DirectoryPath} | +*NamespaceApi* | [**move_file**](docs/NamespaceApi.md#move_file) | **POST** /namespace/{FilePath} | +*NamespaceApi* | [**query_directory**](docs/NamespaceApi.md#query_directory) | **POST** /namespace/{QueryPath} | +*NamespaceApi* | [**set_acl**](docs/NamespaceApi.md#set_acl) | **PUT** /namespace/{NamespacePath} | +*NamespaceApi* | [**set_directory_metadata**](docs/NamespaceApi.md#set_directory_metadata) | **PUT** /namespace/{DirectoryMetadataPath} | +*NamespaceApi* | [**set_file_metadata**](docs/NamespaceApi.md#set_file_metadata) | **PUT** /namespace/{FileMetadataPath} | +*NamespaceApi* | [**set_worm_properties**](docs/NamespaceApi.md#set_worm_properties) | **PUT** /namespace/{WormFilePath} | *NetworkApi* | [**create_dnscache_flush_item**](docs/NetworkApi.md#create_dnscache_flush_item) | **POST** /platform/3/network/dnscache/flush | *NetworkApi* | [**create_network_groupnet**](docs/NetworkApi.md#create_network_groupnet) | **POST** /platform/3/network/groupnets | *NetworkApi* | [**create_network_sc_rebalance_all_item**](docs/NetworkApi.md#create_network_sc_rebalance_all_item) | **POST** /platform/3/network/sc-rebalance-all | @@ -734,6 +758,8 @@ Class | Method | HTTP request | Description ## Documentation For Models + - [AccessPointCreateParams](docs/AccessPointCreateParams.md) + - [AclObject](docs/AclObject.md) - [AdsProviderControllers](docs/AdsProviderControllers.md) - [AdsProviderControllersController](docs/AdsProviderControllersController.md) - [AdsProviderDomains](docs/AdsProviderDomains.md) @@ -822,13 +848,11 @@ Class | Method | HTTP request | Description - [ClusterIdentityLogonExtended](docs/ClusterIdentityLogonExtended.md) - [ClusterNode](docs/ClusterNode.md) - [ClusterNodeExtended](docs/ClusterNodeExtended.md) - - [ClusterNodeExtendedExtended](docs/ClusterNodeExtendedExtended.md) - [ClusterNodeHardware](docs/ClusterNodeHardware.md) - [ClusterNodePartitions](docs/ClusterNodePartitions.md) - [ClusterNodeSensors](docs/ClusterNodeSensors.md) - [ClusterNodeState](docs/ClusterNodeState.md) - [ClusterNodeStateExtended](docs/ClusterNodeStateExtended.md) - - [ClusterNodeStateExtendedExtended](docs/ClusterNodeStateExtendedExtended.md) - [ClusterNodeStateServicelight](docs/ClusterNodeStateServicelight.md) - [ClusterNodeStateSmartfail](docs/ClusterNodeStateSmartfail.md) - [ClusterNodeStatus](docs/ClusterNodeStatus.md) @@ -838,7 +862,6 @@ Class | Method | HTTP request | Description - [ClusterNodesError](docs/ClusterNodesError.md) - [ClusterNodesExtended](docs/ClusterNodesExtended.md) - [ClusterNodesExtendedExtended](docs/ClusterNodesExtendedExtended.md) - - [ClusterNodesExtendedExtendedExtended](docs/ClusterNodesExtendedExtendedExtended.md) - [ClusterNodesOnefsVersion](docs/ClusterNodesOnefsVersion.md) - [ClusterOwner](docs/ClusterOwner.md) - [ClusterPatchPatch](docs/ClusterPatchPatch.md) @@ -871,6 +894,8 @@ Class | Method | HTTP request | Description - [CompatibilitiesSsdActiveItem](docs/CompatibilitiesSsdActiveItem.md) - [CompatibilitiesSsdAvailable](docs/CompatibilitiesSsdAvailable.md) - [CompatibilitiesSsdAvailableAvailableItem](docs/CompatibilitiesSsdAvailableAvailableItem.md) + - [CopyErrors](docs/CopyErrors.md) + - [CopyErrorsCopyErrors](docs/CopyErrorsCopyErrors.md) - [CreateAntivirusScanItemResponse](docs/CreateAntivirusScanItemResponse.md) - [CreateAuthRefreshItemResponse](docs/CreateAuthRefreshItemResponse.md) - [CreateCloudAccountResponse](docs/CreateCloudAccountResponse.md) @@ -906,6 +931,9 @@ Class | Method | HTTP request | Description - [DedupeSettings](docs/DedupeSettings.md) - [DedupeSettingsExtended](docs/DedupeSettingsExtended.md) - [DedupeSettingsSettings](docs/DedupeSettingsSettings.md) + - [DirectoryQuery](docs/DirectoryQuery.md) + - [DirectoryQueryScope](docs/DirectoryQueryScope.md) + - [DirectoryQueryScopeConditions](docs/DirectoryQueryScopeConditions.md) - [DrivesDriveFirmware](docs/DrivesDriveFirmware.md) - [DrivesDriveFirmwareNode](docs/DrivesDriveFirmwareNode.md) - [DrivesDriveFirmwareNodeDrive](docs/DrivesDriveFirmwareNodeDrive.md) @@ -923,8 +951,10 @@ Class | Method | HTTP request | Description - [EventCategories](docs/EventCategories.md) - [EventCategory](docs/EventCategory.md) - [EventChannel](docs/EventChannel.md) + - [EventChannelExtendedExtended](docs/EventChannelExtendedExtended.md) - [EventChannelParameters](docs/EventChannelParameters.md) - [EventChannels](docs/EventChannels.md) + - [EventChannelsExtended](docs/EventChannelsExtended.md) - [EventEvent](docs/EventEvent.md) - [EventEventgroupDefinitions](docs/EventEventgroupDefinitions.md) - [EventEventgroupDefinitionsEventgroupDefinition](docs/EventEventgroupDefinitionsEventgroupDefinition.md) @@ -953,6 +983,8 @@ Class | Method | HTTP request | Description - [FilepoolPolicyFileMatchingPattern](docs/FilepoolPolicyFileMatchingPattern.md) - [FilepoolPolicyFileMatchingPatternOrCriteriaItem](docs/FilepoolPolicyFileMatchingPatternOrCriteriaItem.md) - [FilepoolPolicyFileMatchingPatternOrCriteriaItemAndCriteriaItem](docs/FilepoolPolicyFileMatchingPatternOrCriteriaItemAndCriteriaItem.md) + - [FilepoolTemplate](docs/FilepoolTemplate.md) + - [FilepoolTemplateAction](docs/FilepoolTemplateAction.md) - [FilepoolTemplates](docs/FilepoolTemplates.md) - [FsaResult](docs/FsaResult.md) - [FsaResults](docs/FsaResults.md) @@ -1007,8 +1039,6 @@ Class | Method | HTTP request | Description - [JobJobSummarySummary](docs/JobJobSummarySummary.md) - [JobJobs](docs/JobJobs.md) - [JobPolicies](docs/JobPolicies.md) - - [JobPoliciesExtended](docs/JobPoliciesExtended.md) - - [JobPoliciesType](docs/JobPoliciesType.md) - [JobPolicy](docs/JobPolicy.md) - [JobPolicyInterval](docs/JobPolicyInterval.md) - [JobRecent](docs/JobRecent.md) @@ -1050,6 +1080,16 @@ Class | Method | HTTP request | Description - [MappingUsersRulesRuleUser2](docs/MappingUsersRulesRuleUser2.md) - [MappingUsersRulesRules](docs/MappingUsersRulesRules.md) - [MappingUsersRulesRulesParameters](docs/MappingUsersRulesRulesParameters.md) + - [MemberObject](docs/MemberObject.md) + - [NamespaceAccessPoints](docs/NamespaceAccessPoints.md) + - [NamespaceAccessPointsNamespaces](docs/NamespaceAccessPointsNamespaces.md) + - [NamespaceAcl](docs/NamespaceAcl.md) + - [NamespaceMetadata](docs/NamespaceMetadata.md) + - [NamespaceMetadataAttrs](docs/NamespaceMetadataAttrs.md) + - [NamespaceMetadataList](docs/NamespaceMetadataList.md) + - [NamespaceMetadataListAttrs](docs/NamespaceMetadataListAttrs.md) + - [NamespaceObject](docs/NamespaceObject.md) + - [NamespaceObjects](docs/NamespaceObjects.md) - [NdmpContextsBackup](docs/NdmpContextsBackup.md) - [NdmpContextsBackupContext](docs/NdmpContextsBackupContext.md) - [NdmpContextsBackupExtended](docs/NdmpContextsBackupExtended.md) @@ -1076,8 +1116,8 @@ Class | Method | HTTP request | Description - [NdmpSettingsVariablesVariable](docs/NdmpSettingsVariablesVariable.md) - [NdmpSettingsVariablesVariablePathVariable](docs/NdmpSettingsVariablesVariablePathVariable.md) - [NdmpUser](docs/NdmpUser.md) + - [NdmpUserExtended](docs/NdmpUserExtended.md) - [NdmpUsers](docs/NdmpUsers.md) - - [NdmpUsersExtended](docs/NdmpUsersExtended.md) - [NetworkDnscache](docs/NetworkDnscache.md) - [NetworkDnscacheExtended](docs/NetworkDnscacheExtended.md) - [NetworkDnscacheSettings](docs/NetworkDnscacheSettings.md) @@ -1419,8 +1459,10 @@ Class | Method | HTTP request | Description - [UpgradeClusterUpgradeSettings](docs/UpgradeClusterUpgradeSettings.md) - [UserChangePassword](docs/UserChangePassword.md) - [UserMemberOf](docs/UserMemberOf.md) + - [WormCreateParams](docs/WormCreateParams.md) - [WormDomain](docs/WormDomain.md) - [WormDomains](docs/WormDomains.md) + - [WormProperties](docs/WormProperties.md) - [WormSettings](docs/WormSettings.md) - [WormSettingsExtended](docs/WormSettingsExtended.md) - [WormSettingsSettings](docs/WormSettingsSettings.md) @@ -1455,8 +1497,6 @@ Class | Method | HTTP request | Description - [CloudPoolCreateParams](docs/CloudPoolCreateParams.md) - [CloudPoolExtended](docs/CloudPoolExtended.md) - [CloudPoolsExtended](docs/CloudPoolsExtended.md) - - [ClusterNodeStateServicelightExtended](docs/ClusterNodeStateServicelightExtended.md) - - [ClusterNodeStateServicelightExtendedExtended](docs/ClusterNodeStateServicelightExtendedExtended.md) - [ClusterPatchPatchesExtended](docs/ClusterPatchPatchesExtended.md) - [CompatibilitiesClassActiveExtended](docs/CompatibilitiesClassActiveExtended.md) - [CompatibilitiesSsdActiveExtended](docs/CompatibilitiesSsdActiveExtended.md) @@ -1465,7 +1505,6 @@ Class | Method | HTTP request | Description - [EventAlertConditionsExtended](docs/EventAlertConditionsExtended.md) - [EventCategoriesExtended](docs/EventCategoriesExtended.md) - [EventChannelExtended](docs/EventChannelExtended.md) - - [EventChannelsExtended](docs/EventChannelsExtended.md) - [EventEventgroupDefinitionsExtended](docs/EventEventgroupDefinitionsExtended.md) - [EventEventgroupOccurrencesExtended](docs/EventEventgroupOccurrencesExtended.md) - [EventEventlistsExtended](docs/EventEventlistsExtended.md) @@ -1480,13 +1519,18 @@ Class | Method | HTTP request | Description - [HdfsRackExtended](docs/HdfsRackExtended.md) - [HdfsRacksExtended](docs/HdfsRacksExtended.md) - [JobJobsExtended](docs/JobJobsExtended.md) + - [JobPoliciesExtended](docs/JobPoliciesExtended.md) - [JobPolicyCreateParams](docs/JobPolicyCreateParams.md) + - [JobPolicyExtended](docs/JobPolicyExtended.md) - [JobTypeExtended](docs/JobTypeExtended.md) - [JobTypesExtended](docs/JobTypesExtended.md) + - [MappingUsersRulesParametersDefaultUnixUser](docs/MappingUsersRulesParametersDefaultUnixUser.md) - [MappingUsersRulesRuleOptionsDefaultUser](docs/MappingUsersRulesRuleOptionsDefaultUser.md) + - [MappingUsersRulesRuleUser1](docs/MappingUsersRulesRuleUser1.md) - [MappingUsersRulesRuleUser2Extended](docs/MappingUsersRulesRuleUser2Extended.md) - [NdmpSettingsVariableCreateParams](docs/NdmpSettingsVariableCreateParams.md) - [NdmpUserCreateParams](docs/NdmpUserCreateParams.md) + - [NdmpUsersExtended](docs/NdmpUsersExtended.md) - [NetworkGroupnetCreateParams](docs/NetworkGroupnetCreateParams.md) - [NetworkGroupnetExtended](docs/NetworkGroupnetExtended.md) - [NetworkGroupnetsExtended](docs/NetworkGroupnetsExtended.md) diff --git a/docs/AccessPointCreateParams.md b/docs/AccessPointCreateParams.md new file mode 100644 index 00000000..cb99c534 --- /dev/null +++ b/docs/AccessPointCreateParams.md @@ -0,0 +1,10 @@ +# AccessPointCreateParams + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**path** | **str** | Absolute file system path of access point. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/AclObject.md b/docs/AclObject.md new file mode 100644 index 00000000..11e9363e --- /dev/null +++ b/docs/AclObject.md @@ -0,0 +1,14 @@ +# AclObject + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**accessrights** | **list[str]** | | [optional] +**accesstype** | **str** | | [optional] +**inherit_flags** | **list[bool]** | | [optional] +**op** | **str** | | [optional] +**trustee** | [**MemberObject**](MemberObject.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ClusterApi.md b/docs/ClusterApi.md index 7c093baf..ebfe9d8f 100644 --- a/docs/ClusterApi.md +++ b/docs/ClusterApi.md @@ -325,7 +325,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **get_cluster_nodes** -> ClusterNodesExtended get_cluster_nodes() +> ClusterNodes get_cluster_nodes() @@ -359,7 +359,7 @@ This endpoint does not need any parameter. ### Return type -[**ClusterNodesExtended**](ClusterNodesExtended.md) +[**ClusterNodes**](ClusterNodes.md) ### Authorization diff --git a/docs/ClusterNodeStateExtended.md b/docs/ClusterNodeStateExtended.md index 5c3bde47..563664ad 100644 --- a/docs/ClusterNodeStateExtended.md +++ b/docs/ClusterNodeStateExtended.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **readonly** | [**NodeStateReadonlyExtended**](NodeStateReadonlyExtended.md) | Node readonly state. | [optional] -**servicelight** | [**ClusterNodeStateServicelightExtended**](ClusterNodeStateServicelightExtended.md) | Node service light state. | [optional] +**servicelight** | [**NodeStateNodeServicelight**](NodeStateNodeServicelight.md) | Node service light state. | [optional] **smartfail** | [**NodeStateSmartfailExtended**](NodeStateSmartfailExtended.md) | Node smartfail state. | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/ClusterNodesExtended.md b/docs/ClusterNodesExtended.md index 54e0d5fc..b8aff335 100644 --- a/docs/ClusterNodesExtended.md +++ b/docs/ClusterNodesExtended.md @@ -3,8 +3,13 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**nodes** | [**list[ClusterNodeExtendedExtended]**](ClusterNodeExtendedExtended.md) | | [optional] -**total** | **int** | Total number of items available. | [optional] +**error** | [**ClusterNodesError**](ClusterNodesError.md) | The current OneFS version before upgrade. | [optional] +**last_action** | **str** | The last action performed to completion/failure on this node. Null if the node_state is 'committed' or 'assessing.' One of the following values: 'upgrade', 'rollback'. | [optional] +**last_action_result** | **str** | Did the node pass upgrade or rollback without failing? Null if the node_state is 'committed.' One of the following values: 'pass', 'fail', null | [optional] +**lnn** | **int** | The lnn of the node. | [optional] +**node_state** | **str** | The state of the node during the upgrade, rollback, or assessment. One of the following values: 'committed', 'upgraded', 'upgrading', 'rolling back', 'assessing', 'error' | [optional] +**onefs_version** | [**ClusterNodesOnefsVersion**](ClusterNodesOnefsVersion.md) | The current OneFS version before upgrade. | [optional] +**progress** | **int** | What step is the upgrade, assessment, or rollback in? To show via progress indicator. NOTE: the value is an integer between 0 and 100 (percent) | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/ClusterNodesExtendedExtended.md b/docs/ClusterNodesExtendedExtended.md index 97e2ba5b..4052b643 100644 --- a/docs/ClusterNodesExtendedExtended.md +++ b/docs/ClusterNodesExtendedExtended.md @@ -3,13 +3,8 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**error** | [**ClusterNodesError**](ClusterNodesError.md) | The current OneFS version before upgrade. | [optional] -**last_action** | **str** | The last action performed to completion/failure on this node. Null if the node_state is 'committed' or 'assessing.' One of the following values: 'upgrade', 'rollback'. | [optional] -**last_action_result** | **str** | Did the node pass upgrade or rollback without failing? Null if the node_state is 'committed.' One of the following values: 'pass', 'fail', null | [optional] -**lnn** | **int** | The lnn of the node. | [optional] -**node_state** | **str** | The state of the node during the upgrade, rollback, or assessment. One of the following values: 'committed', 'upgraded', 'upgrading', 'rolling back', 'assessing', 'error' | [optional] -**onefs_version** | [**ClusterNodesOnefsVersion**](ClusterNodesOnefsVersion.md) | The current OneFS version before upgrade. | [optional] -**progress** | **int** | What step is the upgrade, assessment, or rollback in? To show via progress indicator. NOTE: the value is an integer between 0 and 100 (percent) | [optional] +**nodes** | [**list[ClusterNodesExtended]**](ClusterNodesExtended.md) | List of detailed info of nodes which are part of the current upgrade | [optional] +**total** | **int** | Total number of nodes the upgrade framework is aware of and was able to collect info for at this point. | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/CopyErrors.md b/docs/CopyErrors.md new file mode 100644 index 00000000..4183934a --- /dev/null +++ b/docs/CopyErrors.md @@ -0,0 +1,10 @@ +# CopyErrors + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**copy_errors** | [**list[CopyErrorsCopyErrors]**](CopyErrorsCopyErrors.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/CopyErrorsCopyErrors.md b/docs/CopyErrorsCopyErrors.md new file mode 100644 index 00000000..6d5bc98e --- /dev/null +++ b/docs/CopyErrorsCopyErrors.md @@ -0,0 +1,13 @@ +# CopyErrorsCopyErrors + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**error_src** | **str** | | [optional] +**message** | **str** | | [optional] +**source** | **str** | | [optional] +**target** | **str** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/DirectoryQuery.md b/docs/DirectoryQuery.md new file mode 100644 index 00000000..a778d901 --- /dev/null +++ b/docs/DirectoryQuery.md @@ -0,0 +1,11 @@ +# DirectoryQuery + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**result** | **list[str]** | | [optional] +**scope** | [**DirectoryQueryScope**](DirectoryQueryScope.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/DirectoryQueryScope.md b/docs/DirectoryQueryScope.md new file mode 100644 index 00000000..12df2667 --- /dev/null +++ b/docs/DirectoryQueryScope.md @@ -0,0 +1,11 @@ +# DirectoryQueryScope + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**conditions** | [**list[DirectoryQueryScopeConditions]**](DirectoryQueryScopeConditions.md) | | [optional] +**logic** | **str** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/DirectoryQueryScopeConditions.md b/docs/DirectoryQueryScopeConditions.md new file mode 100644 index 00000000..b5c4528c --- /dev/null +++ b/docs/DirectoryQueryScopeConditions.md @@ -0,0 +1,12 @@ +# DirectoryQueryScopeConditions + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**attr** | **str** | | [optional] +**operator** | **str** | | [optional] +**value** | **str** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/EventChannelExtendedExtended.md b/docs/EventChannelExtendedExtended.md new file mode 100644 index 00000000..fafc8e17 --- /dev/null +++ b/docs/EventChannelExtendedExtended.md @@ -0,0 +1,17 @@ +# EventChannelExtendedExtended + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**allowed_nodes** | **list[int]** | Nodes that can be masters for this channel | [optional] +**enabled** | **bool** | Channel is to be used or not | [optional] +**excluded_nodes** | **list[int]** | Nodes that can be masters for this channel | [optional] +**id** | **int** | Unique identifier. | [optional] +**name** | **str** | Channel name, may not contain /, max length 254. | [optional] +**parameters** | [**EventChannelParameters**](EventChannelParameters.md) | Parameters to be used for an smtp channel | [optional] +**system** | **bool** | Channel is a pre-defined system channel | [optional] +**type** | **str** | The mechanism used by the channel | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/EventChannelsExtended.md b/docs/EventChannelsExtended.md index 16e42d70..74def181 100644 --- a/docs/EventChannelsExtended.md +++ b/docs/EventChannelsExtended.md @@ -3,7 +3,7 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**channels** | [**list[EventChannelExtended]**](EventChannelExtended.md) | | [optional] +**channels** | [**list[EventChannelExtendedExtended]**](EventChannelExtendedExtended.md) | | [optional] **resume** | **str** | Continue returning results from previous call using this token (token should come from the previous call, resume cannot be used with other options). | [optional] **total** | **int** | Total number of items available. | [optional] diff --git a/docs/FilepoolTemplate.md b/docs/FilepoolTemplate.md index e856f685..7aef01d6 100644 --- a/docs/FilepoolTemplate.md +++ b/docs/FilepoolTemplate.md @@ -3,7 +3,7 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**actions** | [**list[FilepoolDefaultPolicyDefaultPolicyAction]**](FilepoolDefaultPolicyDefaultPolicyAction.md) | A list of actions to be taken for matching files | [optional] +**actions** | [**list[FilepoolTemplateAction]**](FilepoolTemplateAction.md) | A list of actions to be taken for matching files | [optional] **apply_order** | **int** | The order in which this policy should be applied (relative to other policies) | [optional] **birth_cluster_id** | **str** | The guid assigned to the cluster on which the account was created | [optional] **description** | **str** | A description for this policy | [optional] diff --git a/docs/FilepoolTemplateAction.md b/docs/FilepoolTemplateAction.md new file mode 100644 index 00000000..c21db7f7 --- /dev/null +++ b/docs/FilepoolTemplateAction.md @@ -0,0 +1,11 @@ +# FilepoolTemplateAction + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**action_param** | **str** | Varies according to action_type | [optional] +**action_type** | **str** | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/FilepoolTemplates.md b/docs/FilepoolTemplates.md index 12d42b52..248b401a 100644 --- a/docs/FilepoolTemplates.md +++ b/docs/FilepoolTemplates.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **resume** | **str** | Continue returning results from previous call using this token (token should come from the previous call, resume cannot be used with other options). | [optional] -**templates** | [**list[FilepoolPolicyExtendedExtended]**](FilepoolPolicyExtendedExtended.md) | | [optional] +**templates** | [**list[FilepoolTemplate]**](FilepoolTemplate.md) | | [optional] **total** | **int** | Total number of items available. | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/JobEvent.md b/docs/JobEvent.md index 9ed19c16..f357359e 100644 --- a/docs/JobEvent.md +++ b/docs/JobEvent.md @@ -4,11 +4,13 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **flags** | **str** | Event flags. | +**fmt_type** | **str** | | [optional] **id** | **str** | Job event ID. | **job_id** | **int** | Job ID. | **job_type** | **str** | Job Type. | **key** | **str** | Event key name. | **phase** | **int** | Job phase number at time of event. | +**raw_type** | **str** | | [optional] **time** | **int** | Time of event in Unix epoch seconds. | **value** | **str** | Event value. | diff --git a/docs/JobJobCreateParams.md b/docs/JobJobCreateParams.md index fee313d5..67263607 100644 --- a/docs/JobJobCreateParams.md +++ b/docs/JobJobCreateParams.md @@ -7,7 +7,7 @@ Name | Type | Description | Notes **avscan_params** | [**JobJobAvscanParams**](JobJobAvscanParams.md) | | [optional] **changelistcreate_params** | [**JobJobChangelistcreateParams**](JobJobChangelistcreateParams.md) | | [optional] **domainmark_params** | [**JobJobDomainmarkParams**](JobJobDomainmarkParams.md) | | [optional] -**paths** | **list[str]** | For jobs which take paths, the IFS paths to pass to the job. | +**paths** | **list[str]** | For jobs which take paths, the IFS paths to pass to the job. | [optional] **policy** | **str** | Impact policy of this job instance. | [optional] **prepair_params** | [**JobJobPrepairParams**](JobJobPrepairParams.md) | | [optional] **priority** | **int** | Priority of this job instance; lower numbers preempt higher numbers. | [optional] diff --git a/docs/JobJobExtended.md b/docs/JobJobExtended.md index 4a5a6f2d..0e06069a 100644 --- a/docs/JobJobExtended.md +++ b/docs/JobJobExtended.md @@ -10,8 +10,8 @@ Name | Type | Description | Notes **end_time** | **int** | The time the job ended, in seconds since the Epoch. | [optional] **id** | **int** | The ID of the job. | **impact** | **str** | The current impact of the job. | -**participants** | **list[int]** | The set of devids working on the job. | -**paths** | **list[str]** | Paths for which the job was queued. | +**participants** | **list[int]** | The set of devids working on the job. | [optional] +**paths** | **list[str]** | Paths for which the job was queued. | [optional] **policy** | **str** | Current impact policy of the job. | **priority** | **int** | Current priority of the job; lower numbers preempt higher numbers. | **progress** | **str** | A text representation of the job's progress. | [optional] diff --git a/docs/JobJobSummarySummary.md b/docs/JobJobSummarySummary.md index 55c0ae45..8b6d4d37 100644 --- a/docs/JobJobSummarySummary.md +++ b/docs/JobJobSummarySummary.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes **cluster_is_degraded** | **bool** | Whether the cluster is in a degraded state. Note this is from the perspective of the node handling the query, which might be different from another node. | **connected** | **bool** | Whether isi_job_d instances on all up nodes in the cluster are connected to the coordinator. | **coordinator** | **int** | The devid of the job engine coordinator. | -**disconnected_nodes** | **list[int]** | If connected=false, this is the set of devids that are not connected to the coordinator. | +**disconnected_nodes** | **list[int]** | If connected=false, this is the set of devids that are not connected to the coordinator. | [optional] **down_or_read_only_nodes** | **bool** | Whether the cluster has any down or read-only nodes. These nodes are not considered in the connected property. | **next_jid** | **int** | The job ID to be assigned to the next job. | **run_degraded** | **bool** | Whether the job engine would allow most jobs to run even when the cluster is in a degraded state. | diff --git a/docs/JobPolicies.md b/docs/JobPolicies.md index aa2d3478..b8dd78e1 100644 --- a/docs/JobPolicies.md +++ b/docs/JobPolicies.md @@ -3,7 +3,7 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**types** | [**list[JobPoliciesType]**](JobPoliciesType.md) | | [optional] +**policies** | [**list[JobPolicyExtended]**](JobPolicyExtended.md) | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/JobPoliciesExtended.md b/docs/JobPoliciesExtended.md index 56758862..d5c892c2 100644 --- a/docs/JobPoliciesExtended.md +++ b/docs/JobPoliciesExtended.md @@ -3,7 +3,7 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**policies** | [**list[JobPoliciesType]**](JobPoliciesType.md) | | [optional] +**policies** | [**list[JobPolicyExtended]**](JobPolicyExtended.md) | | [optional] **resume** | **str** | Continue returning results from previous call using this token (token should come from the previous call, resume cannot be used with other options). | [optional] **total** | **int** | Total number of items available. | [optional] diff --git a/docs/JobPolicyExtended.md b/docs/JobPolicyExtended.md new file mode 100644 index 00000000..269b63ea --- /dev/null +++ b/docs/JobPolicyExtended.md @@ -0,0 +1,14 @@ +# JobPolicyExtended + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**description** | **str** | A helpful human-readable description of the impact policy. | +**intervals** | [**list[JobPolicyInterval]**](JobPolicyInterval.md) | | +**id** | **str** | The ID of the impact policy. | +**name** | **str** | The name of the impact policy. | +**system** | **bool** | Whether or not this is a read-only system impact policy. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/MappingUsersRulesParameters.md b/docs/MappingUsersRulesParameters.md index 9eb15537..185b506a 100644 --- a/docs/MappingUsersRulesParameters.md +++ b/docs/MappingUsersRulesParameters.md @@ -3,7 +3,7 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**default_unix_user** | [**MappingUsersRulesRuleOptionsDefaultUser**](MappingUsersRulesRuleOptionsDefaultUser.md) | | [optional] +**default_unix_user** | [**MappingUsersRulesParametersDefaultUnixUser**](MappingUsersRulesParametersDefaultUnixUser.md) | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/MappingUsersRulesParametersDefaultUnixUser.md b/docs/MappingUsersRulesParametersDefaultUnixUser.md new file mode 100644 index 00000000..2073cb14 --- /dev/null +++ b/docs/MappingUsersRulesParametersDefaultUnixUser.md @@ -0,0 +1,11 @@ +# MappingUsersRulesParametersDefaultUnixUser + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**domain** | **str** | Specifies the domain of the user that is being mapped. | [optional] +**user** | **str** | Specifies the name of the user that is being mapped. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/MappingUsersRulesRuleExtended.md b/docs/MappingUsersRulesRuleExtended.md index 0d7b910e..81c806b7 100644 --- a/docs/MappingUsersRulesRuleExtended.md +++ b/docs/MappingUsersRulesRuleExtended.md @@ -5,7 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **operator** | **str** | Specifies the operator to make rules on specified users or groups. | [optional] **options** | [**MappingUsersRulesRuleOptionsExtended**](MappingUsersRulesRuleOptionsExtended.md) | Specifies the properties for user mapping rules. | [optional] -**user1** | [**MappingUsersRulesRuleOptionsDefaultUser**](MappingUsersRulesRuleOptionsDefaultUser.md) | | +**user1** | [**MappingUsersRulesRuleUser1**](MappingUsersRulesRuleUser1.md) | | **user2** | [**MappingUsersRulesRuleUser2Extended**](MappingUsersRulesRuleUser2Extended.md) | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/MappingUsersRulesRuleUser1.md b/docs/MappingUsersRulesRuleUser1.md new file mode 100644 index 00000000..cc192e58 --- /dev/null +++ b/docs/MappingUsersRulesRuleUser1.md @@ -0,0 +1,11 @@ +# MappingUsersRulesRuleUser1 + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**domain** | **str** | Specifies the domain of the user that is being mapped. | [optional] +**user** | **str** | Specifies the name of the user that is being mapped. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/MemberObject.md b/docs/MemberObject.md new file mode 100644 index 00000000..d1e1531b --- /dev/null +++ b/docs/MemberObject.md @@ -0,0 +1,12 @@ +# MemberObject + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **str** | | [optional] +**name** | **str** | | [optional] +**type** | **str** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/NamespaceAccessPoints.md b/docs/NamespaceAccessPoints.md new file mode 100644 index 00000000..2db38564 --- /dev/null +++ b/docs/NamespaceAccessPoints.md @@ -0,0 +1,11 @@ +# NamespaceAccessPoints + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**namespaces** | [**list[NamespaceAccessPointsNamespaces]**](NamespaceAccessPointsNamespaces.md) | | [optional] +**versions** | **list[str]** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/NamespaceAccessPointsNamespaces.md b/docs/NamespaceAccessPointsNamespaces.md new file mode 100644 index 00000000..f90b46f3 --- /dev/null +++ b/docs/NamespaceAccessPointsNamespaces.md @@ -0,0 +1,11 @@ +# NamespaceAccessPointsNamespaces + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**name** | **str** | | [optional] +**path** | **str** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/NamespaceAcl.md b/docs/NamespaceAcl.md new file mode 100644 index 00000000..3d9a47c4 --- /dev/null +++ b/docs/NamespaceAcl.md @@ -0,0 +1,14 @@ +# NamespaceAcl + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**acl** | [**list[AclObject]**](AclObject.md) | Provides the JSON array of access rights. | [optional] +**authoritative** | **str** | If the directory has access rights set, then this field is returned as acl. If the directory has POSIX permissions set, then this field is returned as mode. | [optional] +**group** | [**MemberObject**](MemberObject.md) | Provides the JSON object for the group persona of the owner. | [optional] +**mode** | **str** | Provides the POSIX mode. | [optional] +**owner** | [**MemberObject**](MemberObject.md) | Provides the JSON object for the owner persona. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/NamespaceApi.md b/docs/NamespaceApi.md new file mode 100644 index 00000000..a2d737fa --- /dev/null +++ b/docs/NamespaceApi.md @@ -0,0 +1,1392 @@ +# isi_sdk_8_0.NamespaceApi + +All URIs are relative to *https://YOUR_CLUSTER_HOSTNAME_OR_NODE_IP:8080* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**copy_directory**](NamespaceApi.md#copy_directory) | **PUT** /namespace/{DirectoryCopyTarget} | +[**copy_file**](NamespaceApi.md#copy_file) | **PUT** /namespace/{FileCopyTarget} | +[**create_access_point**](NamespaceApi.md#create_access_point) | **PUT** /namespace/{AccessPointName} | +[**create_directory**](NamespaceApi.md#create_directory) | **PUT** /namespace/{DirectoryPath} | +[**create_file**](NamespaceApi.md#create_file) | **PUT** /namespace/{FilePath} | +[**delete_access_point**](NamespaceApi.md#delete_access_point) | **DELETE** /namespace/{AccessPointName} | +[**delete_directory**](NamespaceApi.md#delete_directory) | **DELETE** /namespace/{DirectoryPath} | +[**delete_file**](NamespaceApi.md#delete_file) | **DELETE** /namespace/{FilePath} | +[**get_acl**](NamespaceApi.md#get_acl) | **GET** /namespace/{NamespacePath} | +[**get_directory_attributes**](NamespaceApi.md#get_directory_attributes) | **HEAD** /namespace/{DirectoryPath} | +[**get_directory_contents**](NamespaceApi.md#get_directory_contents) | **GET** /namespace/{DirectoryPath} | +[**get_directory_metadata**](NamespaceApi.md#get_directory_metadata) | **GET** /namespace/{DirectoryMetadataPath} | +[**get_file_attributes**](NamespaceApi.md#get_file_attributes) | **HEAD** /namespace/{FilePath} | +[**get_file_contents**](NamespaceApi.md#get_file_contents) | **GET** /namespace/{FilePath} | +[**get_file_metadata**](NamespaceApi.md#get_file_metadata) | **GET** /namespace/{FileMetadataPath} | +[**get_worm_properties**](NamespaceApi.md#get_worm_properties) | **GET** /namespace/{WormFilePath} | +[**list_access_points**](NamespaceApi.md#list_access_points) | **GET** /namespace | +[**move_directory**](NamespaceApi.md#move_directory) | **POST** /namespace/{DirectoryPath} | +[**move_file**](NamespaceApi.md#move_file) | **POST** /namespace/{FilePath} | +[**query_directory**](NamespaceApi.md#query_directory) | **POST** /namespace/{QueryPath} | +[**set_acl**](NamespaceApi.md#set_acl) | **PUT** /namespace/{NamespacePath} | +[**set_directory_metadata**](NamespaceApi.md#set_directory_metadata) | **PUT** /namespace/{DirectoryMetadataPath} | +[**set_file_metadata**](NamespaceApi.md#set_file_metadata) | **PUT** /namespace/{FileMetadataPath} | +[**set_worm_properties**](NamespaceApi.md#set_worm_properties) | **PUT** /namespace/{WormFilePath} | + + +# **copy_directory** +> CopyErrors copy_directory(directory_copy_target, x_isi_ifs_copy_source, overwrite=overwrite, merge=merge, _continue=_continue) + + + +Recursively copies a directory to a specified destination path. Symbolic links are copied as regular files. + +### Example +```python +from __future__ import print_function +import time +import isi_sdk_8_0 +from isi_sdk_8_0.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basicAuth +configuration = isi_sdk_8_0.Configuration() +configuration.username = 'YOUR_USERNAME' +configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk_8_0.NamespaceApi(isi_sdk_8_0.ApiClient(configuration)) +directory_copy_target = 'directory_copy_target_example' # str | Directory copy destination relative to /. +x_isi_ifs_copy_source = 'x_isi_ifs_copy_source_example' # str | Specifies the full path to the source directory. +overwrite = true # bool | Deletes and replaces the existing user attributes and ACLs of the directory with user-specified attributes and ACLS from the header, when set to true. (optional) +merge = true # bool | Specifies if the contents of a directory should be merged with an existing directory with the same name. (optional) +_continue = true # bool | Specifies whether to continue the copy operation on remaining objects when there is a conflict or error. (optional) + +try: + api_response = api_instance.copy_directory(directory_copy_target, x_isi_ifs_copy_source, overwrite=overwrite, merge=merge, _continue=_continue) + pprint(api_response) +except ApiException as e: + print("Exception when calling NamespaceApi->copy_directory: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **directory_copy_target** | **str**| Directory copy destination relative to /. | + **x_isi_ifs_copy_source** | **str**| Specifies the full path to the source directory. | + **overwrite** | **bool**| Deletes and replaces the existing user attributes and ACLs of the directory with user-specified attributes and ACLS from the header, when set to true. | [optional] + **merge** | **bool**| Specifies if the contents of a directory should be merged with an existing directory with the same name. | [optional] + **_continue** | **bool**| Specifies whether to continue the copy operation on remaining objects when there is a conflict or error. | [optional] + +### Return type + +[**CopyErrors**](CopyErrors.md) + +### Authorization + +[basicAuth](../README.md#basicAuth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **copy_file** +> CopyErrors copy_file(file_copy_target, x_isi_ifs_copy_source, clone=clone, snapshot=snapshot, overwrite=overwrite) + + + +Copies a file to the specified destination path. + +### Example +```python +from __future__ import print_function +import time +import isi_sdk_8_0 +from isi_sdk_8_0.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basicAuth +configuration = isi_sdk_8_0.Configuration() +configuration.username = 'YOUR_USERNAME' +configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk_8_0.NamespaceApi(isi_sdk_8_0.ApiClient(configuration)) +file_copy_target = 'file_copy_target_example' # str | File copy destination relative to /. +x_isi_ifs_copy_source = 'x_isi_ifs_copy_source_example' # str | Specifies the full path to the source file. +clone = true # bool | You must set this parameter to true in order to clone a file. (optional) +snapshot = 'snapshot_example' # str | Specifies a snapshot name to clone the file from. (optional) +overwrite = true # bool | Specifies if an existing file should be overwritten by a new file with the same name. (optional) + +try: + api_response = api_instance.copy_file(file_copy_target, x_isi_ifs_copy_source, clone=clone, snapshot=snapshot, overwrite=overwrite) + pprint(api_response) +except ApiException as e: + print("Exception when calling NamespaceApi->copy_file: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **file_copy_target** | **str**| File copy destination relative to /. | + **x_isi_ifs_copy_source** | **str**| Specifies the full path to the source file. | + **clone** | **bool**| You must set this parameter to true in order to clone a file. | [optional] + **snapshot** | **str**| Specifies a snapshot name to clone the file from. | [optional] + **overwrite** | **bool**| Specifies if an existing file should be overwritten by a new file with the same name. | [optional] + +### Return type + +[**CopyErrors**](CopyErrors.md) + +### Authorization + +[basicAuth](../README.md#basicAuth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **create_access_point** +> Empty create_access_point(access_point_name, access_point) + + + +Creates a namespace access point in the file system. Only root users can create or change namespace access points. + +### Example +```python +from __future__ import print_function +import time +import isi_sdk_8_0 +from isi_sdk_8_0.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basicAuth +configuration = isi_sdk_8_0.Configuration() +configuration.username = 'YOUR_USERNAME' +configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk_8_0.NamespaceApi(isi_sdk_8_0.ApiClient(configuration)) +access_point_name = 'access_point_name_example' # str | Access point name. +access_point = isi_sdk_8_0.AccessPointCreateParams() # AccessPointCreateParams | Access point parameters model. + +try: + api_response = api_instance.create_access_point(access_point_name, access_point) + pprint(api_response) +except ApiException as e: + print("Exception when calling NamespaceApi->create_access_point: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **access_point_name** | **str**| Access point name. | + **access_point** | [**AccessPointCreateParams**](AccessPointCreateParams.md)| Access point parameters model. | + +### Return type + +[**Empty**](Empty.md) + +### Authorization + +[basicAuth](../README.md#basicAuth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **create_directory** +> Empty create_directory(directory_path, x_isi_ifs_target_type, x_isi_ifs_access_control=x_isi_ifs_access_control, x_isi_ifs_node_pool_name=x_isi_ifs_node_pool_name, recursive=recursive, overwrite=overwrite) + + + +Creates a directory with a specified path. + +### Example +```python +from __future__ import print_function +import time +import isi_sdk_8_0 +from isi_sdk_8_0.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basicAuth +configuration = isi_sdk_8_0.Configuration() +configuration.username = 'YOUR_USERNAME' +configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk_8_0.NamespaceApi(isi_sdk_8_0.ApiClient(configuration)) +directory_path = 'directory_path_example' # str | Directory path relative to /. +x_isi_ifs_target_type = 'container' # str | Specifies the resource type. (default to container) +x_isi_ifs_access_control = '0700' # str | Specifies a pre-defined ACL value or POSIX mode with a string in octal string format. (optional) (default to 0700) +x_isi_ifs_node_pool_name = 'x_isi_ifs_node_pool_name_example' # str | Specifies a pre-defined ACL value or POSIX mode with a string. (optional) +recursive = true # bool | Specifies the OneFS node pool name. (optional) +overwrite = true # bool | Deletes and replaces the existing user attributes and ACLs of the directory with user-specified attributes and ACLS from the header, when set to true. (optional) + +try: + api_response = api_instance.create_directory(directory_path, x_isi_ifs_target_type, x_isi_ifs_access_control=x_isi_ifs_access_control, x_isi_ifs_node_pool_name=x_isi_ifs_node_pool_name, recursive=recursive, overwrite=overwrite) + pprint(api_response) +except ApiException as e: + print("Exception when calling NamespaceApi->create_directory: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **directory_path** | **str**| Directory path relative to /. | + **x_isi_ifs_target_type** | **str**| Specifies the resource type. | [default to container] + **x_isi_ifs_access_control** | **str**| Specifies a pre-defined ACL value or POSIX mode with a string in octal string format. | [optional] [default to 0700] + **x_isi_ifs_node_pool_name** | **str**| Specifies a pre-defined ACL value or POSIX mode with a string. | [optional] + **recursive** | **bool**| Specifies the OneFS node pool name. | [optional] + **overwrite** | **bool**| Deletes and replaces the existing user attributes and ACLs of the directory with user-specified attributes and ACLS from the header, when set to true. | [optional] + +### Return type + +[**Empty**](Empty.md) + +### Authorization + +[basicAuth](../README.md#basicAuth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **create_file** +> Empty create_file(file_path, x_isi_ifs_target_type, file_contents, x_isi_ifs_access_control=x_isi_ifs_access_control, content_encoding=content_encoding, content_type=content_type, overwrite=overwrite) + + + +Creates a file object with a given path. Note that file streaming is not supported. + +### Example +```python +from __future__ import print_function +import time +import isi_sdk_8_0 +from isi_sdk_8_0.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basicAuth +configuration = isi_sdk_8_0.Configuration() +configuration.username = 'YOUR_USERNAME' +configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk_8_0.NamespaceApi(isi_sdk_8_0.ApiClient(configuration)) +file_path = 'file_path_example' # str | File path relative to /. +x_isi_ifs_target_type = 'object' # str | Specifies the resource type. (default to object) +file_contents = 'file_contents_example' # str | The contents of the file object. +x_isi_ifs_access_control = '0600' # str | Specifies a pre-defined ACL value or POSIX mode with a string in octal string format. (optional) (default to 0600) +content_encoding = 'content_encoding_example' # str | Specifies the content encoding that was applied to the object content, so that decoding can be applied when retrieving the content. (optional) +content_type = 'binary/octet-stream' # str | Specifies a standard MIME-type description of the content format. (optional) (default to binary/octet-stream) +overwrite = true # bool | Deletes and replaces the existing user attributes and ACLs of the directory with user-specified attributes and ACLS from the header, when set to true. (optional) + +try: + api_response = api_instance.create_file(file_path, x_isi_ifs_target_type, file_contents, x_isi_ifs_access_control=x_isi_ifs_access_control, content_encoding=content_encoding, content_type=content_type, overwrite=overwrite) + pprint(api_response) +except ApiException as e: + print("Exception when calling NamespaceApi->create_file: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **file_path** | **str**| File path relative to /. | + **x_isi_ifs_target_type** | **str**| Specifies the resource type. | [default to object] + **file_contents** | **str**| The contents of the file object. | + **x_isi_ifs_access_control** | **str**| Specifies a pre-defined ACL value or POSIX mode with a string in octal string format. | [optional] [default to 0600] + **content_encoding** | **str**| Specifies the content encoding that was applied to the object content, so that decoding can be applied when retrieving the content. | [optional] + **content_type** | **str**| Specifies a standard MIME-type description of the content format. | [optional] [default to binary/octet-stream] + **overwrite** | **bool**| Deletes and replaces the existing user attributes and ACLs of the directory with user-specified attributes and ACLS from the header, when set to true. | [optional] + +### Return type + +[**Empty**](Empty.md) + +### Authorization + +[basicAuth](../README.md#basicAuth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **delete_access_point** +> Empty delete_access_point(access_point_name) + + + +Deletes a namespace access point. Only root users can delete namespace access points. + +### Example +```python +from __future__ import print_function +import time +import isi_sdk_8_0 +from isi_sdk_8_0.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basicAuth +configuration = isi_sdk_8_0.Configuration() +configuration.username = 'YOUR_USERNAME' +configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk_8_0.NamespaceApi(isi_sdk_8_0.ApiClient(configuration)) +access_point_name = 'access_point_name_example' # str | Access point name. + +try: + api_response = api_instance.delete_access_point(access_point_name) + pprint(api_response) +except ApiException as e: + print("Exception when calling NamespaceApi->delete_access_point: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **access_point_name** | **str**| Access point name. | + +### Return type + +[**Empty**](Empty.md) + +### Authorization + +[basicAuth](../README.md#basicAuth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **delete_directory** +> Empty delete_directory(directory_path, recursive=recursive) + + + +Deletes the directory at the specified path. + +### Example +```python +from __future__ import print_function +import time +import isi_sdk_8_0 +from isi_sdk_8_0.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basicAuth +configuration = isi_sdk_8_0.Configuration() +configuration.username = 'YOUR_USERNAME' +configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk_8_0.NamespaceApi(isi_sdk_8_0.ApiClient(configuration)) +directory_path = 'directory_path_example' # str | Directory path relative to /. +recursive = true # bool | Deletes directories recursively, when set to true. (optional) + +try: + api_response = api_instance.delete_directory(directory_path, recursive=recursive) + pprint(api_response) +except ApiException as e: + print("Exception when calling NamespaceApi->delete_directory: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **directory_path** | **str**| Directory path relative to /. | + **recursive** | **bool**| Deletes directories recursively, when set to true. | [optional] + +### Return type + +[**Empty**](Empty.md) + +### Authorization + +[basicAuth](../README.md#basicAuth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **delete_file** +> Empty delete_file(file_path) + + + +Deletes the specified file. + +### Example +```python +from __future__ import print_function +import time +import isi_sdk_8_0 +from isi_sdk_8_0.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basicAuth +configuration = isi_sdk_8_0.Configuration() +configuration.username = 'YOUR_USERNAME' +configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk_8_0.NamespaceApi(isi_sdk_8_0.ApiClient(configuration)) +file_path = 'file_path_example' # str | File path relative to /. + +try: + api_response = api_instance.delete_file(file_path) + pprint(api_response) +except ApiException as e: + print("Exception when calling NamespaceApi->delete_file: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **file_path** | **str**| File path relative to /. | + +### Return type + +[**Empty**](Empty.md) + +### Authorization + +[basicAuth](../README.md#basicAuth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_acl** +> NamespaceAcl get_acl(namespace_path, acl, nsaccess=nsaccess) + + + +Retrieves the access control list for a namespace object. + +### Example +```python +from __future__ import print_function +import time +import isi_sdk_8_0 +from isi_sdk_8_0.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basicAuth +configuration = isi_sdk_8_0.Configuration() +configuration.username = 'YOUR_USERNAME' +configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk_8_0.NamespaceApi(isi_sdk_8_0.ApiClient(configuration)) +namespace_path = 'namespace_path_example' # str | Namespace path relative to /. +acl = true # bool | Show access control lists. +nsaccess = true # bool | Indicates that the operation is on the access point instead of the store path. (optional) + +try: + api_response = api_instance.get_acl(namespace_path, acl, nsaccess=nsaccess) + pprint(api_response) +except ApiException as e: + print("Exception when calling NamespaceApi->get_acl: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **namespace_path** | **str**| Namespace path relative to /. | + **acl** | **bool**| Show access control lists. | + **nsaccess** | **bool**| Indicates that the operation is on the access point instead of the store path. | [optional] + +### Return type + +[**NamespaceAcl**](NamespaceAcl.md) + +### Authorization + +[basicAuth](../README.md#basicAuth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_directory_attributes** +> Empty get_directory_attributes(directory_path, if_modified_since=if_modified_since, if_unmodified_since=if_unmodified_since) + + + +Retrieves the attribute information for a specified directory without transferring the contents of the directory. + +### Example +```python +from __future__ import print_function +import time +import isi_sdk_8_0 +from isi_sdk_8_0.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basicAuth +configuration = isi_sdk_8_0.Configuration() +configuration.username = 'YOUR_USERNAME' +configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk_8_0.NamespaceApi(isi_sdk_8_0.ApiClient(configuration)) +directory_path = 'directory_path_example' # str | Directory path relative to /. +if_modified_since = 'if_modified_since_example' # str | Returns only files that were modified since the specified time. If no files were modified since this time, a 304 message is returned. (optional) +if_unmodified_since = 'if_unmodified_since_example' # str | Returns only files that were not modified since the specified time. If there are no unmodified files since this time, a 412 message is returned to indicate that the precondition failed. (optional) + +try: + api_response = api_instance.get_directory_attributes(directory_path, if_modified_since=if_modified_since, if_unmodified_since=if_unmodified_since) + pprint(api_response) +except ApiException as e: + print("Exception when calling NamespaceApi->get_directory_attributes: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **directory_path** | **str**| Directory path relative to /. | + **if_modified_since** | **str**| Returns only files that were modified since the specified time. If no files were modified since this time, a 304 message is returned. | [optional] + **if_unmodified_since** | **str**| Returns only files that were not modified since the specified time. If there are no unmodified files since this time, a 412 message is returned to indicate that the precondition failed. | [optional] + +### Return type + +[**Empty**](Empty.md) + +### Authorization + +[basicAuth](../README.md#basicAuth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_directory_contents** +> NamespaceObjects get_directory_contents(directory_path, detail=detail, limit=limit, resume=resume, sort=sort, dir=dir, type=type, hidden=hidden) + + + +Retrieves a list of files and subdirectories from a directory. + +### Example +```python +from __future__ import print_function +import time +import isi_sdk_8_0 +from isi_sdk_8_0.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basicAuth +configuration = isi_sdk_8_0.Configuration() +configuration.username = 'YOUR_USERNAME' +configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk_8_0.NamespaceApi(isi_sdk_8_0.ApiClient(configuration)) +directory_path = 'directory_path_example' # str | Directory path relative to /. +detail = 'detail_example' # str | Specifies which object attributes are displayed. (optional) +limit = 56 # int | Specifies the maximum number of objects to send to the client. (optional) +resume = 'resume_example' # str | Specifies a token to return in the JSON result to indicate when there is a next page. (optional) +sort = 'sort_example' # str | Specifies one or more attributes to sort on the directory entries. (optional) +dir = 'dir_example' # str | Specifies the sort direction. This value can be either ascending (ASC) or descending (DESC). (optional) +type = 'type_example' # str | Specifies the object type to return, which can be one of the following values: container, object, pipe, character_device, block_device, symbolic_link, socket, or whiteout_file. (optional) +hidden = true # bool | Specifies if hidden objects are returned. (optional) + +try: + api_response = api_instance.get_directory_contents(directory_path, detail=detail, limit=limit, resume=resume, sort=sort, dir=dir, type=type, hidden=hidden) + pprint(api_response) +except ApiException as e: + print("Exception when calling NamespaceApi->get_directory_contents: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **directory_path** | **str**| Directory path relative to /. | + **detail** | **str**| Specifies which object attributes are displayed. | [optional] + **limit** | **int**| Specifies the maximum number of objects to send to the client. | [optional] + **resume** | **str**| Specifies a token to return in the JSON result to indicate when there is a next page. | [optional] + **sort** | **str**| Specifies one or more attributes to sort on the directory entries. | [optional] + **dir** | **str**| Specifies the sort direction. This value can be either ascending (ASC) or descending (DESC). | [optional] + **type** | **str**| Specifies the object type to return, which can be one of the following values: container, object, pipe, character_device, block_device, symbolic_link, socket, or whiteout_file. | [optional] + **hidden** | **bool**| Specifies if hidden objects are returned. | [optional] + +### Return type + +[**NamespaceObjects**](NamespaceObjects.md) + +### Authorization + +[basicAuth](../README.md#basicAuth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_directory_metadata** +> NamespaceMetadataList get_directory_metadata(directory_metadata_path, metadata) + + + +Retrieves the attribute information for a specified directory with the metadata query argument. + +### Example +```python +from __future__ import print_function +import time +import isi_sdk_8_0 +from isi_sdk_8_0.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basicAuth +configuration = isi_sdk_8_0.Configuration() +configuration.username = 'YOUR_USERNAME' +configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk_8_0.NamespaceApi(isi_sdk_8_0.ApiClient(configuration)) +directory_metadata_path = 'directory_metadata_path_example' # str | Directory path relative to /. +metadata = true # bool | Show directory metadata. + +try: + api_response = api_instance.get_directory_metadata(directory_metadata_path, metadata) + pprint(api_response) +except ApiException as e: + print("Exception when calling NamespaceApi->get_directory_metadata: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **directory_metadata_path** | **str**| Directory path relative to /. | + **metadata** | **bool**| Show directory metadata. | + +### Return type + +[**NamespaceMetadataList**](NamespaceMetadataList.md) + +### Authorization + +[basicAuth](../README.md#basicAuth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_file_attributes** +> Empty get_file_attributes(file_path, if_modified_since=if_modified_since, if_unmodified_since=if_unmodified_since) + + + +Retrieves the attribute information for a specified file. + +### Example +```python +from __future__ import print_function +import time +import isi_sdk_8_0 +from isi_sdk_8_0.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basicAuth +configuration = isi_sdk_8_0.Configuration() +configuration.username = 'YOUR_USERNAME' +configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk_8_0.NamespaceApi(isi_sdk_8_0.ApiClient(configuration)) +file_path = 'file_path_example' # str | File path relative to /. +if_modified_since = 'if_modified_since_example' # str | Returns only files that were modified since the specified time. If no files were modified since this time, a 304 message is returned. (optional) +if_unmodified_since = 'if_unmodified_since_example' # str | Returns only files that were not modified since the specified time. If there are no unmodified files since this time, a 412 message is returned to indicate that the precondition failed. (optional) + +try: + api_response = api_instance.get_file_attributes(file_path, if_modified_since=if_modified_since, if_unmodified_since=if_unmodified_since) + pprint(api_response) +except ApiException as e: + print("Exception when calling NamespaceApi->get_file_attributes: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **file_path** | **str**| File path relative to /. | + **if_modified_since** | **str**| Returns only files that were modified since the specified time. If no files were modified since this time, a 304 message is returned. | [optional] + **if_unmodified_since** | **str**| Returns only files that were not modified since the specified time. If there are no unmodified files since this time, a 412 message is returned to indicate that the precondition failed. | [optional] + +### Return type + +[**Empty**](Empty.md) + +### Authorization + +[basicAuth](../README.md#basicAuth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_file_contents** +> Empty get_file_contents(file_path, range=range, if_modified_since=if_modified_since, if_unmodified_since=if_unmodified_since) + + + +Retrieves the contents of a file from a specified path. Note that file streaming is not supported. + +### Example +```python +from __future__ import print_function +import time +import isi_sdk_8_0 +from isi_sdk_8_0.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basicAuth +configuration = isi_sdk_8_0.Configuration() +configuration.username = 'YOUR_USERNAME' +configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk_8_0.NamespaceApi(isi_sdk_8_0.ApiClient(configuration)) +file_path = 'file_path_example' # str | File path relative to /. +range = 'range_example' # str | Returns the specified range bytes of an object. (optional) +if_modified_since = 'if_modified_since_example' # str | Returns only files that were modified since the specified time. If no files were modified since this time, a 304 message is returned. (optional) +if_unmodified_since = 'if_unmodified_since_example' # str | Returns only files that were not modified since the specified time. If there are no unmodified files since this time, a 412 message is returned to indicate that the precondition failed. (optional) + +try: + api_response = api_instance.get_file_contents(file_path, range=range, if_modified_since=if_modified_since, if_unmodified_since=if_unmodified_since) + pprint(api_response) +except ApiException as e: + print("Exception when calling NamespaceApi->get_file_contents: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **file_path** | **str**| File path relative to /. | + **range** | **str**| Returns the specified range bytes of an object. | [optional] + **if_modified_since** | **str**| Returns only files that were modified since the specified time. If no files were modified since this time, a 304 message is returned. | [optional] + **if_unmodified_since** | **str**| Returns only files that were not modified since the specified time. If there are no unmodified files since this time, a 412 message is returned to indicate that the precondition failed. | [optional] + +### Return type + +[**Empty**](Empty.md) + +### Authorization + +[basicAuth](../README.md#basicAuth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_file_metadata** +> NamespaceMetadataList get_file_metadata(file_metadata_path, metadata) + + + +Retrieves the attribute information for a specified file with the metadata query argument. + +### Example +```python +from __future__ import print_function +import time +import isi_sdk_8_0 +from isi_sdk_8_0.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basicAuth +configuration = isi_sdk_8_0.Configuration() +configuration.username = 'YOUR_USERNAME' +configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk_8_0.NamespaceApi(isi_sdk_8_0.ApiClient(configuration)) +file_metadata_path = 'file_metadata_path_example' # str | File path relative to /. +metadata = true # bool | Show file metadata. + +try: + api_response = api_instance.get_file_metadata(file_metadata_path, metadata) + pprint(api_response) +except ApiException as e: + print("Exception when calling NamespaceApi->get_file_metadata: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **file_metadata_path** | **str**| File path relative to /. | + **metadata** | **bool**| Show file metadata. | + +### Return type + +[**NamespaceMetadataList**](NamespaceMetadataList.md) + +### Authorization + +[basicAuth](../README.md#basicAuth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_worm_properties** +> WormProperties get_worm_properties(worm_file_path, worm) + + + +Retrieves the WORM retention date and committed state of the file. + +### Example +```python +from __future__ import print_function +import time +import isi_sdk_8_0 +from isi_sdk_8_0.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basicAuth +configuration = isi_sdk_8_0.Configuration() +configuration.username = 'YOUR_USERNAME' +configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk_8_0.NamespaceApi(isi_sdk_8_0.ApiClient(configuration)) +worm_file_path = 'worm_file_path_example' # str | Write once read many file path relative to /. +worm = true # bool | View WORM properties + +try: + api_response = api_instance.get_worm_properties(worm_file_path, worm) + pprint(api_response) +except ApiException as e: + print("Exception when calling NamespaceApi->get_worm_properties: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **worm_file_path** | **str**| Write once read many file path relative to /. | + **worm** | **bool**| View WORM properties | + +### Return type + +[**WormProperties**](WormProperties.md) + +### Authorization + +[basicAuth](../README.md#basicAuth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **list_access_points** +> NamespaceAccessPoints list_access_points(versions=versions) + + + +Retrieves the namespace access points available for the authenticated user. + +### Example +```python +from __future__ import print_function +import time +import isi_sdk_8_0 +from isi_sdk_8_0.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basicAuth +configuration = isi_sdk_8_0.Configuration() +configuration.username = 'YOUR_USERNAME' +configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk_8_0.NamespaceApi(isi_sdk_8_0.ApiClient(configuration)) +versions = true # bool | Protocol versions that are supported for the current namespace access server. (optional) + +try: + api_response = api_instance.list_access_points(versions=versions) + pprint(api_response) +except ApiException as e: + print("Exception when calling NamespaceApi->list_access_points: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **versions** | **bool**| Protocol versions that are supported for the current namespace access server. | [optional] + +### Return type + +[**NamespaceAccessPoints**](NamespaceAccessPoints.md) + +### Authorization + +[basicAuth](../README.md#basicAuth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **move_directory** +> Empty move_directory(directory_path, x_isi_ifs_set_location) + + + +Moves a directory from an existing source to a new destination path. + +### Example +```python +from __future__ import print_function +import time +import isi_sdk_8_0 +from isi_sdk_8_0.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basicAuth +configuration = isi_sdk_8_0.Configuration() +configuration.username = 'YOUR_USERNAME' +configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk_8_0.NamespaceApi(isi_sdk_8_0.ApiClient(configuration)) +directory_path = 'directory_path_example' # str | Directory path relative to /. +x_isi_ifs_set_location = 'x_isi_ifs_set_location_example' # str | Specifies the full path for the destination directory. + +try: + api_response = api_instance.move_directory(directory_path, x_isi_ifs_set_location) + pprint(api_response) +except ApiException as e: + print("Exception when calling NamespaceApi->move_directory: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **directory_path** | **str**| Directory path relative to /. | + **x_isi_ifs_set_location** | **str**| Specifies the full path for the destination directory. | + +### Return type + +[**Empty**](Empty.md) + +### Authorization + +[basicAuth](../README.md#basicAuth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **move_file** +> Empty move_file(file_path, x_isi_ifs_set_location) + + + +Moves a file to a destination path that does not yet exist. + +### Example +```python +from __future__ import print_function +import time +import isi_sdk_8_0 +from isi_sdk_8_0.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basicAuth +configuration = isi_sdk_8_0.Configuration() +configuration.username = 'YOUR_USERNAME' +configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk_8_0.NamespaceApi(isi_sdk_8_0.ApiClient(configuration)) +file_path = 'file_path_example' # str | File path relative to /. +x_isi_ifs_set_location = 'x_isi_ifs_set_location_example' # str | Specifies the full path for the destination file. + +try: + api_response = api_instance.move_file(file_path, x_isi_ifs_set_location) + pprint(api_response) +except ApiException as e: + print("Exception when calling NamespaceApi->move_file: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **file_path** | **str**| File path relative to /. | + **x_isi_ifs_set_location** | **str**| Specifies the full path for the destination file. | + +### Return type + +[**Empty**](Empty.md) + +### Authorization + +[basicAuth](../README.md#basicAuth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **query_directory** +> NamespaceObjects query_directory(query_path, query, directory_query, limit=limit, detail=detail, max_depth=max_depth) + + + +Query objects by system-defined and user-defined attributes in a directory. + +### Example +```python +from __future__ import print_function +import time +import isi_sdk_8_0 +from isi_sdk_8_0.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basicAuth +configuration = isi_sdk_8_0.Configuration() +configuration.username = 'YOUR_USERNAME' +configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk_8_0.NamespaceApi(isi_sdk_8_0.ApiClient(configuration)) +query_path = 'query_path_example' # str | Directory path relative to /. +query = true # bool | Enable directory query. +directory_query = isi_sdk_8_0.DirectoryQuery() # DirectoryQuery | Directory query parameters model. +limit = 56 # int | Specifies the maximum number of objects to send to the client. You can set the value to a negative number to retrieve all objects. (optional) +detail = 'detail_example' # str | Specifies which object attributes are displayed. If the detail parameter is excluded, only the name of the object is returned. (optional) +max_depth = 56 # int | Specifies the maximum directory level depth to search for objects. (optional) + +try: + api_response = api_instance.query_directory(query_path, query, directory_query, limit=limit, detail=detail, max_depth=max_depth) + pprint(api_response) +except ApiException as e: + print("Exception when calling NamespaceApi->query_directory: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **query_path** | **str**| Directory path relative to /. | + **query** | **bool**| Enable directory query. | + **directory_query** | [**DirectoryQuery**](DirectoryQuery.md)| Directory query parameters model. | + **limit** | **int**| Specifies the maximum number of objects to send to the client. You can set the value to a negative number to retrieve all objects. | [optional] + **detail** | **str**| Specifies which object attributes are displayed. If the detail parameter is excluded, only the name of the object is returned. | [optional] + **max_depth** | **int**| Specifies the maximum directory level depth to search for objects. | [optional] + +### Return type + +[**NamespaceObjects**](NamespaceObjects.md) + +### Authorization + +[basicAuth](../README.md#basicAuth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **set_acl** +> Empty set_acl(namespace_path, acl, namespace_acl, nsaccess=nsaccess) + + + +Sets the access control list for a namespace. + +### Example +```python +from __future__ import print_function +import time +import isi_sdk_8_0 +from isi_sdk_8_0.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basicAuth +configuration = isi_sdk_8_0.Configuration() +configuration.username = 'YOUR_USERNAME' +configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk_8_0.NamespaceApi(isi_sdk_8_0.ApiClient(configuration)) +namespace_path = 'namespace_path_example' # str | Namespace path relative to /. +acl = true # bool | Update access control lists. +namespace_acl = isi_sdk_8_0.NamespaceAcl() # NamespaceAcl | Namespace ACL parameters model. +nsaccess = true # bool | Indicates that the operation is on the access point instead of the store path. (optional) + +try: + api_response = api_instance.set_acl(namespace_path, acl, namespace_acl, nsaccess=nsaccess) + pprint(api_response) +except ApiException as e: + print("Exception when calling NamespaceApi->set_acl: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **namespace_path** | **str**| Namespace path relative to /. | + **acl** | **bool**| Update access control lists. | + **namespace_acl** | [**NamespaceAcl**](NamespaceAcl.md)| Namespace ACL parameters model. | + **nsaccess** | **bool**| Indicates that the operation is on the access point instead of the store path. | [optional] + +### Return type + +[**Empty**](Empty.md) + +### Authorization + +[basicAuth](../README.md#basicAuth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **set_directory_metadata** +> Empty set_directory_metadata(directory_metadata_path, metadata, directory_metadata) + + + +Sets attributes on a specified directory with the metadata query argument. + +### Example +```python +from __future__ import print_function +import time +import isi_sdk_8_0 +from isi_sdk_8_0.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basicAuth +configuration = isi_sdk_8_0.Configuration() +configuration.username = 'YOUR_USERNAME' +configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk_8_0.NamespaceApi(isi_sdk_8_0.ApiClient(configuration)) +directory_metadata_path = 'directory_metadata_path_example' # str | Directory path relative to /. +metadata = true # bool | Set directory metadata. +directory_metadata = isi_sdk_8_0.NamespaceMetadata() # NamespaceMetadata | Directory metadata parameters model. + +try: + api_response = api_instance.set_directory_metadata(directory_metadata_path, metadata, directory_metadata) + pprint(api_response) +except ApiException as e: + print("Exception when calling NamespaceApi->set_directory_metadata: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **directory_metadata_path** | **str**| Directory path relative to /. | + **metadata** | **bool**| Set directory metadata. | + **directory_metadata** | [**NamespaceMetadata**](NamespaceMetadata.md)| Directory metadata parameters model. | + +### Return type + +[**Empty**](Empty.md) + +### Authorization + +[basicAuth](../README.md#basicAuth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **set_file_metadata** +> Empty set_file_metadata(file_metadata_path, metadata, file_metadata) + + + +Sets attributes on a specified file with the metadata query argument through the JSON body. + +### Example +```python +from __future__ import print_function +import time +import isi_sdk_8_0 +from isi_sdk_8_0.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basicAuth +configuration = isi_sdk_8_0.Configuration() +configuration.username = 'YOUR_USERNAME' +configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk_8_0.NamespaceApi(isi_sdk_8_0.ApiClient(configuration)) +file_metadata_path = 'file_metadata_path_example' # str | File path relative to /. +metadata = true # bool | Set file metadata. +file_metadata = isi_sdk_8_0.NamespaceMetadata() # NamespaceMetadata | File metadata parameters model. + +try: + api_response = api_instance.set_file_metadata(file_metadata_path, metadata, file_metadata) + pprint(api_response) +except ApiException as e: + print("Exception when calling NamespaceApi->set_file_metadata: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **file_metadata_path** | **str**| File path relative to /. | + **metadata** | **bool**| Set file metadata. | + **file_metadata** | [**NamespaceMetadata**](NamespaceMetadata.md)| File metadata parameters model. | + +### Return type + +[**Empty**](Empty.md) + +### Authorization + +[basicAuth](../README.md#basicAuth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **set_worm_properties** +> Empty set_worm_properties(worm_file_path, worm, worm_properties) + + + +Sets the retention period and commits a file in a SmartLock directory. + +### Example +```python +from __future__ import print_function +import time +import isi_sdk_8_0 +from isi_sdk_8_0.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basicAuth +configuration = isi_sdk_8_0.Configuration() +configuration.username = 'YOUR_USERNAME' +configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk_8_0.NamespaceApi(isi_sdk_8_0.ApiClient(configuration)) +worm_file_path = 'worm_file_path_example' # str | Write once read many file path relative to /. +worm = true # bool | View WORM properties +worm_properties = isi_sdk_8_0.WormCreateParams() # WormCreateParams | WORM parameters model. + +try: + api_response = api_instance.set_worm_properties(worm_file_path, worm, worm_properties) + pprint(api_response) +except ApiException as e: + print("Exception when calling NamespaceApi->set_worm_properties: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **worm_file_path** | **str**| Write once read many file path relative to /. | + **worm** | **bool**| View WORM properties | + **worm_properties** | [**WormCreateParams**](WormCreateParams.md)| WORM parameters model. | + +### Return type + +[**Empty**](Empty.md) + +### Authorization + +[basicAuth](../README.md#basicAuth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/docs/NamespaceMetadata.md b/docs/NamespaceMetadata.md new file mode 100644 index 00000000..33b113a3 --- /dev/null +++ b/docs/NamespaceMetadata.md @@ -0,0 +1,11 @@ +# NamespaceMetadata + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**action** | **str** | | [optional] +**attrs** | [**list[NamespaceMetadataAttrs]**](NamespaceMetadataAttrs.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/NamespaceMetadataAttrs.md b/docs/NamespaceMetadataAttrs.md new file mode 100644 index 00000000..523733ad --- /dev/null +++ b/docs/NamespaceMetadataAttrs.md @@ -0,0 +1,13 @@ +# NamespaceMetadataAttrs + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**name** | **str** | | [optional] +**namespace** | **str** | | [optional] +**op** | **str** | | [optional] +**value** | **str** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/NamespaceMetadataList.md b/docs/NamespaceMetadataList.md new file mode 100644 index 00000000..91231f85 --- /dev/null +++ b/docs/NamespaceMetadataList.md @@ -0,0 +1,10 @@ +# NamespaceMetadataList + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**attrs** | [**list[NamespaceMetadataListAttrs]**](NamespaceMetadataListAttrs.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/NamespaceMetadataListAttrs.md b/docs/NamespaceMetadataListAttrs.md new file mode 100644 index 00000000..48f8e365 --- /dev/null +++ b/docs/NamespaceMetadataListAttrs.md @@ -0,0 +1,12 @@ +# NamespaceMetadataListAttrs + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**name** | **str** | | [optional] +**namespace** | **str** | | [optional] +**value** | **str** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/NamespaceObject.md b/docs/NamespaceObject.md new file mode 100644 index 00000000..eb589dda --- /dev/null +++ b/docs/NamespaceObject.md @@ -0,0 +1,31 @@ +# NamespaceObject + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**access_time** | **str** | Specifies the date when the object was last accessed in HTTP date/time format. | [optional] +**atime_val** | **int** | Specifies the time when the object was last accessed in UNIX Epoch format. | [optional] +**block_size** | **int** | Specifies the block size of the object. | [optional] +**blocks** | **int** | Specifies the number of blocks that compose the object. | [optional] +**btime_val** | **int** | Specifies the time when the object data was created in UNIX Epoch format. | [optional] +**change_time** | **str** | Specifies the date when the object was last changed (including data and metadata changes) in HTTP date/time format. | [optional] +**create_time** | **str** | Specifies the date when the object data was created in HTTP date/time format. | [optional] +**ctime_val** | **int** | Specifies the time when the object was last changed (including data and metadata changes) in UNIX Epoch format. | [optional] +**gid** | **int** | Specifies the GID for the owner. | [optional] +**group** | **str** | Specifies the group name for the owner of the object. | [optional] +**id** | **int** | Specifies the object ID, which is also the INODE number. | [optional] +**is_hidden** | **bool** | Specifies whether the file is hidden or not. | [optional] +**last_modified** | **str** | Specifies the time when the object data was last modified in HTTP date/time format. | [optional] +**mode** | **str** | Specifies the UNIX mode octal number. | [optional] +**mtime_val** | **int** | Specifies the time when the object data was last modified in UNIX Epoch format. | [optional] +**name** | **str** | Specifies the name of the object. | [optional] +**nlink** | **int** | Specifies the number of hard links to the object. | [optional] +**owner** | **str** | Specifies the user name for the owner of the object. | [optional] +**size** | **int** | Specifies the size of the object in bytes. | [optional] +**stub** | **bool** | | [optional] +**type** | **str** | Specifies the object type, which can be one of the following values: container, object, pipe, character_device, block_device, symbolic_link, socket, or whiteout_file. | [optional] +**uid** | **int** | Specifies the UID for the owner. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/NamespaceObjects.md b/docs/NamespaceObjects.md new file mode 100644 index 00000000..247e9c07 --- /dev/null +++ b/docs/NamespaceObjects.md @@ -0,0 +1,11 @@ +# NamespaceObjects + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**children** | [**list[NamespaceObject]**](NamespaceObject.md) | | [optional] +**resume** | **str** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/NdmpUserExtended.md b/docs/NdmpUserExtended.md new file mode 100644 index 00000000..99408aaf --- /dev/null +++ b/docs/NdmpUserExtended.md @@ -0,0 +1,11 @@ +# NdmpUserExtended + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **str** | Unique display ID. | [optional] +**name** | **str** | A unique user name for NDMP administrator. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/NdmpUsers.md b/docs/NdmpUsers.md index 968a6025..fd513a37 100644 --- a/docs/NdmpUsers.md +++ b/docs/NdmpUsers.md @@ -3,8 +3,7 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**id** | **str** | Unique display ID. | [optional] -**name** | **str** | A unique user name for NDMP administrator. | [optional] +**users** | [**list[NdmpUserExtended]**](NdmpUserExtended.md) | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/NdmpUsersExtended.md b/docs/NdmpUsersExtended.md index 9df42b4f..fa83019c 100644 --- a/docs/NdmpUsersExtended.md +++ b/docs/NdmpUsersExtended.md @@ -3,8 +3,8 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**users** | [**list[NdmpUserExtended]**](NdmpUserExtended.md) | | [optional] **total** | **int** | Total number of items available. | [optional] -**users** | [**list[NdmpUsers]**](NdmpUsers.md) | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/ProtocolsApi.md b/docs/ProtocolsApi.md index dccfb3b3..4c3a9505 100644 --- a/docs/ProtocolsApi.md +++ b/docs/ProtocolsApi.md @@ -831,7 +831,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **create_swift_account** -> CreateResponse create_swift_account(swift_account, zone=zone) +> Empty create_swift_account(swift_account, zone=zone) @@ -871,7 +871,7 @@ Name | Type | Description | Notes ### Return type -[**CreateResponse**](CreateResponse.md) +[**Empty**](Empty.md) ### Authorization diff --git a/docs/ProtocolsHdfsApi.md b/docs/ProtocolsHdfsApi.md index beb57ed3..f2fd5859 100644 --- a/docs/ProtocolsHdfsApi.md +++ b/docs/ProtocolsHdfsApi.md @@ -11,7 +11,7 @@ Method | HTTP request | Description # **create_proxyusers_name_member** -> CreateResponse create_proxyusers_name_member(proxyusers_name_member, name, zone=zone) +> Empty create_proxyusers_name_member(proxyusers_name_member, name, zone=zone) @@ -53,7 +53,7 @@ Name | Type | Description | Notes ### Return type -[**CreateResponse**](CreateResponse.md) +[**Empty**](Empty.md) ### Authorization diff --git a/docs/SettingsMappingExtendedExtended.md b/docs/SettingsMappingExtendedExtended.md index f5076954..a07b838f 100644 --- a/docs/SettingsMappingExtendedExtended.md +++ b/docs/SettingsMappingExtendedExtended.md @@ -4,6 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **domain** | **str** | The FQDN of the source domain to map. | +**id** | **str** | | [optional] **mapping** | **str** | The FQDN of destination domain to map to. | **type** | **str** | The authentication provider type. | diff --git a/docs/UpgradeApi.md b/docs/UpgradeApi.md index 17ebe180..1e57ab56 100644 --- a/docs/UpgradeApi.md +++ b/docs/UpgradeApi.md @@ -760,7 +760,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **get_cluster_node** -> ClusterNodesExtendedExtended get_cluster_node(cluster_node_id) +> ClusterNodesExtended get_cluster_node(cluster_node_id) @@ -798,7 +798,7 @@ Name | Type | Description | Notes ### Return type -[**ClusterNodesExtendedExtended**](ClusterNodesExtendedExtended.md) +[**ClusterNodesExtended**](ClusterNodesExtended.md) ### Authorization @@ -812,7 +812,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **get_cluster_nodes** -> ClusterNodesExtendedExtendedExtended get_cluster_nodes() +> ClusterNodesExtendedExtended get_cluster_nodes() @@ -846,7 +846,7 @@ This endpoint does not need any parameter. ### Return type -[**ClusterNodesExtendedExtendedExtended**](ClusterNodesExtendedExtendedExtended.md) +[**ClusterNodesExtendedExtended**](ClusterNodesExtendedExtended.md) ### Authorization diff --git a/docs/WormCreateParams.md b/docs/WormCreateParams.md new file mode 100644 index 00000000..d97fff4e --- /dev/null +++ b/docs/WormCreateParams.md @@ -0,0 +1,11 @@ +# WormCreateParams + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**commit_to_worm** | **bool** | Specifies whether to commit the file to a WORM state after the retention date is set. | [optional] [default to False] +**worm_retention_date** | **str** | Specifies the retention expiration date string in Coordinated Universal Time (UTC/GMT). | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/WormProperties.md b/docs/WormProperties.md new file mode 100644 index 00000000..5401636d --- /dev/null +++ b/docs/WormProperties.md @@ -0,0 +1,18 @@ +# WormProperties + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**autocommit_delay** | **int** | Autocommit delay. | [optional] +**domain_id** | **int** | WORM domain ID. | [optional] +**domain_path** | **str** | WORM domain path. | [optional] +**worm_committed** | **bool** | Indicates whether the file was committed to the WORM state. | [optional] +**worm_ctime** | **int** | WORM change time. | [optional] +**worm_override_retention_date** | **str** | Provides the override retention date that is set on the SmartLock directory where the file resides. | [optional] +**worm_override_retention_date_val** | **int** | Provides the override retention date in seconds from UNIX Epoch or UTC. | [optional] +**worm_retention_date** | **str** | Provides the retention expiration date in Coordinated Universal Time (such as UTC/GMT). | [optional] +**worm_retention_date_val** | **int** | Provides the retention expiration date in seconds from UNIX Epoch or UTC. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/isi_sdk/__init__.py b/isi_sdk/__init__.py index 820582cd..425e9365 100644 --- a/isi_sdk/__init__.py +++ b/isi_sdk/__init__.py @@ -39,6 +39,7 @@ from isi_sdk_8_0.api.job_api import JobApi from isi_sdk_8_0.api.license_api import LicenseApi from isi_sdk_8_0.api.local_api import LocalApi +from isi_sdk_8_0.api.namespace_api import NamespaceApi from isi_sdk_8_0.api.network_api import NetworkApi from isi_sdk_8_0.api.network_groupnets_api import NetworkGroupnetsApi from isi_sdk_8_0.api.network_groupnets_subnets_api import NetworkGroupnetsSubnetsApi @@ -67,6 +68,8 @@ from isi_sdk_8_0.api_client import ApiClient from isi_sdk_8_0.configuration import Configuration # import models into sdk package +from isi_sdk_8_0.models.access_point_create_params import AccessPointCreateParams +from isi_sdk_8_0.models.acl_object import AclObject from isi_sdk_8_0.models.ads_provider_controllers import AdsProviderControllers from isi_sdk_8_0.models.ads_provider_controllers_controller import AdsProviderControllersController from isi_sdk_8_0.models.ads_provider_domains import AdsProviderDomains @@ -155,13 +158,11 @@ from isi_sdk_8_0.models.cluster_identity_logon_extended import ClusterIdentityLogonExtended from isi_sdk_8_0.models.cluster_node import ClusterNode from isi_sdk_8_0.models.cluster_node_extended import ClusterNodeExtended -from isi_sdk_8_0.models.cluster_node_extended_extended import ClusterNodeExtendedExtended from isi_sdk_8_0.models.cluster_node_hardware import ClusterNodeHardware from isi_sdk_8_0.models.cluster_node_partitions import ClusterNodePartitions from isi_sdk_8_0.models.cluster_node_sensors import ClusterNodeSensors from isi_sdk_8_0.models.cluster_node_state import ClusterNodeState from isi_sdk_8_0.models.cluster_node_state_extended import ClusterNodeStateExtended -from isi_sdk_8_0.models.cluster_node_state_extended_extended import ClusterNodeStateExtendedExtended from isi_sdk_8_0.models.cluster_node_state_servicelight import ClusterNodeStateServicelight from isi_sdk_8_0.models.cluster_node_state_smartfail import ClusterNodeStateSmartfail from isi_sdk_8_0.models.cluster_node_status import ClusterNodeStatus @@ -171,7 +172,6 @@ from isi_sdk_8_0.models.cluster_nodes_error import ClusterNodesError from isi_sdk_8_0.models.cluster_nodes_extended import ClusterNodesExtended from isi_sdk_8_0.models.cluster_nodes_extended_extended import ClusterNodesExtendedExtended -from isi_sdk_8_0.models.cluster_nodes_extended_extended_extended import ClusterNodesExtendedExtendedExtended from isi_sdk_8_0.models.cluster_nodes_onefs_version import ClusterNodesOnefsVersion from isi_sdk_8_0.models.cluster_owner import ClusterOwner from isi_sdk_8_0.models.cluster_patch_patch import ClusterPatchPatch @@ -204,6 +204,8 @@ from isi_sdk_8_0.models.compatibilities_ssd_active_item import CompatibilitiesSsdActiveItem from isi_sdk_8_0.models.compatibilities_ssd_available import CompatibilitiesSsdAvailable from isi_sdk_8_0.models.compatibilities_ssd_available_available_item import CompatibilitiesSsdAvailableAvailableItem +from isi_sdk_8_0.models.copy_errors import CopyErrors +from isi_sdk_8_0.models.copy_errors_copy_errors import CopyErrorsCopyErrors from isi_sdk_8_0.models.create_antivirus_scan_item_response import CreateAntivirusScanItemResponse from isi_sdk_8_0.models.create_auth_refresh_item_response import CreateAuthRefreshItemResponse from isi_sdk_8_0.models.create_cloud_account_response import CreateCloudAccountResponse @@ -239,6 +241,9 @@ from isi_sdk_8_0.models.dedupe_settings import DedupeSettings from isi_sdk_8_0.models.dedupe_settings_extended import DedupeSettingsExtended from isi_sdk_8_0.models.dedupe_settings_settings import DedupeSettingsSettings +from isi_sdk_8_0.models.directory_query import DirectoryQuery +from isi_sdk_8_0.models.directory_query_scope import DirectoryQueryScope +from isi_sdk_8_0.models.directory_query_scope_conditions import DirectoryQueryScopeConditions from isi_sdk_8_0.models.drives_drive_firmware import DrivesDriveFirmware from isi_sdk_8_0.models.drives_drive_firmware_node import DrivesDriveFirmwareNode from isi_sdk_8_0.models.drives_drive_firmware_node_drive import DrivesDriveFirmwareNodeDrive @@ -256,8 +261,10 @@ from isi_sdk_8_0.models.event_categories import EventCategories from isi_sdk_8_0.models.event_category import EventCategory from isi_sdk_8_0.models.event_channel import EventChannel +from isi_sdk_8_0.models.event_channel_extended_extended import EventChannelExtendedExtended from isi_sdk_8_0.models.event_channel_parameters import EventChannelParameters from isi_sdk_8_0.models.event_channels import EventChannels +from isi_sdk_8_0.models.event_channels_extended import EventChannelsExtended from isi_sdk_8_0.models.event_event import EventEvent from isi_sdk_8_0.models.event_eventgroup_definitions import EventEventgroupDefinitions from isi_sdk_8_0.models.event_eventgroup_definitions_eventgroup_definition import EventEventgroupDefinitionsEventgroupDefinition @@ -286,6 +293,8 @@ from isi_sdk_8_0.models.filepool_policy_file_matching_pattern import FilepoolPolicyFileMatchingPattern from isi_sdk_8_0.models.filepool_policy_file_matching_pattern_or_criteria_item import FilepoolPolicyFileMatchingPatternOrCriteriaItem from isi_sdk_8_0.models.filepool_policy_file_matching_pattern_or_criteria_item_and_criteria_item import FilepoolPolicyFileMatchingPatternOrCriteriaItemAndCriteriaItem +from isi_sdk_8_0.models.filepool_template import FilepoolTemplate +from isi_sdk_8_0.models.filepool_template_action import FilepoolTemplateAction from isi_sdk_8_0.models.filepool_templates import FilepoolTemplates from isi_sdk_8_0.models.fsa_result import FsaResult from isi_sdk_8_0.models.fsa_results import FsaResults @@ -340,8 +349,6 @@ from isi_sdk_8_0.models.job_job_summary_summary import JobJobSummarySummary from isi_sdk_8_0.models.job_jobs import JobJobs from isi_sdk_8_0.models.job_policies import JobPolicies -from isi_sdk_8_0.models.job_policies_extended import JobPoliciesExtended -from isi_sdk_8_0.models.job_policies_type import JobPoliciesType from isi_sdk_8_0.models.job_policy import JobPolicy from isi_sdk_8_0.models.job_policy_interval import JobPolicyInterval from isi_sdk_8_0.models.job_recent import JobRecent @@ -383,6 +390,16 @@ from isi_sdk_8_0.models.mapping_users_rules_rule_user2 import MappingUsersRulesRuleUser2 from isi_sdk_8_0.models.mapping_users_rules_rules import MappingUsersRulesRules from isi_sdk_8_0.models.mapping_users_rules_rules_parameters import MappingUsersRulesRulesParameters +from isi_sdk_8_0.models.member_object import MemberObject +from isi_sdk_8_0.models.namespace_access_points import NamespaceAccessPoints +from isi_sdk_8_0.models.namespace_access_points_namespaces import NamespaceAccessPointsNamespaces +from isi_sdk_8_0.models.namespace_acl import NamespaceAcl +from isi_sdk_8_0.models.namespace_metadata import NamespaceMetadata +from isi_sdk_8_0.models.namespace_metadata_attrs import NamespaceMetadataAttrs +from isi_sdk_8_0.models.namespace_metadata_list import NamespaceMetadataList +from isi_sdk_8_0.models.namespace_metadata_list_attrs import NamespaceMetadataListAttrs +from isi_sdk_8_0.models.namespace_object import NamespaceObject +from isi_sdk_8_0.models.namespace_objects import NamespaceObjects from isi_sdk_8_0.models.ndmp_contexts_backup import NdmpContextsBackup from isi_sdk_8_0.models.ndmp_contexts_backup_context import NdmpContextsBackupContext from isi_sdk_8_0.models.ndmp_contexts_backup_extended import NdmpContextsBackupExtended @@ -409,8 +426,8 @@ from isi_sdk_8_0.models.ndmp_settings_variables_variable import NdmpSettingsVariablesVariable from isi_sdk_8_0.models.ndmp_settings_variables_variable_path_variable import NdmpSettingsVariablesVariablePathVariable from isi_sdk_8_0.models.ndmp_user import NdmpUser +from isi_sdk_8_0.models.ndmp_user_extended import NdmpUserExtended from isi_sdk_8_0.models.ndmp_users import NdmpUsers -from isi_sdk_8_0.models.ndmp_users_extended import NdmpUsersExtended from isi_sdk_8_0.models.network_dnscache import NetworkDnscache from isi_sdk_8_0.models.network_dnscache_extended import NetworkDnscacheExtended from isi_sdk_8_0.models.network_dnscache_settings import NetworkDnscacheSettings @@ -752,8 +769,10 @@ from isi_sdk_8_0.models.upgrade_cluster_upgrade_settings import UpgradeClusterUpgradeSettings from isi_sdk_8_0.models.user_change_password import UserChangePassword from isi_sdk_8_0.models.user_member_of import UserMemberOf +from isi_sdk_8_0.models.worm_create_params import WormCreateParams from isi_sdk_8_0.models.worm_domain import WormDomain from isi_sdk_8_0.models.worm_domains import WormDomains +from isi_sdk_8_0.models.worm_properties import WormProperties from isi_sdk_8_0.models.worm_settings import WormSettings from isi_sdk_8_0.models.worm_settings_extended import WormSettingsExtended from isi_sdk_8_0.models.worm_settings_settings import WormSettingsSettings @@ -788,8 +807,6 @@ from isi_sdk_8_0.models.cloud_pool_create_params import CloudPoolCreateParams from isi_sdk_8_0.models.cloud_pool_extended import CloudPoolExtended from isi_sdk_8_0.models.cloud_pools_extended import CloudPoolsExtended -from isi_sdk_8_0.models.cluster_node_state_servicelight_extended import ClusterNodeStateServicelightExtended -from isi_sdk_8_0.models.cluster_node_state_servicelight_extended_extended import ClusterNodeStateServicelightExtendedExtended from isi_sdk_8_0.models.cluster_patch_patches_extended import ClusterPatchPatchesExtended from isi_sdk_8_0.models.compatibilities_class_active_extended import CompatibilitiesClassActiveExtended from isi_sdk_8_0.models.compatibilities_ssd_active_extended import CompatibilitiesSsdActiveExtended @@ -798,7 +815,6 @@ from isi_sdk_8_0.models.event_alert_conditions_extended import EventAlertConditionsExtended from isi_sdk_8_0.models.event_categories_extended import EventCategoriesExtended from isi_sdk_8_0.models.event_channel_extended import EventChannelExtended -from isi_sdk_8_0.models.event_channels_extended import EventChannelsExtended from isi_sdk_8_0.models.event_eventgroup_definitions_extended import EventEventgroupDefinitionsExtended from isi_sdk_8_0.models.event_eventgroup_occurrences_extended import EventEventgroupOccurrencesExtended from isi_sdk_8_0.models.event_eventlists_extended import EventEventlistsExtended @@ -813,13 +829,18 @@ from isi_sdk_8_0.models.hdfs_rack_extended import HdfsRackExtended from isi_sdk_8_0.models.hdfs_racks_extended import HdfsRacksExtended from isi_sdk_8_0.models.job_jobs_extended import JobJobsExtended +from isi_sdk_8_0.models.job_policies_extended import JobPoliciesExtended from isi_sdk_8_0.models.job_policy_create_params import JobPolicyCreateParams +from isi_sdk_8_0.models.job_policy_extended import JobPolicyExtended from isi_sdk_8_0.models.job_type_extended import JobTypeExtended from isi_sdk_8_0.models.job_types_extended import JobTypesExtended +from isi_sdk_8_0.models.mapping_users_rules_parameters_default_unix_user import MappingUsersRulesParametersDefaultUnixUser from isi_sdk_8_0.models.mapping_users_rules_rule_options_default_user import MappingUsersRulesRuleOptionsDefaultUser +from isi_sdk_8_0.models.mapping_users_rules_rule_user1 import MappingUsersRulesRuleUser1 from isi_sdk_8_0.models.mapping_users_rules_rule_user2_extended import MappingUsersRulesRuleUser2Extended from isi_sdk_8_0.models.ndmp_settings_variable_create_params import NdmpSettingsVariableCreateParams from isi_sdk_8_0.models.ndmp_user_create_params import NdmpUserCreateParams +from isi_sdk_8_0.models.ndmp_users_extended import NdmpUsersExtended from isi_sdk_8_0.models.network_groupnet_create_params import NetworkGroupnetCreateParams from isi_sdk_8_0.models.network_groupnet_extended import NetworkGroupnetExtended from isi_sdk_8_0.models.network_groupnets_extended import NetworkGroupnetsExtended @@ -845,7 +866,6 @@ from isi_sdk_8_0.models.reports_threats_extended import ReportsThreatsExtended from isi_sdk_8_0.models.settings_krb5_domain_create_params import SettingsKrb5DomainCreateParams from isi_sdk_8_0.models.settings_krb5_realm_create_params import SettingsKrb5RealmCreateParams -from isi_sdk_8_0.models.smb_log_level_filters_extended import SmbLogLevelFiltersExtended from isi_sdk_8_0.models.smb_shares_extended import SmbSharesExtended from isi_sdk_8_0.models.snapshot_aliases_extended import SnapshotAliasesExtended from isi_sdk_8_0.models.snapshot_lock_create_params import SnapshotLockCreateParams diff --git a/isi_sdk/api/__init__.py b/isi_sdk/api/__init__.py index 9ca1c7eb..473612c1 100644 --- a/isi_sdk/api/__init__.py +++ b/isi_sdk/api/__init__.py @@ -26,6 +26,7 @@ from isi_sdk_8_0.api.job_api import JobApi from isi_sdk_8_0.api.license_api import LicenseApi from isi_sdk_8_0.api.local_api import LocalApi +from isi_sdk_8_0.api.namespace_api import NamespaceApi from isi_sdk_8_0.api.network_api import NetworkApi from isi_sdk_8_0.api.network_groupnets_api import NetworkGroupnetsApi from isi_sdk_8_0.api.network_groupnets_subnets_api import NetworkGroupnetsSubnetsApi diff --git a/isi_sdk/api/cluster_api.py b/isi_sdk/api/cluster_api.py index 087a8df8..eea1aee1 100644 --- a/isi_sdk/api/cluster_api.py +++ b/isi_sdk/api/cluster_api.py @@ -605,7 +605,7 @@ def get_cluster_nodes(self, **kwargs): # noqa: E501 >>> result = thread.get() :param async bool - :return: ClusterNodesExtended + :return: ClusterNodes If the method is called asynchronously, returns the request thread. """ @@ -626,7 +626,7 @@ def get_cluster_nodes_with_http_info(self, **kwargs): # noqa: E501 >>> result = thread.get() :param async bool - :return: ClusterNodesExtended + :return: ClusterNodes If the method is called asynchronously, returns the request thread. """ @@ -678,7 +678,7 @@ def get_cluster_nodes_with_http_info(self, **kwargs): # noqa: E501 body=body_params, post_params=form_params, files=local_var_files, - response_type='ClusterNodesExtended', # noqa: E501 + response_type='ClusterNodes', # noqa: E501 auth_settings=auth_settings, async=params.get('async'), _return_http_data_only=params.get('_return_http_data_only'), diff --git a/isi_sdk/api/namespace_api.py b/isi_sdk/api/namespace_api.py new file mode 100644 index 00000000..ba01590b --- /dev/null +++ b/isi_sdk/api/namespace_api.py @@ -0,0 +1,2718 @@ +# coding: utf-8 + +""" + Isilon SDK + + Isilon SDK - Language bindings for the OneFS API # noqa: E501 + + OpenAPI spec version: 3 + Contact: sdk@isilon.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import re # noqa: F401 + +# python 2 and python 3 compatibility library +import six + +from isi_sdk_8_0.api_client import ApiClient + + +class NamespaceApi(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + Ref: https://github.com/swagger-api/swagger-codegen + """ + + def __init__(self, api_client=None): + if api_client is None: + api_client = ApiClient() + self.api_client = api_client + + def copy_directory(self, directory_copy_target, x_isi_ifs_copy_source, **kwargs): # noqa: E501 + """copy_directory # noqa: E501 + + Recursively copies a directory to a specified destination path. Symbolic links are copied as regular files. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async=True + >>> thread = api.copy_directory(directory_copy_target, x_isi_ifs_copy_source, async=True) + >>> result = thread.get() + + :param async bool + :param str directory_copy_target: Directory copy destination relative to /. (required) + :param str x_isi_ifs_copy_source: Specifies the full path to the source directory. (required) + :param bool overwrite: Deletes and replaces the existing user attributes and ACLs of the directory with user-specified attributes and ACLS from the header, when set to true. + :param bool merge: Specifies if the contents of a directory should be merged with an existing directory with the same name. + :param bool _continue: Specifies whether to continue the copy operation on remaining objects when there is a conflict or error. + :return: CopyErrors + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async'): + return self.copy_directory_with_http_info(directory_copy_target, x_isi_ifs_copy_source, **kwargs) # noqa: E501 + else: + (data) = self.copy_directory_with_http_info(directory_copy_target, x_isi_ifs_copy_source, **kwargs) # noqa: E501 + return data + + def copy_directory_with_http_info(self, directory_copy_target, x_isi_ifs_copy_source, **kwargs): # noqa: E501 + """copy_directory # noqa: E501 + + Recursively copies a directory to a specified destination path. Symbolic links are copied as regular files. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async=True + >>> thread = api.copy_directory_with_http_info(directory_copy_target, x_isi_ifs_copy_source, async=True) + >>> result = thread.get() + + :param async bool + :param str directory_copy_target: Directory copy destination relative to /. (required) + :param str x_isi_ifs_copy_source: Specifies the full path to the source directory. (required) + :param bool overwrite: Deletes and replaces the existing user attributes and ACLs of the directory with user-specified attributes and ACLS from the header, when set to true. + :param bool merge: Specifies if the contents of a directory should be merged with an existing directory with the same name. + :param bool _continue: Specifies whether to continue the copy operation on remaining objects when there is a conflict or error. + :return: CopyErrors + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['directory_copy_target', 'x_isi_ifs_copy_source', 'overwrite', 'merge', '_continue'] # noqa: E501 + all_params.append('async') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method copy_directory" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'directory_copy_target' is set + if ('directory_copy_target' not in params or + params['directory_copy_target'] is None): + raise ValueError("Missing the required parameter `directory_copy_target` when calling `copy_directory`") # noqa: E501 + # verify the required parameter 'x_isi_ifs_copy_source' is set + if ('x_isi_ifs_copy_source' not in params or + params['x_isi_ifs_copy_source'] is None): + raise ValueError("Missing the required parameter `x_isi_ifs_copy_source` when calling `copy_directory`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'directory_copy_target' in params: + path_params['DirectoryCopyTarget'] = params['directory_copy_target'] # noqa: E501 + + query_params = [] + if 'overwrite' in params: + query_params.append(('overwrite', params['overwrite'])) # noqa: E501 + if 'merge' in params: + query_params.append(('merge', params['merge'])) # noqa: E501 + if '_continue' in params: + query_params.append(('continue', params['_continue'])) # noqa: E501 + + header_params = {} + if 'x_isi_ifs_copy_source' in params: + header_params['x-isi-ifs-copy-source'] = params['x_isi_ifs_copy_source'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json']) # noqa: E501 + + # Authentication setting + auth_settings = ['basicAuth'] # noqa: E501 + + return self.api_client.call_api( + '/namespace/{DirectoryCopyTarget}', 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='CopyErrors', # noqa: E501 + auth_settings=auth_settings, + async=params.get('async'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def copy_file(self, file_copy_target, x_isi_ifs_copy_source, **kwargs): # noqa: E501 + """copy_file # noqa: E501 + + Copies a file to the specified destination path. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async=True + >>> thread = api.copy_file(file_copy_target, x_isi_ifs_copy_source, async=True) + >>> result = thread.get() + + :param async bool + :param str file_copy_target: File copy destination relative to /. (required) + :param str x_isi_ifs_copy_source: Specifies the full path to the source file. (required) + :param bool clone: You must set this parameter to true in order to clone a file. + :param str snapshot: Specifies a snapshot name to clone the file from. + :param bool overwrite: Specifies if an existing file should be overwritten by a new file with the same name. + :return: CopyErrors + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async'): + return self.copy_file_with_http_info(file_copy_target, x_isi_ifs_copy_source, **kwargs) # noqa: E501 + else: + (data) = self.copy_file_with_http_info(file_copy_target, x_isi_ifs_copy_source, **kwargs) # noqa: E501 + return data + + def copy_file_with_http_info(self, file_copy_target, x_isi_ifs_copy_source, **kwargs): # noqa: E501 + """copy_file # noqa: E501 + + Copies a file to the specified destination path. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async=True + >>> thread = api.copy_file_with_http_info(file_copy_target, x_isi_ifs_copy_source, async=True) + >>> result = thread.get() + + :param async bool + :param str file_copy_target: File copy destination relative to /. (required) + :param str x_isi_ifs_copy_source: Specifies the full path to the source file. (required) + :param bool clone: You must set this parameter to true in order to clone a file. + :param str snapshot: Specifies a snapshot name to clone the file from. + :param bool overwrite: Specifies if an existing file should be overwritten by a new file with the same name. + :return: CopyErrors + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['file_copy_target', 'x_isi_ifs_copy_source', 'clone', 'snapshot', 'overwrite'] # noqa: E501 + all_params.append('async') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method copy_file" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'file_copy_target' is set + if ('file_copy_target' not in params or + params['file_copy_target'] is None): + raise ValueError("Missing the required parameter `file_copy_target` when calling `copy_file`") # noqa: E501 + # verify the required parameter 'x_isi_ifs_copy_source' is set + if ('x_isi_ifs_copy_source' not in params or + params['x_isi_ifs_copy_source'] is None): + raise ValueError("Missing the required parameter `x_isi_ifs_copy_source` when calling `copy_file`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'file_copy_target' in params: + path_params['FileCopyTarget'] = params['file_copy_target'] # noqa: E501 + + query_params = [] + if 'clone' in params: + query_params.append(('clone', params['clone'])) # noqa: E501 + if 'snapshot' in params: + query_params.append(('snapshot', params['snapshot'])) # noqa: E501 + if 'overwrite' in params: + query_params.append(('overwrite', params['overwrite'])) # noqa: E501 + + header_params = {} + if 'x_isi_ifs_copy_source' in params: + header_params['x-isi-ifs-copy-source'] = params['x_isi_ifs_copy_source'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json']) # noqa: E501 + + # Authentication setting + auth_settings = ['basicAuth'] # noqa: E501 + + return self.api_client.call_api( + '/namespace/{FileCopyTarget}', 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='CopyErrors', # noqa: E501 + auth_settings=auth_settings, + async=params.get('async'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def create_access_point(self, access_point_name, access_point, **kwargs): # noqa: E501 + """create_access_point # noqa: E501 + + Creates a namespace access point in the file system. Only root users can create or change namespace access points. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async=True + >>> thread = api.create_access_point(access_point_name, access_point, async=True) + >>> result = thread.get() + + :param async bool + :param str access_point_name: Access point name. (required) + :param AccessPointCreateParams access_point: Access point parameters model. (required) + :return: Empty + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async'): + return self.create_access_point_with_http_info(access_point_name, access_point, **kwargs) # noqa: E501 + else: + (data) = self.create_access_point_with_http_info(access_point_name, access_point, **kwargs) # noqa: E501 + return data + + def create_access_point_with_http_info(self, access_point_name, access_point, **kwargs): # noqa: E501 + """create_access_point # noqa: E501 + + Creates a namespace access point in the file system. Only root users can create or change namespace access points. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async=True + >>> thread = api.create_access_point_with_http_info(access_point_name, access_point, async=True) + >>> result = thread.get() + + :param async bool + :param str access_point_name: Access point name. (required) + :param AccessPointCreateParams access_point: Access point parameters model. (required) + :return: Empty + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['access_point_name', 'access_point'] # noqa: E501 + all_params.append('async') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method create_access_point" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'access_point_name' is set + if ('access_point_name' not in params or + params['access_point_name'] is None): + raise ValueError("Missing the required parameter `access_point_name` when calling `create_access_point`") # noqa: E501 + # verify the required parameter 'access_point' is set + if ('access_point' not in params or + params['access_point'] is None): + raise ValueError("Missing the required parameter `access_point` when calling `create_access_point`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'access_point_name' in params: + path_params['AccessPointName'] = params['access_point_name'] # noqa: E501 + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'access_point' in params: + body_params = params['access_point'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json']) # noqa: E501 + + # Authentication setting + auth_settings = ['basicAuth'] # noqa: E501 + + return self.api_client.call_api( + '/namespace/{AccessPointName}', 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='Empty', # noqa: E501 + auth_settings=auth_settings, + async=params.get('async'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def create_directory(self, directory_path, x_isi_ifs_target_type, **kwargs): # noqa: E501 + """create_directory # noqa: E501 + + Creates a directory with a specified path. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async=True + >>> thread = api.create_directory(directory_path, x_isi_ifs_target_type, async=True) + >>> result = thread.get() + + :param async bool + :param str directory_path: Directory path relative to /. (required) + :param str x_isi_ifs_target_type: Specifies the resource type. (required) + :param str x_isi_ifs_access_control: Specifies a pre-defined ACL value or POSIX mode with a string in octal string format. + :param str x_isi_ifs_node_pool_name: Specifies a pre-defined ACL value or POSIX mode with a string. + :param bool recursive: Specifies the OneFS node pool name. + :param bool overwrite: Deletes and replaces the existing user attributes and ACLs of the directory with user-specified attributes and ACLS from the header, when set to true. + :return: Empty + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async'): + return self.create_directory_with_http_info(directory_path, x_isi_ifs_target_type, **kwargs) # noqa: E501 + else: + (data) = self.create_directory_with_http_info(directory_path, x_isi_ifs_target_type, **kwargs) # noqa: E501 + return data + + def create_directory_with_http_info(self, directory_path, x_isi_ifs_target_type, **kwargs): # noqa: E501 + """create_directory # noqa: E501 + + Creates a directory with a specified path. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async=True + >>> thread = api.create_directory_with_http_info(directory_path, x_isi_ifs_target_type, async=True) + >>> result = thread.get() + + :param async bool + :param str directory_path: Directory path relative to /. (required) + :param str x_isi_ifs_target_type: Specifies the resource type. (required) + :param str x_isi_ifs_access_control: Specifies a pre-defined ACL value or POSIX mode with a string in octal string format. + :param str x_isi_ifs_node_pool_name: Specifies a pre-defined ACL value or POSIX mode with a string. + :param bool recursive: Specifies the OneFS node pool name. + :param bool overwrite: Deletes and replaces the existing user attributes and ACLs of the directory with user-specified attributes and ACLS from the header, when set to true. + :return: Empty + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['directory_path', 'x_isi_ifs_target_type', 'x_isi_ifs_access_control', 'x_isi_ifs_node_pool_name', 'recursive', 'overwrite'] # noqa: E501 + all_params.append('async') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method create_directory" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'directory_path' is set + if ('directory_path' not in params or + params['directory_path'] is None): + raise ValueError("Missing the required parameter `directory_path` when calling `create_directory`") # noqa: E501 + # verify the required parameter 'x_isi_ifs_target_type' is set + if ('x_isi_ifs_target_type' not in params or + params['x_isi_ifs_target_type'] is None): + raise ValueError("Missing the required parameter `x_isi_ifs_target_type` when calling `create_directory`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'directory_path' in params: + path_params['DirectoryPath'] = params['directory_path'] # noqa: E501 + + query_params = [] + if 'recursive' in params: + query_params.append(('recursive', params['recursive'])) # noqa: E501 + if 'overwrite' in params: + query_params.append(('overwrite', params['overwrite'])) # noqa: E501 + + header_params = {} + if 'x_isi_ifs_target_type' in params: + header_params['x-isi-ifs-target-type'] = params['x_isi_ifs_target_type'] # noqa: E501 + if 'x_isi_ifs_access_control' in params: + header_params['x-isi-ifs-access-control'] = params['x_isi_ifs_access_control'] # noqa: E501 + if 'x_isi_ifs_node_pool_name' in params: + header_params['x-isi-ifs-node-pool-name'] = params['x_isi_ifs_node_pool_name'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json']) # noqa: E501 + + # Authentication setting + auth_settings = ['basicAuth'] # noqa: E501 + + return self.api_client.call_api( + '/namespace/{DirectoryPath}', 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='Empty', # noqa: E501 + auth_settings=auth_settings, + async=params.get('async'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def create_file(self, file_path, x_isi_ifs_target_type, file_contents, **kwargs): # noqa: E501 + """create_file # noqa: E501 + + Creates a file object with a given path. Note that file streaming is not supported. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async=True + >>> thread = api.create_file(file_path, x_isi_ifs_target_type, file_contents, async=True) + >>> result = thread.get() + + :param async bool + :param str file_path: File path relative to /. (required) + :param str x_isi_ifs_target_type: Specifies the resource type. (required) + :param str file_contents: The contents of the file object. (required) + :param str x_isi_ifs_access_control: Specifies a pre-defined ACL value or POSIX mode with a string in octal string format. + :param str content_encoding: Specifies the content encoding that was applied to the object content, so that decoding can be applied when retrieving the content. + :param str content_type: Specifies a standard MIME-type description of the content format. + :param bool overwrite: Deletes and replaces the existing user attributes and ACLs of the directory with user-specified attributes and ACLS from the header, when set to true. + :return: Empty + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async'): + return self.create_file_with_http_info(file_path, x_isi_ifs_target_type, file_contents, **kwargs) # noqa: E501 + else: + (data) = self.create_file_with_http_info(file_path, x_isi_ifs_target_type, file_contents, **kwargs) # noqa: E501 + return data + + def create_file_with_http_info(self, file_path, x_isi_ifs_target_type, file_contents, **kwargs): # noqa: E501 + """create_file # noqa: E501 + + Creates a file object with a given path. Note that file streaming is not supported. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async=True + >>> thread = api.create_file_with_http_info(file_path, x_isi_ifs_target_type, file_contents, async=True) + >>> result = thread.get() + + :param async bool + :param str file_path: File path relative to /. (required) + :param str x_isi_ifs_target_type: Specifies the resource type. (required) + :param str file_contents: The contents of the file object. (required) + :param str x_isi_ifs_access_control: Specifies a pre-defined ACL value or POSIX mode with a string in octal string format. + :param str content_encoding: Specifies the content encoding that was applied to the object content, so that decoding can be applied when retrieving the content. + :param str content_type: Specifies a standard MIME-type description of the content format. + :param bool overwrite: Deletes and replaces the existing user attributes and ACLs of the directory with user-specified attributes and ACLS from the header, when set to true. + :return: Empty + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['file_path', 'x_isi_ifs_target_type', 'file_contents', 'x_isi_ifs_access_control', 'content_encoding', 'content_type', 'overwrite'] # noqa: E501 + all_params.append('async') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method create_file" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'file_path' is set + if ('file_path' not in params or + params['file_path'] is None): + raise ValueError("Missing the required parameter `file_path` when calling `create_file`") # noqa: E501 + # verify the required parameter 'x_isi_ifs_target_type' is set + if ('x_isi_ifs_target_type' not in params or + params['x_isi_ifs_target_type'] is None): + raise ValueError("Missing the required parameter `x_isi_ifs_target_type` when calling `create_file`") # noqa: E501 + # verify the required parameter 'file_contents' is set + if ('file_contents' not in params or + params['file_contents'] is None): + raise ValueError("Missing the required parameter `file_contents` when calling `create_file`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'file_path' in params: + path_params['FilePath'] = params['file_path'] # noqa: E501 + + query_params = [] + if 'overwrite' in params: + query_params.append(('overwrite', params['overwrite'])) # noqa: E501 + + header_params = {} + if 'x_isi_ifs_target_type' in params: + header_params['x-isi-ifs-target-type'] = params['x_isi_ifs_target_type'] # noqa: E501 + if 'x_isi_ifs_access_control' in params: + header_params['x-isi-ifs-access-control'] = params['x_isi_ifs_access_control'] # noqa: E501 + if 'content_encoding' in params: + header_params['Content-Encoding'] = params['content_encoding'] # noqa: E501 + if 'content_type' in params: + header_params['Content-Type'] = params['content_type'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + if 'file_contents' in params: + body_params = params['file_contents'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json']) # noqa: E501 + + # Authentication setting + auth_settings = ['basicAuth'] # noqa: E501 + + return self.api_client.call_api( + '/namespace/{FilePath}', 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='Empty', # noqa: E501 + auth_settings=auth_settings, + async=params.get('async'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def delete_access_point(self, access_point_name, **kwargs): # noqa: E501 + """delete_access_point # noqa: E501 + + Deletes a namespace access point. Only root users can delete namespace access points. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async=True + >>> thread = api.delete_access_point(access_point_name, async=True) + >>> result = thread.get() + + :param async bool + :param str access_point_name: Access point name. (required) + :return: Empty + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async'): + return self.delete_access_point_with_http_info(access_point_name, **kwargs) # noqa: E501 + else: + (data) = self.delete_access_point_with_http_info(access_point_name, **kwargs) # noqa: E501 + return data + + def delete_access_point_with_http_info(self, access_point_name, **kwargs): # noqa: E501 + """delete_access_point # noqa: E501 + + Deletes a namespace access point. Only root users can delete namespace access points. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async=True + >>> thread = api.delete_access_point_with_http_info(access_point_name, async=True) + >>> result = thread.get() + + :param async bool + :param str access_point_name: Access point name. (required) + :return: Empty + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['access_point_name'] # noqa: E501 + all_params.append('async') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method delete_access_point" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'access_point_name' is set + if ('access_point_name' not in params or + params['access_point_name'] is None): + raise ValueError("Missing the required parameter `access_point_name` when calling `delete_access_point`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'access_point_name' in params: + path_params['AccessPointName'] = params['access_point_name'] # noqa: E501 + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json']) # noqa: E501 + + # Authentication setting + auth_settings = ['basicAuth'] # noqa: E501 + + return self.api_client.call_api( + '/namespace/{AccessPointName}', 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='Empty', # noqa: E501 + auth_settings=auth_settings, + async=params.get('async'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def delete_directory(self, directory_path, **kwargs): # noqa: E501 + """delete_directory # noqa: E501 + + Deletes the directory at the specified path. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async=True + >>> thread = api.delete_directory(directory_path, async=True) + >>> result = thread.get() + + :param async bool + :param str directory_path: Directory path relative to /. (required) + :param bool recursive: Deletes directories recursively, when set to true. + :return: Empty + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async'): + return self.delete_directory_with_http_info(directory_path, **kwargs) # noqa: E501 + else: + (data) = self.delete_directory_with_http_info(directory_path, **kwargs) # noqa: E501 + return data + + def delete_directory_with_http_info(self, directory_path, **kwargs): # noqa: E501 + """delete_directory # noqa: E501 + + Deletes the directory at the specified path. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async=True + >>> thread = api.delete_directory_with_http_info(directory_path, async=True) + >>> result = thread.get() + + :param async bool + :param str directory_path: Directory path relative to /. (required) + :param bool recursive: Deletes directories recursively, when set to true. + :return: Empty + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['directory_path', 'recursive'] # noqa: E501 + all_params.append('async') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method delete_directory" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'directory_path' is set + if ('directory_path' not in params or + params['directory_path'] is None): + raise ValueError("Missing the required parameter `directory_path` when calling `delete_directory`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'directory_path' in params: + path_params['DirectoryPath'] = params['directory_path'] # noqa: E501 + + query_params = [] + if 'recursive' in params: + query_params.append(('recursive', params['recursive'])) # noqa: E501 + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json']) # noqa: E501 + + # Authentication setting + auth_settings = ['basicAuth'] # noqa: E501 + + return self.api_client.call_api( + '/namespace/{DirectoryPath}', 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='Empty', # noqa: E501 + auth_settings=auth_settings, + async=params.get('async'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def delete_file(self, file_path, **kwargs): # noqa: E501 + """delete_file # noqa: E501 + + Deletes the specified file. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async=True + >>> thread = api.delete_file(file_path, async=True) + >>> result = thread.get() + + :param async bool + :param str file_path: File path relative to /. (required) + :return: Empty + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async'): + return self.delete_file_with_http_info(file_path, **kwargs) # noqa: E501 + else: + (data) = self.delete_file_with_http_info(file_path, **kwargs) # noqa: E501 + return data + + def delete_file_with_http_info(self, file_path, **kwargs): # noqa: E501 + """delete_file # noqa: E501 + + Deletes the specified file. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async=True + >>> thread = api.delete_file_with_http_info(file_path, async=True) + >>> result = thread.get() + + :param async bool + :param str file_path: File path relative to /. (required) + :return: Empty + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['file_path'] # noqa: E501 + all_params.append('async') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method delete_file" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'file_path' is set + if ('file_path' not in params or + params['file_path'] is None): + raise ValueError("Missing the required parameter `file_path` when calling `delete_file`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'file_path' in params: + path_params['FilePath'] = params['file_path'] # noqa: E501 + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json']) # noqa: E501 + + # Authentication setting + auth_settings = ['basicAuth'] # noqa: E501 + + return self.api_client.call_api( + '/namespace/{FilePath}', 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='Empty', # noqa: E501 + auth_settings=auth_settings, + async=params.get('async'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def get_acl(self, namespace_path, acl, **kwargs): # noqa: E501 + """get_acl # noqa: E501 + + Retrieves the access control list for a namespace object. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async=True + >>> thread = api.get_acl(namespace_path, acl, async=True) + >>> result = thread.get() + + :param async bool + :param str namespace_path: Namespace path relative to /. (required) + :param bool acl: Show access control lists. (required) + :param bool nsaccess: Indicates that the operation is on the access point instead of the store path. + :return: NamespaceAcl + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async'): + return self.get_acl_with_http_info(namespace_path, acl, **kwargs) # noqa: E501 + else: + (data) = self.get_acl_with_http_info(namespace_path, acl, **kwargs) # noqa: E501 + return data + + def get_acl_with_http_info(self, namespace_path, acl, **kwargs): # noqa: E501 + """get_acl # noqa: E501 + + Retrieves the access control list for a namespace object. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async=True + >>> thread = api.get_acl_with_http_info(namespace_path, acl, async=True) + >>> result = thread.get() + + :param async bool + :param str namespace_path: Namespace path relative to /. (required) + :param bool acl: Show access control lists. (required) + :param bool nsaccess: Indicates that the operation is on the access point instead of the store path. + :return: NamespaceAcl + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['namespace_path', 'acl', 'nsaccess'] # noqa: E501 + all_params.append('async') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method get_acl" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'namespace_path' is set + if ('namespace_path' not in params or + params['namespace_path'] is None): + raise ValueError("Missing the required parameter `namespace_path` when calling `get_acl`") # noqa: E501 + # verify the required parameter 'acl' is set + if ('acl' not in params or + params['acl'] is None): + raise ValueError("Missing the required parameter `acl` when calling `get_acl`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'namespace_path' in params: + path_params['NamespacePath'] = params['namespace_path'] # noqa: E501 + + query_params = [] + if 'acl' in params: + query_params.append(('acl', params['acl'])) # noqa: E501 + if 'nsaccess' in params: + query_params.append(('nsaccess', params['nsaccess'])) # noqa: E501 + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json']) # noqa: E501 + + # Authentication setting + auth_settings = ['basicAuth'] # noqa: E501 + + return self.api_client.call_api( + '/namespace/{NamespacePath}', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='NamespaceAcl', # noqa: E501 + auth_settings=auth_settings, + async=params.get('async'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def get_directory_attributes(self, directory_path, **kwargs): # noqa: E501 + """get_directory_attributes # noqa: E501 + + Retrieves the attribute information for a specified directory without transferring the contents of the directory. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async=True + >>> thread = api.get_directory_attributes(directory_path, async=True) + >>> result = thread.get() + + :param async bool + :param str directory_path: Directory path relative to /. (required) + :param str if_modified_since: Returns only files that were modified since the specified time. If no files were modified since this time, a 304 message is returned. + :param str if_unmodified_since: Returns only files that were not modified since the specified time. If there are no unmodified files since this time, a 412 message is returned to indicate that the precondition failed. + :return: Empty + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async'): + return self.get_directory_attributes_with_http_info(directory_path, **kwargs) # noqa: E501 + else: + (data) = self.get_directory_attributes_with_http_info(directory_path, **kwargs) # noqa: E501 + return data + + def get_directory_attributes_with_http_info(self, directory_path, **kwargs): # noqa: E501 + """get_directory_attributes # noqa: E501 + + Retrieves the attribute information for a specified directory without transferring the contents of the directory. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async=True + >>> thread = api.get_directory_attributes_with_http_info(directory_path, async=True) + >>> result = thread.get() + + :param async bool + :param str directory_path: Directory path relative to /. (required) + :param str if_modified_since: Returns only files that were modified since the specified time. If no files were modified since this time, a 304 message is returned. + :param str if_unmodified_since: Returns only files that were not modified since the specified time. If there are no unmodified files since this time, a 412 message is returned to indicate that the precondition failed. + :return: Empty + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['directory_path', 'if_modified_since', 'if_unmodified_since'] # noqa: E501 + all_params.append('async') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method get_directory_attributes" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'directory_path' is set + if ('directory_path' not in params or + params['directory_path'] is None): + raise ValueError("Missing the required parameter `directory_path` when calling `get_directory_attributes`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'directory_path' in params: + path_params['DirectoryPath'] = params['directory_path'] # noqa: E501 + + query_params = [] + + header_params = {} + if 'if_modified_since' in params: + header_params['If-Modified-Since'] = params['if_modified_since'] # noqa: E501 + if 'if_unmodified_since' in params: + header_params['If-Unmodified-Since'] = params['if_unmodified_since'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json']) # noqa: E501 + + # Authentication setting + auth_settings = ['basicAuth'] # noqa: E501 + + return self.api_client.call_api( + '/namespace/{DirectoryPath}', 'HEAD', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='Empty', # noqa: E501 + auth_settings=auth_settings, + async=params.get('async'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def get_directory_contents(self, directory_path, **kwargs): # noqa: E501 + """get_directory_contents # noqa: E501 + + Retrieves a list of files and subdirectories from a directory. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async=True + >>> thread = api.get_directory_contents(directory_path, async=True) + >>> result = thread.get() + + :param async bool + :param str directory_path: Directory path relative to /. (required) + :param str detail: Specifies which object attributes are displayed. + :param int limit: Specifies the maximum number of objects to send to the client. + :param str resume: Specifies a token to return in the JSON result to indicate when there is a next page. + :param str sort: Specifies one or more attributes to sort on the directory entries. + :param str dir: Specifies the sort direction. This value can be either ascending (ASC) or descending (DESC). + :param str type: Specifies the object type to return, which can be one of the following values: container, object, pipe, character_device, block_device, symbolic_link, socket, or whiteout_file. + :param bool hidden: Specifies if hidden objects are returned. + :return: NamespaceObjects + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async'): + return self.get_directory_contents_with_http_info(directory_path, **kwargs) # noqa: E501 + else: + (data) = self.get_directory_contents_with_http_info(directory_path, **kwargs) # noqa: E501 + return data + + def get_directory_contents_with_http_info(self, directory_path, **kwargs): # noqa: E501 + """get_directory_contents # noqa: E501 + + Retrieves a list of files and subdirectories from a directory. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async=True + >>> thread = api.get_directory_contents_with_http_info(directory_path, async=True) + >>> result = thread.get() + + :param async bool + :param str directory_path: Directory path relative to /. (required) + :param str detail: Specifies which object attributes are displayed. + :param int limit: Specifies the maximum number of objects to send to the client. + :param str resume: Specifies a token to return in the JSON result to indicate when there is a next page. + :param str sort: Specifies one or more attributes to sort on the directory entries. + :param str dir: Specifies the sort direction. This value can be either ascending (ASC) or descending (DESC). + :param str type: Specifies the object type to return, which can be one of the following values: container, object, pipe, character_device, block_device, symbolic_link, socket, or whiteout_file. + :param bool hidden: Specifies if hidden objects are returned. + :return: NamespaceObjects + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['directory_path', 'detail', 'limit', 'resume', 'sort', 'dir', 'type', 'hidden'] # noqa: E501 + all_params.append('async') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method get_directory_contents" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'directory_path' is set + if ('directory_path' not in params or + params['directory_path'] is None): + raise ValueError("Missing the required parameter `directory_path` when calling `get_directory_contents`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'directory_path' in params: + path_params['DirectoryPath'] = params['directory_path'] # noqa: E501 + + query_params = [] + if 'detail' in params: + query_params.append(('detail', params['detail'])) # noqa: E501 + if 'limit' in params: + query_params.append(('limit', params['limit'])) # noqa: E501 + if 'resume' in params: + query_params.append(('resume', params['resume'])) # noqa: E501 + if 'sort' in params: + query_params.append(('sort', params['sort'])) # noqa: E501 + if 'dir' in params: + query_params.append(('dir', params['dir'])) # noqa: E501 + if 'type' in params: + query_params.append(('type', params['type'])) # noqa: E501 + if 'hidden' in params: + query_params.append(('hidden', params['hidden'])) # noqa: E501 + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json']) # noqa: E501 + + # Authentication setting + auth_settings = ['basicAuth'] # noqa: E501 + + return self.api_client.call_api( + '/namespace/{DirectoryPath}', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='NamespaceObjects', # noqa: E501 + auth_settings=auth_settings, + async=params.get('async'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def get_directory_metadata(self, directory_metadata_path, metadata, **kwargs): # noqa: E501 + """get_directory_metadata # noqa: E501 + + Retrieves the attribute information for a specified directory with the metadata query argument. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async=True + >>> thread = api.get_directory_metadata(directory_metadata_path, metadata, async=True) + >>> result = thread.get() + + :param async bool + :param str directory_metadata_path: Directory path relative to /. (required) + :param bool metadata: Show directory metadata. (required) + :return: NamespaceMetadataList + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async'): + return self.get_directory_metadata_with_http_info(directory_metadata_path, metadata, **kwargs) # noqa: E501 + else: + (data) = self.get_directory_metadata_with_http_info(directory_metadata_path, metadata, **kwargs) # noqa: E501 + return data + + def get_directory_metadata_with_http_info(self, directory_metadata_path, metadata, **kwargs): # noqa: E501 + """get_directory_metadata # noqa: E501 + + Retrieves the attribute information for a specified directory with the metadata query argument. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async=True + >>> thread = api.get_directory_metadata_with_http_info(directory_metadata_path, metadata, async=True) + >>> result = thread.get() + + :param async bool + :param str directory_metadata_path: Directory path relative to /. (required) + :param bool metadata: Show directory metadata. (required) + :return: NamespaceMetadataList + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['directory_metadata_path', 'metadata'] # noqa: E501 + all_params.append('async') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method get_directory_metadata" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'directory_metadata_path' is set + if ('directory_metadata_path' not in params or + params['directory_metadata_path'] is None): + raise ValueError("Missing the required parameter `directory_metadata_path` when calling `get_directory_metadata`") # noqa: E501 + # verify the required parameter 'metadata' is set + if ('metadata' not in params or + params['metadata'] is None): + raise ValueError("Missing the required parameter `metadata` when calling `get_directory_metadata`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'directory_metadata_path' in params: + path_params['DirectoryMetadataPath'] = params['directory_metadata_path'] # noqa: E501 + + query_params = [] + if 'metadata' in params: + query_params.append(('metadata', params['metadata'])) # noqa: E501 + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json']) # noqa: E501 + + # Authentication setting + auth_settings = ['basicAuth'] # noqa: E501 + + return self.api_client.call_api( + '/namespace/{DirectoryMetadataPath}', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='NamespaceMetadataList', # noqa: E501 + auth_settings=auth_settings, + async=params.get('async'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def get_file_attributes(self, file_path, **kwargs): # noqa: E501 + """get_file_attributes # noqa: E501 + + Retrieves the attribute information for a specified file. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async=True + >>> thread = api.get_file_attributes(file_path, async=True) + >>> result = thread.get() + + :param async bool + :param str file_path: File path relative to /. (required) + :param str if_modified_since: Returns only files that were modified since the specified time. If no files were modified since this time, a 304 message is returned. + :param str if_unmodified_since: Returns only files that were not modified since the specified time. If there are no unmodified files since this time, a 412 message is returned to indicate that the precondition failed. + :return: Empty + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async'): + return self.get_file_attributes_with_http_info(file_path, **kwargs) # noqa: E501 + else: + (data) = self.get_file_attributes_with_http_info(file_path, **kwargs) # noqa: E501 + return data + + def get_file_attributes_with_http_info(self, file_path, **kwargs): # noqa: E501 + """get_file_attributes # noqa: E501 + + Retrieves the attribute information for a specified file. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async=True + >>> thread = api.get_file_attributes_with_http_info(file_path, async=True) + >>> result = thread.get() + + :param async bool + :param str file_path: File path relative to /. (required) + :param str if_modified_since: Returns only files that were modified since the specified time. If no files were modified since this time, a 304 message is returned. + :param str if_unmodified_since: Returns only files that were not modified since the specified time. If there are no unmodified files since this time, a 412 message is returned to indicate that the precondition failed. + :return: Empty + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['file_path', 'if_modified_since', 'if_unmodified_since'] # noqa: E501 + all_params.append('async') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method get_file_attributes" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'file_path' is set + if ('file_path' not in params or + params['file_path'] is None): + raise ValueError("Missing the required parameter `file_path` when calling `get_file_attributes`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'file_path' in params: + path_params['FilePath'] = params['file_path'] # noqa: E501 + + query_params = [] + + header_params = {} + if 'if_modified_since' in params: + header_params['If-Modified-Since'] = params['if_modified_since'] # noqa: E501 + if 'if_unmodified_since' in params: + header_params['If-Unmodified-Since'] = params['if_unmodified_since'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json']) # noqa: E501 + + # Authentication setting + auth_settings = ['basicAuth'] # noqa: E501 + + return self.api_client.call_api( + '/namespace/{FilePath}', 'HEAD', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='Empty', # noqa: E501 + auth_settings=auth_settings, + async=params.get('async'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def get_file_contents(self, file_path, **kwargs): # noqa: E501 + """get_file_contents # noqa: E501 + + Retrieves the contents of a file from a specified path. Note that file streaming is not supported. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async=True + >>> thread = api.get_file_contents(file_path, async=True) + >>> result = thread.get() + + :param async bool + :param str file_path: File path relative to /. (required) + :param str range: Returns the specified range bytes of an object. + :param str if_modified_since: Returns only files that were modified since the specified time. If no files were modified since this time, a 304 message is returned. + :param str if_unmodified_since: Returns only files that were not modified since the specified time. If there are no unmodified files since this time, a 412 message is returned to indicate that the precondition failed. + :return: Empty + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async'): + return self.get_file_contents_with_http_info(file_path, **kwargs) # noqa: E501 + else: + (data) = self.get_file_contents_with_http_info(file_path, **kwargs) # noqa: E501 + return data + + def get_file_contents_with_http_info(self, file_path, **kwargs): # noqa: E501 + """get_file_contents # noqa: E501 + + Retrieves the contents of a file from a specified path. Note that file streaming is not supported. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async=True + >>> thread = api.get_file_contents_with_http_info(file_path, async=True) + >>> result = thread.get() + + :param async bool + :param str file_path: File path relative to /. (required) + :param str range: Returns the specified range bytes of an object. + :param str if_modified_since: Returns only files that were modified since the specified time. If no files were modified since this time, a 304 message is returned. + :param str if_unmodified_since: Returns only files that were not modified since the specified time. If there are no unmodified files since this time, a 412 message is returned to indicate that the precondition failed. + :return: Empty + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['file_path', 'range', 'if_modified_since', 'if_unmodified_since'] # noqa: E501 + all_params.append('async') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method get_file_contents" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'file_path' is set + if ('file_path' not in params or + params['file_path'] is None): + raise ValueError("Missing the required parameter `file_path` when calling `get_file_contents`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'file_path' in params: + path_params['FilePath'] = params['file_path'] # noqa: E501 + + query_params = [] + + header_params = {} + if 'range' in params: + header_params['Range'] = params['range'] # noqa: E501 + if 'if_modified_since' in params: + header_params['If-Modified-Since'] = params['if_modified_since'] # noqa: E501 + if 'if_unmodified_since' in params: + header_params['If-Unmodified-Since'] = params['if_unmodified_since'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json']) # noqa: E501 + + # Authentication setting + auth_settings = ['basicAuth'] # noqa: E501 + + return self.api_client.call_api( + '/namespace/{FilePath}', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='Empty', # noqa: E501 + auth_settings=auth_settings, + async=params.get('async'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def get_file_metadata(self, file_metadata_path, metadata, **kwargs): # noqa: E501 + """get_file_metadata # noqa: E501 + + Retrieves the attribute information for a specified file with the metadata query argument. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async=True + >>> thread = api.get_file_metadata(file_metadata_path, metadata, async=True) + >>> result = thread.get() + + :param async bool + :param str file_metadata_path: File path relative to /. (required) + :param bool metadata: Show file metadata. (required) + :return: NamespaceMetadataList + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async'): + return self.get_file_metadata_with_http_info(file_metadata_path, metadata, **kwargs) # noqa: E501 + else: + (data) = self.get_file_metadata_with_http_info(file_metadata_path, metadata, **kwargs) # noqa: E501 + return data + + def get_file_metadata_with_http_info(self, file_metadata_path, metadata, **kwargs): # noqa: E501 + """get_file_metadata # noqa: E501 + + Retrieves the attribute information for a specified file with the metadata query argument. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async=True + >>> thread = api.get_file_metadata_with_http_info(file_metadata_path, metadata, async=True) + >>> result = thread.get() + + :param async bool + :param str file_metadata_path: File path relative to /. (required) + :param bool metadata: Show file metadata. (required) + :return: NamespaceMetadataList + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['file_metadata_path', 'metadata'] # noqa: E501 + all_params.append('async') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method get_file_metadata" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'file_metadata_path' is set + if ('file_metadata_path' not in params or + params['file_metadata_path'] is None): + raise ValueError("Missing the required parameter `file_metadata_path` when calling `get_file_metadata`") # noqa: E501 + # verify the required parameter 'metadata' is set + if ('metadata' not in params or + params['metadata'] is None): + raise ValueError("Missing the required parameter `metadata` when calling `get_file_metadata`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'file_metadata_path' in params: + path_params['FileMetadataPath'] = params['file_metadata_path'] # noqa: E501 + + query_params = [] + if 'metadata' in params: + query_params.append(('metadata', params['metadata'])) # noqa: E501 + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json']) # noqa: E501 + + # Authentication setting + auth_settings = ['basicAuth'] # noqa: E501 + + return self.api_client.call_api( + '/namespace/{FileMetadataPath}', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='NamespaceMetadataList', # noqa: E501 + auth_settings=auth_settings, + async=params.get('async'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def get_worm_properties(self, worm_file_path, worm, **kwargs): # noqa: E501 + """get_worm_properties # noqa: E501 + + Retrieves the WORM retention date and committed state of the file. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async=True + >>> thread = api.get_worm_properties(worm_file_path, worm, async=True) + >>> result = thread.get() + + :param async bool + :param str worm_file_path: Write once read many file path relative to /. (required) + :param bool worm: View WORM properties (required) + :return: WormProperties + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async'): + return self.get_worm_properties_with_http_info(worm_file_path, worm, **kwargs) # noqa: E501 + else: + (data) = self.get_worm_properties_with_http_info(worm_file_path, worm, **kwargs) # noqa: E501 + return data + + def get_worm_properties_with_http_info(self, worm_file_path, worm, **kwargs): # noqa: E501 + """get_worm_properties # noqa: E501 + + Retrieves the WORM retention date and committed state of the file. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async=True + >>> thread = api.get_worm_properties_with_http_info(worm_file_path, worm, async=True) + >>> result = thread.get() + + :param async bool + :param str worm_file_path: Write once read many file path relative to /. (required) + :param bool worm: View WORM properties (required) + :return: WormProperties + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['worm_file_path', 'worm'] # noqa: E501 + all_params.append('async') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method get_worm_properties" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'worm_file_path' is set + if ('worm_file_path' not in params or + params['worm_file_path'] is None): + raise ValueError("Missing the required parameter `worm_file_path` when calling `get_worm_properties`") # noqa: E501 + # verify the required parameter 'worm' is set + if ('worm' not in params or + params['worm'] is None): + raise ValueError("Missing the required parameter `worm` when calling `get_worm_properties`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'worm_file_path' in params: + path_params['WormFilePath'] = params['worm_file_path'] # noqa: E501 + + query_params = [] + if 'worm' in params: + query_params.append(('worm', params['worm'])) # noqa: E501 + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json']) # noqa: E501 + + # Authentication setting + auth_settings = ['basicAuth'] # noqa: E501 + + return self.api_client.call_api( + '/namespace/{WormFilePath}', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='WormProperties', # noqa: E501 + auth_settings=auth_settings, + async=params.get('async'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def list_access_points(self, **kwargs): # noqa: E501 + """list_access_points # noqa: E501 + + Retrieves the namespace access points available for the authenticated user. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async=True + >>> thread = api.list_access_points(async=True) + >>> result = thread.get() + + :param async bool + :param bool versions: Protocol versions that are supported for the current namespace access server. + :return: NamespaceAccessPoints + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async'): + return self.list_access_points_with_http_info(**kwargs) # noqa: E501 + else: + (data) = self.list_access_points_with_http_info(**kwargs) # noqa: E501 + return data + + def list_access_points_with_http_info(self, **kwargs): # noqa: E501 + """list_access_points # noqa: E501 + + Retrieves the namespace access points available for the authenticated user. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async=True + >>> thread = api.list_access_points_with_http_info(async=True) + >>> result = thread.get() + + :param async bool + :param bool versions: Protocol versions that are supported for the current namespace access server. + :return: NamespaceAccessPoints + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['versions'] # noqa: E501 + all_params.append('async') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method list_access_points" % key + ) + params[key] = val + del params['kwargs'] + + collection_formats = {} + + path_params = {} + + query_params = [] + if 'versions' in params: + query_params.append(('versions', params['versions'])) # noqa: E501 + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json']) # noqa: E501 + + # Authentication setting + auth_settings = ['basicAuth'] # noqa: E501 + + return self.api_client.call_api( + '/namespace', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='NamespaceAccessPoints', # noqa: E501 + auth_settings=auth_settings, + async=params.get('async'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def move_directory(self, directory_path, x_isi_ifs_set_location, **kwargs): # noqa: E501 + """move_directory # noqa: E501 + + Moves a directory from an existing source to a new destination path. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async=True + >>> thread = api.move_directory(directory_path, x_isi_ifs_set_location, async=True) + >>> result = thread.get() + + :param async bool + :param str directory_path: Directory path relative to /. (required) + :param str x_isi_ifs_set_location: Specifies the full path for the destination directory. (required) + :return: Empty + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async'): + return self.move_directory_with_http_info(directory_path, x_isi_ifs_set_location, **kwargs) # noqa: E501 + else: + (data) = self.move_directory_with_http_info(directory_path, x_isi_ifs_set_location, **kwargs) # noqa: E501 + return data + + def move_directory_with_http_info(self, directory_path, x_isi_ifs_set_location, **kwargs): # noqa: E501 + """move_directory # noqa: E501 + + Moves a directory from an existing source to a new destination path. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async=True + >>> thread = api.move_directory_with_http_info(directory_path, x_isi_ifs_set_location, async=True) + >>> result = thread.get() + + :param async bool + :param str directory_path: Directory path relative to /. (required) + :param str x_isi_ifs_set_location: Specifies the full path for the destination directory. (required) + :return: Empty + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['directory_path', 'x_isi_ifs_set_location'] # noqa: E501 + all_params.append('async') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method move_directory" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'directory_path' is set + if ('directory_path' not in params or + params['directory_path'] is None): + raise ValueError("Missing the required parameter `directory_path` when calling `move_directory`") # noqa: E501 + # verify the required parameter 'x_isi_ifs_set_location' is set + if ('x_isi_ifs_set_location' not in params or + params['x_isi_ifs_set_location'] is None): + raise ValueError("Missing the required parameter `x_isi_ifs_set_location` when calling `move_directory`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'directory_path' in params: + path_params['DirectoryPath'] = params['directory_path'] # noqa: E501 + + query_params = [] + + header_params = {} + if 'x_isi_ifs_set_location' in params: + header_params['x-isi-ifs-set-location'] = params['x_isi_ifs_set_location'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json']) # noqa: E501 + + # Authentication setting + auth_settings = ['basicAuth'] # noqa: E501 + + return self.api_client.call_api( + '/namespace/{DirectoryPath}', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='Empty', # noqa: E501 + auth_settings=auth_settings, + async=params.get('async'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def move_file(self, file_path, x_isi_ifs_set_location, **kwargs): # noqa: E501 + """move_file # noqa: E501 + + Moves a file to a destination path that does not yet exist. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async=True + >>> thread = api.move_file(file_path, x_isi_ifs_set_location, async=True) + >>> result = thread.get() + + :param async bool + :param str file_path: File path relative to /. (required) + :param str x_isi_ifs_set_location: Specifies the full path for the destination file. (required) + :return: Empty + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async'): + return self.move_file_with_http_info(file_path, x_isi_ifs_set_location, **kwargs) # noqa: E501 + else: + (data) = self.move_file_with_http_info(file_path, x_isi_ifs_set_location, **kwargs) # noqa: E501 + return data + + def move_file_with_http_info(self, file_path, x_isi_ifs_set_location, **kwargs): # noqa: E501 + """move_file # noqa: E501 + + Moves a file to a destination path that does not yet exist. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async=True + >>> thread = api.move_file_with_http_info(file_path, x_isi_ifs_set_location, async=True) + >>> result = thread.get() + + :param async bool + :param str file_path: File path relative to /. (required) + :param str x_isi_ifs_set_location: Specifies the full path for the destination file. (required) + :return: Empty + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['file_path', 'x_isi_ifs_set_location'] # noqa: E501 + all_params.append('async') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method move_file" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'file_path' is set + if ('file_path' not in params or + params['file_path'] is None): + raise ValueError("Missing the required parameter `file_path` when calling `move_file`") # noqa: E501 + # verify the required parameter 'x_isi_ifs_set_location' is set + if ('x_isi_ifs_set_location' not in params or + params['x_isi_ifs_set_location'] is None): + raise ValueError("Missing the required parameter `x_isi_ifs_set_location` when calling `move_file`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'file_path' in params: + path_params['FilePath'] = params['file_path'] # noqa: E501 + + query_params = [] + + header_params = {} + if 'x_isi_ifs_set_location' in params: + header_params['x-isi-ifs-set-location'] = params['x_isi_ifs_set_location'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json']) # noqa: E501 + + # Authentication setting + auth_settings = ['basicAuth'] # noqa: E501 + + return self.api_client.call_api( + '/namespace/{FilePath}', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='Empty', # noqa: E501 + auth_settings=auth_settings, + async=params.get('async'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def query_directory(self, query_path, query, directory_query, **kwargs): # noqa: E501 + """query_directory # noqa: E501 + + Query objects by system-defined and user-defined attributes in a directory. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async=True + >>> thread = api.query_directory(query_path, query, directory_query, async=True) + >>> result = thread.get() + + :param async bool + :param str query_path: Directory path relative to /. (required) + :param bool query: Enable directory query. (required) + :param DirectoryQuery directory_query: Directory query parameters model. (required) + :param int limit: Specifies the maximum number of objects to send to the client. You can set the value to a negative number to retrieve all objects. + :param str detail: Specifies which object attributes are displayed. If the detail parameter is excluded, only the name of the object is returned. + :param int max_depth: Specifies the maximum directory level depth to search for objects. + :return: NamespaceObjects + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async'): + return self.query_directory_with_http_info(query_path, query, directory_query, **kwargs) # noqa: E501 + else: + (data) = self.query_directory_with_http_info(query_path, query, directory_query, **kwargs) # noqa: E501 + return data + + def query_directory_with_http_info(self, query_path, query, directory_query, **kwargs): # noqa: E501 + """query_directory # noqa: E501 + + Query objects by system-defined and user-defined attributes in a directory. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async=True + >>> thread = api.query_directory_with_http_info(query_path, query, directory_query, async=True) + >>> result = thread.get() + + :param async bool + :param str query_path: Directory path relative to /. (required) + :param bool query: Enable directory query. (required) + :param DirectoryQuery directory_query: Directory query parameters model. (required) + :param int limit: Specifies the maximum number of objects to send to the client. You can set the value to a negative number to retrieve all objects. + :param str detail: Specifies which object attributes are displayed. If the detail parameter is excluded, only the name of the object is returned. + :param int max_depth: Specifies the maximum directory level depth to search for objects. + :return: NamespaceObjects + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['query_path', 'query', 'directory_query', 'limit', 'detail', 'max_depth'] # noqa: E501 + all_params.append('async') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method query_directory" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'query_path' is set + if ('query_path' not in params or + params['query_path'] is None): + raise ValueError("Missing the required parameter `query_path` when calling `query_directory`") # noqa: E501 + # verify the required parameter 'query' is set + if ('query' not in params or + params['query'] is None): + raise ValueError("Missing the required parameter `query` when calling `query_directory`") # noqa: E501 + # verify the required parameter 'directory_query' is set + if ('directory_query' not in params or + params['directory_query'] is None): + raise ValueError("Missing the required parameter `directory_query` when calling `query_directory`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'query_path' in params: + path_params['QueryPath'] = params['query_path'] # noqa: E501 + + query_params = [] + if 'query' in params: + query_params.append(('query', params['query'])) # noqa: E501 + if 'limit' in params: + query_params.append(('limit', params['limit'])) # noqa: E501 + if 'detail' in params: + query_params.append(('detail', params['detail'])) # noqa: E501 + if 'max_depth' in params: + query_params.append(('max-depth', params['max_depth'])) # noqa: E501 + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'directory_query' in params: + body_params = params['directory_query'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json']) # noqa: E501 + + # Authentication setting + auth_settings = ['basicAuth'] # noqa: E501 + + return self.api_client.call_api( + '/namespace/{QueryPath}', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='NamespaceObjects', # noqa: E501 + auth_settings=auth_settings, + async=params.get('async'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def set_acl(self, namespace_path, acl, namespace_acl, **kwargs): # noqa: E501 + """set_acl # noqa: E501 + + Sets the access control list for a namespace. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async=True + >>> thread = api.set_acl(namespace_path, acl, namespace_acl, async=True) + >>> result = thread.get() + + :param async bool + :param str namespace_path: Namespace path relative to /. (required) + :param bool acl: Update access control lists. (required) + :param NamespaceAcl namespace_acl: Namespace ACL parameters model. (required) + :param bool nsaccess: Indicates that the operation is on the access point instead of the store path. + :return: Empty + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async'): + return self.set_acl_with_http_info(namespace_path, acl, namespace_acl, **kwargs) # noqa: E501 + else: + (data) = self.set_acl_with_http_info(namespace_path, acl, namespace_acl, **kwargs) # noqa: E501 + return data + + def set_acl_with_http_info(self, namespace_path, acl, namespace_acl, **kwargs): # noqa: E501 + """set_acl # noqa: E501 + + Sets the access control list for a namespace. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async=True + >>> thread = api.set_acl_with_http_info(namespace_path, acl, namespace_acl, async=True) + >>> result = thread.get() + + :param async bool + :param str namespace_path: Namespace path relative to /. (required) + :param bool acl: Update access control lists. (required) + :param NamespaceAcl namespace_acl: Namespace ACL parameters model. (required) + :param bool nsaccess: Indicates that the operation is on the access point instead of the store path. + :return: Empty + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['namespace_path', 'acl', 'namespace_acl', 'nsaccess'] # noqa: E501 + all_params.append('async') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method set_acl" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'namespace_path' is set + if ('namespace_path' not in params or + params['namespace_path'] is None): + raise ValueError("Missing the required parameter `namespace_path` when calling `set_acl`") # noqa: E501 + # verify the required parameter 'acl' is set + if ('acl' not in params or + params['acl'] is None): + raise ValueError("Missing the required parameter `acl` when calling `set_acl`") # noqa: E501 + # verify the required parameter 'namespace_acl' is set + if ('namespace_acl' not in params or + params['namespace_acl'] is None): + raise ValueError("Missing the required parameter `namespace_acl` when calling `set_acl`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'namespace_path' in params: + path_params['NamespacePath'] = params['namespace_path'] # noqa: E501 + + query_params = [] + if 'acl' in params: + query_params.append(('acl', params['acl'])) # noqa: E501 + if 'nsaccess' in params: + query_params.append(('nsaccess', params['nsaccess'])) # noqa: E501 + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'namespace_acl' in params: + body_params = params['namespace_acl'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json']) # noqa: E501 + + # Authentication setting + auth_settings = ['basicAuth'] # noqa: E501 + + return self.api_client.call_api( + '/namespace/{NamespacePath}', 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='Empty', # noqa: E501 + auth_settings=auth_settings, + async=params.get('async'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def set_directory_metadata(self, directory_metadata_path, metadata, directory_metadata, **kwargs): # noqa: E501 + """set_directory_metadata # noqa: E501 + + Sets attributes on a specified directory with the metadata query argument. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async=True + >>> thread = api.set_directory_metadata(directory_metadata_path, metadata, directory_metadata, async=True) + >>> result = thread.get() + + :param async bool + :param str directory_metadata_path: Directory path relative to /. (required) + :param bool metadata: Set directory metadata. (required) + :param NamespaceMetadata directory_metadata: Directory metadata parameters model. (required) + :return: Empty + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async'): + return self.set_directory_metadata_with_http_info(directory_metadata_path, metadata, directory_metadata, **kwargs) # noqa: E501 + else: + (data) = self.set_directory_metadata_with_http_info(directory_metadata_path, metadata, directory_metadata, **kwargs) # noqa: E501 + return data + + def set_directory_metadata_with_http_info(self, directory_metadata_path, metadata, directory_metadata, **kwargs): # noqa: E501 + """set_directory_metadata # noqa: E501 + + Sets attributes on a specified directory with the metadata query argument. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async=True + >>> thread = api.set_directory_metadata_with_http_info(directory_metadata_path, metadata, directory_metadata, async=True) + >>> result = thread.get() + + :param async bool + :param str directory_metadata_path: Directory path relative to /. (required) + :param bool metadata: Set directory metadata. (required) + :param NamespaceMetadata directory_metadata: Directory metadata parameters model. (required) + :return: Empty + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['directory_metadata_path', 'metadata', 'directory_metadata'] # noqa: E501 + all_params.append('async') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method set_directory_metadata" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'directory_metadata_path' is set + if ('directory_metadata_path' not in params or + params['directory_metadata_path'] is None): + raise ValueError("Missing the required parameter `directory_metadata_path` when calling `set_directory_metadata`") # noqa: E501 + # verify the required parameter 'metadata' is set + if ('metadata' not in params or + params['metadata'] is None): + raise ValueError("Missing the required parameter `metadata` when calling `set_directory_metadata`") # noqa: E501 + # verify the required parameter 'directory_metadata' is set + if ('directory_metadata' not in params or + params['directory_metadata'] is None): + raise ValueError("Missing the required parameter `directory_metadata` when calling `set_directory_metadata`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'directory_metadata_path' in params: + path_params['DirectoryMetadataPath'] = params['directory_metadata_path'] # noqa: E501 + + query_params = [] + if 'metadata' in params: + query_params.append(('metadata', params['metadata'])) # noqa: E501 + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'directory_metadata' in params: + body_params = params['directory_metadata'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json']) # noqa: E501 + + # Authentication setting + auth_settings = ['basicAuth'] # noqa: E501 + + return self.api_client.call_api( + '/namespace/{DirectoryMetadataPath}', 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='Empty', # noqa: E501 + auth_settings=auth_settings, + async=params.get('async'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def set_file_metadata(self, file_metadata_path, metadata, file_metadata, **kwargs): # noqa: E501 + """set_file_metadata # noqa: E501 + + Sets attributes on a specified file with the metadata query argument through the JSON body. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async=True + >>> thread = api.set_file_metadata(file_metadata_path, metadata, file_metadata, async=True) + >>> result = thread.get() + + :param async bool + :param str file_metadata_path: File path relative to /. (required) + :param bool metadata: Set file metadata. (required) + :param NamespaceMetadata file_metadata: File metadata parameters model. (required) + :return: Empty + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async'): + return self.set_file_metadata_with_http_info(file_metadata_path, metadata, file_metadata, **kwargs) # noqa: E501 + else: + (data) = self.set_file_metadata_with_http_info(file_metadata_path, metadata, file_metadata, **kwargs) # noqa: E501 + return data + + def set_file_metadata_with_http_info(self, file_metadata_path, metadata, file_metadata, **kwargs): # noqa: E501 + """set_file_metadata # noqa: E501 + + Sets attributes on a specified file with the metadata query argument through the JSON body. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async=True + >>> thread = api.set_file_metadata_with_http_info(file_metadata_path, metadata, file_metadata, async=True) + >>> result = thread.get() + + :param async bool + :param str file_metadata_path: File path relative to /. (required) + :param bool metadata: Set file metadata. (required) + :param NamespaceMetadata file_metadata: File metadata parameters model. (required) + :return: Empty + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['file_metadata_path', 'metadata', 'file_metadata'] # noqa: E501 + all_params.append('async') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method set_file_metadata" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'file_metadata_path' is set + if ('file_metadata_path' not in params or + params['file_metadata_path'] is None): + raise ValueError("Missing the required parameter `file_metadata_path` when calling `set_file_metadata`") # noqa: E501 + # verify the required parameter 'metadata' is set + if ('metadata' not in params or + params['metadata'] is None): + raise ValueError("Missing the required parameter `metadata` when calling `set_file_metadata`") # noqa: E501 + # verify the required parameter 'file_metadata' is set + if ('file_metadata' not in params or + params['file_metadata'] is None): + raise ValueError("Missing the required parameter `file_metadata` when calling `set_file_metadata`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'file_metadata_path' in params: + path_params['FileMetadataPath'] = params['file_metadata_path'] # noqa: E501 + + query_params = [] + if 'metadata' in params: + query_params.append(('metadata', params['metadata'])) # noqa: E501 + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'file_metadata' in params: + body_params = params['file_metadata'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json']) # noqa: E501 + + # Authentication setting + auth_settings = ['basicAuth'] # noqa: E501 + + return self.api_client.call_api( + '/namespace/{FileMetadataPath}', 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='Empty', # noqa: E501 + auth_settings=auth_settings, + async=params.get('async'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def set_worm_properties(self, worm_file_path, worm, worm_properties, **kwargs): # noqa: E501 + """set_worm_properties # noqa: E501 + + Sets the retention period and commits a file in a SmartLock directory. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async=True + >>> thread = api.set_worm_properties(worm_file_path, worm, worm_properties, async=True) + >>> result = thread.get() + + :param async bool + :param str worm_file_path: Write once read many file path relative to /. (required) + :param bool worm: View WORM properties (required) + :param WormCreateParams worm_properties: WORM parameters model. (required) + :return: Empty + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async'): + return self.set_worm_properties_with_http_info(worm_file_path, worm, worm_properties, **kwargs) # noqa: E501 + else: + (data) = self.set_worm_properties_with_http_info(worm_file_path, worm, worm_properties, **kwargs) # noqa: E501 + return data + + def set_worm_properties_with_http_info(self, worm_file_path, worm, worm_properties, **kwargs): # noqa: E501 + """set_worm_properties # noqa: E501 + + Sets the retention period and commits a file in a SmartLock directory. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async=True + >>> thread = api.set_worm_properties_with_http_info(worm_file_path, worm, worm_properties, async=True) + >>> result = thread.get() + + :param async bool + :param str worm_file_path: Write once read many file path relative to /. (required) + :param bool worm: View WORM properties (required) + :param WormCreateParams worm_properties: WORM parameters model. (required) + :return: Empty + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['worm_file_path', 'worm', 'worm_properties'] # noqa: E501 + all_params.append('async') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method set_worm_properties" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'worm_file_path' is set + if ('worm_file_path' not in params or + params['worm_file_path'] is None): + raise ValueError("Missing the required parameter `worm_file_path` when calling `set_worm_properties`") # noqa: E501 + # verify the required parameter 'worm' is set + if ('worm' not in params or + params['worm'] is None): + raise ValueError("Missing the required parameter `worm` when calling `set_worm_properties`") # noqa: E501 + # verify the required parameter 'worm_properties' is set + if ('worm_properties' not in params or + params['worm_properties'] is None): + raise ValueError("Missing the required parameter `worm_properties` when calling `set_worm_properties`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'worm_file_path' in params: + path_params['WormFilePath'] = params['worm_file_path'] # noqa: E501 + + query_params = [] + if 'worm' in params: + query_params.append(('worm', params['worm'])) # noqa: E501 + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'worm_properties' in params: + body_params = params['worm_properties'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json']) # noqa: E501 + + # Authentication setting + auth_settings = ['basicAuth'] # noqa: E501 + + return self.api_client.call_api( + '/namespace/{WormFilePath}', 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='Empty', # noqa: E501 + auth_settings=auth_settings, + async=params.get('async'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) diff --git a/isi_sdk/api/protocols_api.py b/isi_sdk/api/protocols_api.py index e471bbde..ffe42746 100644 --- a/isi_sdk/api/protocols_api.py +++ b/isi_sdk/api/protocols_api.py @@ -1098,7 +1098,7 @@ def create_ntp_server(self, ntp_server, **kwargs): # noqa: E501 :param async bool :param NtpServerCreateParams ntp_server: (required) - :return: CreateResponse + :return: Empty If the method is called asynchronously, returns the request thread. """ @@ -1120,7 +1120,7 @@ def create_ntp_server_with_http_info(self, ntp_server, **kwargs): # noqa: E501 :param async bool :param NtpServerCreateParams ntp_server: (required) - :return: CreateResponse + :return: Empty If the method is called asynchronously, returns the request thread. """ @@ -1178,7 +1178,7 @@ def create_ntp_server_with_http_info(self, ntp_server, **kwargs): # noqa: E501 body=body_params, post_params=form_params, files=local_var_files, - response_type='CreateResponse', # noqa: E501 + response_type='Empty', # noqa: E501 auth_settings=auth_settings, async=params.get('async'), _return_http_data_only=params.get('_return_http_data_only'), @@ -1400,7 +1400,7 @@ def create_swift_account(self, swift_account, **kwargs): # noqa: E501 :param async bool :param SwiftAccount swift_account: (required) :param str zone: Access zone which contains Swift account. - :return: CreateResponse + :return: Empty If the method is called asynchronously, returns the request thread. """ @@ -1423,7 +1423,7 @@ def create_swift_account_with_http_info(self, swift_account, **kwargs): # noqa: :param async bool :param SwiftAccount swift_account: (required) :param str zone: Access zone which contains Swift account. - :return: CreateResponse + :return: Empty If the method is called asynchronously, returns the request thread. """ @@ -1483,7 +1483,7 @@ def create_swift_account_with_http_info(self, swift_account, **kwargs): # noqa: body=body_params, post_params=form_params, files=local_var_files, - response_type='CreateResponse', # noqa: E501 + response_type='Empty', # noqa: E501 auth_settings=auth_settings, async=params.get('async'), _return_http_data_only=params.get('_return_http_data_only'), @@ -8992,7 +8992,7 @@ def list_smb_log_level_filters(self, **kwargs): # noqa: E501 :param str sort: The field that will be used for sorting. :param str dir: The direction of the sort. :param str level: Only return results with a given level. - :return: SmbLogLevelFiltersExtended + :return: SmbLogLevelFilters If the method is called asynchronously, returns the request thread. """ @@ -9016,7 +9016,7 @@ def list_smb_log_level_filters_with_http_info(self, **kwargs): # noqa: E501 :param str sort: The field that will be used for sorting. :param str dir: The direction of the sort. :param str level: Only return results with a given level. - :return: SmbLogLevelFiltersExtended + :return: SmbLogLevelFilters If the method is called asynchronously, returns the request thread. """ @@ -9074,7 +9074,7 @@ def list_smb_log_level_filters_with_http_info(self, **kwargs): # noqa: E501 body=body_params, post_params=form_params, files=local_var_files, - response_type='SmbLogLevelFiltersExtended', # noqa: E501 + response_type='SmbLogLevelFilters', # noqa: E501 auth_settings=auth_settings, async=params.get('async'), _return_http_data_only=params.get('_return_http_data_only'), diff --git a/isi_sdk/api/protocols_hdfs_api.py b/isi_sdk/api/protocols_hdfs_api.py index 08017fb8..15519b52 100644 --- a/isi_sdk/api/protocols_hdfs_api.py +++ b/isi_sdk/api/protocols_hdfs_api.py @@ -46,7 +46,7 @@ def create_proxyusers_name_member(self, proxyusers_name_member, name, **kwargs): :param GroupMember proxyusers_name_member: (required) :param str name: (required) :param str zone: Specifies which access zone or zones to use. - :return: CreateResponse + :return: Empty If the method is called asynchronously, returns the request thread. """ @@ -70,7 +70,7 @@ def create_proxyusers_name_member_with_http_info(self, proxyusers_name_member, n :param GroupMember proxyusers_name_member: (required) :param str name: (required) :param str zone: Specifies which access zone or zones to use. - :return: CreateResponse + :return: Empty If the method is called asynchronously, returns the request thread. """ @@ -136,7 +136,7 @@ def create_proxyusers_name_member_with_http_info(self, proxyusers_name_member, n body=body_params, post_params=form_params, files=local_var_files, - response_type='CreateResponse', # noqa: E501 + response_type='Empty', # noqa: E501 auth_settings=auth_settings, async=params.get('async'), _return_http_data_only=params.get('_return_http_data_only'), diff --git a/isi_sdk/api/upgrade_api.py b/isi_sdk/api/upgrade_api.py index c08683bb..50a59910 100644 --- a/isi_sdk/api/upgrade_api.py +++ b/isi_sdk/api/upgrade_api.py @@ -1438,7 +1438,7 @@ def get_cluster_node(self, cluster_node_id, **kwargs): # noqa: E501 :param async bool :param int cluster_node_id: The node details useful during an upgrade or assessment. (required) - :return: ClusterNodesExtendedExtended + :return: ClusterNodesExtended If the method is called asynchronously, returns the request thread. """ @@ -1460,7 +1460,7 @@ def get_cluster_node_with_http_info(self, cluster_node_id, **kwargs): # noqa: E :param async bool :param int cluster_node_id: The node details useful during an upgrade or assessment. (required) - :return: ClusterNodesExtendedExtended + :return: ClusterNodesExtended If the method is called asynchronously, returns the request thread. """ @@ -1518,7 +1518,7 @@ def get_cluster_node_with_http_info(self, cluster_node_id, **kwargs): # noqa: E body=body_params, post_params=form_params, files=local_var_files, - response_type='ClusterNodesExtendedExtended', # noqa: E501 + response_type='ClusterNodesExtended', # noqa: E501 auth_settings=auth_settings, async=params.get('async'), _return_http_data_only=params.get('_return_http_data_only'), @@ -1536,7 +1536,7 @@ def get_cluster_nodes(self, **kwargs): # noqa: E501 >>> result = thread.get() :param async bool - :return: ClusterNodesExtendedExtendedExtended + :return: ClusterNodesExtendedExtended If the method is called asynchronously, returns the request thread. """ @@ -1557,7 +1557,7 @@ def get_cluster_nodes_with_http_info(self, **kwargs): # noqa: E501 >>> result = thread.get() :param async bool - :return: ClusterNodesExtendedExtendedExtended + :return: ClusterNodesExtendedExtended If the method is called asynchronously, returns the request thread. """ @@ -1609,7 +1609,7 @@ def get_cluster_nodes_with_http_info(self, **kwargs): # noqa: E501 body=body_params, post_params=form_params, files=local_var_files, - response_type='ClusterNodesExtendedExtendedExtended', # noqa: E501 + response_type='ClusterNodesExtendedExtended', # noqa: E501 auth_settings=auth_settings, async=params.get('async'), _return_http_data_only=params.get('_return_http_data_only'), diff --git a/isi_sdk/api_client.py b/isi_sdk/api_client.py index 611905aa..173e8f0d 100644 --- a/isi_sdk/api_client.py +++ b/isi_sdk/api_client.py @@ -74,7 +74,7 @@ def __init__(self, configuration=None, header_name=None, header_value=None, self.default_headers[header_name] = header_value self.cookie = cookie # Set default User-Agent. - self.user_agent = 'Swagger-Codegen/b.49/python' + self.user_agent = 'Swagger-Codegen/0.2.3/python' # This is used for detecting for the special case of a path parameter # that is tagged with x-isi-url-encode-path-param (more details in the # __call_api function). @@ -537,7 +537,7 @@ def update_params_for_auth(self, headers, querys, auth_settings): body = { 'username': self.configuration.username, 'password': self.configuration.password, - 'services': ['platform'] + 'services': ['platform', 'namespace'] } response_data = self.rest_client.POST( url, headers=headers, body=body) diff --git a/isi_sdk/configuration.py b/isi_sdk/configuration.py index abf83afd..0feeb9ab 100644 --- a/isi_sdk/configuration.py +++ b/isi_sdk/configuration.py @@ -260,5 +260,5 @@ def to_debug_report(self): "OS: {env}\n"\ "Python Version: {pyversion}\n"\ "Version of the API: 3\n"\ - "SDK Package Version: b.49".\ + "SDK Package Version: 0.2.3".\ format(env=sys.platform, pyversion=sys.version) diff --git a/isi_sdk/models/__init__.py b/isi_sdk/models/__init__.py index 4ec37cd2..33f6cb09 100644 --- a/isi_sdk/models/__init__.py +++ b/isi_sdk/models/__init__.py @@ -15,6 +15,8 @@ from __future__ import absolute_import # import models into model package +from isi_sdk_8_0.models.access_point_create_params import AccessPointCreateParams +from isi_sdk_8_0.models.acl_object import AclObject from isi_sdk_8_0.models.ads_provider_controllers import AdsProviderControllers from isi_sdk_8_0.models.ads_provider_controllers_controller import AdsProviderControllersController from isi_sdk_8_0.models.ads_provider_domains import AdsProviderDomains @@ -103,13 +105,11 @@ from isi_sdk_8_0.models.cluster_identity_logon_extended import ClusterIdentityLogonExtended from isi_sdk_8_0.models.cluster_node import ClusterNode from isi_sdk_8_0.models.cluster_node_extended import ClusterNodeExtended -from isi_sdk_8_0.models.cluster_node_extended_extended import ClusterNodeExtendedExtended from isi_sdk_8_0.models.cluster_node_hardware import ClusterNodeHardware from isi_sdk_8_0.models.cluster_node_partitions import ClusterNodePartitions from isi_sdk_8_0.models.cluster_node_sensors import ClusterNodeSensors from isi_sdk_8_0.models.cluster_node_state import ClusterNodeState from isi_sdk_8_0.models.cluster_node_state_extended import ClusterNodeStateExtended -from isi_sdk_8_0.models.cluster_node_state_extended_extended import ClusterNodeStateExtendedExtended from isi_sdk_8_0.models.cluster_node_state_servicelight import ClusterNodeStateServicelight from isi_sdk_8_0.models.cluster_node_state_smartfail import ClusterNodeStateSmartfail from isi_sdk_8_0.models.cluster_node_status import ClusterNodeStatus @@ -119,7 +119,6 @@ from isi_sdk_8_0.models.cluster_nodes_error import ClusterNodesError from isi_sdk_8_0.models.cluster_nodes_extended import ClusterNodesExtended from isi_sdk_8_0.models.cluster_nodes_extended_extended import ClusterNodesExtendedExtended -from isi_sdk_8_0.models.cluster_nodes_extended_extended_extended import ClusterNodesExtendedExtendedExtended from isi_sdk_8_0.models.cluster_nodes_onefs_version import ClusterNodesOnefsVersion from isi_sdk_8_0.models.cluster_owner import ClusterOwner from isi_sdk_8_0.models.cluster_patch_patch import ClusterPatchPatch @@ -152,6 +151,8 @@ from isi_sdk_8_0.models.compatibilities_ssd_active_item import CompatibilitiesSsdActiveItem from isi_sdk_8_0.models.compatibilities_ssd_available import CompatibilitiesSsdAvailable from isi_sdk_8_0.models.compatibilities_ssd_available_available_item import CompatibilitiesSsdAvailableAvailableItem +from isi_sdk_8_0.models.copy_errors import CopyErrors +from isi_sdk_8_0.models.copy_errors_copy_errors import CopyErrorsCopyErrors from isi_sdk_8_0.models.create_antivirus_scan_item_response import CreateAntivirusScanItemResponse from isi_sdk_8_0.models.create_auth_refresh_item_response import CreateAuthRefreshItemResponse from isi_sdk_8_0.models.create_cloud_account_response import CreateCloudAccountResponse @@ -187,6 +188,9 @@ from isi_sdk_8_0.models.dedupe_settings import DedupeSettings from isi_sdk_8_0.models.dedupe_settings_extended import DedupeSettingsExtended from isi_sdk_8_0.models.dedupe_settings_settings import DedupeSettingsSettings +from isi_sdk_8_0.models.directory_query import DirectoryQuery +from isi_sdk_8_0.models.directory_query_scope import DirectoryQueryScope +from isi_sdk_8_0.models.directory_query_scope_conditions import DirectoryQueryScopeConditions from isi_sdk_8_0.models.drives_drive_firmware import DrivesDriveFirmware from isi_sdk_8_0.models.drives_drive_firmware_node import DrivesDriveFirmwareNode from isi_sdk_8_0.models.drives_drive_firmware_node_drive import DrivesDriveFirmwareNodeDrive @@ -204,8 +208,10 @@ from isi_sdk_8_0.models.event_categories import EventCategories from isi_sdk_8_0.models.event_category import EventCategory from isi_sdk_8_0.models.event_channel import EventChannel +from isi_sdk_8_0.models.event_channel_extended_extended import EventChannelExtendedExtended from isi_sdk_8_0.models.event_channel_parameters import EventChannelParameters from isi_sdk_8_0.models.event_channels import EventChannels +from isi_sdk_8_0.models.event_channels_extended import EventChannelsExtended from isi_sdk_8_0.models.event_event import EventEvent from isi_sdk_8_0.models.event_eventgroup_definitions import EventEventgroupDefinitions from isi_sdk_8_0.models.event_eventgroup_definitions_eventgroup_definition import EventEventgroupDefinitionsEventgroupDefinition @@ -234,6 +240,8 @@ from isi_sdk_8_0.models.filepool_policy_file_matching_pattern import FilepoolPolicyFileMatchingPattern from isi_sdk_8_0.models.filepool_policy_file_matching_pattern_or_criteria_item import FilepoolPolicyFileMatchingPatternOrCriteriaItem from isi_sdk_8_0.models.filepool_policy_file_matching_pattern_or_criteria_item_and_criteria_item import FilepoolPolicyFileMatchingPatternOrCriteriaItemAndCriteriaItem +from isi_sdk_8_0.models.filepool_template import FilepoolTemplate +from isi_sdk_8_0.models.filepool_template_action import FilepoolTemplateAction from isi_sdk_8_0.models.filepool_templates import FilepoolTemplates from isi_sdk_8_0.models.fsa_result import FsaResult from isi_sdk_8_0.models.fsa_results import FsaResults @@ -288,8 +296,6 @@ from isi_sdk_8_0.models.job_job_summary_summary import JobJobSummarySummary from isi_sdk_8_0.models.job_jobs import JobJobs from isi_sdk_8_0.models.job_policies import JobPolicies -from isi_sdk_8_0.models.job_policies_extended import JobPoliciesExtended -from isi_sdk_8_0.models.job_policies_type import JobPoliciesType from isi_sdk_8_0.models.job_policy import JobPolicy from isi_sdk_8_0.models.job_policy_interval import JobPolicyInterval from isi_sdk_8_0.models.job_recent import JobRecent @@ -331,6 +337,16 @@ from isi_sdk_8_0.models.mapping_users_rules_rule_user2 import MappingUsersRulesRuleUser2 from isi_sdk_8_0.models.mapping_users_rules_rules import MappingUsersRulesRules from isi_sdk_8_0.models.mapping_users_rules_rules_parameters import MappingUsersRulesRulesParameters +from isi_sdk_8_0.models.member_object import MemberObject +from isi_sdk_8_0.models.namespace_access_points import NamespaceAccessPoints +from isi_sdk_8_0.models.namespace_access_points_namespaces import NamespaceAccessPointsNamespaces +from isi_sdk_8_0.models.namespace_acl import NamespaceAcl +from isi_sdk_8_0.models.namespace_metadata import NamespaceMetadata +from isi_sdk_8_0.models.namespace_metadata_attrs import NamespaceMetadataAttrs +from isi_sdk_8_0.models.namespace_metadata_list import NamespaceMetadataList +from isi_sdk_8_0.models.namespace_metadata_list_attrs import NamespaceMetadataListAttrs +from isi_sdk_8_0.models.namespace_object import NamespaceObject +from isi_sdk_8_0.models.namespace_objects import NamespaceObjects from isi_sdk_8_0.models.ndmp_contexts_backup import NdmpContextsBackup from isi_sdk_8_0.models.ndmp_contexts_backup_context import NdmpContextsBackupContext from isi_sdk_8_0.models.ndmp_contexts_backup_extended import NdmpContextsBackupExtended @@ -357,8 +373,8 @@ from isi_sdk_8_0.models.ndmp_settings_variables_variable import NdmpSettingsVariablesVariable from isi_sdk_8_0.models.ndmp_settings_variables_variable_path_variable import NdmpSettingsVariablesVariablePathVariable from isi_sdk_8_0.models.ndmp_user import NdmpUser +from isi_sdk_8_0.models.ndmp_user_extended import NdmpUserExtended from isi_sdk_8_0.models.ndmp_users import NdmpUsers -from isi_sdk_8_0.models.ndmp_users_extended import NdmpUsersExtended from isi_sdk_8_0.models.network_dnscache import NetworkDnscache from isi_sdk_8_0.models.network_dnscache_extended import NetworkDnscacheExtended from isi_sdk_8_0.models.network_dnscache_settings import NetworkDnscacheSettings @@ -700,8 +716,10 @@ from isi_sdk_8_0.models.upgrade_cluster_upgrade_settings import UpgradeClusterUpgradeSettings from isi_sdk_8_0.models.user_change_password import UserChangePassword from isi_sdk_8_0.models.user_member_of import UserMemberOf +from isi_sdk_8_0.models.worm_create_params import WormCreateParams from isi_sdk_8_0.models.worm_domain import WormDomain from isi_sdk_8_0.models.worm_domains import WormDomains +from isi_sdk_8_0.models.worm_properties import WormProperties from isi_sdk_8_0.models.worm_settings import WormSettings from isi_sdk_8_0.models.worm_settings_extended import WormSettingsExtended from isi_sdk_8_0.models.worm_settings_settings import WormSettingsSettings @@ -736,8 +754,6 @@ from isi_sdk_8_0.models.cloud_pool_create_params import CloudPoolCreateParams from isi_sdk_8_0.models.cloud_pool_extended import CloudPoolExtended from isi_sdk_8_0.models.cloud_pools_extended import CloudPoolsExtended -from isi_sdk_8_0.models.cluster_node_state_servicelight_extended import ClusterNodeStateServicelightExtended -from isi_sdk_8_0.models.cluster_node_state_servicelight_extended_extended import ClusterNodeStateServicelightExtendedExtended from isi_sdk_8_0.models.cluster_patch_patches_extended import ClusterPatchPatchesExtended from isi_sdk_8_0.models.compatibilities_class_active_extended import CompatibilitiesClassActiveExtended from isi_sdk_8_0.models.compatibilities_ssd_active_extended import CompatibilitiesSsdActiveExtended @@ -746,7 +762,6 @@ from isi_sdk_8_0.models.event_alert_conditions_extended import EventAlertConditionsExtended from isi_sdk_8_0.models.event_categories_extended import EventCategoriesExtended from isi_sdk_8_0.models.event_channel_extended import EventChannelExtended -from isi_sdk_8_0.models.event_channels_extended import EventChannelsExtended from isi_sdk_8_0.models.event_eventgroup_definitions_extended import EventEventgroupDefinitionsExtended from isi_sdk_8_0.models.event_eventgroup_occurrences_extended import EventEventgroupOccurrencesExtended from isi_sdk_8_0.models.event_eventlists_extended import EventEventlistsExtended @@ -761,13 +776,18 @@ from isi_sdk_8_0.models.hdfs_rack_extended import HdfsRackExtended from isi_sdk_8_0.models.hdfs_racks_extended import HdfsRacksExtended from isi_sdk_8_0.models.job_jobs_extended import JobJobsExtended +from isi_sdk_8_0.models.job_policies_extended import JobPoliciesExtended from isi_sdk_8_0.models.job_policy_create_params import JobPolicyCreateParams +from isi_sdk_8_0.models.job_policy_extended import JobPolicyExtended from isi_sdk_8_0.models.job_type_extended import JobTypeExtended from isi_sdk_8_0.models.job_types_extended import JobTypesExtended +from isi_sdk_8_0.models.mapping_users_rules_parameters_default_unix_user import MappingUsersRulesParametersDefaultUnixUser from isi_sdk_8_0.models.mapping_users_rules_rule_options_default_user import MappingUsersRulesRuleOptionsDefaultUser +from isi_sdk_8_0.models.mapping_users_rules_rule_user1 import MappingUsersRulesRuleUser1 from isi_sdk_8_0.models.mapping_users_rules_rule_user2_extended import MappingUsersRulesRuleUser2Extended from isi_sdk_8_0.models.ndmp_settings_variable_create_params import NdmpSettingsVariableCreateParams from isi_sdk_8_0.models.ndmp_user_create_params import NdmpUserCreateParams +from isi_sdk_8_0.models.ndmp_users_extended import NdmpUsersExtended from isi_sdk_8_0.models.network_groupnet_create_params import NetworkGroupnetCreateParams from isi_sdk_8_0.models.network_groupnet_extended import NetworkGroupnetExtended from isi_sdk_8_0.models.network_groupnets_extended import NetworkGroupnetsExtended @@ -793,7 +813,6 @@ from isi_sdk_8_0.models.reports_threats_extended import ReportsThreatsExtended from isi_sdk_8_0.models.settings_krb5_domain_create_params import SettingsKrb5DomainCreateParams from isi_sdk_8_0.models.settings_krb5_realm_create_params import SettingsKrb5RealmCreateParams -from isi_sdk_8_0.models.smb_log_level_filters_extended import SmbLogLevelFiltersExtended from isi_sdk_8_0.models.smb_shares_extended import SmbSharesExtended from isi_sdk_8_0.models.snapshot_aliases_extended import SnapshotAliasesExtended from isi_sdk_8_0.models.snapshot_lock_create_params import SnapshotLockCreateParams diff --git a/isi_sdk/models/access_point_create_params.py b/isi_sdk/models/access_point_create_params.py new file mode 100644 index 00000000..d6f1c683 --- /dev/null +++ b/isi_sdk/models/access_point_create_params.py @@ -0,0 +1,115 @@ +# coding: utf-8 + +""" + Isilon SDK + + Isilon SDK - Language bindings for the OneFS API # noqa: E501 + + OpenAPI spec version: 3 + Contact: sdk@isilon.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + + +class AccessPointCreateParams(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'path': 'str' + } + + attribute_map = { + 'path': 'path' + } + + def __init__(self, path=None): # noqa: E501 + """AccessPointCreateParams - a model defined in Swagger""" # noqa: E501 + + self._path = None + self.discriminator = None + + self.path = path + + @property + def path(self): + """Gets the path of this AccessPointCreateParams. # noqa: E501 + + Absolute file system path of access point. # noqa: E501 + + :return: The path of this AccessPointCreateParams. # noqa: E501 + :rtype: str + """ + return self._path + + @path.setter + def path(self, path): + """Sets the path of this AccessPointCreateParams. + + Absolute file system path of access point. # noqa: E501 + + :param path: The path of this AccessPointCreateParams. # noqa: E501 + :type: str + """ + if path is None: + raise ValueError("Invalid value for `path`, must not be `None`") # noqa: E501 + + self._path = path + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, AccessPointCreateParams): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/isi_sdk/models/acl_object.py b/isi_sdk/models/acl_object.py new file mode 100644 index 00000000..cfadc28d --- /dev/null +++ b/isi_sdk/models/acl_object.py @@ -0,0 +1,218 @@ +# coding: utf-8 + +""" + Isilon SDK + + Isilon SDK - Language bindings for the OneFS API # noqa: E501 + + OpenAPI spec version: 3 + Contact: sdk@isilon.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + +from isi_sdk_8_0.models.member_object import MemberObject # noqa: F401,E501 + + +class AclObject(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'accessrights': 'list[str]', + 'accesstype': 'str', + 'inherit_flags': 'list[bool]', + 'op': 'str', + 'trustee': 'MemberObject' + } + + attribute_map = { + 'accessrights': 'accessrights', + 'accesstype': 'accesstype', + 'inherit_flags': 'inherit_flags', + 'op': 'op', + 'trustee': 'trustee' + } + + def __init__(self, accessrights=None, accesstype=None, inherit_flags=None, op=None, trustee=None): # noqa: E501 + """AclObject - a model defined in Swagger""" # noqa: E501 + + self._accessrights = None + self._accesstype = None + self._inherit_flags = None + self._op = None + self._trustee = None + self.discriminator = None + + if accessrights is not None: + self.accessrights = accessrights + if accesstype is not None: + self.accesstype = accesstype + if inherit_flags is not None: + self.inherit_flags = inherit_flags + if op is not None: + self.op = op + if trustee is not None: + self.trustee = trustee + + @property + def accessrights(self): + """Gets the accessrights of this AclObject. # noqa: E501 + + + :return: The accessrights of this AclObject. # noqa: E501 + :rtype: list[str] + """ + return self._accessrights + + @accessrights.setter + def accessrights(self, accessrights): + """Sets the accessrights of this AclObject. + + + :param accessrights: The accessrights of this AclObject. # noqa: E501 + :type: list[str] + """ + + self._accessrights = accessrights + + @property + def accesstype(self): + """Gets the accesstype of this AclObject. # noqa: E501 + + + :return: The accesstype of this AclObject. # noqa: E501 + :rtype: str + """ + return self._accesstype + + @accesstype.setter + def accesstype(self, accesstype): + """Sets the accesstype of this AclObject. + + + :param accesstype: The accesstype of this AclObject. # noqa: E501 + :type: str + """ + + self._accesstype = accesstype + + @property + def inherit_flags(self): + """Gets the inherit_flags of this AclObject. # noqa: E501 + + + :return: The inherit_flags of this AclObject. # noqa: E501 + :rtype: list[bool] + """ + return self._inherit_flags + + @inherit_flags.setter + def inherit_flags(self, inherit_flags): + """Sets the inherit_flags of this AclObject. + + + :param inherit_flags: The inherit_flags of this AclObject. # noqa: E501 + :type: list[bool] + """ + + self._inherit_flags = inherit_flags + + @property + def op(self): + """Gets the op of this AclObject. # noqa: E501 + + + :return: The op of this AclObject. # noqa: E501 + :rtype: str + """ + return self._op + + @op.setter + def op(self, op): + """Sets the op of this AclObject. + + + :param op: The op of this AclObject. # noqa: E501 + :type: str + """ + + self._op = op + + @property + def trustee(self): + """Gets the trustee of this AclObject. # noqa: E501 + + + :return: The trustee of this AclObject. # noqa: E501 + :rtype: MemberObject + """ + return self._trustee + + @trustee.setter + def trustee(self, trustee): + """Sets the trustee of this AclObject. + + + :param trustee: The trustee of this AclObject. # noqa: E501 + :type: MemberObject + """ + + self._trustee = trustee + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, AclObject): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/isi_sdk/models/cluster_node_state_extended.py b/isi_sdk/models/cluster_node_state_extended.py index ac7fb155..cfc8be77 100644 --- a/isi_sdk/models/cluster_node_state_extended.py +++ b/isi_sdk/models/cluster_node_state_extended.py @@ -16,7 +16,7 @@ import six -from isi_sdk_8_0.models.cluster_node_state_servicelight_extended import ClusterNodeStateServicelightExtended # noqa: F401,E501 +from isi_sdk_8_0.models.node_state_node_servicelight import NodeStateNodeServicelight # noqa: F401,E501 from isi_sdk_8_0.models.node_state_readonly_extended import NodeStateReadonlyExtended # noqa: F401,E501 from isi_sdk_8_0.models.node_state_smartfail_extended import NodeStateSmartfailExtended # noqa: F401,E501 @@ -36,7 +36,7 @@ class ClusterNodeStateExtended(object): """ swagger_types = { 'readonly': 'NodeStateReadonlyExtended', - 'servicelight': 'ClusterNodeStateServicelightExtended', + 'servicelight': 'NodeStateNodeServicelight', 'smartfail': 'NodeStateSmartfailExtended' } @@ -91,7 +91,7 @@ def servicelight(self): Node service light state. # noqa: E501 :return: The servicelight of this ClusterNodeStateExtended. # noqa: E501 - :rtype: ClusterNodeStateServicelightExtended + :rtype: NodeStateNodeServicelight """ return self._servicelight @@ -102,7 +102,7 @@ def servicelight(self, servicelight): Node service light state. # noqa: E501 :param servicelight: The servicelight of this ClusterNodeStateExtended. # noqa: E501 - :type: ClusterNodeStateServicelightExtended + :type: NodeStateNodeServicelight """ self._servicelight = servicelight diff --git a/isi_sdk/models/cluster_nodes_extended.py b/isi_sdk/models/cluster_nodes_extended.py index 765a726d..f283fdf4 100644 --- a/isi_sdk/models/cluster_nodes_extended.py +++ b/isi_sdk/models/cluster_nodes_extended.py @@ -16,7 +16,8 @@ import six -from isi_sdk_8_0.models.cluster_node_extended_extended import ClusterNodeExtendedExtended # noqa: F401,E501 +from isi_sdk_8_0.models.cluster_nodes_error import ClusterNodesError # noqa: F401,E501 +from isi_sdk_8_0.models.cluster_nodes_onefs_version import ClusterNodesOnefsVersion # noqa: F401,E501 class ClusterNodesExtended(object): @@ -33,70 +34,212 @@ class ClusterNodesExtended(object): and the value is json key in definition. """ swagger_types = { - 'nodes': 'list[ClusterNodeExtendedExtended]', - 'total': 'int' + 'error': 'ClusterNodesError', + 'last_action': 'str', + 'last_action_result': 'str', + 'lnn': 'int', + 'node_state': 'str', + 'onefs_version': 'ClusterNodesOnefsVersion', + 'progress': 'int' } attribute_map = { - 'nodes': 'nodes', - 'total': 'total' + 'error': 'error', + 'last_action': 'last_action', + 'last_action_result': 'last_action_result', + 'lnn': 'lnn', + 'node_state': 'node_state', + 'onefs_version': 'onefs_version', + 'progress': 'progress' } - def __init__(self, nodes=None, total=None): # noqa: E501 + def __init__(self, error=None, last_action=None, last_action_result=None, lnn=None, node_state=None, onefs_version=None, progress=None): # noqa: E501 """ClusterNodesExtended - a model defined in Swagger""" # noqa: E501 - self._nodes = None - self._total = None + self._error = None + self._last_action = None + self._last_action_result = None + self._lnn = None + self._node_state = None + self._onefs_version = None + self._progress = None self.discriminator = None - if nodes is not None: - self.nodes = nodes - if total is not None: - self.total = total + if error is not None: + self.error = error + if last_action is not None: + self.last_action = last_action + if last_action_result is not None: + self.last_action_result = last_action_result + if lnn is not None: + self.lnn = lnn + if node_state is not None: + self.node_state = node_state + if onefs_version is not None: + self.onefs_version = onefs_version + if progress is not None: + self.progress = progress @property - def nodes(self): - """Gets the nodes of this ClusterNodesExtended. # noqa: E501 + def error(self): + """Gets the error of this ClusterNodesExtended. # noqa: E501 + The current OneFS version before upgrade. # noqa: E501 - :return: The nodes of this ClusterNodesExtended. # noqa: E501 - :rtype: list[ClusterNodeExtendedExtended] + :return: The error of this ClusterNodesExtended. # noqa: E501 + :rtype: ClusterNodesError """ - return self._nodes + return self._error - @nodes.setter - def nodes(self, nodes): - """Sets the nodes of this ClusterNodesExtended. + @error.setter + def error(self, error): + """Sets the error of this ClusterNodesExtended. + The current OneFS version before upgrade. # noqa: E501 - :param nodes: The nodes of this ClusterNodesExtended. # noqa: E501 - :type: list[ClusterNodeExtendedExtended] + :param error: The error of this ClusterNodesExtended. # noqa: E501 + :type: ClusterNodesError """ - self._nodes = nodes + self._error = error @property - def total(self): - """Gets the total of this ClusterNodesExtended. # noqa: E501 + def last_action(self): + """Gets the last_action of this ClusterNodesExtended. # noqa: E501 - Total number of items available. # noqa: E501 + The last action performed to completion/failure on this node. Null if the node_state is 'committed' or 'assessing.' One of the following values: 'upgrade', 'rollback'. # noqa: E501 - :return: The total of this ClusterNodesExtended. # noqa: E501 + :return: The last_action of this ClusterNodesExtended. # noqa: E501 + :rtype: str + """ + return self._last_action + + @last_action.setter + def last_action(self, last_action): + """Sets the last_action of this ClusterNodesExtended. + + The last action performed to completion/failure on this node. Null if the node_state is 'committed' or 'assessing.' One of the following values: 'upgrade', 'rollback'. # noqa: E501 + + :param last_action: The last_action of this ClusterNodesExtended. # noqa: E501 + :type: str + """ + + self._last_action = last_action + + @property + def last_action_result(self): + """Gets the last_action_result of this ClusterNodesExtended. # noqa: E501 + + Did the node pass upgrade or rollback without failing? Null if the node_state is 'committed.' One of the following values: 'pass', 'fail', null # noqa: E501 + + :return: The last_action_result of this ClusterNodesExtended. # noqa: E501 + :rtype: str + """ + return self._last_action_result + + @last_action_result.setter + def last_action_result(self, last_action_result): + """Sets the last_action_result of this ClusterNodesExtended. + + Did the node pass upgrade or rollback without failing? Null if the node_state is 'committed.' One of the following values: 'pass', 'fail', null # noqa: E501 + + :param last_action_result: The last_action_result of this ClusterNodesExtended. # noqa: E501 + :type: str + """ + + self._last_action_result = last_action_result + + @property + def lnn(self): + """Gets the lnn of this ClusterNodesExtended. # noqa: E501 + + The lnn of the node. # noqa: E501 + + :return: The lnn of this ClusterNodesExtended. # noqa: E501 + :rtype: int + """ + return self._lnn + + @lnn.setter + def lnn(self, lnn): + """Sets the lnn of this ClusterNodesExtended. + + The lnn of the node. # noqa: E501 + + :param lnn: The lnn of this ClusterNodesExtended. # noqa: E501 + :type: int + """ + + self._lnn = lnn + + @property + def node_state(self): + """Gets the node_state of this ClusterNodesExtended. # noqa: E501 + + The state of the node during the upgrade, rollback, or assessment. One of the following values: 'committed', 'upgraded', 'upgrading', 'rolling back', 'assessing', 'error' # noqa: E501 + + :return: The node_state of this ClusterNodesExtended. # noqa: E501 + :rtype: str + """ + return self._node_state + + @node_state.setter + def node_state(self, node_state): + """Sets the node_state of this ClusterNodesExtended. + + The state of the node during the upgrade, rollback, or assessment. One of the following values: 'committed', 'upgraded', 'upgrading', 'rolling back', 'assessing', 'error' # noqa: E501 + + :param node_state: The node_state of this ClusterNodesExtended. # noqa: E501 + :type: str + """ + + self._node_state = node_state + + @property + def onefs_version(self): + """Gets the onefs_version of this ClusterNodesExtended. # noqa: E501 + + The current OneFS version before upgrade. # noqa: E501 + + :return: The onefs_version of this ClusterNodesExtended. # noqa: E501 + :rtype: ClusterNodesOnefsVersion + """ + return self._onefs_version + + @onefs_version.setter + def onefs_version(self, onefs_version): + """Sets the onefs_version of this ClusterNodesExtended. + + The current OneFS version before upgrade. # noqa: E501 + + :param onefs_version: The onefs_version of this ClusterNodesExtended. # noqa: E501 + :type: ClusterNodesOnefsVersion + """ + + self._onefs_version = onefs_version + + @property + def progress(self): + """Gets the progress of this ClusterNodesExtended. # noqa: E501 + + What step is the upgrade, assessment, or rollback in? To show via progress indicator. NOTE: the value is an integer between 0 and 100 (percent) # noqa: E501 + + :return: The progress of this ClusterNodesExtended. # noqa: E501 :rtype: int """ - return self._total + return self._progress - @total.setter - def total(self, total): - """Sets the total of this ClusterNodesExtended. + @progress.setter + def progress(self, progress): + """Sets the progress of this ClusterNodesExtended. - Total number of items available. # noqa: E501 + What step is the upgrade, assessment, or rollback in? To show via progress indicator. NOTE: the value is an integer between 0 and 100 (percent) # noqa: E501 - :param total: The total of this ClusterNodesExtended. # noqa: E501 + :param progress: The progress of this ClusterNodesExtended. # noqa: E501 :type: int """ - self._total = total + self._progress = progress def to_dict(self): """Returns the model properties as a dict""" diff --git a/isi_sdk/models/cluster_nodes_extended_extended.py b/isi_sdk/models/cluster_nodes_extended_extended.py index 6b962832..d2730397 100644 --- a/isi_sdk/models/cluster_nodes_extended_extended.py +++ b/isi_sdk/models/cluster_nodes_extended_extended.py @@ -16,8 +16,7 @@ import six -from isi_sdk_8_0.models.cluster_nodes_error import ClusterNodesError # noqa: F401,E501 -from isi_sdk_8_0.models.cluster_nodes_onefs_version import ClusterNodesOnefsVersion # noqa: F401,E501 +from isi_sdk_8_0.models.cluster_nodes_extended import ClusterNodesExtended # noqa: F401,E501 class ClusterNodesExtendedExtended(object): @@ -34,212 +33,72 @@ class ClusterNodesExtendedExtended(object): and the value is json key in definition. """ swagger_types = { - 'error': 'ClusterNodesError', - 'last_action': 'str', - 'last_action_result': 'str', - 'lnn': 'int', - 'node_state': 'str', - 'onefs_version': 'ClusterNodesOnefsVersion', - 'progress': 'int' + 'nodes': 'list[ClusterNodesExtended]', + 'total': 'int' } attribute_map = { - 'error': 'error', - 'last_action': 'last_action', - 'last_action_result': 'last_action_result', - 'lnn': 'lnn', - 'node_state': 'node_state', - 'onefs_version': 'onefs_version', - 'progress': 'progress' + 'nodes': 'nodes', + 'total': 'total' } - def __init__(self, error=None, last_action=None, last_action_result=None, lnn=None, node_state=None, onefs_version=None, progress=None): # noqa: E501 + def __init__(self, nodes=None, total=None): # noqa: E501 """ClusterNodesExtendedExtended - a model defined in Swagger""" # noqa: E501 - self._error = None - self._last_action = None - self._last_action_result = None - self._lnn = None - self._node_state = None - self._onefs_version = None - self._progress = None + self._nodes = None + self._total = None self.discriminator = None - if error is not None: - self.error = error - if last_action is not None: - self.last_action = last_action - if last_action_result is not None: - self.last_action_result = last_action_result - if lnn is not None: - self.lnn = lnn - if node_state is not None: - self.node_state = node_state - if onefs_version is not None: - self.onefs_version = onefs_version - if progress is not None: - self.progress = progress + if nodes is not None: + self.nodes = nodes + if total is not None: + self.total = total @property - def error(self): - """Gets the error of this ClusterNodesExtendedExtended. # noqa: E501 + def nodes(self): + """Gets the nodes of this ClusterNodesExtendedExtended. # noqa: E501 - The current OneFS version before upgrade. # noqa: E501 + List of detailed info of nodes which are part of the current upgrade # noqa: E501 - :return: The error of this ClusterNodesExtendedExtended. # noqa: E501 - :rtype: ClusterNodesError + :return: The nodes of this ClusterNodesExtendedExtended. # noqa: E501 + :rtype: list[ClusterNodesExtended] """ - return self._error + return self._nodes - @error.setter - def error(self, error): - """Sets the error of this ClusterNodesExtendedExtended. + @nodes.setter + def nodes(self, nodes): + """Sets the nodes of this ClusterNodesExtendedExtended. - The current OneFS version before upgrade. # noqa: E501 + List of detailed info of nodes which are part of the current upgrade # noqa: E501 - :param error: The error of this ClusterNodesExtendedExtended. # noqa: E501 - :type: ClusterNodesError + :param nodes: The nodes of this ClusterNodesExtendedExtended. # noqa: E501 + :type: list[ClusterNodesExtended] """ - self._error = error + self._nodes = nodes @property - def last_action(self): - """Gets the last_action of this ClusterNodesExtendedExtended. # noqa: E501 + def total(self): + """Gets the total of this ClusterNodesExtendedExtended. # noqa: E501 - The last action performed to completion/failure on this node. Null if the node_state is 'committed' or 'assessing.' One of the following values: 'upgrade', 'rollback'. # noqa: E501 + Total number of nodes the upgrade framework is aware of and was able to collect info for at this point. # noqa: E501 - :return: The last_action of this ClusterNodesExtendedExtended. # noqa: E501 - :rtype: str - """ - return self._last_action - - @last_action.setter - def last_action(self, last_action): - """Sets the last_action of this ClusterNodesExtendedExtended. - - The last action performed to completion/failure on this node. Null if the node_state is 'committed' or 'assessing.' One of the following values: 'upgrade', 'rollback'. # noqa: E501 - - :param last_action: The last_action of this ClusterNodesExtendedExtended. # noqa: E501 - :type: str - """ - - self._last_action = last_action - - @property - def last_action_result(self): - """Gets the last_action_result of this ClusterNodesExtendedExtended. # noqa: E501 - - Did the node pass upgrade or rollback without failing? Null if the node_state is 'committed.' One of the following values: 'pass', 'fail', null # noqa: E501 - - :return: The last_action_result of this ClusterNodesExtendedExtended. # noqa: E501 - :rtype: str - """ - return self._last_action_result - - @last_action_result.setter - def last_action_result(self, last_action_result): - """Sets the last_action_result of this ClusterNodesExtendedExtended. - - Did the node pass upgrade or rollback without failing? Null if the node_state is 'committed.' One of the following values: 'pass', 'fail', null # noqa: E501 - - :param last_action_result: The last_action_result of this ClusterNodesExtendedExtended. # noqa: E501 - :type: str - """ - - self._last_action_result = last_action_result - - @property - def lnn(self): - """Gets the lnn of this ClusterNodesExtendedExtended. # noqa: E501 - - The lnn of the node. # noqa: E501 - - :return: The lnn of this ClusterNodesExtendedExtended. # noqa: E501 - :rtype: int - """ - return self._lnn - - @lnn.setter - def lnn(self, lnn): - """Sets the lnn of this ClusterNodesExtendedExtended. - - The lnn of the node. # noqa: E501 - - :param lnn: The lnn of this ClusterNodesExtendedExtended. # noqa: E501 - :type: int - """ - - self._lnn = lnn - - @property - def node_state(self): - """Gets the node_state of this ClusterNodesExtendedExtended. # noqa: E501 - - The state of the node during the upgrade, rollback, or assessment. One of the following values: 'committed', 'upgraded', 'upgrading', 'rolling back', 'assessing', 'error' # noqa: E501 - - :return: The node_state of this ClusterNodesExtendedExtended. # noqa: E501 - :rtype: str - """ - return self._node_state - - @node_state.setter - def node_state(self, node_state): - """Sets the node_state of this ClusterNodesExtendedExtended. - - The state of the node during the upgrade, rollback, or assessment. One of the following values: 'committed', 'upgraded', 'upgrading', 'rolling back', 'assessing', 'error' # noqa: E501 - - :param node_state: The node_state of this ClusterNodesExtendedExtended. # noqa: E501 - :type: str - """ - - self._node_state = node_state - - @property - def onefs_version(self): - """Gets the onefs_version of this ClusterNodesExtendedExtended. # noqa: E501 - - The current OneFS version before upgrade. # noqa: E501 - - :return: The onefs_version of this ClusterNodesExtendedExtended. # noqa: E501 - :rtype: ClusterNodesOnefsVersion - """ - return self._onefs_version - - @onefs_version.setter - def onefs_version(self, onefs_version): - """Sets the onefs_version of this ClusterNodesExtendedExtended. - - The current OneFS version before upgrade. # noqa: E501 - - :param onefs_version: The onefs_version of this ClusterNodesExtendedExtended. # noqa: E501 - :type: ClusterNodesOnefsVersion - """ - - self._onefs_version = onefs_version - - @property - def progress(self): - """Gets the progress of this ClusterNodesExtendedExtended. # noqa: E501 - - What step is the upgrade, assessment, or rollback in? To show via progress indicator. NOTE: the value is an integer between 0 and 100 (percent) # noqa: E501 - - :return: The progress of this ClusterNodesExtendedExtended. # noqa: E501 + :return: The total of this ClusterNodesExtendedExtended. # noqa: E501 :rtype: int """ - return self._progress + return self._total - @progress.setter - def progress(self, progress): - """Sets the progress of this ClusterNodesExtendedExtended. + @total.setter + def total(self, total): + """Sets the total of this ClusterNodesExtendedExtended. - What step is the upgrade, assessment, or rollback in? To show via progress indicator. NOTE: the value is an integer between 0 and 100 (percent) # noqa: E501 + Total number of nodes the upgrade framework is aware of and was able to collect info for at this point. # noqa: E501 - :param progress: The progress of this ClusterNodesExtendedExtended. # noqa: E501 + :param total: The total of this ClusterNodesExtendedExtended. # noqa: E501 :type: int """ - self._progress = progress + self._total = total def to_dict(self): """Returns the model properties as a dict""" diff --git a/isi_sdk/models/copy_errors.py b/isi_sdk/models/copy_errors.py new file mode 100644 index 00000000..c1e32fea --- /dev/null +++ b/isi_sdk/models/copy_errors.py @@ -0,0 +1,114 @@ +# coding: utf-8 + +""" + Isilon SDK + + Isilon SDK - Language bindings for the OneFS API # noqa: E501 + + OpenAPI spec version: 3 + Contact: sdk@isilon.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + +from isi_sdk_8_0.models.copy_errors_copy_errors import CopyErrorsCopyErrors # noqa: F401,E501 + + +class CopyErrors(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'copy_errors': 'list[CopyErrorsCopyErrors]' + } + + attribute_map = { + 'copy_errors': 'copy_errors' + } + + def __init__(self, copy_errors=None): # noqa: E501 + """CopyErrors - a model defined in Swagger""" # noqa: E501 + + self._copy_errors = None + self.discriminator = None + + if copy_errors is not None: + self.copy_errors = copy_errors + + @property + def copy_errors(self): + """Gets the copy_errors of this CopyErrors. # noqa: E501 + + + :return: The copy_errors of this CopyErrors. # noqa: E501 + :rtype: list[CopyErrorsCopyErrors] + """ + return self._copy_errors + + @copy_errors.setter + def copy_errors(self, copy_errors): + """Sets the copy_errors of this CopyErrors. + + + :param copy_errors: The copy_errors of this CopyErrors. # noqa: E501 + :type: list[CopyErrorsCopyErrors] + """ + + self._copy_errors = copy_errors + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, CopyErrors): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/isi_sdk/models/copy_errors_copy_errors.py b/isi_sdk/models/copy_errors_copy_errors.py new file mode 100644 index 00000000..5bc786aa --- /dev/null +++ b/isi_sdk/models/copy_errors_copy_errors.py @@ -0,0 +1,190 @@ +# coding: utf-8 + +""" + Isilon SDK + + Isilon SDK - Language bindings for the OneFS API # noqa: E501 + + OpenAPI spec version: 3 + Contact: sdk@isilon.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + + +class CopyErrorsCopyErrors(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'error_src': 'str', + 'message': 'str', + 'source': 'str', + 'target': 'str' + } + + attribute_map = { + 'error_src': 'error_src', + 'message': 'message', + 'source': 'source', + 'target': 'target' + } + + def __init__(self, error_src=None, message=None, source=None, target=None): # noqa: E501 + """CopyErrorsCopyErrors - a model defined in Swagger""" # noqa: E501 + + self._error_src = None + self._message = None + self._source = None + self._target = None + self.discriminator = None + + if error_src is not None: + self.error_src = error_src + if message is not None: + self.message = message + if source is not None: + self.source = source + if target is not None: + self.target = target + + @property + def error_src(self): + """Gets the error_src of this CopyErrorsCopyErrors. # noqa: E501 + + + :return: The error_src of this CopyErrorsCopyErrors. # noqa: E501 + :rtype: str + """ + return self._error_src + + @error_src.setter + def error_src(self, error_src): + """Sets the error_src of this CopyErrorsCopyErrors. + + + :param error_src: The error_src of this CopyErrorsCopyErrors. # noqa: E501 + :type: str + """ + + self._error_src = error_src + + @property + def message(self): + """Gets the message of this CopyErrorsCopyErrors. # noqa: E501 + + + :return: The message of this CopyErrorsCopyErrors. # noqa: E501 + :rtype: str + """ + return self._message + + @message.setter + def message(self, message): + """Sets the message of this CopyErrorsCopyErrors. + + + :param message: The message of this CopyErrorsCopyErrors. # noqa: E501 + :type: str + """ + + self._message = message + + @property + def source(self): + """Gets the source of this CopyErrorsCopyErrors. # noqa: E501 + + + :return: The source of this CopyErrorsCopyErrors. # noqa: E501 + :rtype: str + """ + return self._source + + @source.setter + def source(self, source): + """Sets the source of this CopyErrorsCopyErrors. + + + :param source: The source of this CopyErrorsCopyErrors. # noqa: E501 + :type: str + """ + + self._source = source + + @property + def target(self): + """Gets the target of this CopyErrorsCopyErrors. # noqa: E501 + + + :return: The target of this CopyErrorsCopyErrors. # noqa: E501 + :rtype: str + """ + return self._target + + @target.setter + def target(self, target): + """Sets the target of this CopyErrorsCopyErrors. + + + :param target: The target of this CopyErrorsCopyErrors. # noqa: E501 + :type: str + """ + + self._target = target + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, CopyErrorsCopyErrors): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/isi_sdk/models/directory_query.py b/isi_sdk/models/directory_query.py new file mode 100644 index 00000000..dbb51f7e --- /dev/null +++ b/isi_sdk/models/directory_query.py @@ -0,0 +1,140 @@ +# coding: utf-8 + +""" + Isilon SDK + + Isilon SDK - Language bindings for the OneFS API # noqa: E501 + + OpenAPI spec version: 3 + Contact: sdk@isilon.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + +from isi_sdk_8_0.models.directory_query_scope import DirectoryQueryScope # noqa: F401,E501 + + +class DirectoryQuery(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'result': 'list[str]', + 'scope': 'DirectoryQueryScope' + } + + attribute_map = { + 'result': 'result', + 'scope': 'scope' + } + + def __init__(self, result=None, scope=None): # noqa: E501 + """DirectoryQuery - a model defined in Swagger""" # noqa: E501 + + self._result = None + self._scope = None + self.discriminator = None + + if result is not None: + self.result = result + if scope is not None: + self.scope = scope + + @property + def result(self): + """Gets the result of this DirectoryQuery. # noqa: E501 + + + :return: The result of this DirectoryQuery. # noqa: E501 + :rtype: list[str] + """ + return self._result + + @result.setter + def result(self, result): + """Sets the result of this DirectoryQuery. + + + :param result: The result of this DirectoryQuery. # noqa: E501 + :type: list[str] + """ + + self._result = result + + @property + def scope(self): + """Gets the scope of this DirectoryQuery. # noqa: E501 + + + :return: The scope of this DirectoryQuery. # noqa: E501 + :rtype: DirectoryQueryScope + """ + return self._scope + + @scope.setter + def scope(self, scope): + """Sets the scope of this DirectoryQuery. + + + :param scope: The scope of this DirectoryQuery. # noqa: E501 + :type: DirectoryQueryScope + """ + + self._scope = scope + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, DirectoryQuery): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/isi_sdk/models/directory_query_scope.py b/isi_sdk/models/directory_query_scope.py new file mode 100644 index 00000000..93cf104f --- /dev/null +++ b/isi_sdk/models/directory_query_scope.py @@ -0,0 +1,140 @@ +# coding: utf-8 + +""" + Isilon SDK + + Isilon SDK - Language bindings for the OneFS API # noqa: E501 + + OpenAPI spec version: 3 + Contact: sdk@isilon.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + +from isi_sdk_8_0.models.directory_query_scope_conditions import DirectoryQueryScopeConditions # noqa: F401,E501 + + +class DirectoryQueryScope(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'conditions': 'list[DirectoryQueryScopeConditions]', + 'logic': 'str' + } + + attribute_map = { + 'conditions': 'conditions', + 'logic': 'logic' + } + + def __init__(self, conditions=None, logic=None): # noqa: E501 + """DirectoryQueryScope - a model defined in Swagger""" # noqa: E501 + + self._conditions = None + self._logic = None + self.discriminator = None + + if conditions is not None: + self.conditions = conditions + if logic is not None: + self.logic = logic + + @property + def conditions(self): + """Gets the conditions of this DirectoryQueryScope. # noqa: E501 + + + :return: The conditions of this DirectoryQueryScope. # noqa: E501 + :rtype: list[DirectoryQueryScopeConditions] + """ + return self._conditions + + @conditions.setter + def conditions(self, conditions): + """Sets the conditions of this DirectoryQueryScope. + + + :param conditions: The conditions of this DirectoryQueryScope. # noqa: E501 + :type: list[DirectoryQueryScopeConditions] + """ + + self._conditions = conditions + + @property + def logic(self): + """Gets the logic of this DirectoryQueryScope. # noqa: E501 + + + :return: The logic of this DirectoryQueryScope. # noqa: E501 + :rtype: str + """ + return self._logic + + @logic.setter + def logic(self, logic): + """Sets the logic of this DirectoryQueryScope. + + + :param logic: The logic of this DirectoryQueryScope. # noqa: E501 + :type: str + """ + + self._logic = logic + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, DirectoryQueryScope): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/isi_sdk/models/directory_query_scope_conditions.py b/isi_sdk/models/directory_query_scope_conditions.py new file mode 100644 index 00000000..79559480 --- /dev/null +++ b/isi_sdk/models/directory_query_scope_conditions.py @@ -0,0 +1,164 @@ +# coding: utf-8 + +""" + Isilon SDK + + Isilon SDK - Language bindings for the OneFS API # noqa: E501 + + OpenAPI spec version: 3 + Contact: sdk@isilon.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + + +class DirectoryQueryScopeConditions(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'attr': 'str', + 'operator': 'str', + 'value': 'str' + } + + attribute_map = { + 'attr': 'attr', + 'operator': 'operator', + 'value': 'value' + } + + def __init__(self, attr=None, operator=None, value=None): # noqa: E501 + """DirectoryQueryScopeConditions - a model defined in Swagger""" # noqa: E501 + + self._attr = None + self._operator = None + self._value = None + self.discriminator = None + + if attr is not None: + self.attr = attr + if operator is not None: + self.operator = operator + if value is not None: + self.value = value + + @property + def attr(self): + """Gets the attr of this DirectoryQueryScopeConditions. # noqa: E501 + + + :return: The attr of this DirectoryQueryScopeConditions. # noqa: E501 + :rtype: str + """ + return self._attr + + @attr.setter + def attr(self, attr): + """Sets the attr of this DirectoryQueryScopeConditions. + + + :param attr: The attr of this DirectoryQueryScopeConditions. # noqa: E501 + :type: str + """ + + self._attr = attr + + @property + def operator(self): + """Gets the operator of this DirectoryQueryScopeConditions. # noqa: E501 + + + :return: The operator of this DirectoryQueryScopeConditions. # noqa: E501 + :rtype: str + """ + return self._operator + + @operator.setter + def operator(self, operator): + """Sets the operator of this DirectoryQueryScopeConditions. + + + :param operator: The operator of this DirectoryQueryScopeConditions. # noqa: E501 + :type: str + """ + + self._operator = operator + + @property + def value(self): + """Gets the value of this DirectoryQueryScopeConditions. # noqa: E501 + + + :return: The value of this DirectoryQueryScopeConditions. # noqa: E501 + :rtype: str + """ + return self._value + + @value.setter + def value(self, value): + """Sets the value of this DirectoryQueryScopeConditions. + + + :param value: The value of this DirectoryQueryScopeConditions. # noqa: E501 + :type: str + """ + + self._value = value + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, DirectoryQueryScopeConditions): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/isi_sdk/models/event_channel_extended_extended.py b/isi_sdk/models/event_channel_extended_extended.py new file mode 100644 index 00000000..092e12d1 --- /dev/null +++ b/isi_sdk/models/event_channel_extended_extended.py @@ -0,0 +1,318 @@ +# coding: utf-8 + +""" + Isilon SDK + + Isilon SDK - Language bindings for the OneFS API # noqa: E501 + + OpenAPI spec version: 3 + Contact: sdk@isilon.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + +from isi_sdk_8_0.models.event_channel_parameters import EventChannelParameters # noqa: F401,E501 + + +class EventChannelExtendedExtended(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'allowed_nodes': 'list[int]', + 'enabled': 'bool', + 'excluded_nodes': 'list[int]', + 'id': 'int', + 'name': 'str', + 'parameters': 'EventChannelParameters', + 'system': 'bool', + 'type': 'str' + } + + attribute_map = { + 'allowed_nodes': 'allowed_nodes', + 'enabled': 'enabled', + 'excluded_nodes': 'excluded_nodes', + 'id': 'id', + 'name': 'name', + 'parameters': 'parameters', + 'system': 'system', + 'type': 'type' + } + + def __init__(self, allowed_nodes=None, enabled=None, excluded_nodes=None, id=None, name=None, parameters=None, system=None, type=None): # noqa: E501 + """EventChannelExtendedExtended - a model defined in Swagger""" # noqa: E501 + + self._allowed_nodes = None + self._enabled = None + self._excluded_nodes = None + self._id = None + self._name = None + self._parameters = None + self._system = None + self._type = None + self.discriminator = None + + if allowed_nodes is not None: + self.allowed_nodes = allowed_nodes + if enabled is not None: + self.enabled = enabled + if excluded_nodes is not None: + self.excluded_nodes = excluded_nodes + if id is not None: + self.id = id + if name is not None: + self.name = name + if parameters is not None: + self.parameters = parameters + if system is not None: + self.system = system + if type is not None: + self.type = type + + @property + def allowed_nodes(self): + """Gets the allowed_nodes of this EventChannelExtendedExtended. # noqa: E501 + + Nodes that can be masters for this channel # noqa: E501 + + :return: The allowed_nodes of this EventChannelExtendedExtended. # noqa: E501 + :rtype: list[int] + """ + return self._allowed_nodes + + @allowed_nodes.setter + def allowed_nodes(self, allowed_nodes): + """Sets the allowed_nodes of this EventChannelExtendedExtended. + + Nodes that can be masters for this channel # noqa: E501 + + :param allowed_nodes: The allowed_nodes of this EventChannelExtendedExtended. # noqa: E501 + :type: list[int] + """ + + self._allowed_nodes = allowed_nodes + + @property + def enabled(self): + """Gets the enabled of this EventChannelExtendedExtended. # noqa: E501 + + Channel is to be used or not # noqa: E501 + + :return: The enabled of this EventChannelExtendedExtended. # noqa: E501 + :rtype: bool + """ + return self._enabled + + @enabled.setter + def enabled(self, enabled): + """Sets the enabled of this EventChannelExtendedExtended. + + Channel is to be used or not # noqa: E501 + + :param enabled: The enabled of this EventChannelExtendedExtended. # noqa: E501 + :type: bool + """ + + self._enabled = enabled + + @property + def excluded_nodes(self): + """Gets the excluded_nodes of this EventChannelExtendedExtended. # noqa: E501 + + Nodes that can be masters for this channel # noqa: E501 + + :return: The excluded_nodes of this EventChannelExtendedExtended. # noqa: E501 + :rtype: list[int] + """ + return self._excluded_nodes + + @excluded_nodes.setter + def excluded_nodes(self, excluded_nodes): + """Sets the excluded_nodes of this EventChannelExtendedExtended. + + Nodes that can be masters for this channel # noqa: E501 + + :param excluded_nodes: The excluded_nodes of this EventChannelExtendedExtended. # noqa: E501 + :type: list[int] + """ + + self._excluded_nodes = excluded_nodes + + @property + def id(self): + """Gets the id of this EventChannelExtendedExtended. # noqa: E501 + + Unique identifier. # noqa: E501 + + :return: The id of this EventChannelExtendedExtended. # noqa: E501 + :rtype: int + """ + return self._id + + @id.setter + def id(self, id): + """Sets the id of this EventChannelExtendedExtended. + + Unique identifier. # noqa: E501 + + :param id: The id of this EventChannelExtendedExtended. # noqa: E501 + :type: int + """ + + self._id = id + + @property + def name(self): + """Gets the name of this EventChannelExtendedExtended. # noqa: E501 + + Channel name, may not contain /, max length 254. # noqa: E501 + + :return: The name of this EventChannelExtendedExtended. # noqa: E501 + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """Sets the name of this EventChannelExtendedExtended. + + Channel name, may not contain /, max length 254. # noqa: E501 + + :param name: The name of this EventChannelExtendedExtended. # noqa: E501 + :type: str + """ + + self._name = name + + @property + def parameters(self): + """Gets the parameters of this EventChannelExtendedExtended. # noqa: E501 + + Parameters to be used for an smtp channel # noqa: E501 + + :return: The parameters of this EventChannelExtendedExtended. # noqa: E501 + :rtype: EventChannelParameters + """ + return self._parameters + + @parameters.setter + def parameters(self, parameters): + """Sets the parameters of this EventChannelExtendedExtended. + + Parameters to be used for an smtp channel # noqa: E501 + + :param parameters: The parameters of this EventChannelExtendedExtended. # noqa: E501 + :type: EventChannelParameters + """ + + self._parameters = parameters + + @property + def system(self): + """Gets the system of this EventChannelExtendedExtended. # noqa: E501 + + Channel is a pre-defined system channel # noqa: E501 + + :return: The system of this EventChannelExtendedExtended. # noqa: E501 + :rtype: bool + """ + return self._system + + @system.setter + def system(self, system): + """Sets the system of this EventChannelExtendedExtended. + + Channel is a pre-defined system channel # noqa: E501 + + :param system: The system of this EventChannelExtendedExtended. # noqa: E501 + :type: bool + """ + + self._system = system + + @property + def type(self): + """Gets the type of this EventChannelExtendedExtended. # noqa: E501 + + The mechanism used by the channel # noqa: E501 + + :return: The type of this EventChannelExtendedExtended. # noqa: E501 + :rtype: str + """ + return self._type + + @type.setter + def type(self, type): + """Sets the type of this EventChannelExtendedExtended. + + The mechanism used by the channel # noqa: E501 + + :param type: The type of this EventChannelExtendedExtended. # noqa: E501 + :type: str + """ + allowed_values = ["connectemc", "smtp", "snmp", "heartbeat"] # noqa: E501 + if type not in allowed_values: + raise ValueError( + "Invalid value for `type` ({0}), must be one of {1}" # noqa: E501 + .format(type, allowed_values) + ) + + self._type = type + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, EventChannelExtendedExtended): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/isi_sdk/models/event_channels_extended.py b/isi_sdk/models/event_channels_extended.py index 2aece7f9..a3558640 100644 --- a/isi_sdk/models/event_channels_extended.py +++ b/isi_sdk/models/event_channels_extended.py @@ -16,8 +16,7 @@ import six -from isi_sdk_8_0.models.event_channel_extended import EventChannelExtended # noqa: F401,E501 -from isi_sdk_8_0.models.event_channels import EventChannels # noqa: F401,E501 +from isi_sdk_8_0.models.event_channel_extended_extended import EventChannelExtendedExtended # noqa: F401,E501 class EventChannelsExtended(object): @@ -34,7 +33,7 @@ class EventChannelsExtended(object): and the value is json key in definition. """ swagger_types = { - 'channels': 'list[EventChannelExtended]', + 'channels': 'list[EventChannelExtendedExtended]', 'resume': 'str', 'total': 'int' } @@ -66,7 +65,7 @@ def channels(self): :return: The channels of this EventChannelsExtended. # noqa: E501 - :rtype: list[EventChannelExtended] + :rtype: list[EventChannelExtendedExtended] """ return self._channels @@ -76,7 +75,7 @@ def channels(self, channels): :param channels: The channels of this EventChannelsExtended. # noqa: E501 - :type: list[EventChannelExtended] + :type: list[EventChannelExtendedExtended] """ self._channels = channels diff --git a/isi_sdk/models/event_eventlist_event.py b/isi_sdk/models/event_eventlist_event.py index 86cfe5b3..26b1e39e 100644 --- a/isi_sdk/models/event_eventlist_event.py +++ b/isi_sdk/models/event_eventlist_event.py @@ -276,7 +276,7 @@ def severity(self, severity): :param severity: The severity of this EventEventlistEvent. # noqa: E501 :type: str """ - allowed_values = ["information", "warning", "critical", "emergency"] # noqa: E501 + allowed_values = ["information", "warning", "critical", "emergency", "unknown"] # noqa: E501 if severity not in allowed_values: raise ValueError( "Invalid value for `severity` ({0}), must be one of {1}" # noqa: E501 diff --git a/isi_sdk/models/filepool_policy_file_matching_pattern_or_criteria_item_and_criteria_item.py b/isi_sdk/models/filepool_policy_file_matching_pattern_or_criteria_item_and_criteria_item.py index 4a1918a3..ce2edc7a 100644 --- a/isi_sdk/models/filepool_policy_file_matching_pattern_or_criteria_item_and_criteria_item.py +++ b/isi_sdk/models/filepool_policy_file_matching_pattern_or_criteria_item_and_criteria_item.py @@ -198,12 +198,6 @@ def operator(self, operator): :param operator: The operator of this FilepoolPolicyFileMatchingPatternOrCriteriaItemAndCriteriaItem. # noqa: E501 :type: str """ - allowed_values = ["==", "!=", ">", ">=", "<", "<=", "!"] # noqa: E501 - if operator not in allowed_values: - raise ValueError( - "Invalid value for `operator` ({0}), must be one of {1}" # noqa: E501 - .format(operator, allowed_values) - ) self._operator = operator diff --git a/isi_sdk/models/filepool_template.py b/isi_sdk/models/filepool_template.py index 76ea1e62..bc197e47 100644 --- a/isi_sdk/models/filepool_template.py +++ b/isi_sdk/models/filepool_template.py @@ -1,65 +1,64 @@ # coding: utf-8 """ -Copyright 2016 SmartBear Software + Isilon SDK - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at + Isilon SDK - Language bindings for the OneFS API # noqa: E501 - http://www.apache.org/licenses/LICENSE-2.0 + OpenAPI spec version: 3 + Contact: sdk@isilon.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - Ref: https://github.com/swagger-api/swagger-codegen -""" +import pprint +import re # noqa: F401 + +import six -from pprint import pformat -from six import iteritems -import re +from isi_sdk_8_0.models.filepool_policy_file_matching_pattern import FilepoolPolicyFileMatchingPattern # noqa: F401,E501 +from isi_sdk_8_0.models.filepool_template_action import FilepoolTemplateAction # noqa: F401,E501 class FilepoolTemplate(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. """ - def __init__(self): - """ - FilepoolTemplate - a model defined in Swagger - :param dict swaggerTypes: The key is attribute name - and the value is attribute type. - :param dict attributeMap: The key is attribute name - and the value is json key in definition. - """ - self.swagger_types = { - 'actions': 'list[FilepoolDefaultPolicyDefaultPolicyAction]', - 'apply_order': 'int', - 'birth_cluster_id': 'str', - 'description': 'str', - 'file_matching_pattern': 'FilepoolPolicyFileMatchingPattern', - 'id': 'int', - 'name': 'str', - 'state': 'str', - 'state_details': 'str' - } - - self.attribute_map = { - 'actions': 'actions', - 'apply_order': 'apply_order', - 'birth_cluster_id': 'birth_cluster_id', - 'description': 'description', - 'file_matching_pattern': 'file_matching_pattern', - 'id': 'id', - 'name': 'name', - 'state': 'state', - 'state_details': 'state_details' - } + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'actions': 'list[FilepoolTemplateAction]', + 'apply_order': 'int', + 'birth_cluster_id': 'str', + 'description': 'str', + 'file_matching_pattern': 'FilepoolPolicyFileMatchingPattern', + 'id': 'int', + 'name': 'str', + 'state': 'str', + 'state_details': 'str' + } + + attribute_map = { + 'actions': 'actions', + 'apply_order': 'apply_order', + 'birth_cluster_id': 'birth_cluster_id', + 'description': 'description', + 'file_matching_pattern': 'file_matching_pattern', + 'id': 'id', + 'name': 'name', + 'state': 'state', + 'state_details': 'state_details' + } + + def __init__(self, actions=None, apply_order=None, birth_cluster_id=None, description=None, file_matching_pattern=None, id=None, name=None, state=None, state_details=None): # noqa: E501 + """FilepoolTemplate - a model defined in Swagger""" # noqa: E501 self._actions = None self._apply_order = None @@ -70,227 +69,245 @@ def __init__(self): self._name = None self._state = None self._state_details = None + self.discriminator = None + + if actions is not None: + self.actions = actions + if apply_order is not None: + self.apply_order = apply_order + if birth_cluster_id is not None: + self.birth_cluster_id = birth_cluster_id + if description is not None: + self.description = description + if file_matching_pattern is not None: + self.file_matching_pattern = file_matching_pattern + if id is not None: + self.id = id + if name is not None: + self.name = name + if state is not None: + self.state = state + if state_details is not None: + self.state_details = state_details @property def actions(self): - """ - Gets the actions of this FilepoolTemplate. - A list of actions to be taken for matching files + """Gets the actions of this FilepoolTemplate. # noqa: E501 + + A list of actions to be taken for matching files # noqa: E501 - :return: The actions of this FilepoolTemplate. - :rtype: list[FilepoolDefaultPolicyDefaultPolicyAction] + :return: The actions of this FilepoolTemplate. # noqa: E501 + :rtype: list[FilepoolTemplateAction] """ return self._actions @actions.setter def actions(self, actions): - """ - Sets the actions of this FilepoolTemplate. - A list of actions to be taken for matching files + """Sets the actions of this FilepoolTemplate. + + A list of actions to be taken for matching files # noqa: E501 - :param actions: The actions of this FilepoolTemplate. - :type: list[FilepoolDefaultPolicyDefaultPolicyAction] + :param actions: The actions of this FilepoolTemplate. # noqa: E501 + :type: list[FilepoolTemplateAction] """ - + self._actions = actions @property def apply_order(self): - """ - Gets the apply_order of this FilepoolTemplate. - The order in which this policy should be applied (relative to other policies) + """Gets the apply_order of this FilepoolTemplate. # noqa: E501 - :return: The apply_order of this FilepoolTemplate. + The order in which this policy should be applied (relative to other policies) # noqa: E501 + + :return: The apply_order of this FilepoolTemplate. # noqa: E501 :rtype: int """ return self._apply_order @apply_order.setter def apply_order(self, apply_order): - """ - Sets the apply_order of this FilepoolTemplate. - The order in which this policy should be applied (relative to other policies) + """Sets the apply_order of this FilepoolTemplate. - :param apply_order: The apply_order of this FilepoolTemplate. + The order in which this policy should be applied (relative to other policies) # noqa: E501 + + :param apply_order: The apply_order of this FilepoolTemplate. # noqa: E501 :type: int """ - + self._apply_order = apply_order @property def birth_cluster_id(self): - """ - Gets the birth_cluster_id of this FilepoolTemplate. - The guid assigned to the cluster on which the account was created + """Gets the birth_cluster_id of this FilepoolTemplate. # noqa: E501 + + The guid assigned to the cluster on which the account was created # noqa: E501 - :return: The birth_cluster_id of this FilepoolTemplate. + :return: The birth_cluster_id of this FilepoolTemplate. # noqa: E501 :rtype: str """ return self._birth_cluster_id @birth_cluster_id.setter def birth_cluster_id(self, birth_cluster_id): - """ - Sets the birth_cluster_id of this FilepoolTemplate. - The guid assigned to the cluster on which the account was created + """Sets the birth_cluster_id of this FilepoolTemplate. + + The guid assigned to the cluster on which the account was created # noqa: E501 - :param birth_cluster_id: The birth_cluster_id of this FilepoolTemplate. + :param birth_cluster_id: The birth_cluster_id of this FilepoolTemplate. # noqa: E501 :type: str """ - + self._birth_cluster_id = birth_cluster_id @property def description(self): - """ - Gets the description of this FilepoolTemplate. - A description for this policy + """Gets the description of this FilepoolTemplate. # noqa: E501 - :return: The description of this FilepoolTemplate. + A description for this policy # noqa: E501 + + :return: The description of this FilepoolTemplate. # noqa: E501 :rtype: str """ return self._description @description.setter def description(self, description): - """ - Sets the description of this FilepoolTemplate. - A description for this policy + """Sets the description of this FilepoolTemplate. - :param description: The description of this FilepoolTemplate. + A description for this policy # noqa: E501 + + :param description: The description of this FilepoolTemplate. # noqa: E501 :type: str """ - + self._description = description @property def file_matching_pattern(self): - """ - Gets the file_matching_pattern of this FilepoolTemplate. - The file matching rules for this policy + """Gets the file_matching_pattern of this FilepoolTemplate. # noqa: E501 + + The file matching rules for this policy # noqa: E501 - :return: The file_matching_pattern of this FilepoolTemplate. + :return: The file_matching_pattern of this FilepoolTemplate. # noqa: E501 :rtype: FilepoolPolicyFileMatchingPattern """ return self._file_matching_pattern @file_matching_pattern.setter def file_matching_pattern(self, file_matching_pattern): - """ - Sets the file_matching_pattern of this FilepoolTemplate. - The file matching rules for this policy + """Sets the file_matching_pattern of this FilepoolTemplate. + + The file matching rules for this policy # noqa: E501 - :param file_matching_pattern: The file_matching_pattern of this FilepoolTemplate. + :param file_matching_pattern: The file_matching_pattern of this FilepoolTemplate. # noqa: E501 :type: FilepoolPolicyFileMatchingPattern """ - + self._file_matching_pattern = file_matching_pattern @property def id(self): - """ - Gets the id of this FilepoolTemplate. - A unique identifier for this policy + """Gets the id of this FilepoolTemplate. # noqa: E501 - :return: The id of this FilepoolTemplate. + A unique identifier for this policy # noqa: E501 + + :return: The id of this FilepoolTemplate. # noqa: E501 :rtype: int """ return self._id @id.setter def id(self, id): - """ - Sets the id of this FilepoolTemplate. - A unique identifier for this policy + """Sets the id of this FilepoolTemplate. - :param id: The id of this FilepoolTemplate. + A unique identifier for this policy # noqa: E501 + + :param id: The id of this FilepoolTemplate. # noqa: E501 :type: int """ - + self._id = id @property def name(self): - """ - Gets the name of this FilepoolTemplate. - A unique name for this policy + """Gets the name of this FilepoolTemplate. # noqa: E501 + + A unique name for this policy # noqa: E501 - :return: The name of this FilepoolTemplate. + :return: The name of this FilepoolTemplate. # noqa: E501 :rtype: str """ return self._name @name.setter def name(self, name): - """ - Sets the name of this FilepoolTemplate. - A unique name for this policy + """Sets the name of this FilepoolTemplate. + + A unique name for this policy # noqa: E501 - :param name: The name of this FilepoolTemplate. + :param name: The name of this FilepoolTemplate. # noqa: E501 :type: str """ - + self._name = name @property def state(self): - """ - Gets the state of this FilepoolTemplate. - Indicates whether this policy is in a good state (\"OK\") or disabled (\"disabled\") + """Gets the state of this FilepoolTemplate. # noqa: E501 - :return: The state of this FilepoolTemplate. + Indicates whether this policy is in a good state (\"OK\") or disabled (\"disabled\") # noqa: E501 + + :return: The state of this FilepoolTemplate. # noqa: E501 :rtype: str """ return self._state @state.setter def state(self, state): - """ - Sets the state of this FilepoolTemplate. - Indicates whether this policy is in a good state (\"OK\") or disabled (\"disabled\") + """Sets the state of this FilepoolTemplate. - :param state: The state of this FilepoolTemplate. + Indicates whether this policy is in a good state (\"OK\") or disabled (\"disabled\") # noqa: E501 + + :param state: The state of this FilepoolTemplate. # noqa: E501 :type: str """ - allowed_values = ["OK", "disabled"] + allowed_values = ["OK", "disabled"] # noqa: E501 if state not in allowed_values: raise ValueError( - "Invalid value for `state`, must be one of {0}" - .format(allowed_values) + "Invalid value for `state` ({0}), must be one of {1}" # noqa: E501 + .format(state, allowed_values) ) self._state = state @property def state_details(self): - """ - Gets the state_details of this FilepoolTemplate. - Gives further information to describe the state of this policy + """Gets the state_details of this FilepoolTemplate. # noqa: E501 - :return: The state_details of this FilepoolTemplate. + Gives further information to describe the state of this policy # noqa: E501 + + :return: The state_details of this FilepoolTemplate. # noqa: E501 :rtype: str """ return self._state_details @state_details.setter def state_details(self, state_details): - """ - Sets the state_details of this FilepoolTemplate. - Gives further information to describe the state of this policy + """Sets the state_details of this FilepoolTemplate. - :param state_details: The state_details of this FilepoolTemplate. + Gives further information to describe the state of this policy # noqa: E501 + + :param state_details: The state_details of this FilepoolTemplate. # noqa: E501 :type: str """ - + self._state_details = state_details def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.swagger_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -311,26 +328,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" + if not isinstance(other, FilepoolTemplate): + return False + return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other - diff --git a/isi_sdk/models/filepool_template_action.py b/isi_sdk/models/filepool_template_action.py new file mode 100644 index 00000000..239df285 --- /dev/null +++ b/isi_sdk/models/filepool_template_action.py @@ -0,0 +1,147 @@ +# coding: utf-8 + +""" + Isilon SDK + + Isilon SDK - Language bindings for the OneFS API # noqa: E501 + + OpenAPI spec version: 3 + Contact: sdk@isilon.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + + +class FilepoolTemplateAction(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'action_param': 'str', + 'action_type': 'str' + } + + attribute_map = { + 'action_param': 'action_param', + 'action_type': 'action_type' + } + + def __init__(self, action_param=None, action_type=None): # noqa: E501 + """FilepoolTemplateAction - a model defined in Swagger""" # noqa: E501 + + self._action_param = None + self._action_type = None + self.discriminator = None + + if action_param is not None: + self.action_param = action_param + self.action_type = action_type + + @property + def action_param(self): + """Gets the action_param of this FilepoolTemplateAction. # noqa: E501 + + Varies according to action_type # noqa: E501 + + :return: The action_param of this FilepoolTemplateAction. # noqa: E501 + :rtype: str + """ + return self._action_param + + @action_param.setter + def action_param(self, action_param): + """Sets the action_param of this FilepoolTemplateAction. + + Varies according to action_type # noqa: E501 + + :param action_param: The action_param of this FilepoolTemplateAction. # noqa: E501 + :type: str + """ + + self._action_param = action_param + + @property + def action_type(self): + """Gets the action_type of this FilepoolTemplateAction. # noqa: E501 + + + :return: The action_type of this FilepoolTemplateAction. # noqa: E501 + :rtype: str + """ + return self._action_type + + @action_type.setter + def action_type(self, action_type): + """Sets the action_type of this FilepoolTemplateAction. + + + :param action_type: The action_type of this FilepoolTemplateAction. # noqa: E501 + :type: str + """ + if action_type is None: + raise ValueError("Invalid value for `action_type`, must not be `None`") # noqa: E501 + allowed_values = ["set_requested_protection", "set_data_access_pattern", "enable_coalescer", "apply_data_storage_policy", "apply_snapshot_storage_policy", "set_cloudpool_policy"] # noqa: E501 + if action_type not in allowed_values: + raise ValueError( + "Invalid value for `action_type` ({0}), must be one of {1}" # noqa: E501 + .format(action_type, allowed_values) + ) + + self._action_type = action_type + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, FilepoolTemplateAction): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/isi_sdk/models/filepool_templates.py b/isi_sdk/models/filepool_templates.py index 424396e6..af0fa4a2 100644 --- a/isi_sdk/models/filepool_templates.py +++ b/isi_sdk/models/filepool_templates.py @@ -16,7 +16,7 @@ import six -from isi_sdk_8_0.models.filepool_policy_extended_extended import FilepoolPolicyExtendedExtended # noqa: F401,E501 +from isi_sdk_8_0.models.filepool_template import FilepoolTemplate # noqa: F401,E501 class FilepoolTemplates(object): @@ -34,7 +34,7 @@ class FilepoolTemplates(object): """ swagger_types = { 'resume': 'str', - 'templates': 'list[FilepoolPolicyExtendedExtended]', + 'templates': 'list[FilepoolTemplate]', 'total': 'int' } @@ -88,7 +88,7 @@ def templates(self): :return: The templates of this FilepoolTemplates. # noqa: E501 - :rtype: list[FilepoolPolicyExtendedExtended] + :rtype: list[FilepoolTemplate] """ return self._templates @@ -98,7 +98,7 @@ def templates(self, templates): :param templates: The templates of this FilepoolTemplates. # noqa: E501 - :type: list[FilepoolPolicyExtendedExtended] + :type: list[FilepoolTemplate] """ self._templates = templates diff --git a/isi_sdk/models/job_event.py b/isi_sdk/models/job_event.py index 36051b40..2b595744 100644 --- a/isi_sdk/models/job_event.py +++ b/isi_sdk/models/job_event.py @@ -32,45 +32,55 @@ class JobEvent(object): """ swagger_types = { 'flags': 'str', + 'fmt_type': 'str', 'id': 'str', 'job_id': 'int', 'job_type': 'str', 'key': 'str', 'phase': 'int', + 'raw_type': 'str', 'time': 'int', 'value': 'str' } attribute_map = { 'flags': 'flags', + 'fmt_type': 'fmt_type', 'id': 'id', 'job_id': 'job_id', 'job_type': 'job_type', 'key': 'key', 'phase': 'phase', + 'raw_type': 'raw_type', 'time': 'time', 'value': 'value' } - def __init__(self, flags=None, id=None, job_id=None, job_type=None, key=None, phase=None, time=None, value=None): # noqa: E501 + def __init__(self, flags=None, fmt_type=None, id=None, job_id=None, job_type=None, key=None, phase=None, raw_type=None, time=None, value=None): # noqa: E501 """JobEvent - a model defined in Swagger""" # noqa: E501 self._flags = None + self._fmt_type = None self._id = None self._job_id = None self._job_type = None self._key = None self._phase = None + self._raw_type = None self._time = None self._value = None self.discriminator = None self.flags = flags + if fmt_type is not None: + self.fmt_type = fmt_type self.id = id self.job_id = job_id self.job_type = job_type self.key = key self.phase = phase + if raw_type is not None: + self.raw_type = raw_type self.time = time self.value = value @@ -99,6 +109,27 @@ def flags(self, flags): self._flags = flags + @property + def fmt_type(self): + """Gets the fmt_type of this JobEvent. # noqa: E501 + + + :return: The fmt_type of this JobEvent. # noqa: E501 + :rtype: str + """ + return self._fmt_type + + @fmt_type.setter + def fmt_type(self, fmt_type): + """Sets the fmt_type of this JobEvent. + + + :param fmt_type: The fmt_type of this JobEvent. # noqa: E501 + :type: str + """ + + self._fmt_type = fmt_type + @property def id(self): """Gets the id of this JobEvent. # noqa: E501 @@ -226,6 +257,27 @@ def phase(self, phase): self._phase = phase + @property + def raw_type(self): + """Gets the raw_type of this JobEvent. # noqa: E501 + + + :return: The raw_type of this JobEvent. # noqa: E501 + :rtype: str + """ + return self._raw_type + + @raw_type.setter + def raw_type(self, raw_type): + """Sets the raw_type of this JobEvent. + + + :param raw_type: The raw_type of this JobEvent. # noqa: E501 + :type: str + """ + + self._raw_type = raw_type + @property def time(self): """Gets the time of this JobEvent. # noqa: E501 diff --git a/isi_sdk/models/job_job_create_params.py b/isi_sdk/models/job_job_create_params.py index b5d6408b..e6646340 100644 --- a/isi_sdk/models/job_job_create_params.py +++ b/isi_sdk/models/job_job_create_params.py @@ -89,7 +89,8 @@ def __init__(self, allow_dup=None, avscan_params=None, changelistcreate_params=N self.changelistcreate_params = changelistcreate_params if domainmark_params is not None: self.domainmark_params = domainmark_params - self.paths = paths + if paths is not None: + self.paths = paths if policy is not None: self.policy = policy if prepair_params is not None: @@ -214,8 +215,6 @@ def paths(self, paths): :param paths: The paths of this JobJobCreateParams. # noqa: E501 :type: list[str] """ - if paths is None: - raise ValueError("Invalid value for `paths`, must not be `None`") # noqa: E501 self._paths = paths diff --git a/isi_sdk/models/job_job_extended.py b/isi_sdk/models/job_job_extended.py index 7b6d37b8..466ba708 100644 --- a/isi_sdk/models/job_job_extended.py +++ b/isi_sdk/models/job_job_extended.py @@ -112,8 +112,10 @@ def __init__(self, control_state=None, create_time=None, current_phase=None, des self.end_time = end_time self.id = id self.impact = impact - self.participants = participants - self.paths = paths + if participants is not None: + self.participants = participants + if paths is not None: + self.paths = paths self.policy = policy self.priority = priority if progress is not None: @@ -332,8 +334,6 @@ def participants(self, participants): :param participants: The participants of this JobJobExtended. # noqa: E501 :type: list[int] """ - if participants is None: - raise ValueError("Invalid value for `participants`, must not be `None`") # noqa: E501 self._participants = participants @@ -357,8 +357,6 @@ def paths(self, paths): :param paths: The paths of this JobJobExtended. # noqa: E501 :type: list[str] """ - if paths is None: - raise ValueError("Invalid value for `paths`, must not be `None`") # noqa: E501 self._paths = paths diff --git a/isi_sdk/models/job_job_summary_summary.py b/isi_sdk/models/job_job_summary_summary.py index edf86379..5cb5df66 100644 --- a/isi_sdk/models/job_job_summary_summary.py +++ b/isi_sdk/models/job_job_summary_summary.py @@ -68,7 +68,8 @@ def __init__(self, cluster_is_degraded=None, connected=None, coordinator=None, d self.cluster_is_degraded = cluster_is_degraded self.connected = connected self.coordinator = coordinator - self.disconnected_nodes = disconnected_nodes + if disconnected_nodes is not None: + self.disconnected_nodes = disconnected_nodes self.down_or_read_only_nodes = down_or_read_only_nodes self.next_jid = next_jid self.run_degraded = run_degraded @@ -169,8 +170,6 @@ def disconnected_nodes(self, disconnected_nodes): :param disconnected_nodes: The disconnected_nodes of this JobJobSummarySummary. # noqa: E501 :type: list[int] """ - if disconnected_nodes is None: - raise ValueError("Invalid value for `disconnected_nodes`, must not be `None`") # noqa: E501 self._disconnected_nodes = disconnected_nodes diff --git a/isi_sdk/models/job_policies.py b/isi_sdk/models/job_policies.py index 471c75ce..9e31680d 100644 --- a/isi_sdk/models/job_policies.py +++ b/isi_sdk/models/job_policies.py @@ -16,7 +16,7 @@ import six -from isi_sdk_8_0.models.job_policies_type import JobPoliciesType # noqa: F401,E501 +from isi_sdk_8_0.models.job_policy_extended import JobPolicyExtended # noqa: F401,E501 class JobPolicies(object): @@ -33,42 +33,42 @@ class JobPolicies(object): and the value is json key in definition. """ swagger_types = { - 'types': 'list[JobPoliciesType]' + 'policies': 'list[JobPolicyExtended]' } attribute_map = { - 'types': 'types' + 'policies': 'policies' } - def __init__(self, types=None): # noqa: E501 + def __init__(self, policies=None): # noqa: E501 """JobPolicies - a model defined in Swagger""" # noqa: E501 - self._types = None + self._policies = None self.discriminator = None - if types is not None: - self.types = types + if policies is not None: + self.policies = policies @property - def types(self): - """Gets the types of this JobPolicies. # noqa: E501 + def policies(self): + """Gets the policies of this JobPolicies. # noqa: E501 - :return: The types of this JobPolicies. # noqa: E501 - :rtype: list[JobPoliciesType] + :return: The policies of this JobPolicies. # noqa: E501 + :rtype: list[JobPolicyExtended] """ - return self._types + return self._policies - @types.setter - def types(self, types): - """Sets the types of this JobPolicies. + @policies.setter + def policies(self, policies): + """Sets the policies of this JobPolicies. - :param types: The types of this JobPolicies. # noqa: E501 - :type: list[JobPoliciesType] + :param policies: The policies of this JobPolicies. # noqa: E501 + :type: list[JobPolicyExtended] """ - self._types = types + self._policies = policies def to_dict(self): """Returns the model properties as a dict""" diff --git a/isi_sdk/models/job_policies_extended.py b/isi_sdk/models/job_policies_extended.py index 6ed4cbd5..1e2ecf13 100644 --- a/isi_sdk/models/job_policies_extended.py +++ b/isi_sdk/models/job_policies_extended.py @@ -16,7 +16,8 @@ import six -from isi_sdk_8_0.models.job_policies_type import JobPoliciesType # noqa: F401,E501 +from isi_sdk_8_0.models.job_policies import JobPolicies # noqa: F401,E501 +from isi_sdk_8_0.models.job_policy_extended import JobPolicyExtended # noqa: F401,E501 class JobPoliciesExtended(object): @@ -33,7 +34,7 @@ class JobPoliciesExtended(object): and the value is json key in definition. """ swagger_types = { - 'policies': 'list[JobPoliciesType]', + 'policies': 'list[JobPolicyExtended]', 'resume': 'str', 'total': 'int' } @@ -65,7 +66,7 @@ def policies(self): :return: The policies of this JobPoliciesExtended. # noqa: E501 - :rtype: list[JobPoliciesType] + :rtype: list[JobPolicyExtended] """ return self._policies @@ -75,7 +76,7 @@ def policies(self, policies): :param policies: The policies of this JobPoliciesExtended. # noqa: E501 - :type: list[JobPoliciesType] + :type: list[JobPolicyExtended] """ self._policies = policies diff --git a/isi_sdk/models/job_policy_extended.py b/isi_sdk/models/job_policy_extended.py new file mode 100644 index 00000000..b475d195 --- /dev/null +++ b/isi_sdk/models/job_policy_extended.py @@ -0,0 +1,233 @@ +# coding: utf-8 + +""" + Isilon SDK + + Isilon SDK - Language bindings for the OneFS API # noqa: E501 + + OpenAPI spec version: 3 + Contact: sdk@isilon.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + +from isi_sdk_8_0.models.job_policy import JobPolicy # noqa: F401,E501 +from isi_sdk_8_0.models.job_policy_interval import JobPolicyInterval # noqa: F401,E501 + + +class JobPolicyExtended(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'description': 'str', + 'intervals': 'list[JobPolicyInterval]', + 'id': 'str', + 'name': 'str', + 'system': 'bool' + } + + attribute_map = { + 'description': 'description', + 'intervals': 'intervals', + 'id': 'id', + 'name': 'name', + 'system': 'system' + } + + def __init__(self, description=None, intervals=None, id=None, name=None, system=None): # noqa: E501 + """JobPolicyExtended - a model defined in Swagger""" # noqa: E501 + + self._description = None + self._intervals = None + self._id = None + self._name = None + self._system = None + self.discriminator = None + + self.description = description + self.intervals = intervals + self.id = id + self.name = name + if system is not None: + self.system = system + + @property + def description(self): + """Gets the description of this JobPolicyExtended. # noqa: E501 + + A helpful human-readable description of the impact policy. # noqa: E501 + + :return: The description of this JobPolicyExtended. # noqa: E501 + :rtype: str + """ + return self._description + + @description.setter + def description(self, description): + """Sets the description of this JobPolicyExtended. + + A helpful human-readable description of the impact policy. # noqa: E501 + + :param description: The description of this JobPolicyExtended. # noqa: E501 + :type: str + """ + if description is None: + raise ValueError("Invalid value for `description`, must not be `None`") # noqa: E501 + + self._description = description + + @property + def intervals(self): + """Gets the intervals of this JobPolicyExtended. # noqa: E501 + + + :return: The intervals of this JobPolicyExtended. # noqa: E501 + :rtype: list[JobPolicyInterval] + """ + return self._intervals + + @intervals.setter + def intervals(self, intervals): + """Sets the intervals of this JobPolicyExtended. + + + :param intervals: The intervals of this JobPolicyExtended. # noqa: E501 + :type: list[JobPolicyInterval] + """ + if intervals is None: + raise ValueError("Invalid value for `intervals`, must not be `None`") # noqa: E501 + + self._intervals = intervals + + @property + def id(self): + """Gets the id of this JobPolicyExtended. # noqa: E501 + + The ID of the impact policy. # noqa: E501 + + :return: The id of this JobPolicyExtended. # noqa: E501 + :rtype: str + """ + return self._id + + @id.setter + def id(self, id): + """Sets the id of this JobPolicyExtended. + + The ID of the impact policy. # noqa: E501 + + :param id: The id of this JobPolicyExtended. # noqa: E501 + :type: str + """ + if id is None: + raise ValueError("Invalid value for `id`, must not be `None`") # noqa: E501 + + self._id = id + + @property + def name(self): + """Gets the name of this JobPolicyExtended. # noqa: E501 + + The name of the impact policy. # noqa: E501 + + :return: The name of this JobPolicyExtended. # noqa: E501 + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """Sets the name of this JobPolicyExtended. + + The name of the impact policy. # noqa: E501 + + :param name: The name of this JobPolicyExtended. # noqa: E501 + :type: str + """ + if name is None: + raise ValueError("Invalid value for `name`, must not be `None`") # noqa: E501 + if name is not None and len(name) < 1: + raise ValueError("Invalid value for `name`, length must be greater than or equal to `1`") # noqa: E501 + + self._name = name + + @property + def system(self): + """Gets the system of this JobPolicyExtended. # noqa: E501 + + Whether or not this is a read-only system impact policy. # noqa: E501 + + :return: The system of this JobPolicyExtended. # noqa: E501 + :rtype: bool + """ + return self._system + + @system.setter + def system(self, system): + """Sets the system of this JobPolicyExtended. + + Whether or not this is a read-only system impact policy. # noqa: E501 + + :param system: The system of this JobPolicyExtended. # noqa: E501 + :type: bool + """ + + self._system = system + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, JobPolicyExtended): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/isi_sdk/models/mapping_users_rules_parameters.py b/isi_sdk/models/mapping_users_rules_parameters.py index 2a4869a9..2eab1f17 100644 --- a/isi_sdk/models/mapping_users_rules_parameters.py +++ b/isi_sdk/models/mapping_users_rules_parameters.py @@ -16,7 +16,7 @@ import six -from isi_sdk_8_0.models.mapping_users_rules_rule_options_default_user import MappingUsersRulesRuleOptionsDefaultUser # noqa: F401,E501 +from isi_sdk_8_0.models.mapping_users_rules_parameters_default_unix_user import MappingUsersRulesParametersDefaultUnixUser # noqa: F401,E501 class MappingUsersRulesParameters(object): @@ -33,7 +33,7 @@ class MappingUsersRulesParameters(object): and the value is json key in definition. """ swagger_types = { - 'default_unix_user': 'MappingUsersRulesRuleOptionsDefaultUser' + 'default_unix_user': 'MappingUsersRulesParametersDefaultUnixUser' } attribute_map = { @@ -56,7 +56,7 @@ def default_unix_user(self): # noqa: E501 :return: The default_unix_user of this MappingUsersRulesParameters. # noqa: E501 - :rtype: MappingUsersRulesRuleOptionsDefaultUser + :rtype: MappingUsersRulesParametersDefaultUnixUser """ return self._default_unix_user @@ -67,7 +67,7 @@ def default_unix_user(self, default_unix_user): # noqa: E501 :param default_unix_user: The default_unix_user of this MappingUsersRulesParameters. # noqa: E501 - :type: MappingUsersRulesRuleOptionsDefaultUser + :type: MappingUsersRulesParametersDefaultUnixUser """ self._default_unix_user = default_unix_user diff --git a/isi_sdk/models/mapping_users_rules_parameters_default_unix_user.py b/isi_sdk/models/mapping_users_rules_parameters_default_unix_user.py new file mode 100644 index 00000000..2c6f23b2 --- /dev/null +++ b/isi_sdk/models/mapping_users_rules_parameters_default_unix_user.py @@ -0,0 +1,145 @@ +# coding: utf-8 + +""" + Isilon SDK + + Isilon SDK - Language bindings for the OneFS API # noqa: E501 + + OpenAPI spec version: 3 + Contact: sdk@isilon.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + +from isi_sdk_8_0.models.mapping_users_rules_rule_user2 import MappingUsersRulesRuleUser2 # noqa: F401,E501 + + +class MappingUsersRulesParametersDefaultUnixUser(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'domain': 'str', + 'user': 'str' + } + + attribute_map = { + 'domain': 'domain', + 'user': 'user' + } + + def __init__(self, domain=None, user=None): # noqa: E501 + """MappingUsersRulesParametersDefaultUnixUser - a model defined in Swagger""" # noqa: E501 + + self._domain = None + self._user = None + self.discriminator = None + + if domain is not None: + self.domain = domain + self.user = user + + @property + def domain(self): + """Gets the domain of this MappingUsersRulesParametersDefaultUnixUser. # noqa: E501 + + Specifies the domain of the user that is being mapped. # noqa: E501 + + :return: The domain of this MappingUsersRulesParametersDefaultUnixUser. # noqa: E501 + :rtype: str + """ + return self._domain + + @domain.setter + def domain(self, domain): + """Sets the domain of this MappingUsersRulesParametersDefaultUnixUser. + + Specifies the domain of the user that is being mapped. # noqa: E501 + + :param domain: The domain of this MappingUsersRulesParametersDefaultUnixUser. # noqa: E501 + :type: str + """ + + self._domain = domain + + @property + def user(self): + """Gets the user of this MappingUsersRulesParametersDefaultUnixUser. # noqa: E501 + + Specifies the name of the user that is being mapped. # noqa: E501 + + :return: The user of this MappingUsersRulesParametersDefaultUnixUser. # noqa: E501 + :rtype: str + """ + return self._user + + @user.setter + def user(self, user): + """Sets the user of this MappingUsersRulesParametersDefaultUnixUser. + + Specifies the name of the user that is being mapped. # noqa: E501 + + :param user: The user of this MappingUsersRulesParametersDefaultUnixUser. # noqa: E501 + :type: str + """ + if user is None: + raise ValueError("Invalid value for `user`, must not be `None`") # noqa: E501 + + self._user = user + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, MappingUsersRulesParametersDefaultUnixUser): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/isi_sdk/models/mapping_users_rules_rule_extended.py b/isi_sdk/models/mapping_users_rules_rule_extended.py index d4d9f0f1..5f5e1e22 100644 --- a/isi_sdk/models/mapping_users_rules_rule_extended.py +++ b/isi_sdk/models/mapping_users_rules_rule_extended.py @@ -16,8 +16,8 @@ import six -from isi_sdk_8_0.models.mapping_users_rules_rule_options_default_user import MappingUsersRulesRuleOptionsDefaultUser # noqa: F401,E501 from isi_sdk_8_0.models.mapping_users_rules_rule_options_extended import MappingUsersRulesRuleOptionsExtended # noqa: F401,E501 +from isi_sdk_8_0.models.mapping_users_rules_rule_user1 import MappingUsersRulesRuleUser1 # noqa: F401,E501 from isi_sdk_8_0.models.mapping_users_rules_rule_user2_extended import MappingUsersRulesRuleUser2Extended # noqa: F401,E501 @@ -37,7 +37,7 @@ class MappingUsersRulesRuleExtended(object): swagger_types = { 'operator': 'str', 'options': 'MappingUsersRulesRuleOptionsExtended', - 'user1': 'MappingUsersRulesRuleOptionsDefaultUser', + 'user1': 'MappingUsersRulesRuleUser1', 'user2': 'MappingUsersRulesRuleUser2Extended' } @@ -124,7 +124,7 @@ def user1(self): # noqa: E501 :return: The user1 of this MappingUsersRulesRuleExtended. # noqa: E501 - :rtype: MappingUsersRulesRuleOptionsDefaultUser + :rtype: MappingUsersRulesRuleUser1 """ return self._user1 @@ -135,7 +135,7 @@ def user1(self, user1): # noqa: E501 :param user1: The user1 of this MappingUsersRulesRuleExtended. # noqa: E501 - :type: MappingUsersRulesRuleOptionsDefaultUser + :type: MappingUsersRulesRuleUser1 """ if user1 is None: raise ValueError("Invalid value for `user1`, must not be `None`") # noqa: E501 diff --git a/isi_sdk/models/mapping_users_rules_rule_user1.py b/isi_sdk/models/mapping_users_rules_rule_user1.py new file mode 100644 index 00000000..8a0f3b81 --- /dev/null +++ b/isi_sdk/models/mapping_users_rules_rule_user1.py @@ -0,0 +1,145 @@ +# coding: utf-8 + +""" + Isilon SDK + + Isilon SDK - Language bindings for the OneFS API # noqa: E501 + + OpenAPI spec version: 3 + Contact: sdk@isilon.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + +from isi_sdk_8_0.models.mapping_users_rules_rule_user2 import MappingUsersRulesRuleUser2 # noqa: F401,E501 + + +class MappingUsersRulesRuleUser1(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'domain': 'str', + 'user': 'str' + } + + attribute_map = { + 'domain': 'domain', + 'user': 'user' + } + + def __init__(self, domain=None, user=None): # noqa: E501 + """MappingUsersRulesRuleUser1 - a model defined in Swagger""" # noqa: E501 + + self._domain = None + self._user = None + self.discriminator = None + + if domain is not None: + self.domain = domain + self.user = user + + @property + def domain(self): + """Gets the domain of this MappingUsersRulesRuleUser1. # noqa: E501 + + Specifies the domain of the user that is being mapped. # noqa: E501 + + :return: The domain of this MappingUsersRulesRuleUser1. # noqa: E501 + :rtype: str + """ + return self._domain + + @domain.setter + def domain(self, domain): + """Sets the domain of this MappingUsersRulesRuleUser1. + + Specifies the domain of the user that is being mapped. # noqa: E501 + + :param domain: The domain of this MappingUsersRulesRuleUser1. # noqa: E501 + :type: str + """ + + self._domain = domain + + @property + def user(self): + """Gets the user of this MappingUsersRulesRuleUser1. # noqa: E501 + + Specifies the name of the user that is being mapped. # noqa: E501 + + :return: The user of this MappingUsersRulesRuleUser1. # noqa: E501 + :rtype: str + """ + return self._user + + @user.setter + def user(self, user): + """Sets the user of this MappingUsersRulesRuleUser1. + + Specifies the name of the user that is being mapped. # noqa: E501 + + :param user: The user of this MappingUsersRulesRuleUser1. # noqa: E501 + :type: str + """ + if user is None: + raise ValueError("Invalid value for `user`, must not be `None`") # noqa: E501 + + self._user = user + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, MappingUsersRulesRuleUser1): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/isi_sdk/models/member_object.py b/isi_sdk/models/member_object.py new file mode 100644 index 00000000..6ff70c25 --- /dev/null +++ b/isi_sdk/models/member_object.py @@ -0,0 +1,164 @@ +# coding: utf-8 + +""" + Isilon SDK + + Isilon SDK - Language bindings for the OneFS API # noqa: E501 + + OpenAPI spec version: 3 + Contact: sdk@isilon.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + + +class MemberObject(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'id': 'str', + 'name': 'str', + 'type': 'str' + } + + attribute_map = { + 'id': 'id', + 'name': 'name', + 'type': 'type' + } + + def __init__(self, id=None, name=None, type=None): # noqa: E501 + """MemberObject - a model defined in Swagger""" # noqa: E501 + + self._id = None + self._name = None + self._type = None + self.discriminator = None + + if id is not None: + self.id = id + if name is not None: + self.name = name + if type is not None: + self.type = type + + @property + def id(self): + """Gets the id of this MemberObject. # noqa: E501 + + + :return: The id of this MemberObject. # noqa: E501 + :rtype: str + """ + return self._id + + @id.setter + def id(self, id): + """Sets the id of this MemberObject. + + + :param id: The id of this MemberObject. # noqa: E501 + :type: str + """ + + self._id = id + + @property + def name(self): + """Gets the name of this MemberObject. # noqa: E501 + + + :return: The name of this MemberObject. # noqa: E501 + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """Sets the name of this MemberObject. + + + :param name: The name of this MemberObject. # noqa: E501 + :type: str + """ + + self._name = name + + @property + def type(self): + """Gets the type of this MemberObject. # noqa: E501 + + + :return: The type of this MemberObject. # noqa: E501 + :rtype: str + """ + return self._type + + @type.setter + def type(self, type): + """Sets the type of this MemberObject. + + + :param type: The type of this MemberObject. # noqa: E501 + :type: str + """ + + self._type = type + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, MemberObject): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/isi_sdk/models/namespace_access_points.py b/isi_sdk/models/namespace_access_points.py new file mode 100644 index 00000000..284d6c39 --- /dev/null +++ b/isi_sdk/models/namespace_access_points.py @@ -0,0 +1,140 @@ +# coding: utf-8 + +""" + Isilon SDK + + Isilon SDK - Language bindings for the OneFS API # noqa: E501 + + OpenAPI spec version: 3 + Contact: sdk@isilon.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + +from isi_sdk_8_0.models.namespace_access_points_namespaces import NamespaceAccessPointsNamespaces # noqa: F401,E501 + + +class NamespaceAccessPoints(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'namespaces': 'list[NamespaceAccessPointsNamespaces]', + 'versions': 'list[str]' + } + + attribute_map = { + 'namespaces': 'namespaces', + 'versions': 'versions' + } + + def __init__(self, namespaces=None, versions=None): # noqa: E501 + """NamespaceAccessPoints - a model defined in Swagger""" # noqa: E501 + + self._namespaces = None + self._versions = None + self.discriminator = None + + if namespaces is not None: + self.namespaces = namespaces + if versions is not None: + self.versions = versions + + @property + def namespaces(self): + """Gets the namespaces of this NamespaceAccessPoints. # noqa: E501 + + + :return: The namespaces of this NamespaceAccessPoints. # noqa: E501 + :rtype: list[NamespaceAccessPointsNamespaces] + """ + return self._namespaces + + @namespaces.setter + def namespaces(self, namespaces): + """Sets the namespaces of this NamespaceAccessPoints. + + + :param namespaces: The namespaces of this NamespaceAccessPoints. # noqa: E501 + :type: list[NamespaceAccessPointsNamespaces] + """ + + self._namespaces = namespaces + + @property + def versions(self): + """Gets the versions of this NamespaceAccessPoints. # noqa: E501 + + + :return: The versions of this NamespaceAccessPoints. # noqa: E501 + :rtype: list[str] + """ + return self._versions + + @versions.setter + def versions(self, versions): + """Sets the versions of this NamespaceAccessPoints. + + + :param versions: The versions of this NamespaceAccessPoints. # noqa: E501 + :type: list[str] + """ + + self._versions = versions + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, NamespaceAccessPoints): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/isi_sdk/models/namespace_access_points_namespaces.py b/isi_sdk/models/namespace_access_points_namespaces.py new file mode 100644 index 00000000..dae2c474 --- /dev/null +++ b/isi_sdk/models/namespace_access_points_namespaces.py @@ -0,0 +1,138 @@ +# coding: utf-8 + +""" + Isilon SDK + + Isilon SDK - Language bindings for the OneFS API # noqa: E501 + + OpenAPI spec version: 3 + Contact: sdk@isilon.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + + +class NamespaceAccessPointsNamespaces(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'name': 'str', + 'path': 'str' + } + + attribute_map = { + 'name': 'name', + 'path': 'path' + } + + def __init__(self, name=None, path=None): # noqa: E501 + """NamespaceAccessPointsNamespaces - a model defined in Swagger""" # noqa: E501 + + self._name = None + self._path = None + self.discriminator = None + + if name is not None: + self.name = name + if path is not None: + self.path = path + + @property + def name(self): + """Gets the name of this NamespaceAccessPointsNamespaces. # noqa: E501 + + + :return: The name of this NamespaceAccessPointsNamespaces. # noqa: E501 + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """Sets the name of this NamespaceAccessPointsNamespaces. + + + :param name: The name of this NamespaceAccessPointsNamespaces. # noqa: E501 + :type: str + """ + + self._name = name + + @property + def path(self): + """Gets the path of this NamespaceAccessPointsNamespaces. # noqa: E501 + + + :return: The path of this NamespaceAccessPointsNamespaces. # noqa: E501 + :rtype: str + """ + return self._path + + @path.setter + def path(self, path): + """Sets the path of this NamespaceAccessPointsNamespaces. + + + :param path: The path of this NamespaceAccessPointsNamespaces. # noqa: E501 + :type: str + """ + + self._path = path + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, NamespaceAccessPointsNamespaces): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/isi_sdk/models/namespace_acl.py b/isi_sdk/models/namespace_acl.py new file mode 100644 index 00000000..d522503b --- /dev/null +++ b/isi_sdk/models/namespace_acl.py @@ -0,0 +1,229 @@ +# coding: utf-8 + +""" + Isilon SDK + + Isilon SDK - Language bindings for the OneFS API # noqa: E501 + + OpenAPI spec version: 3 + Contact: sdk@isilon.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + +from isi_sdk_8_0.models.acl_object import AclObject # noqa: F401,E501 +from isi_sdk_8_0.models.member_object import MemberObject # noqa: F401,E501 + + +class NamespaceAcl(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'acl': 'list[AclObject]', + 'authoritative': 'str', + 'group': 'MemberObject', + 'mode': 'str', + 'owner': 'MemberObject' + } + + attribute_map = { + 'acl': 'acl', + 'authoritative': 'authoritative', + 'group': 'group', + 'mode': 'mode', + 'owner': 'owner' + } + + def __init__(self, acl=None, authoritative=None, group=None, mode=None, owner=None): # noqa: E501 + """NamespaceAcl - a model defined in Swagger""" # noqa: E501 + + self._acl = None + self._authoritative = None + self._group = None + self._mode = None + self._owner = None + self.discriminator = None + + if acl is not None: + self.acl = acl + if authoritative is not None: + self.authoritative = authoritative + if group is not None: + self.group = group + if mode is not None: + self.mode = mode + if owner is not None: + self.owner = owner + + @property + def acl(self): + """Gets the acl of this NamespaceAcl. # noqa: E501 + + Provides the JSON array of access rights. # noqa: E501 + + :return: The acl of this NamespaceAcl. # noqa: E501 + :rtype: list[AclObject] + """ + return self._acl + + @acl.setter + def acl(self, acl): + """Sets the acl of this NamespaceAcl. + + Provides the JSON array of access rights. # noqa: E501 + + :param acl: The acl of this NamespaceAcl. # noqa: E501 + :type: list[AclObject] + """ + + self._acl = acl + + @property + def authoritative(self): + """Gets the authoritative of this NamespaceAcl. # noqa: E501 + + If the directory has access rights set, then this field is returned as acl. If the directory has POSIX permissions set, then this field is returned as mode. # noqa: E501 + + :return: The authoritative of this NamespaceAcl. # noqa: E501 + :rtype: str + """ + return self._authoritative + + @authoritative.setter + def authoritative(self, authoritative): + """Sets the authoritative of this NamespaceAcl. + + If the directory has access rights set, then this field is returned as acl. If the directory has POSIX permissions set, then this field is returned as mode. # noqa: E501 + + :param authoritative: The authoritative of this NamespaceAcl. # noqa: E501 + :type: str + """ + + self._authoritative = authoritative + + @property + def group(self): + """Gets the group of this NamespaceAcl. # noqa: E501 + + Provides the JSON object for the group persona of the owner. # noqa: E501 + + :return: The group of this NamespaceAcl. # noqa: E501 + :rtype: MemberObject + """ + return self._group + + @group.setter + def group(self, group): + """Sets the group of this NamespaceAcl. + + Provides the JSON object for the group persona of the owner. # noqa: E501 + + :param group: The group of this NamespaceAcl. # noqa: E501 + :type: MemberObject + """ + + self._group = group + + @property + def mode(self): + """Gets the mode of this NamespaceAcl. # noqa: E501 + + Provides the POSIX mode. # noqa: E501 + + :return: The mode of this NamespaceAcl. # noqa: E501 + :rtype: str + """ + return self._mode + + @mode.setter + def mode(self, mode): + """Sets the mode of this NamespaceAcl. + + Provides the POSIX mode. # noqa: E501 + + :param mode: The mode of this NamespaceAcl. # noqa: E501 + :type: str + """ + + self._mode = mode + + @property + def owner(self): + """Gets the owner of this NamespaceAcl. # noqa: E501 + + Provides the JSON object for the owner persona. # noqa: E501 + + :return: The owner of this NamespaceAcl. # noqa: E501 + :rtype: MemberObject + """ + return self._owner + + @owner.setter + def owner(self, owner): + """Sets the owner of this NamespaceAcl. + + Provides the JSON object for the owner persona. # noqa: E501 + + :param owner: The owner of this NamespaceAcl. # noqa: E501 + :type: MemberObject + """ + + self._owner = owner + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, NamespaceAcl): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/isi_sdk/models/namespace_metadata.py b/isi_sdk/models/namespace_metadata.py new file mode 100644 index 00000000..715e2819 --- /dev/null +++ b/isi_sdk/models/namespace_metadata.py @@ -0,0 +1,140 @@ +# coding: utf-8 + +""" + Isilon SDK + + Isilon SDK - Language bindings for the OneFS API # noqa: E501 + + OpenAPI spec version: 3 + Contact: sdk@isilon.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + +from isi_sdk_8_0.models.namespace_metadata_attrs import NamespaceMetadataAttrs # noqa: F401,E501 + + +class NamespaceMetadata(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'action': 'str', + 'attrs': 'list[NamespaceMetadataAttrs]' + } + + attribute_map = { + 'action': 'action', + 'attrs': 'attrs' + } + + def __init__(self, action=None, attrs=None): # noqa: E501 + """NamespaceMetadata - a model defined in Swagger""" # noqa: E501 + + self._action = None + self._attrs = None + self.discriminator = None + + if action is not None: + self.action = action + if attrs is not None: + self.attrs = attrs + + @property + def action(self): + """Gets the action of this NamespaceMetadata. # noqa: E501 + + + :return: The action of this NamespaceMetadata. # noqa: E501 + :rtype: str + """ + return self._action + + @action.setter + def action(self, action): + """Sets the action of this NamespaceMetadata. + + + :param action: The action of this NamespaceMetadata. # noqa: E501 + :type: str + """ + + self._action = action + + @property + def attrs(self): + """Gets the attrs of this NamespaceMetadata. # noqa: E501 + + + :return: The attrs of this NamespaceMetadata. # noqa: E501 + :rtype: list[NamespaceMetadataAttrs] + """ + return self._attrs + + @attrs.setter + def attrs(self, attrs): + """Sets the attrs of this NamespaceMetadata. + + + :param attrs: The attrs of this NamespaceMetadata. # noqa: E501 + :type: list[NamespaceMetadataAttrs] + """ + + self._attrs = attrs + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, NamespaceMetadata): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/isi_sdk/models/namespace_metadata_attrs.py b/isi_sdk/models/namespace_metadata_attrs.py new file mode 100644 index 00000000..20c061c4 --- /dev/null +++ b/isi_sdk/models/namespace_metadata_attrs.py @@ -0,0 +1,190 @@ +# coding: utf-8 + +""" + Isilon SDK + + Isilon SDK - Language bindings for the OneFS API # noqa: E501 + + OpenAPI spec version: 3 + Contact: sdk@isilon.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + + +class NamespaceMetadataAttrs(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'name': 'str', + 'namespace': 'str', + 'op': 'str', + 'value': 'str' + } + + attribute_map = { + 'name': 'name', + 'namespace': 'namespace', + 'op': 'op', + 'value': 'value' + } + + def __init__(self, name=None, namespace=None, op=None, value=None): # noqa: E501 + """NamespaceMetadataAttrs - a model defined in Swagger""" # noqa: E501 + + self._name = None + self._namespace = None + self._op = None + self._value = None + self.discriminator = None + + if name is not None: + self.name = name + if namespace is not None: + self.namespace = namespace + if op is not None: + self.op = op + if value is not None: + self.value = value + + @property + def name(self): + """Gets the name of this NamespaceMetadataAttrs. # noqa: E501 + + + :return: The name of this NamespaceMetadataAttrs. # noqa: E501 + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """Sets the name of this NamespaceMetadataAttrs. + + + :param name: The name of this NamespaceMetadataAttrs. # noqa: E501 + :type: str + """ + + self._name = name + + @property + def namespace(self): + """Gets the namespace of this NamespaceMetadataAttrs. # noqa: E501 + + + :return: The namespace of this NamespaceMetadataAttrs. # noqa: E501 + :rtype: str + """ + return self._namespace + + @namespace.setter + def namespace(self, namespace): + """Sets the namespace of this NamespaceMetadataAttrs. + + + :param namespace: The namespace of this NamespaceMetadataAttrs. # noqa: E501 + :type: str + """ + + self._namespace = namespace + + @property + def op(self): + """Gets the op of this NamespaceMetadataAttrs. # noqa: E501 + + + :return: The op of this NamespaceMetadataAttrs. # noqa: E501 + :rtype: str + """ + return self._op + + @op.setter + def op(self, op): + """Sets the op of this NamespaceMetadataAttrs. + + + :param op: The op of this NamespaceMetadataAttrs. # noqa: E501 + :type: str + """ + + self._op = op + + @property + def value(self): + """Gets the value of this NamespaceMetadataAttrs. # noqa: E501 + + + :return: The value of this NamespaceMetadataAttrs. # noqa: E501 + :rtype: str + """ + return self._value + + @value.setter + def value(self, value): + """Sets the value of this NamespaceMetadataAttrs. + + + :param value: The value of this NamespaceMetadataAttrs. # noqa: E501 + :type: str + """ + + self._value = value + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, NamespaceMetadataAttrs): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/isi_sdk/models/namespace_metadata_list.py b/isi_sdk/models/namespace_metadata_list.py new file mode 100644 index 00000000..0047287b --- /dev/null +++ b/isi_sdk/models/namespace_metadata_list.py @@ -0,0 +1,114 @@ +# coding: utf-8 + +""" + Isilon SDK + + Isilon SDK - Language bindings for the OneFS API # noqa: E501 + + OpenAPI spec version: 3 + Contact: sdk@isilon.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + +from isi_sdk_8_0.models.namespace_metadata_list_attrs import NamespaceMetadataListAttrs # noqa: F401,E501 + + +class NamespaceMetadataList(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'attrs': 'list[NamespaceMetadataListAttrs]' + } + + attribute_map = { + 'attrs': 'attrs' + } + + def __init__(self, attrs=None): # noqa: E501 + """NamespaceMetadataList - a model defined in Swagger""" # noqa: E501 + + self._attrs = None + self.discriminator = None + + if attrs is not None: + self.attrs = attrs + + @property + def attrs(self): + """Gets the attrs of this NamespaceMetadataList. # noqa: E501 + + + :return: The attrs of this NamespaceMetadataList. # noqa: E501 + :rtype: list[NamespaceMetadataListAttrs] + """ + return self._attrs + + @attrs.setter + def attrs(self, attrs): + """Sets the attrs of this NamespaceMetadataList. + + + :param attrs: The attrs of this NamespaceMetadataList. # noqa: E501 + :type: list[NamespaceMetadataListAttrs] + """ + + self._attrs = attrs + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, NamespaceMetadataList): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/isi_sdk/models/namespace_metadata_list_attrs.py b/isi_sdk/models/namespace_metadata_list_attrs.py new file mode 100644 index 00000000..89b77684 --- /dev/null +++ b/isi_sdk/models/namespace_metadata_list_attrs.py @@ -0,0 +1,164 @@ +# coding: utf-8 + +""" + Isilon SDK + + Isilon SDK - Language bindings for the OneFS API # noqa: E501 + + OpenAPI spec version: 3 + Contact: sdk@isilon.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + + +class NamespaceMetadataListAttrs(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'name': 'str', + 'namespace': 'str', + 'value': 'str' + } + + attribute_map = { + 'name': 'name', + 'namespace': 'namespace', + 'value': 'value' + } + + def __init__(self, name=None, namespace=None, value=None): # noqa: E501 + """NamespaceMetadataListAttrs - a model defined in Swagger""" # noqa: E501 + + self._name = None + self._namespace = None + self._value = None + self.discriminator = None + + if name is not None: + self.name = name + if namespace is not None: + self.namespace = namespace + if value is not None: + self.value = value + + @property + def name(self): + """Gets the name of this NamespaceMetadataListAttrs. # noqa: E501 + + + :return: The name of this NamespaceMetadataListAttrs. # noqa: E501 + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """Sets the name of this NamespaceMetadataListAttrs. + + + :param name: The name of this NamespaceMetadataListAttrs. # noqa: E501 + :type: str + """ + + self._name = name + + @property + def namespace(self): + """Gets the namespace of this NamespaceMetadataListAttrs. # noqa: E501 + + + :return: The namespace of this NamespaceMetadataListAttrs. # noqa: E501 + :rtype: str + """ + return self._namespace + + @namespace.setter + def namespace(self, namespace): + """Sets the namespace of this NamespaceMetadataListAttrs. + + + :param namespace: The namespace of this NamespaceMetadataListAttrs. # noqa: E501 + :type: str + """ + + self._namespace = namespace + + @property + def value(self): + """Gets the value of this NamespaceMetadataListAttrs. # noqa: E501 + + + :return: The value of this NamespaceMetadataListAttrs. # noqa: E501 + :rtype: str + """ + return self._value + + @value.setter + def value(self, value): + """Sets the value of this NamespaceMetadataListAttrs. + + + :param value: The value of this NamespaceMetadataListAttrs. # noqa: E501 + :type: str + """ + + self._value = value + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, NamespaceMetadataListAttrs): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/isi_sdk/models/namespace_object.py b/isi_sdk/models/namespace_object.py new file mode 100644 index 00000000..291e786d --- /dev/null +++ b/isi_sdk/models/namespace_object.py @@ -0,0 +1,700 @@ +# coding: utf-8 + +""" + Isilon SDK + + Isilon SDK - Language bindings for the OneFS API # noqa: E501 + + OpenAPI spec version: 3 + Contact: sdk@isilon.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + + +class NamespaceObject(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'access_time': 'str', + 'atime_val': 'int', + 'block_size': 'int', + 'blocks': 'int', + 'btime_val': 'int', + 'change_time': 'str', + 'create_time': 'str', + 'ctime_val': 'int', + 'gid': 'int', + 'group': 'str', + 'id': 'int', + 'is_hidden': 'bool', + 'last_modified': 'str', + 'mode': 'str', + 'mtime_val': 'int', + 'name': 'str', + 'nlink': 'int', + 'owner': 'str', + 'size': 'int', + 'stub': 'bool', + 'type': 'str', + 'uid': 'int' + } + + attribute_map = { + 'access_time': 'access_time', + 'atime_val': 'atime_val', + 'block_size': 'block_size', + 'blocks': 'blocks', + 'btime_val': 'btime_val', + 'change_time': 'change_time', + 'create_time': 'create_time', + 'ctime_val': 'ctime_val', + 'gid': 'gid', + 'group': 'group', + 'id': 'id', + 'is_hidden': 'is_hidden', + 'last_modified': 'last_modified', + 'mode': 'mode', + 'mtime_val': 'mtime_val', + 'name': 'name', + 'nlink': 'nlink', + 'owner': 'owner', + 'size': 'size', + 'stub': 'stub', + 'type': 'type', + 'uid': 'uid' + } + + def __init__(self, access_time=None, atime_val=None, block_size=None, blocks=None, btime_val=None, change_time=None, create_time=None, ctime_val=None, gid=None, group=None, id=None, is_hidden=None, last_modified=None, mode=None, mtime_val=None, name=None, nlink=None, owner=None, size=None, stub=None, type=None, uid=None): # noqa: E501 + """NamespaceObject - a model defined in Swagger""" # noqa: E501 + + self._access_time = None + self._atime_val = None + self._block_size = None + self._blocks = None + self._btime_val = None + self._change_time = None + self._create_time = None + self._ctime_val = None + self._gid = None + self._group = None + self._id = None + self._is_hidden = None + self._last_modified = None + self._mode = None + self._mtime_val = None + self._name = None + self._nlink = None + self._owner = None + self._size = None + self._stub = None + self._type = None + self._uid = None + self.discriminator = None + + if access_time is not None: + self.access_time = access_time + if atime_val is not None: + self.atime_val = atime_val + if block_size is not None: + self.block_size = block_size + if blocks is not None: + self.blocks = blocks + if btime_val is not None: + self.btime_val = btime_val + if change_time is not None: + self.change_time = change_time + if create_time is not None: + self.create_time = create_time + if ctime_val is not None: + self.ctime_val = ctime_val + if gid is not None: + self.gid = gid + if group is not None: + self.group = group + if id is not None: + self.id = id + if is_hidden is not None: + self.is_hidden = is_hidden + if last_modified is not None: + self.last_modified = last_modified + if mode is not None: + self.mode = mode + if mtime_val is not None: + self.mtime_val = mtime_val + if name is not None: + self.name = name + if nlink is not None: + self.nlink = nlink + if owner is not None: + self.owner = owner + if size is not None: + self.size = size + if stub is not None: + self.stub = stub + if type is not None: + self.type = type + if uid is not None: + self.uid = uid + + @property + def access_time(self): + """Gets the access_time of this NamespaceObject. # noqa: E501 + + Specifies the date when the object was last accessed in HTTP date/time format. # noqa: E501 + + :return: The access_time of this NamespaceObject. # noqa: E501 + :rtype: str + """ + return self._access_time + + @access_time.setter + def access_time(self, access_time): + """Sets the access_time of this NamespaceObject. + + Specifies the date when the object was last accessed in HTTP date/time format. # noqa: E501 + + :param access_time: The access_time of this NamespaceObject. # noqa: E501 + :type: str + """ + + self._access_time = access_time + + @property + def atime_val(self): + """Gets the atime_val of this NamespaceObject. # noqa: E501 + + Specifies the time when the object was last accessed in UNIX Epoch format. # noqa: E501 + + :return: The atime_val of this NamespaceObject. # noqa: E501 + :rtype: int + """ + return self._atime_val + + @atime_val.setter + def atime_val(self, atime_val): + """Sets the atime_val of this NamespaceObject. + + Specifies the time when the object was last accessed in UNIX Epoch format. # noqa: E501 + + :param atime_val: The atime_val of this NamespaceObject. # noqa: E501 + :type: int + """ + + self._atime_val = atime_val + + @property + def block_size(self): + """Gets the block_size of this NamespaceObject. # noqa: E501 + + Specifies the block size of the object. # noqa: E501 + + :return: The block_size of this NamespaceObject. # noqa: E501 + :rtype: int + """ + return self._block_size + + @block_size.setter + def block_size(self, block_size): + """Sets the block_size of this NamespaceObject. + + Specifies the block size of the object. # noqa: E501 + + :param block_size: The block_size of this NamespaceObject. # noqa: E501 + :type: int + """ + + self._block_size = block_size + + @property + def blocks(self): + """Gets the blocks of this NamespaceObject. # noqa: E501 + + Specifies the number of blocks that compose the object. # noqa: E501 + + :return: The blocks of this NamespaceObject. # noqa: E501 + :rtype: int + """ + return self._blocks + + @blocks.setter + def blocks(self, blocks): + """Sets the blocks of this NamespaceObject. + + Specifies the number of blocks that compose the object. # noqa: E501 + + :param blocks: The blocks of this NamespaceObject. # noqa: E501 + :type: int + """ + + self._blocks = blocks + + @property + def btime_val(self): + """Gets the btime_val of this NamespaceObject. # noqa: E501 + + Specifies the time when the object data was created in UNIX Epoch format. # noqa: E501 + + :return: The btime_val of this NamespaceObject. # noqa: E501 + :rtype: int + """ + return self._btime_val + + @btime_val.setter + def btime_val(self, btime_val): + """Sets the btime_val of this NamespaceObject. + + Specifies the time when the object data was created in UNIX Epoch format. # noqa: E501 + + :param btime_val: The btime_val of this NamespaceObject. # noqa: E501 + :type: int + """ + + self._btime_val = btime_val + + @property + def change_time(self): + """Gets the change_time of this NamespaceObject. # noqa: E501 + + Specifies the date when the object was last changed (including data and metadata changes) in HTTP date/time format. # noqa: E501 + + :return: The change_time of this NamespaceObject. # noqa: E501 + :rtype: str + """ + return self._change_time + + @change_time.setter + def change_time(self, change_time): + """Sets the change_time of this NamespaceObject. + + Specifies the date when the object was last changed (including data and metadata changes) in HTTP date/time format. # noqa: E501 + + :param change_time: The change_time of this NamespaceObject. # noqa: E501 + :type: str + """ + + self._change_time = change_time + + @property + def create_time(self): + """Gets the create_time of this NamespaceObject. # noqa: E501 + + Specifies the date when the object data was created in HTTP date/time format. # noqa: E501 + + :return: The create_time of this NamespaceObject. # noqa: E501 + :rtype: str + """ + return self._create_time + + @create_time.setter + def create_time(self, create_time): + """Sets the create_time of this NamespaceObject. + + Specifies the date when the object data was created in HTTP date/time format. # noqa: E501 + + :param create_time: The create_time of this NamespaceObject. # noqa: E501 + :type: str + """ + + self._create_time = create_time + + @property + def ctime_val(self): + """Gets the ctime_val of this NamespaceObject. # noqa: E501 + + Specifies the time when the object was last changed (including data and metadata changes) in UNIX Epoch format. # noqa: E501 + + :return: The ctime_val of this NamespaceObject. # noqa: E501 + :rtype: int + """ + return self._ctime_val + + @ctime_val.setter + def ctime_val(self, ctime_val): + """Sets the ctime_val of this NamespaceObject. + + Specifies the time when the object was last changed (including data and metadata changes) in UNIX Epoch format. # noqa: E501 + + :param ctime_val: The ctime_val of this NamespaceObject. # noqa: E501 + :type: int + """ + + self._ctime_val = ctime_val + + @property + def gid(self): + """Gets the gid of this NamespaceObject. # noqa: E501 + + Specifies the GID for the owner. # noqa: E501 + + :return: The gid of this NamespaceObject. # noqa: E501 + :rtype: int + """ + return self._gid + + @gid.setter + def gid(self, gid): + """Sets the gid of this NamespaceObject. + + Specifies the GID for the owner. # noqa: E501 + + :param gid: The gid of this NamespaceObject. # noqa: E501 + :type: int + """ + + self._gid = gid + + @property + def group(self): + """Gets the group of this NamespaceObject. # noqa: E501 + + Specifies the group name for the owner of the object. # noqa: E501 + + :return: The group of this NamespaceObject. # noqa: E501 + :rtype: str + """ + return self._group + + @group.setter + def group(self, group): + """Sets the group of this NamespaceObject. + + Specifies the group name for the owner of the object. # noqa: E501 + + :param group: The group of this NamespaceObject. # noqa: E501 + :type: str + """ + + self._group = group + + @property + def id(self): + """Gets the id of this NamespaceObject. # noqa: E501 + + Specifies the object ID, which is also the INODE number. # noqa: E501 + + :return: The id of this NamespaceObject. # noqa: E501 + :rtype: int + """ + return self._id + + @id.setter + def id(self, id): + """Sets the id of this NamespaceObject. + + Specifies the object ID, which is also the INODE number. # noqa: E501 + + :param id: The id of this NamespaceObject. # noqa: E501 + :type: int + """ + + self._id = id + + @property + def is_hidden(self): + """Gets the is_hidden of this NamespaceObject. # noqa: E501 + + Specifies whether the file is hidden or not. # noqa: E501 + + :return: The is_hidden of this NamespaceObject. # noqa: E501 + :rtype: bool + """ + return self._is_hidden + + @is_hidden.setter + def is_hidden(self, is_hidden): + """Sets the is_hidden of this NamespaceObject. + + Specifies whether the file is hidden or not. # noqa: E501 + + :param is_hidden: The is_hidden of this NamespaceObject. # noqa: E501 + :type: bool + """ + + self._is_hidden = is_hidden + + @property + def last_modified(self): + """Gets the last_modified of this NamespaceObject. # noqa: E501 + + Specifies the time when the object data was last modified in HTTP date/time format. # noqa: E501 + + :return: The last_modified of this NamespaceObject. # noqa: E501 + :rtype: str + """ + return self._last_modified + + @last_modified.setter + def last_modified(self, last_modified): + """Sets the last_modified of this NamespaceObject. + + Specifies the time when the object data was last modified in HTTP date/time format. # noqa: E501 + + :param last_modified: The last_modified of this NamespaceObject. # noqa: E501 + :type: str + """ + + self._last_modified = last_modified + + @property + def mode(self): + """Gets the mode of this NamespaceObject. # noqa: E501 + + Specifies the UNIX mode octal number. # noqa: E501 + + :return: The mode of this NamespaceObject. # noqa: E501 + :rtype: str + """ + return self._mode + + @mode.setter + def mode(self, mode): + """Sets the mode of this NamespaceObject. + + Specifies the UNIX mode octal number. # noqa: E501 + + :param mode: The mode of this NamespaceObject. # noqa: E501 + :type: str + """ + + self._mode = mode + + @property + def mtime_val(self): + """Gets the mtime_val of this NamespaceObject. # noqa: E501 + + Specifies the time when the object data was last modified in UNIX Epoch format. # noqa: E501 + + :return: The mtime_val of this NamespaceObject. # noqa: E501 + :rtype: int + """ + return self._mtime_val + + @mtime_val.setter + def mtime_val(self, mtime_val): + """Sets the mtime_val of this NamespaceObject. + + Specifies the time when the object data was last modified in UNIX Epoch format. # noqa: E501 + + :param mtime_val: The mtime_val of this NamespaceObject. # noqa: E501 + :type: int + """ + + self._mtime_val = mtime_val + + @property + def name(self): + """Gets the name of this NamespaceObject. # noqa: E501 + + Specifies the name of the object. # noqa: E501 + + :return: The name of this NamespaceObject. # noqa: E501 + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """Sets the name of this NamespaceObject. + + Specifies the name of the object. # noqa: E501 + + :param name: The name of this NamespaceObject. # noqa: E501 + :type: str + """ + + self._name = name + + @property + def nlink(self): + """Gets the nlink of this NamespaceObject. # noqa: E501 + + Specifies the number of hard links to the object. # noqa: E501 + + :return: The nlink of this NamespaceObject. # noqa: E501 + :rtype: int + """ + return self._nlink + + @nlink.setter + def nlink(self, nlink): + """Sets the nlink of this NamespaceObject. + + Specifies the number of hard links to the object. # noqa: E501 + + :param nlink: The nlink of this NamespaceObject. # noqa: E501 + :type: int + """ + + self._nlink = nlink + + @property + def owner(self): + """Gets the owner of this NamespaceObject. # noqa: E501 + + Specifies the user name for the owner of the object. # noqa: E501 + + :return: The owner of this NamespaceObject. # noqa: E501 + :rtype: str + """ + return self._owner + + @owner.setter + def owner(self, owner): + """Sets the owner of this NamespaceObject. + + Specifies the user name for the owner of the object. # noqa: E501 + + :param owner: The owner of this NamespaceObject. # noqa: E501 + :type: str + """ + + self._owner = owner + + @property + def size(self): + """Gets the size of this NamespaceObject. # noqa: E501 + + Specifies the size of the object in bytes. # noqa: E501 + + :return: The size of this NamespaceObject. # noqa: E501 + :rtype: int + """ + return self._size + + @size.setter + def size(self, size): + """Sets the size of this NamespaceObject. + + Specifies the size of the object in bytes. # noqa: E501 + + :param size: The size of this NamespaceObject. # noqa: E501 + :type: int + """ + + self._size = size + + @property + def stub(self): + """Gets the stub of this NamespaceObject. # noqa: E501 + + + :return: The stub of this NamespaceObject. # noqa: E501 + :rtype: bool + """ + return self._stub + + @stub.setter + def stub(self, stub): + """Sets the stub of this NamespaceObject. + + + :param stub: The stub of this NamespaceObject. # noqa: E501 + :type: bool + """ + + self._stub = stub + + @property + def type(self): + """Gets the type of this NamespaceObject. # noqa: E501 + + Specifies the object type, which can be one of the following values: container, object, pipe, character_device, block_device, symbolic_link, socket, or whiteout_file. # noqa: E501 + + :return: The type of this NamespaceObject. # noqa: E501 + :rtype: str + """ + return self._type + + @type.setter + def type(self, type): + """Sets the type of this NamespaceObject. + + Specifies the object type, which can be one of the following values: container, object, pipe, character_device, block_device, symbolic_link, socket, or whiteout_file. # noqa: E501 + + :param type: The type of this NamespaceObject. # noqa: E501 + :type: str + """ + + self._type = type + + @property + def uid(self): + """Gets the uid of this NamespaceObject. # noqa: E501 + + Specifies the UID for the owner. # noqa: E501 + + :return: The uid of this NamespaceObject. # noqa: E501 + :rtype: int + """ + return self._uid + + @uid.setter + def uid(self, uid): + """Sets the uid of this NamespaceObject. + + Specifies the UID for the owner. # noqa: E501 + + :param uid: The uid of this NamespaceObject. # noqa: E501 + :type: int + """ + + self._uid = uid + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, NamespaceObject): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/isi_sdk/models/namespace_objects.py b/isi_sdk/models/namespace_objects.py new file mode 100644 index 00000000..ac388f62 --- /dev/null +++ b/isi_sdk/models/namespace_objects.py @@ -0,0 +1,140 @@ +# coding: utf-8 + +""" + Isilon SDK + + Isilon SDK - Language bindings for the OneFS API # noqa: E501 + + OpenAPI spec version: 3 + Contact: sdk@isilon.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + +from isi_sdk_8_0.models.namespace_object import NamespaceObject # noqa: F401,E501 + + +class NamespaceObjects(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'children': 'list[NamespaceObject]', + 'resume': 'str' + } + + attribute_map = { + 'children': 'children', + 'resume': 'resume' + } + + def __init__(self, children=None, resume=None): # noqa: E501 + """NamespaceObjects - a model defined in Swagger""" # noqa: E501 + + self._children = None + self._resume = None + self.discriminator = None + + if children is not None: + self.children = children + if resume is not None: + self.resume = resume + + @property + def children(self): + """Gets the children of this NamespaceObjects. # noqa: E501 + + + :return: The children of this NamespaceObjects. # noqa: E501 + :rtype: list[NamespaceObject] + """ + return self._children + + @children.setter + def children(self, children): + """Sets the children of this NamespaceObjects. + + + :param children: The children of this NamespaceObjects. # noqa: E501 + :type: list[NamespaceObject] + """ + + self._children = children + + @property + def resume(self): + """Gets the resume of this NamespaceObjects. # noqa: E501 + + + :return: The resume of this NamespaceObjects. # noqa: E501 + :rtype: str + """ + return self._resume + + @resume.setter + def resume(self, resume): + """Sets the resume of this NamespaceObjects. + + + :param resume: The resume of this NamespaceObjects. # noqa: E501 + :type: str + """ + + self._resume = resume + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, NamespaceObjects): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/isi_sdk/models/ndmp_user_extended.py b/isi_sdk/models/ndmp_user_extended.py new file mode 100644 index 00000000..7bd0e727 --- /dev/null +++ b/isi_sdk/models/ndmp_user_extended.py @@ -0,0 +1,142 @@ +# coding: utf-8 + +""" + Isilon SDK + + Isilon SDK - Language bindings for the OneFS API # noqa: E501 + + OpenAPI spec version: 3 + Contact: sdk@isilon.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + + +class NdmpUserExtended(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'id': 'str', + 'name': 'str' + } + + attribute_map = { + 'id': 'id', + 'name': 'name' + } + + def __init__(self, id=None, name=None): # noqa: E501 + """NdmpUserExtended - a model defined in Swagger""" # noqa: E501 + + self._id = None + self._name = None + self.discriminator = None + + if id is not None: + self.id = id + if name is not None: + self.name = name + + @property + def id(self): + """Gets the id of this NdmpUserExtended. # noqa: E501 + + Unique display ID. # noqa: E501 + + :return: The id of this NdmpUserExtended. # noqa: E501 + :rtype: str + """ + return self._id + + @id.setter + def id(self, id): + """Sets the id of this NdmpUserExtended. + + Unique display ID. # noqa: E501 + + :param id: The id of this NdmpUserExtended. # noqa: E501 + :type: str + """ + + self._id = id + + @property + def name(self): + """Gets the name of this NdmpUserExtended. # noqa: E501 + + A unique user name for NDMP administrator. # noqa: E501 + + :return: The name of this NdmpUserExtended. # noqa: E501 + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """Sets the name of this NdmpUserExtended. + + A unique user name for NDMP administrator. # noqa: E501 + + :param name: The name of this NdmpUserExtended. # noqa: E501 + :type: str + """ + + self._name = name + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, NdmpUserExtended): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/isi_sdk/models/ndmp_users.py b/isi_sdk/models/ndmp_users.py index 3030d303..5c0d4ef5 100644 --- a/isi_sdk/models/ndmp_users.py +++ b/isi_sdk/models/ndmp_users.py @@ -16,6 +16,8 @@ import six +from isi_sdk_8_0.models.ndmp_user_extended import NdmpUserExtended # noqa: F401,E501 + class NdmpUsers(object): """NOTE: This class is auto generated by the swagger code generator program. @@ -31,72 +33,42 @@ class NdmpUsers(object): and the value is json key in definition. """ swagger_types = { - 'id': 'str', - 'name': 'str' + 'users': 'list[NdmpUserExtended]' } attribute_map = { - 'id': 'id', - 'name': 'name' + 'users': 'users' } - def __init__(self, id=None, name=None): # noqa: E501 + def __init__(self, users=None): # noqa: E501 """NdmpUsers - a model defined in Swagger""" # noqa: E501 - self._id = None - self._name = None + self._users = None self.discriminator = None - if id is not None: - self.id = id - if name is not None: - self.name = name - - @property - def id(self): - """Gets the id of this NdmpUsers. # noqa: E501 - - Unique display ID. # noqa: E501 - - :return: The id of this NdmpUsers. # noqa: E501 - :rtype: str - """ - return self._id - - @id.setter - def id(self, id): - """Sets the id of this NdmpUsers. - - Unique display ID. # noqa: E501 - - :param id: The id of this NdmpUsers. # noqa: E501 - :type: str - """ - - self._id = id + if users is not None: + self.users = users @property - def name(self): - """Gets the name of this NdmpUsers. # noqa: E501 + def users(self): + """Gets the users of this NdmpUsers. # noqa: E501 - A unique user name for NDMP administrator. # noqa: E501 - :return: The name of this NdmpUsers. # noqa: E501 - :rtype: str + :return: The users of this NdmpUsers. # noqa: E501 + :rtype: list[NdmpUserExtended] """ - return self._name + return self._users - @name.setter - def name(self, name): - """Sets the name of this NdmpUsers. + @users.setter + def users(self, users): + """Sets the users of this NdmpUsers. - A unique user name for NDMP administrator. # noqa: E501 - :param name: The name of this NdmpUsers. # noqa: E501 - :type: str + :param users: The users of this NdmpUsers. # noqa: E501 + :type: list[NdmpUserExtended] """ - self._name = name + self._users = users def to_dict(self): """Returns the model properties as a dict""" diff --git a/isi_sdk/models/ndmp_users_extended.py b/isi_sdk/models/ndmp_users_extended.py index fb441a39..f16eac46 100644 --- a/isi_sdk/models/ndmp_users_extended.py +++ b/isi_sdk/models/ndmp_users_extended.py @@ -16,6 +16,7 @@ import six +from isi_sdk_8_0.models.ndmp_user_extended import NdmpUserExtended # noqa: F401,E501 from isi_sdk_8_0.models.ndmp_users import NdmpUsers # noqa: F401,E501 @@ -33,26 +34,47 @@ class NdmpUsersExtended(object): and the value is json key in definition. """ swagger_types = { - 'total': 'int', - 'users': 'list[NdmpUsers]' + 'users': 'list[NdmpUserExtended]', + 'total': 'int' } attribute_map = { - 'total': 'total', - 'users': 'users' + 'users': 'users', + 'total': 'total' } - def __init__(self, total=None, users=None): # noqa: E501 + def __init__(self, users=None, total=None): # noqa: E501 """NdmpUsersExtended - a model defined in Swagger""" # noqa: E501 - self._total = None self._users = None + self._total = None self.discriminator = None - if total is not None: - self.total = total if users is not None: self.users = users + if total is not None: + self.total = total + + @property + def users(self): + """Gets the users of this NdmpUsersExtended. # noqa: E501 + + + :return: The users of this NdmpUsersExtended. # noqa: E501 + :rtype: list[NdmpUserExtended] + """ + return self._users + + @users.setter + def users(self, users): + """Sets the users of this NdmpUsersExtended. + + + :param users: The users of this NdmpUsersExtended. # noqa: E501 + :type: list[NdmpUserExtended] + """ + + self._users = users @property def total(self): @@ -77,27 +99,6 @@ def total(self, total): self._total = total - @property - def users(self): - """Gets the users of this NdmpUsersExtended. # noqa: E501 - - - :return: The users of this NdmpUsersExtended. # noqa: E501 - :rtype: list[NdmpUsers] - """ - return self._users - - @users.setter - def users(self, users): - """Sets the users of this NdmpUsersExtended. - - - :param users: The users of this NdmpUsersExtended. # noqa: E501 - :type: list[NdmpUsers] - """ - - self._users = users - def to_dict(self): """Returns the model properties as a dict""" result = {} diff --git a/isi_sdk/models/nfs_check.py b/isi_sdk/models/nfs_check.py index b623d1db..49ec9f69 100644 --- a/isi_sdk/models/nfs_check.py +++ b/isi_sdk/models/nfs_check.py @@ -32,24 +32,24 @@ class NfsCheck(object): """ swagger_types = { 'id': 'int', - 'messages': 'str' + 'message': 'str' } attribute_map = { 'id': 'id', - 'messages': 'messages' + 'message': 'message' } - def __init__(self, id=None, messages=None): # noqa: E501 + def __init__(self, id=None, message=None): # noqa: E501 """NfsCheck - a model defined in Swagger""" # noqa: E501 self._id = None - self._messages = None + self._message = None self.discriminator = None if id is not None: self.id = id - self.messages = messages + self.message = message @property def id(self): @@ -75,29 +75,29 @@ def id(self, id): self._id = id @property - def messages(self): - """Gets the messages of this NfsCheck. # noqa: E501 + def message(self): + """Gets the message of this NfsCheck. # noqa: E501 The message about the export. # noqa: E501 - :return: The messages of this NfsCheck. # noqa: E501 + :return: The message of this NfsCheck. # noqa: E501 :rtype: str """ - return self._messages + return self._message - @messages.setter - def messages(self, messages): - """Sets the messages of this NfsCheck. + @message.setter + def message(self, message): + """Sets the message of this NfsCheck. The message about the export. # noqa: E501 - :param messages: The messages of this NfsCheck. # noqa: E501 + :param message: The message of this NfsCheck. # noqa: E501 :type: str """ - if messages is None: - raise ValueError("Invalid value for `messages`, must not be `None`") # noqa: E501 + if message is None: + raise ValueError("Invalid value for `message`, must not be `None`") # noqa: E501 - self._messages = messages + self._message = message def to_dict(self): """Returns the model properties as a dict""" diff --git a/isi_sdk/models/nfs_exports_extended.py b/isi_sdk/models/nfs_exports_extended.py index e4662290..3524a479 100644 --- a/isi_sdk/models/nfs_exports_extended.py +++ b/isi_sdk/models/nfs_exports_extended.py @@ -35,26 +35,31 @@ class NfsExportsExtended(object): """ swagger_types = { 'exports': 'list[NfsExportExtended]', + 'digest': 'str', 'resume': 'str', 'total': 'int' } attribute_map = { 'exports': 'exports', + 'digest': 'digest', 'resume': 'resume', 'total': 'total' } - def __init__(self, exports=None, resume=None, total=None): # noqa: E501 + def __init__(self, exports=None, digest=None, resume=None, total=None): # noqa: E501 """NfsExportsExtended - a model defined in Swagger""" # noqa: E501 self._exports = None + self._digest = None self._resume = None self._total = None self.discriminator = None if exports is not None: self.exports = exports + if digest is not None: + self.digest = digest if resume is not None: self.resume = resume if total is not None: @@ -81,6 +86,27 @@ def exports(self, exports): self._exports = exports + @property + def digest(self): + """Gets the digest of this NfsExportsExtended. # noqa: E501 + + + :return: The digest of this NfsExportsExtended. # noqa: E501 + :rtype: str + """ + return self._digest + + @digest.setter + def digest(self, digest): + """Sets the digest of this NfsExportsExtended. + + + :param digest: The digest of this NfsExportsExtended. # noqa: E501 + :type: str + """ + + self._digest = digest + @property def resume(self): """Gets the resume of this NfsExportsExtended. # noqa: E501 diff --git a/isi_sdk/models/report_subreport_policy_file_matching_pattern_or_criteria_item_and_criteria_item.py b/isi_sdk/models/report_subreport_policy_file_matching_pattern_or_criteria_item_and_criteria_item.py index ce1bb08a..382d73bd 100644 --- a/isi_sdk/models/report_subreport_policy_file_matching_pattern_or_criteria_item_and_criteria_item.py +++ b/isi_sdk/models/report_subreport_policy_file_matching_pattern_or_criteria_item_and_criteria_item.py @@ -165,12 +165,6 @@ def operator(self, operator): :param operator: The operator of this ReportSubreportPolicyFileMatchingPatternOrCriteriaItemAndCriteriaItem. # noqa: E501 :type: str """ - allowed_values = ["==", "!=", ">", ">=", "<", "<=", "!"] # noqa: E501 - if operator not in allowed_values: - raise ValueError( - "Invalid value for `operator` ({0}), must be one of {1}" # noqa: E501 - .format(operator, allowed_values) - ) self._operator = operator diff --git a/isi_sdk/models/settings_mapping_extended_extended.py b/isi_sdk/models/settings_mapping_extended_extended.py index b2bf34e8..e9a93f1d 100644 --- a/isi_sdk/models/settings_mapping_extended_extended.py +++ b/isi_sdk/models/settings_mapping_extended_extended.py @@ -32,25 +32,30 @@ class SettingsMappingExtendedExtended(object): """ swagger_types = { 'domain': 'str', + 'id': 'str', 'mapping': 'str', 'type': 'str' } attribute_map = { 'domain': 'domain', + 'id': 'id', 'mapping': 'mapping', 'type': 'type' } - def __init__(self, domain=None, mapping=None, type=None): # noqa: E501 + def __init__(self, domain=None, id=None, mapping=None, type=None): # noqa: E501 """SettingsMappingExtendedExtended - a model defined in Swagger""" # noqa: E501 self._domain = None + self._id = None self._mapping = None self._type = None self.discriminator = None self.domain = domain + if id is not None: + self.id = id self.mapping = mapping self.type = type @@ -79,6 +84,27 @@ def domain(self, domain): self._domain = domain + @property + def id(self): + """Gets the id of this SettingsMappingExtendedExtended. # noqa: E501 + + + :return: The id of this SettingsMappingExtendedExtended. # noqa: E501 + :rtype: str + """ + return self._id + + @id.setter + def id(self, id): + """Sets the id of this SettingsMappingExtendedExtended. + + + :param id: The id of this SettingsMappingExtendedExtended. # noqa: E501 + :type: str + """ + + self._id = id + @property def mapping(self): """Gets the mapping of this SettingsMappingExtendedExtended. # noqa: E501 diff --git a/isi_sdk/models/smb_log_level_filters_filter.py b/isi_sdk/models/smb_log_level_filters_filter.py index 066e1582..2fb64909 100644 --- a/isi_sdk/models/smb_log_level_filters_filter.py +++ b/isi_sdk/models/smb_log_level_filters_filter.py @@ -129,12 +129,6 @@ def level(self, level): """ if level is None: raise ValueError("Invalid value for `level`, must not be `None`") # noqa: E501 - allowed_values = ["always", "error", "warning", "info", "verbose", "debug", "trace"] # noqa: E501 - if level not in allowed_values: - raise ValueError( - "Invalid value for `level` ({0}), must be one of {1}" # noqa: E501 - .format(level, allowed_values) - ) self._level = level diff --git a/isi_sdk/models/smb_shares_extended.py b/isi_sdk/models/smb_shares_extended.py index cbf13f7b..b692f286 100644 --- a/isi_sdk/models/smb_shares_extended.py +++ b/isi_sdk/models/smb_shares_extended.py @@ -35,26 +35,31 @@ class SmbSharesExtended(object): """ swagger_types = { 'shares': 'list[SmbShareExtended]', + 'digest': 'str', 'resume': 'str', 'total': 'int' } attribute_map = { 'shares': 'shares', + 'digest': 'digest', 'resume': 'resume', 'total': 'total' } - def __init__(self, shares=None, resume=None, total=None): # noqa: E501 + def __init__(self, shares=None, digest=None, resume=None, total=None): # noqa: E501 """SmbSharesExtended - a model defined in Swagger""" # noqa: E501 self._shares = None + self._digest = None self._resume = None self._total = None self.discriminator = None if shares is not None: self.shares = shares + if digest is not None: + self.digest = digest if resume is not None: self.resume = resume if total is not None: @@ -81,6 +86,27 @@ def shares(self, shares): self._shares = shares + @property + def digest(self): + """Gets the digest of this SmbSharesExtended. # noqa: E501 + + + :return: The digest of this SmbSharesExtended. # noqa: E501 + :rtype: str + """ + return self._digest + + @digest.setter + def digest(self, digest): + """Sets the digest of this SmbSharesExtended. + + + :param digest: The digest of this SmbSharesExtended. # noqa: E501 + :type: str + """ + + self._digest = digest + @property def resume(self): """Gets the resume of this SmbSharesExtended. # noqa: E501 diff --git a/isi_sdk/models/snmp_settings_settings.py b/isi_sdk/models/snmp_settings_settings.py index d217f850..fdba39d3 100644 --- a/isi_sdk/models/snmp_settings_settings.py +++ b/isi_sdk/models/snmp_settings_settings.py @@ -218,8 +218,8 @@ def system_contact(self, system_contact): """ if system_contact is not None and len(system_contact) < 1: raise ValueError("Invalid value for `system_contact`, length must be greater than or equal to `1`") # noqa: E501 - if system_contact is not None and not re.search('^[a-z0-9._%+-]+@[a-z0-9.-]+\\.[a-z]{2,4}$', system_contact): # noqa: E501 - raise ValueError("Invalid value for `system_contact`, must be a follow pattern or equal to `/^[a-z0-9._%+-]+@[a-z0-9.-]+\\.[a-z]{2,4}$/`") # noqa: E501 + if system_contact is not None and not re.search('^[a-z0-9._%+-]+@[a-z0-9.-]+\\.[a-z]{2,7}$', system_contact): # noqa: E501 + raise ValueError("Invalid value for `system_contact`, must be a follow pattern or equal to `/^[a-z0-9._%+-]+@[a-z0-9.-]+\\.[a-z]{2,7}$/`") # noqa: E501 self._system_contact = system_contact diff --git a/isi_sdk/models/worm_create_params.py b/isi_sdk/models/worm_create_params.py new file mode 100644 index 00000000..31a82856 --- /dev/null +++ b/isi_sdk/models/worm_create_params.py @@ -0,0 +1,142 @@ +# coding: utf-8 + +""" + Isilon SDK + + Isilon SDK - Language bindings for the OneFS API # noqa: E501 + + OpenAPI spec version: 3 + Contact: sdk@isilon.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + + +class WormCreateParams(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'commit_to_worm': 'bool', + 'worm_retention_date': 'str' + } + + attribute_map = { + 'commit_to_worm': 'commit_to_worm', + 'worm_retention_date': 'worm_retention_date' + } + + def __init__(self, commit_to_worm=False, worm_retention_date=None): # noqa: E501 + """WormCreateParams - a model defined in Swagger""" # noqa: E501 + + self._commit_to_worm = None + self._worm_retention_date = None + self.discriminator = None + + if commit_to_worm is not None: + self.commit_to_worm = commit_to_worm + if worm_retention_date is not None: + self.worm_retention_date = worm_retention_date + + @property + def commit_to_worm(self): + """Gets the commit_to_worm of this WormCreateParams. # noqa: E501 + + Specifies whether to commit the file to a WORM state after the retention date is set. # noqa: E501 + + :return: The commit_to_worm of this WormCreateParams. # noqa: E501 + :rtype: bool + """ + return self._commit_to_worm + + @commit_to_worm.setter + def commit_to_worm(self, commit_to_worm): + """Sets the commit_to_worm of this WormCreateParams. + + Specifies whether to commit the file to a WORM state after the retention date is set. # noqa: E501 + + :param commit_to_worm: The commit_to_worm of this WormCreateParams. # noqa: E501 + :type: bool + """ + + self._commit_to_worm = commit_to_worm + + @property + def worm_retention_date(self): + """Gets the worm_retention_date of this WormCreateParams. # noqa: E501 + + Specifies the retention expiration date string in Coordinated Universal Time (UTC/GMT). # noqa: E501 + + :return: The worm_retention_date of this WormCreateParams. # noqa: E501 + :rtype: str + """ + return self._worm_retention_date + + @worm_retention_date.setter + def worm_retention_date(self, worm_retention_date): + """Sets the worm_retention_date of this WormCreateParams. + + Specifies the retention expiration date string in Coordinated Universal Time (UTC/GMT). # noqa: E501 + + :param worm_retention_date: The worm_retention_date of this WormCreateParams. # noqa: E501 + :type: str + """ + + self._worm_retention_date = worm_retention_date + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, WormCreateParams): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/isi_sdk/models/worm_properties.py b/isi_sdk/models/worm_properties.py new file mode 100644 index 00000000..d76d1a75 --- /dev/null +++ b/isi_sdk/models/worm_properties.py @@ -0,0 +1,338 @@ +# coding: utf-8 + +""" + Isilon SDK + + Isilon SDK - Language bindings for the OneFS API # noqa: E501 + + OpenAPI spec version: 3 + Contact: sdk@isilon.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + + +class WormProperties(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'autocommit_delay': 'int', + 'domain_id': 'int', + 'domain_path': 'str', + 'worm_committed': 'bool', + 'worm_ctime': 'int', + 'worm_override_retention_date': 'str', + 'worm_override_retention_date_val': 'int', + 'worm_retention_date': 'str', + 'worm_retention_date_val': 'int' + } + + attribute_map = { + 'autocommit_delay': 'autocommit_delay', + 'domain_id': 'domain_id', + 'domain_path': 'domain_path', + 'worm_committed': 'worm_committed', + 'worm_ctime': 'worm_ctime', + 'worm_override_retention_date': 'worm_override_retention_date', + 'worm_override_retention_date_val': 'worm_override_retention_date_val', + 'worm_retention_date': 'worm_retention_date', + 'worm_retention_date_val': 'worm_retention_date_val' + } + + def __init__(self, autocommit_delay=None, domain_id=None, domain_path=None, worm_committed=None, worm_ctime=None, worm_override_retention_date=None, worm_override_retention_date_val=None, worm_retention_date=None, worm_retention_date_val=None): # noqa: E501 + """WormProperties - a model defined in Swagger""" # noqa: E501 + + self._autocommit_delay = None + self._domain_id = None + self._domain_path = None + self._worm_committed = None + self._worm_ctime = None + self._worm_override_retention_date = None + self._worm_override_retention_date_val = None + self._worm_retention_date = None + self._worm_retention_date_val = None + self.discriminator = None + + if autocommit_delay is not None: + self.autocommit_delay = autocommit_delay + if domain_id is not None: + self.domain_id = domain_id + if domain_path is not None: + self.domain_path = domain_path + if worm_committed is not None: + self.worm_committed = worm_committed + if worm_ctime is not None: + self.worm_ctime = worm_ctime + if worm_override_retention_date is not None: + self.worm_override_retention_date = worm_override_retention_date + if worm_override_retention_date_val is not None: + self.worm_override_retention_date_val = worm_override_retention_date_val + if worm_retention_date is not None: + self.worm_retention_date = worm_retention_date + if worm_retention_date_val is not None: + self.worm_retention_date_val = worm_retention_date_val + + @property + def autocommit_delay(self): + """Gets the autocommit_delay of this WormProperties. # noqa: E501 + + Autocommit delay. # noqa: E501 + + :return: The autocommit_delay of this WormProperties. # noqa: E501 + :rtype: int + """ + return self._autocommit_delay + + @autocommit_delay.setter + def autocommit_delay(self, autocommit_delay): + """Sets the autocommit_delay of this WormProperties. + + Autocommit delay. # noqa: E501 + + :param autocommit_delay: The autocommit_delay of this WormProperties. # noqa: E501 + :type: int + """ + + self._autocommit_delay = autocommit_delay + + @property + def domain_id(self): + """Gets the domain_id of this WormProperties. # noqa: E501 + + WORM domain ID. # noqa: E501 + + :return: The domain_id of this WormProperties. # noqa: E501 + :rtype: int + """ + return self._domain_id + + @domain_id.setter + def domain_id(self, domain_id): + """Sets the domain_id of this WormProperties. + + WORM domain ID. # noqa: E501 + + :param domain_id: The domain_id of this WormProperties. # noqa: E501 + :type: int + """ + + self._domain_id = domain_id + + @property + def domain_path(self): + """Gets the domain_path of this WormProperties. # noqa: E501 + + WORM domain path. # noqa: E501 + + :return: The domain_path of this WormProperties. # noqa: E501 + :rtype: str + """ + return self._domain_path + + @domain_path.setter + def domain_path(self, domain_path): + """Sets the domain_path of this WormProperties. + + WORM domain path. # noqa: E501 + + :param domain_path: The domain_path of this WormProperties. # noqa: E501 + :type: str + """ + + self._domain_path = domain_path + + @property + def worm_committed(self): + """Gets the worm_committed of this WormProperties. # noqa: E501 + + Indicates whether the file was committed to the WORM state. # noqa: E501 + + :return: The worm_committed of this WormProperties. # noqa: E501 + :rtype: bool + """ + return self._worm_committed + + @worm_committed.setter + def worm_committed(self, worm_committed): + """Sets the worm_committed of this WormProperties. + + Indicates whether the file was committed to the WORM state. # noqa: E501 + + :param worm_committed: The worm_committed of this WormProperties. # noqa: E501 + :type: bool + """ + + self._worm_committed = worm_committed + + @property + def worm_ctime(self): + """Gets the worm_ctime of this WormProperties. # noqa: E501 + + WORM change time. # noqa: E501 + + :return: The worm_ctime of this WormProperties. # noqa: E501 + :rtype: int + """ + return self._worm_ctime + + @worm_ctime.setter + def worm_ctime(self, worm_ctime): + """Sets the worm_ctime of this WormProperties. + + WORM change time. # noqa: E501 + + :param worm_ctime: The worm_ctime of this WormProperties. # noqa: E501 + :type: int + """ + + self._worm_ctime = worm_ctime + + @property + def worm_override_retention_date(self): + """Gets the worm_override_retention_date of this WormProperties. # noqa: E501 + + Provides the override retention date that is set on the SmartLock directory where the file resides. # noqa: E501 + + :return: The worm_override_retention_date of this WormProperties. # noqa: E501 + :rtype: str + """ + return self._worm_override_retention_date + + @worm_override_retention_date.setter + def worm_override_retention_date(self, worm_override_retention_date): + """Sets the worm_override_retention_date of this WormProperties. + + Provides the override retention date that is set on the SmartLock directory where the file resides. # noqa: E501 + + :param worm_override_retention_date: The worm_override_retention_date of this WormProperties. # noqa: E501 + :type: str + """ + + self._worm_override_retention_date = worm_override_retention_date + + @property + def worm_override_retention_date_val(self): + """Gets the worm_override_retention_date_val of this WormProperties. # noqa: E501 + + Provides the override retention date in seconds from UNIX Epoch or UTC. # noqa: E501 + + :return: The worm_override_retention_date_val of this WormProperties. # noqa: E501 + :rtype: int + """ + return self._worm_override_retention_date_val + + @worm_override_retention_date_val.setter + def worm_override_retention_date_val(self, worm_override_retention_date_val): + """Sets the worm_override_retention_date_val of this WormProperties. + + Provides the override retention date in seconds from UNIX Epoch or UTC. # noqa: E501 + + :param worm_override_retention_date_val: The worm_override_retention_date_val of this WormProperties. # noqa: E501 + :type: int + """ + + self._worm_override_retention_date_val = worm_override_retention_date_val + + @property + def worm_retention_date(self): + """Gets the worm_retention_date of this WormProperties. # noqa: E501 + + Provides the retention expiration date in Coordinated Universal Time (such as UTC/GMT). # noqa: E501 + + :return: The worm_retention_date of this WormProperties. # noqa: E501 + :rtype: str + """ + return self._worm_retention_date + + @worm_retention_date.setter + def worm_retention_date(self, worm_retention_date): + """Sets the worm_retention_date of this WormProperties. + + Provides the retention expiration date in Coordinated Universal Time (such as UTC/GMT). # noqa: E501 + + :param worm_retention_date: The worm_retention_date of this WormProperties. # noqa: E501 + :type: str + """ + + self._worm_retention_date = worm_retention_date + + @property + def worm_retention_date_val(self): + """Gets the worm_retention_date_val of this WormProperties. # noqa: E501 + + Provides the retention expiration date in seconds from UNIX Epoch or UTC. # noqa: E501 + + :return: The worm_retention_date_val of this WormProperties. # noqa: E501 + :rtype: int + """ + return self._worm_retention_date_val + + @worm_retention_date_val.setter + def worm_retention_date_val(self, worm_retention_date_val): + """Sets the worm_retention_date_val of this WormProperties. + + Provides the retention expiration date in seconds from UNIX Epoch or UTC. # noqa: E501 + + :param worm_retention_date_val: The worm_retention_date_val of this WormProperties. # noqa: E501 + :type: int + """ + + self._worm_retention_date_val = worm_retention_date_val + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, WormProperties): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/setup.py b/setup.py index 6af296aa..4823a642 100644 --- a/setup.py +++ b/setup.py @@ -14,7 +14,7 @@ from setuptools import setup, find_packages # noqa: H301 NAME = "isi-sdk-8-0" -VERSION = "0.2.2" +VERSION = "0.2.3" # To install the library, run the following # # python setup.py install @@ -42,7 +42,9 @@ for easier programmatic access to the OneFS API for cluster configuration (on your cluster this is the REST API made up of all the URIs underneath ``https://[cluster]:8080/platform/*``, also called the -"Platform API" or "PAPI"). +"Platform API" or "PAPI"). The SDK also includes language bindings for +the OneFS RAN (i.e. RESTful Access to Namespace) interface, which +provides access to the OneFS filesystem namespace. Installation ------------ diff --git a/swagger_config.json b/swagger_config.json index 4dc8e956..eafb80c5 100644 --- a/swagger_config.json +++ b/swagger_config.json @@ -3,6 +3,46 @@ "application/json" ], "definitions": { + "AccessPointCreateParams": { + "properties": { + "path": { + "description": "Absolute file system path of access point.", + "type": "string" + } + }, + "required": [ + "path" + ], + "type": "object" + }, + "AclObject": { + "properties": { + "accessrights": { + "items": { + "type": "string" + }, + "minItems": 0, + "type": "array" + }, + "accesstype": { + "type": "string" + }, + "inherit_flags": { + "items": { + "type": "boolean" + }, + "minItems": 0, + "type": "array" + }, + "op": { + "type": "string" + }, + "trustee": { + "$ref": "#/definitions/MemberObject" + } + }, + "type": "object" + }, "AdsProviderControllers": { "properties": { "controllers": { @@ -2831,47 +2871,6 @@ }, "type": "object" }, - "ClusterNodeExtendedExtended": { - "properties": { - "drives": { - "description": "List of the drives in this node.", - "items": { - "$ref": "#/definitions/NodeDrivesNodeDrive", - "description": "Drive information." - }, - "type": "array" - }, - "hardware": { - "$ref": "#/definitions/ClusterNodeHardware", - "description": "Node hardware identifying information (static)." - }, - "id": { - "description": "Node ID (Device Number) of this node.", - "type": "integer" - }, - "lnn": { - "description": "Logical Node Number (LNN) of this node.", - "type": "integer" - }, - "partitions": { - "$ref": "#/definitions/ClusterNodePartitions", - "description": "Node partition information." - }, - "sensors": { - "$ref": "#/definitions/ClusterNodeSensors", - "description": "Node sensor information (hardware reported)." - }, - "state": { - "$ref": "#/definitions/ClusterNodeStateExtendedExtended", - "description": "Node state information (reported and modifiable)." - }, - "status": { - "$ref": "#/definitions/ClusterNodeStatus", - "description": "Node status information (hardware reported)." - } - }, - "type": "object" - }, "ClusterNodeHardware": { "properties": { "chassis": { @@ -3035,24 +3034,7 @@ "description": "Node readonly state." }, "servicelight": { - "$ref": "#/definitions/ClusterNodeStateServicelightExtended", - "description": "Node service light state." - }, - "smartfail": { - "$ref": "#/definitions/NodeStateSmartfailExtended", - "description": "Node smartfail state." - } - }, - "type": "object" - }, - "ClusterNodeStateExtendedExtended": { - "properties": { - "readonly": { - "$ref": "#/definitions/NodeStateReadonlyExtended", - "description": "Node readonly state." - }, - "servicelight": { - "$ref": "#/definitions/ClusterNodeStateServicelightExtendedExtended", + "$ref": "#/definitions/NodeStateNodeServicelight", "description": "Node service light state." }, "smartfail": { @@ -3074,44 +3056,6 @@ ], "type": "object" }, - "ClusterNodeStateServicelightExtended": { - "allOf": [ - { - "$ref": "#/definitions/NodeStateServicelightExtended" - }, - { - "properties": { - "enabled": { - "description": "The node service light state (True = on).", - "type": "boolean" - } - }, - "required": [ - "enabled" - ], - "type": "object" - } - ] - }, - "ClusterNodeStateServicelightExtendedExtended": { - "allOf": [ - { - "$ref": "#/definitions/NodeStateServicelightExtended" - }, - { - "properties": { - "enabled": { - "description": "The node service light state (True = on).", - "type": "boolean" - } - }, - "required": [ - "enabled" - ], - "type": "object" - } - ] - }, "ClusterNodeStateSmartfail": { "properties": { "smartfailed": { @@ -3246,22 +3190,6 @@ "type": "object" }, "ClusterNodesExtended": { - "properties": { - "nodes": { - "items": { - "$ref": "#/definitions/ClusterNodeExtendedExtended", - "description": "Node information." - }, - "type": "array" - }, - "total": { - "description": "Total number of items available.", - "type": "integer" - } - }, - "type": "object" - }, - "ClusterNodesExtendedExtended": { "description": "The node details useful during an upgrade or assessment.", "properties": { "error": { @@ -3295,13 +3223,13 @@ }, "type": "object" }, - "ClusterNodesExtendedExtendedExtended": { + "ClusterNodesExtendedExtended": { "description": "View information about nodes during an upgrade, rollback, or pre-upgrade assessment.", "properties": { "nodes": { "description": "List of detailed info of nodes which are part of the current upgrade", "items": { - "$ref": "#/definitions/ClusterNodesExtendedExtended", + "$ref": "#/definitions/ClusterNodesExtended", "description": "The node details useful during an upgrade or assessment." }, "type": "array" @@ -4088,6 +4016,31 @@ ], "type": "object" }, + "CopyErrors": { + "properties": { + "copy_errors": { + "items": { + "properties": { + "error_src": { + "type": "string" + }, + "message": { + "type": "string" + }, + "source": { + "type": "string" + }, + "target": { + "type": "string" + } + }, + "type": "object" + }, + "type": "array" + } + }, + "type": "object" + }, "CreateAntivirusScanItemResponse": { "description": "The result of a manual antivirus scan.", "properties": { @@ -4687,6 +4640,42 @@ }, "type": "object" }, + "DirectoryQuery": { + "properties": { + "result": { + "items": { + "type": "string" + }, + "type": "array" + }, + "scope": { + "properties": { + "conditions": { + "items": { + "properties": { + "attr": { + "type": "string" + }, + "operator": { + "type": "string" + }, + "value": { + "type": "string" + } + }, + "type": "object" + }, + "type": "array" + }, + "logic": { + "type": "string" + } + }, + "type": "object" + } + }, + "type": "object" + }, "DrivesDriveFirmware": { "properties": { "nodes": { @@ -5225,6 +5214,55 @@ } ] }, + "EventChannelExtendedExtended": { + "properties": { + "allowed_nodes": { + "description": "Nodes that can be masters for this channel", + "items": { + "type": "integer" + }, + "type": "array" + }, + "enabled": { + "description": "Channel is to be used or not", + "type": "boolean" + }, + "excluded_nodes": { + "description": "Nodes that can be masters for this channel", + "items": { + "type": "integer" + }, + "type": "array" + }, + "id": { + "description": "Unique identifier.", + "type": "integer" + }, + "name": { + "description": "Channel name, may not contain /, max length 254.", + "type": "string" + }, + "parameters": { + "$ref": "#/definitions/EventChannelParameters", + "description": "Parameters to be used for an smtp channel" + }, + "system": { + "description": "Channel is a pre-defined system channel", + "type": "boolean" + }, + "type": { + "description": "The mechanism used by the channel", + "enum": [ + "connectemc", + "smtp", + "snmp", + "heartbeat" + ], + "type": "string" + } + }, + "type": "object" + }, "EventChannelParameters": { "properties": { "address": { @@ -5304,24 +5342,24 @@ "type": "object" }, "EventChannelsExtended": { - "allOf": [ - { - "$ref": "#/definitions/EventChannels" - }, - { - "properties": { - "resume": { - "description": "Continue returning results from previous call using this token (token should come from the previous call, resume cannot be used with other options).", - "type": "string" - }, - "total": { - "description": "Total number of items available.", - "type": "integer" - } + "properties": { + "channels": { + "items": { + "$ref": "#/definitions/EventChannelExtendedExtended", + "description": "Named channel through which alerts can be delivered." }, - "type": "object" + "type": "array" + }, + "resume": { + "description": "Continue returning results from previous call using this token (token should come from the previous call, resume cannot be used with other options).", + "type": "string" + }, + "total": { + "description": "Total number of items available.", + "type": "integer" } - ] + }, + "type": "object" }, "EventEvent": { "description": "Test Event Specifier", @@ -6108,6 +6146,78 @@ ], "type": "object" }, + "FilepoolTemplate": { + "properties": { + "actions": { + "description": "A list of actions to be taken for matching files", + "items": { + "$ref": "#/definitions/FilepoolTemplateAction", + "description": "An action to apply to a file matching the policy" + }, + "type": "array" + }, + "apply_order": { + "description": "The order in which this policy should be applied (relative to other policies)", + "type": "integer" + }, + "birth_cluster_id": { + "description": "The guid assigned to the cluster on which the account was created", + "type": "string" + }, + "description": { + "description": "A description for this policy", + "type": "string" + }, + "file_matching_pattern": { + "$ref": "#/definitions/FilepoolPolicyFileMatchingPattern", + "description": "The file matching rules for this policy" + }, + "id": { + "description": "A unique identifier for this policy", + "type": "integer" + }, + "name": { + "description": "A unique name for this policy", + "type": "string" + }, + "state": { + "description": "Indicates whether this policy is in a good state (\"OK\") or disabled (\"disabled\")", + "enum": [ + "OK", + "disabled" + ], + "type": "string" + }, + "state_details": { + "description": "Gives further information to describe the state of this policy", + "type": "string" + } + }, + "type": "object" + }, + "FilepoolTemplateAction": { + "properties": { + "action_param": { + "description": "Varies according to action_type", + "type": "string" + }, + "action_type": { + "enum": [ + "set_requested_protection", + "set_data_access_pattern", + "enable_coalescer", + "apply_data_storage_policy", + "apply_snapshot_storage_policy", + "set_cloudpool_policy" + ], + "type": "string" + } + }, + "required": [ + "action_type" + ], + "type": "object" + }, "FilepoolTemplates": { "properties": { "resume": { @@ -6116,7 +6226,7 @@ }, "templates": { "items": { - "$ref": "#/definitions/FilepoolPolicyExtendedExtended", + "$ref": "#/definitions/FilepoolTemplate", "description": "A filepool policy object" }, "type": "array" @@ -7639,6 +7749,9 @@ "description": "Event flags.", "type": "string" }, + "fmt_type": { + "type": "string" + }, "id": { "description": "Job event ID.", "type": "string" @@ -7660,6 +7773,9 @@ "description": "Job phase number at time of event.", "type": "integer" }, + "raw_type": { + "type": "string" + }, "time": { "description": "Time of event in Unix epoch seconds.", "type": "integer" @@ -7829,7 +7945,6 @@ } }, "required": [ - "paths", "type" ], "type": "object" @@ -7986,8 +8101,6 @@ } }, "required": [ - "paths", - "participants", "impact", "type", "state", @@ -8117,7 +8230,6 @@ } }, "required": [ - "disconnected_nodes", "coordinator", "stats_ready", "next_jid", @@ -8161,71 +8273,36 @@ ] }, "JobPolicies": { - "properties": { - "types": { - "items": { - "$ref": "#/definitions/JobPoliciesType", - "description": "" - }, - "type": "array" - } - }, - "type": "object" - }, - "JobPoliciesExtended": { "properties": { "policies": { "items": { - "$ref": "#/definitions/JobPoliciesType", + "$ref": "#/definitions/JobPolicyExtended", "description": "" }, "type": "array" - }, - "resume": { - "description": "Continue returning results from previous call using this token (token should come from the previous call, resume cannot be used with other options).", - "type": "string" - }, - "total": { - "description": "Total number of items available.", - "type": "integer" } }, "type": "object" }, - "JobPoliciesType": { - "properties": { - "description": { - "description": "A helpful human-readable description of the impact policy.", - "type": "string" - }, - "id": { - "description": "The ID of the impact policy.", - "type": "string" + "JobPoliciesExtended": { + "allOf": [ + { + "$ref": "#/definitions/JobPolicies" }, - "intervals": { - "items": { - "$ref": "#/definitions/JobPolicyInterval", - "description": "" + { + "properties": { + "resume": { + "description": "Continue returning results from previous call using this token (token should come from the previous call, resume cannot be used with other options).", + "type": "string" + }, + "total": { + "description": "Total number of items available.", + "type": "integer" + } }, - "type": "array" - }, - "name": { - "description": "The name of the impact policy.", - "minLength": 1, - "type": "string" - }, - "system": { - "description": "Whether or not this is a read-only system impact policy.", - "type": "boolean" + "type": "object" } - }, - "required": [ - "intervals", - "description", - "name", - "id" - ], - "type": "object" + ] }, "JobPolicy": { "properties": { @@ -8263,6 +8340,48 @@ } ] }, + "JobPolicyExtended": { + "allOf": [ + { + "$ref": "#/definitions/JobPolicy" + }, + { + "properties": { + "description": { + "description": "A helpful human-readable description of the impact policy.", + "type": "string" + }, + "id": { + "description": "The ID of the impact policy.", + "type": "string" + }, + "intervals": { + "items": { + "$ref": "#/definitions/JobPolicyInterval", + "description": "" + }, + "type": "array" + }, + "name": { + "description": "The name of the impact policy.", + "minLength": 1, + "type": "string" + }, + "system": { + "description": "Whether or not this is a read-only system impact policy.", + "type": "boolean" + } + }, + "required": [ + "intervals", + "description", + "name", + "id" + ], + "type": "object" + } + ] + }, "JobPolicyInterval": { "properties": { "begin": { @@ -9275,12 +9394,31 @@ "MappingUsersRulesParameters": { "properties": { "default_unix_user": { - "$ref": "#/definitions/MappingUsersRulesRuleOptionsDefaultUser", + "$ref": "#/definitions/MappingUsersRulesParametersDefaultUnixUser", "description": "" } }, "type": "object" }, + "MappingUsersRulesParametersDefaultUnixUser": { + "allOf": [ + { + "$ref": "#/definitions/MappingUsersRulesRuleUser2" + }, + { + "properties": { + "user": { + "description": "Specifies the name of the user that is being mapped.", + "type": "string" + } + }, + "required": [ + "user" + ], + "type": "object" + } + ] + }, "MappingUsersRulesRule": { "properties": { "operator": { @@ -9327,7 +9465,7 @@ "description": "Specifies the properties for user mapping rules." }, "user1": { - "$ref": "#/definitions/MappingUsersRulesRuleOptionsDefaultUser", + "$ref": "#/definitions/MappingUsersRulesRuleUser1", "description": "" }, "user2": { @@ -9409,6 +9547,25 @@ }, "type": "object" }, + "MappingUsersRulesRuleUser1": { + "allOf": [ + { + "$ref": "#/definitions/MappingUsersRulesRuleUser2" + }, + { + "properties": { + "user": { + "description": "Specifies the name of the user that is being mapped.", + "type": "string" + } + }, + "required": [ + "user" + ], + "type": "object" + } + ] + }, "MappingUsersRulesRuleUser2": { "properties": { "domain": { @@ -9467,6 +9624,233 @@ }, "type": "object" }, + "MemberObject": { + "properties": { + "id": { + "type": "string" + }, + "name": { + "type": "string" + }, + "type": { + "type": "string" + } + }, + "type": "object" + }, + "NamespaceAccessPoints": { + "properties": { + "namespaces": { + "items": { + "properties": { + "name": { + "type": "string" + }, + "path": { + "type": "string" + } + }, + "type": "object" + }, + "minItems": 0, + "type": "array" + }, + "versions": { + "items": { + "type": "string" + }, + "minItems": 0, + "type": "array" + } + }, + "type": "object" + }, + "NamespaceAcl": { + "properties": { + "acl": { + "description": "Provides the JSON array of access rights.", + "items": { + "$ref": "#/definitions/AclObject" + }, + "minItems": 0, + "type": "array" + }, + "authoritative": { + "description": "If the directory has access rights set, then this field is returned as acl. If the directory has POSIX permissions set, then this field is returned as mode.", + "type": "string" + }, + "group": { + "$ref": "#/definitions/MemberObject", + "description": "Provides the JSON object for the group persona of the owner." + }, + "mode": { + "description": "Provides the POSIX mode.", + "type": "string" + }, + "owner": { + "$ref": "#/definitions/MemberObject", + "description": "Provides the JSON object for the owner persona." + } + }, + "type": "object" + }, + "NamespaceMetadata": { + "properties": { + "action": { + "type": "string" + }, + "attrs": { + "items": { + "properties": { + "name": { + "type": "string" + }, + "namespace": { + "type": "string" + }, + "op": { + "type": "string" + }, + "value": { + "type": "string" + } + }, + "type": "object" + }, + "type": "array" + } + }, + "type": "object" + }, + "NamespaceMetadataList": { + "properties": { + "attrs": { + "items": { + "properties": { + "name": { + "type": "string" + }, + "namespace": { + "type": "string" + }, + "value": { + "type": "string" + } + }, + "type": "object" + }, + "type": "array" + } + }, + "type": "object" + }, + "NamespaceObject": { + "properties": { + "access_time": { + "description": "Specifies the date when the object was last accessed in HTTP date/time format.", + "type": "string" + }, + "atime_val": { + "description": "Specifies the time when the object was last accessed in UNIX Epoch format.", + "type": "integer" + }, + "block_size": { + "description": "Specifies the block size of the object.", + "type": "integer" + }, + "blocks": { + "description": "Specifies the number of blocks that compose the object.", + "type": "integer" + }, + "btime_val": { + "description": "Specifies the time when the object data was created in UNIX Epoch format.", + "type": "integer" + }, + "change_time": { + "description": "Specifies the date when the object was last changed (including data and metadata changes) in HTTP date/time format.", + "type": "string" + }, + "create_time": { + "description": "Specifies the date when the object data was created in HTTP date/time format.", + "type": "string" + }, + "ctime_val": { + "description": "Specifies the time when the object was last changed (including data and metadata changes) in UNIX Epoch format.", + "type": "integer" + }, + "gid": { + "description": "Specifies the GID for the owner.", + "type": "integer" + }, + "group": { + "description": "Specifies the group name for the owner of the object.", + "type": "string" + }, + "id": { + "description": "Specifies the object ID, which is also the INODE number.", + "type": "integer" + }, + "is_hidden": { + "description": "Specifies whether the file is hidden or not.", + "type": "boolean" + }, + "last_modified": { + "description": "Specifies the time when the object data was last modified in HTTP date/time format.", + "type": "string" + }, + "mode": { + "description": "Specifies the UNIX mode octal number.", + "type": "string" + }, + "mtime_val": { + "description": "Specifies the time when the object data was last modified in UNIX Epoch format.", + "type": "integer" + }, + "name": { + "description": "Specifies the name of the object.", + "type": "string" + }, + "nlink": { + "description": "Specifies the number of hard links to the object.", + "type": "integer" + }, + "owner": { + "description": "Specifies the user name for the owner of the object.", + "type": "string" + }, + "size": { + "description": "Specifies the size of the object in bytes.", + "type": "integer" + }, + "stub": { + "type": "boolean" + }, + "type": { + "description": "Specifies the object type, which can be one of the following values: container, object, pipe, character_device, block_device, symbolic_link, socket, or whiteout_file.", + "type": "string" + }, + "uid": { + "description": "Specifies the UID for the owner.", + "type": "integer" + } + }, + "type": "object" + }, + "NamespaceObjects": { + "properties": { + "children": { + "items": { + "$ref": "#/definitions/NamespaceObject" + }, + "minItems": 0, + "type": "array" + }, + "resume": { + "type": "string" + } + }, + "type": "object" + }, "NdmpContextsBackup": { "description": "View a NDMP Context", "properties": { @@ -10146,7 +10530,7 @@ } ] }, - "NdmpUsers": { + "NdmpUserExtended": { "properties": { "id": { "description": "Unique display ID.", @@ -10159,15 +10543,11 @@ }, "type": "object" }, - "NdmpUsersExtended": { + "NdmpUsers": { "properties": { - "total": { - "description": "Total number of items available.", - "type": "integer" - }, "users": { "items": { - "$ref": "#/definitions/NdmpUsers", + "$ref": "#/definitions/NdmpUserExtended", "description": "" }, "type": "array" @@ -10175,6 +10555,22 @@ }, "type": "object" }, + "NdmpUsersExtended": { + "allOf": [ + { + "$ref": "#/definitions/NdmpUsers" + }, + { + "properties": { + "total": { + "description": "Total number of items available.", + "type": "integer" + } + }, + "type": "object" + } + ] + }, "NetworkDnscache": { "properties": { "settings": { @@ -19648,6 +20044,9 @@ "description": "The FQDN of the source domain to map.", "type": "string" }, + "id": { + "type": "string" + }, "mapping": { "description": "The FQDN of destination domain to map to.", "type": "string" @@ -28087,6 +28486,20 @@ }, "type": "object" }, + "WormCreateParams": { + "properties": { + "commit_to_worm": { + "default": false, + "description": "Specifies whether to commit the file to a WORM state after the retention date is set.", + "type": "boolean" + }, + "worm_retention_date": { + "description": "Specifies the retention expiration date string in Coordinated Universal Time (UTC/GMT).", + "type": "string" + } + }, + "type": "object" + }, "WormDomain": { "properties": { "autocommit_offset": { @@ -28242,6 +28655,47 @@ } ] }, + "WormProperties": { + "properties": { + "autocommit_delay": { + "description": "Autocommit delay.", + "type": "integer" + }, + "domain_id": { + "description": "WORM domain ID.", + "type": "integer" + }, + "domain_path": { + "description": "WORM domain path.", + "type": "string" + }, + "worm_committed": { + "description": "Indicates whether the file was committed to the WORM state.", + "type": "boolean" + }, + "worm_ctime": { + "description": "WORM change time.", + "type": "integer" + }, + "worm_override_retention_date": { + "description": "Provides the override retention date that is set on the SmartLock directory where the file resides.", + "type": "string" + }, + "worm_override_retention_date_val": { + "description": "Provides the override retention date in seconds from UNIX Epoch or UTC.", + "type": "integer" + }, + "worm_retention_date": { + "description": "Provides the retention expiration date in Coordinated Universal Time (such as UTC/GMT).", + "type": "string" + }, + "worm_retention_date_val": { + "description": "Provides the retention expiration date in seconds from UNIX Epoch or UTC.", + "type": "integer" + } + }, + "type": "object" + }, "WormSettings": { "properties": { "settings": { @@ -28568,6 +29022,980 @@ "version": "3" }, "paths": { + "/namespace": { + "get": { + "description": "Retrieves the namespace access points available for the authenticated user.", + "operationId": "listAccessPoints", + "parameters": [ + { + "description": "Protocol versions that are supported for the current namespace access server.", + "in": "query", + "name": "versions", + "type": "boolean" + } + ], + "responses": { + "200": { + "description": "List namespace access points.", + "schema": { + "$ref": "#/definitions/NamespaceAccessPoints" + } + } + }, + "tags": [ + "Namespace" + ] + } + }, + "/namespace/{AccessPointName}": { + "delete": { + "description": "Deletes a namespace access point. Only root users can delete namespace access points.", + "operationId": "deleteAccessPoint", + "parameters": [ + { + "description": "Access point name.", + "in": "path", + "name": "AccessPointName", + "required": true, + "type": "string" + } + ], + "responses": { + "200": { + "description": "Deleted access point.", + "schema": { + "$ref": "#/definitions/Empty" + } + } + }, + "tags": [ + "Namespace" + ] + }, + "put": { + "description": "Creates a namespace access point in the file system. Only root users can create or change namespace access points.", + "operationId": "createAccessPoint", + "parameters": [ + { + "description": "Access point name.", + "in": "path", + "name": "AccessPointName", + "required": true, + "type": "string" + }, + { + "description": "Access point parameters model.", + "in": "body", + "name": "AccessPoint", + "required": true, + "schema": { + "$ref": "#/definitions/AccessPointCreateParams" + } + } + ], + "responses": { + "200": { + "description": "Created access point.", + "schema": { + "$ref": "#/definitions/Empty" + } + } + }, + "tags": [ + "Namespace" + ] + } + }, + "/namespace/{DirectoryCopyTarget}": { + "put": { + "description": "Recursively copies a directory to a specified destination path. Symbolic links are copied as regular files.", + "operationId": "copyDirectory", + "parameters": [ + { + "description": "Directory copy destination relative to /.", + "in": "path", + "name": "DirectoryCopyTarget", + "required": true, + "type": "string" + }, + { + "description": "Specifies the full path to the source directory.", + "in": "header", + "name": "x-isi-ifs-copy-source", + "required": true, + "type": "string" + }, + { + "description": "Deletes and replaces the existing user attributes and ACLs of the directory with user-specified attributes and ACLS from the header, when set to true.", + "in": "query", + "name": "overwrite", + "type": "boolean" + }, + { + "description": "Specifies if the contents of a directory should be merged with an existing directory with the same name.", + "in": "query", + "name": "merge", + "type": "boolean" + }, + { + "description": "Specifies whether to continue the copy operation on remaining objects when there is a conflict or error.", + "in": "query", + "name": "continue", + "type": "boolean" + } + ], + "responses": { + "200": { + "description": "Copied directory.", + "schema": { + "$ref": "#/definitions/CopyErrors" + } + } + }, + "tags": [ + "Namespace" + ] + } + }, + "/namespace/{DirectoryMetadataPath}": { + "get": { + "description": "Retrieves the attribute information for a specified directory with the metadata query argument.", + "operationId": "getDirectoryMetadata", + "parameters": [ + { + "description": "Directory path relative to /.", + "in": "path", + "name": "DirectoryMetadataPath", + "required": true, + "type": "string" + }, + { + "description": "Show directory metadata.", + "in": "query", + "name": "metadata", + "required": true, + "type": "boolean" + } + ], + "responses": { + "200": { + "description": "Get directory metadata.", + "schema": { + "$ref": "#/definitions/NamespaceMetadataList" + } + } + }, + "tags": [ + "Namespace" + ] + }, + "put": { + "description": "Sets attributes on a specified directory with the metadata query argument.", + "operationId": "setDirectoryMetadata", + "parameters": [ + { + "description": "Directory path relative to /.", + "in": "path", + "name": "DirectoryMetadataPath", + "required": true, + "type": "string" + }, + { + "description": "Set directory metadata.", + "in": "query", + "name": "metadata", + "required": true, + "type": "boolean" + }, + { + "description": "Directory metadata parameters model.", + "in": "body", + "name": "DirectoryMetadata", + "required": true, + "schema": { + "$ref": "#/definitions/NamespaceMetadata" + } + } + ], + "responses": { + "200": { + "description": "Set metadata on directory.", + "schema": { + "$ref": "#/definitions/Empty" + } + } + }, + "tags": [ + "Namespace" + ] + } + }, + "/namespace/{DirectoryPath}": { + "delete": { + "description": "Deletes the directory at the specified path.", + "operationId": "deleteDirectory", + "parameters": [ + { + "description": "Directory path relative to /.", + "in": "path", + "name": "DirectoryPath", + "required": true, + "type": "string" + }, + { + "description": "Deletes directories recursively, when set to true.", + "in": "query", + "name": "recursive", + "type": "boolean" + } + ], + "responses": { + "204": { + "description": "Deleted directory.", + "schema": { + "$ref": "#/definitions/Empty" + } + } + }, + "tags": [ + "Namespace" + ] + }, + "get": { + "description": "Retrieves a list of files and subdirectories from a directory.", + "operationId": "getDirectoryContents", + "parameters": [ + { + "description": "Directory path relative to /.", + "in": "path", + "name": "DirectoryPath", + "required": true, + "type": "string" + }, + { + "description": "Specifies which object attributes are displayed.", + "in": "query", + "name": "detail", + "type": "string" + }, + { + "description": "Specifies the maximum number of objects to send to the client.", + "in": "query", + "name": "limit", + "type": "integer" + }, + { + "description": "Specifies a token to return in the JSON result to indicate when there is a next page.", + "in": "query", + "name": "resume", + "type": "string" + }, + { + "description": "Specifies one or more attributes to sort on the directory entries.", + "in": "query", + "name": "sort", + "type": "string" + }, + { + "description": "Specifies the sort direction. This value can be either ascending (ASC) or descending (DESC).", + "in": "query", + "name": "dir", + "type": "string" + }, + { + "description": "Specifies the object type to return, which can be one of the following values: container, object, pipe, character_device, block_device, symbolic_link, socket, or whiteout_file.", + "in": "query", + "name": "type", + "type": "string" + }, + { + "description": "Specifies if hidden objects are returned.", + "in": "query", + "name": "hidden", + "type": "boolean" + } + ], + "responses": { + "200": { + "description": "List directory objects.", + "schema": { + "$ref": "#/definitions/NamespaceObjects" + } + } + }, + "tags": [ + "Namespace" + ] + }, + "head": { + "description": "Retrieves the attribute information for a specified directory without transferring the contents of the directory.", + "operationId": "getDirectoryAttributes", + "parameters": [ + { + "description": "Directory path relative to /.", + "in": "path", + "name": "DirectoryPath", + "required": true, + "type": "string" + }, + { + "description": "Returns only files that were modified since the specified time. If no files were modified since this time, a 304 message is returned.", + "in": "header", + "name": "If-Modified-Since", + "type": "string" + }, + { + "description": "Returns only files that were not modified since the specified time. If there are no unmodified files since this time, a 412 message is returned to indicate that the precondition failed.", + "in": "header", + "name": "If-Unmodified-Since", + "type": "string" + } + ], + "responses": { + "200": { + "description": "Get attribute information for directory.", + "schema": { + "$ref": "#/definitions/Empty" + } + } + }, + "tags": [ + "Namespace" + ] + }, + "post": { + "description": "Moves a directory from an existing source to a new destination path.", + "operationId": "moveDirectory", + "parameters": [ + { + "description": "Directory path relative to /.", + "in": "path", + "name": "DirectoryPath", + "required": true, + "type": "string" + }, + { + "description": "Specifies the full path for the destination directory.", + "in": "header", + "name": "x-isi-ifs-set-location", + "required": true, + "type": "string" + } + ], + "responses": { + "200": { + "description": "Move directory.", + "schema": { + "$ref": "#/definitions/Empty" + } + } + }, + "tags": [ + "Namespace" + ] + }, + "put": { + "description": "Creates a directory with a specified path.", + "operationId": "createDirectory", + "parameters": [ + { + "description": "Directory path relative to /.", + "in": "path", + "name": "DirectoryPath", + "required": true, + "type": "string" + }, + { + "default": "container", + "description": "Specifies the resource type.", + "in": "header", + "name": "x-isi-ifs-target-type", + "required": true, + "type": "string" + }, + { + "default": "0700", + "description": "Specifies a pre-defined ACL value or POSIX mode with a string in octal string format.", + "in": "header", + "name": "x-isi-ifs-access-control", + "type": "string" + }, + { + "description": "Specifies a pre-defined ACL value or POSIX mode with a string.", + "in": "header", + "name": "x-isi-ifs-node-pool-name", + "type": "string" + }, + { + "description": "Specifies the OneFS node pool name.", + "in": "query", + "name": "recursive", + "type": "boolean" + }, + { + "description": "Deletes and replaces the existing user attributes and ACLs of the directory with user-specified attributes and ACLS from the header, when set to true.", + "in": "query", + "name": "overwrite", + "type": "boolean" + } + ], + "responses": { + "200": { + "description": "Create directory.", + "schema": { + "$ref": "#/definitions/Empty" + } + } + }, + "tags": [ + "Namespace" + ] + } + }, + "/namespace/{FileCopyTarget}": { + "put": { + "description": "Copies a file to the specified destination path.", + "operationId": "copyFile", + "parameters": [ + { + "description": "File copy destination relative to /.", + "in": "path", + "name": "FileCopyTarget", + "required": true, + "type": "string" + }, + { + "description": "Specifies the full path to the source file.", + "in": "header", + "name": "x-isi-ifs-copy-source", + "required": true, + "type": "string" + }, + { + "description": "You must set this parameter to true in order to clone a file.", + "in": "query", + "name": "clone", + "type": "boolean" + }, + { + "description": "Specifies a snapshot name to clone the file from.", + "in": "query", + "name": "snapshot", + "type": "string" + }, + { + "description": "Specifies if an existing file should be overwritten by a new file with the same name.", + "in": "query", + "name": "overwrite", + "type": "boolean" + } + ], + "responses": { + "200": { + "description": "Copied file.", + "schema": { + "$ref": "#/definitions/CopyErrors" + } + } + }, + "tags": [ + "Namespace" + ] + } + }, + "/namespace/{FileMetadataPath}": { + "get": { + "description": "Retrieves the attribute information for a specified file with the metadata query argument.", + "operationId": "getFileMetadata", + "parameters": [ + { + "description": "File path relative to /.", + "in": "path", + "name": "FileMetadataPath", + "required": true, + "type": "string" + }, + { + "description": "Show file metadata.", + "in": "query", + "name": "metadata", + "required": true, + "type": "boolean" + } + ], + "responses": { + "200": { + "description": "Get file metadata.", + "schema": { + "$ref": "#/definitions/NamespaceMetadataList" + } + } + }, + "tags": [ + "Namespace" + ] + }, + "put": { + "description": "Sets attributes on a specified file with the metadata query argument through the JSON body.", + "operationId": "setFileMetadata", + "parameters": [ + { + "description": "File path relative to /.", + "in": "path", + "name": "FileMetadataPath", + "required": true, + "type": "string" + }, + { + "description": "Set file metadata.", + "in": "query", + "name": "metadata", + "required": true, + "type": "boolean" + }, + { + "description": "File metadata parameters model.", + "in": "body", + "name": "FileMetadata", + "required": true, + "schema": { + "$ref": "#/definitions/NamespaceMetadata" + } + } + ], + "responses": { + "200": { + "description": "Set metadata on file.", + "schema": { + "$ref": "#/definitions/Empty" + } + } + }, + "tags": [ + "Namespace" + ] + } + }, + "/namespace/{FilePath}": { + "delete": { + "description": "Deletes the specified file.", + "operationId": "deleteFile", + "parameters": [ + { + "description": "File path relative to /.", + "in": "path", + "name": "FilePath", + "required": true, + "type": "string" + } + ], + "responses": { + "204": { + "description": "Deleted file.", + "schema": { + "$ref": "#/definitions/Empty" + } + } + }, + "tags": [ + "Namespace" + ] + }, + "get": { + "description": "Retrieves the contents of a file from a specified path. Note that file streaming is not supported.", + "operationId": "getFileContents", + "parameters": [ + { + "description": "File path relative to /.", + "in": "path", + "name": "FilePath", + "required": true, + "type": "string" + }, + { + "description": "Returns the specified range bytes of an object. ", + "in": "header", + "name": "Range", + "type": "string" + }, + { + "description": "Returns only files that were modified since the specified time. If no files were modified since this time, a 304 message is returned.", + "in": "header", + "name": "If-Modified-Since", + "type": "string" + }, + { + "description": "Returns only files that were not modified since the specified time. If there are no unmodified files since this time, a 412 message is returned to indicate that the precondition failed.", + "in": "header", + "name": "If-Unmodified-Since", + "type": "string" + } + ], + "responses": { + "200": { + "description": "Get file objects.", + "schema": { + "$ref": "#/definitions/Empty" + } + } + }, + "tags": [ + "Namespace" + ] + }, + "head": { + "description": "Retrieves the attribute information for a specified file.", + "operationId": "getFileAttributes", + "parameters": [ + { + "description": "File path relative to /.", + "in": "path", + "name": "FilePath", + "required": true, + "type": "string" + }, + { + "description": "Returns only files that were modified since the specified time. If no files were modified since this time, a 304 message is returned.", + "in": "header", + "name": "If-Modified-Since", + "type": "string" + }, + { + "description": "Returns only files that were not modified since the specified time. If there are no unmodified files since this time, a 412 message is returned to indicate that the precondition failed.", + "in": "header", + "name": "If-Unmodified-Since", + "type": "string" + } + ], + "responses": { + "200": { + "description": "Get attribute information for file.", + "schema": { + "$ref": "#/definitions/Empty" + } + } + }, + "tags": [ + "Namespace" + ] + }, + "post": { + "description": "Moves a file to a destination path that does not yet exist.", + "operationId": "moveFile", + "parameters": [ + { + "description": "File path relative to /.", + "in": "path", + "name": "FilePath", + "required": true, + "type": "string" + }, + { + "description": "Specifies the full path for the destination file. ", + "in": "header", + "name": "x-isi-ifs-set-location", + "required": true, + "type": "string" + } + ], + "responses": { + "200": { + "description": "Moved file.", + "schema": { + "$ref": "#/definitions/Empty" + } + } + }, + "tags": [ + "Namespace" + ] + }, + "put": { + "description": "Creates a file object with a given path. Note that file streaming is not supported.", + "operationId": "createFile", + "parameters": [ + { + "description": "File path relative to /.", + "in": "path", + "name": "FilePath", + "required": true, + "type": "string" + }, + { + "default": "object", + "description": "Specifies the resource type.", + "in": "header", + "name": "x-isi-ifs-target-type", + "required": true, + "type": "string" + }, + { + "default": "0600", + "description": "Specifies a pre-defined ACL value or POSIX mode with a string in octal string format.", + "in": "header", + "name": "x-isi-ifs-access-control", + "type": "string" + }, + { + "description": "Specifies the content encoding that was applied to the object content, so that decoding can be applied when retrieving the content.", + "in": "header", + "name": "Content-Encoding", + "type": "string" + }, + { + "default": "binary/octet-stream", + "description": "Specifies a standard MIME-type description of the content format.", + "in": "header", + "name": "Content-Type", + "type": "string" + }, + { + "description": "Deletes and replaces the existing user attributes and ACLs of the directory with user-specified attributes and ACLS from the header, when set to true.", + "in": "query", + "name": "overwrite", + "type": "boolean" + }, + { + "description": "The contents of the file object.", + "in": "body", + "name": "FileContents", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "Created file object.", + "schema": { + "$ref": "#/definitions/Empty" + } + } + }, + "tags": [ + "Namespace" + ] + } + }, + "/namespace/{NamespacePath}": { + "get": { + "description": "Retrieves the access control list for a namespace object.", + "operationId": "getAcl", + "parameters": [ + { + "description": "Namespace path relative to /.", + "in": "path", + "name": "NamespacePath", + "required": true, + "type": "string" + }, + { + "description": "Show access control lists.", + "in": "query", + "name": "acl", + "required": true, + "type": "boolean" + }, + { + "description": "Indicates that the operation is on the access point instead of the store path.", + "in": "query", + "name": "nsaccess", + "type": "boolean" + } + ], + "responses": { + "200": { + "description": "Get namespace ACL.", + "schema": { + "$ref": "#/definitions/NamespaceAcl" + } + } + }, + "tags": [ + "Namespace" + ] + }, + "put": { + "description": "Sets the access control list for a namespace.", + "operationId": "setAcl", + "parameters": [ + { + "description": "Namespace path relative to /.", + "in": "path", + "name": "NamespacePath", + "required": true, + "type": "string" + }, + { + "description": "Update access control lists.", + "in": "query", + "name": "acl", + "required": true, + "type": "boolean" + }, + { + "description": "Indicates that the operation is on the access point instead of the store path.", + "in": "query", + "name": "nsaccess", + "type": "boolean" + }, + { + "description": "Namespace ACL parameters model.", + "in": "body", + "name": "NamespaceAcl", + "required": true, + "schema": { + "$ref": "#/definitions/NamespaceAcl" + } + } + ], + "responses": { + "200": { + "description": "Set namespace ACL.", + "schema": { + "$ref": "#/definitions/Empty" + } + } + }, + "tags": [ + "Namespace" + ] + } + }, + "/namespace/{QueryPath}": { + "post": { + "description": "Query objects by system-defined and user-defined attributes in a directory.", + "operationId": "queryDirectory", + "parameters": [ + { + "description": "Directory path relative to /.", + "in": "path", + "name": "QueryPath", + "required": true, + "type": "string" + }, + { + "description": "Enable directory query.", + "in": "query", + "name": "query", + "required": true, + "type": "boolean" + }, + { + "description": "Specifies the maximum number of objects to send to the client. You can set the value to a negative number to retrieve all objects.", + "in": "query", + "name": "limit", + "type": "integer" + }, + { + "description": "Specifies which object attributes are displayed. If the detail parameter is excluded, only the name of the object is returned.", + "in": "query", + "name": "detail", + "type": "string" + }, + { + "description": "Specifies the maximum directory level depth to search for objects.", + "in": "query", + "name": "max-depth", + "type": "integer" + }, + { + "description": "Directory query parameters model.", + "in": "body", + "name": "DirectoryQuery", + "required": true, + "schema": { + "$ref": "#/definitions/DirectoryQuery" + } + } + ], + "responses": { + "200": { + "description": "Directory query results.", + "schema": { + "$ref": "#/definitions/NamespaceObjects" + } + } + }, + "tags": [ + "Namespace" + ] + } + }, + "/namespace/{WormFilePath}": { + "get": { + "description": "Retrieves the WORM retention date and committed state of the file.", + "operationId": "getWormProperties", + "parameters": [ + { + "description": "Write once read many file path relative to /.", + "in": "path", + "name": "WormFilePath", + "required": true, + "type": "string" + }, + { + "description": "View WORM properties", + "in": "query", + "name": "worm", + "required": true, + "type": "boolean" + } + ], + "responses": { + "200": { + "description": "WORM file properties.", + "schema": { + "$ref": "#/definitions/WormProperties" + } + } + }, + "tags": [ + "Namespace" + ] + }, + "put": { + "description": "Sets the retention period and commits a file in a SmartLock directory.", + "operationId": "setWormProperties", + "parameters": [ + { + "description": "Write once read many file path relative to /.", + "in": "path", + "name": "WormFilePath", + "required": true, + "type": "string" + }, + { + "description": "View WORM properties", + "in": "query", + "name": "worm", + "required": true, + "type": "boolean" + }, + { + "description": "WORM parameters model.", + "in": "body", + "name": "WormProperties", + "required": true, + "schema": { + "$ref": "#/definitions/WormCreateParams" + } + } + ], + "responses": { + "200": { + "description": "WORM file properties.", + "schema": { + "$ref": "#/definitions/Empty" + } + } + }, + "tags": [ + "Namespace" + ] + } + }, "/platform/1/audit/topics": { "get": { "description": "Retrieve a list of audit topics.", @@ -32960,7 +34388,7 @@ "200": { "description": "Add a member to the HDFS proxyuser.", "schema": { - "$ref": "#/definitions/CreateResponse" + "$ref": "#/definitions/Empty" } }, "default": { @@ -41792,7 +43220,7 @@ "200": { "description": "List the nodes on this cluster.", "schema": { - "$ref": "#/definitions/ClusterNodesExtended" + "$ref": "#/definitions/ClusterNodes" } }, "default": { @@ -49987,7 +51415,7 @@ "200": { "description": "Create a new Swift account", "schema": { - "$ref": "#/definitions/CreateResponse" + "$ref": "#/definitions/Empty" } }, "default": { @@ -52189,7 +53617,7 @@ "200": { "description": "View information about nodes during an upgrade, rollback, or pre-upgrade assessment.", "schema": { - "$ref": "#/definitions/ClusterNodesExtendedExtendedExtended" + "$ref": "#/definitions/ClusterNodesExtendedExtended" } }, "default": { @@ -52221,7 +53649,7 @@ "200": { "description": "The node details useful during an upgrade or assessment.", "schema": { - "$ref": "#/definitions/ClusterNodesExtendedExtended" + "$ref": "#/definitions/ClusterNodesExtended" } }, "default": { diff --git a/test/test_access_point_create_params.py b/test/test_access_point_create_params.py new file mode 100644 index 00000000..2fbb7088 --- /dev/null +++ b/test/test_access_point_create_params.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + Isilon SDK + + Isilon SDK - Language bindings for the OneFS API # noqa: E501 + + OpenAPI spec version: 3 + Contact: sdk@isilon.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import isi_sdk_8_0 +from isi_sdk_8_0.models.access_point_create_params import AccessPointCreateParams # noqa: E501 +from isi_sdk_8_0.rest import ApiException + + +class TestAccessPointCreateParams(unittest.TestCase): + """AccessPointCreateParams unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testAccessPointCreateParams(self): + """Test AccessPointCreateParams""" + # FIXME: construct object with mandatory attributes with example values + # model = isi_sdk_8_0.models.access_point_create_params.AccessPointCreateParams() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_acl_object.py b/test/test_acl_object.py new file mode 100644 index 00000000..4561901c --- /dev/null +++ b/test/test_acl_object.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + Isilon SDK + + Isilon SDK - Language bindings for the OneFS API # noqa: E501 + + OpenAPI spec version: 3 + Contact: sdk@isilon.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import isi_sdk_8_0 +from isi_sdk_8_0.models.acl_object import AclObject # noqa: E501 +from isi_sdk_8_0.rest import ApiException + + +class TestAclObject(unittest.TestCase): + """AclObject unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testAclObject(self): + """Test AclObject""" + # FIXME: construct object with mandatory attributes with example values + # model = isi_sdk_8_0.models.acl_object.AclObject() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_copy_errors.py b/test/test_copy_errors.py new file mode 100644 index 00000000..d92204e0 --- /dev/null +++ b/test/test_copy_errors.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + Isilon SDK + + Isilon SDK - Language bindings for the OneFS API # noqa: E501 + + OpenAPI spec version: 3 + Contact: sdk@isilon.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import isi_sdk_8_0 +from isi_sdk_8_0.models.copy_errors import CopyErrors # noqa: E501 +from isi_sdk_8_0.rest import ApiException + + +class TestCopyErrors(unittest.TestCase): + """CopyErrors unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testCopyErrors(self): + """Test CopyErrors""" + # FIXME: construct object with mandatory attributes with example values + # model = isi_sdk_8_0.models.copy_errors.CopyErrors() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_copy_errors_copy_errors.py b/test/test_copy_errors_copy_errors.py new file mode 100644 index 00000000..64f60eba --- /dev/null +++ b/test/test_copy_errors_copy_errors.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + Isilon SDK + + Isilon SDK - Language bindings for the OneFS API # noqa: E501 + + OpenAPI spec version: 3 + Contact: sdk@isilon.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import isi_sdk_8_0 +from isi_sdk_8_0.models.copy_errors_copy_errors import CopyErrorsCopyErrors # noqa: E501 +from isi_sdk_8_0.rest import ApiException + + +class TestCopyErrorsCopyErrors(unittest.TestCase): + """CopyErrorsCopyErrors unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testCopyErrorsCopyErrors(self): + """Test CopyErrorsCopyErrors""" + # FIXME: construct object with mandatory attributes with example values + # model = isi_sdk_8_0.models.copy_errors_copy_errors.CopyErrorsCopyErrors() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_directory_query.py b/test/test_directory_query.py new file mode 100644 index 00000000..98aa0671 --- /dev/null +++ b/test/test_directory_query.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + Isilon SDK + + Isilon SDK - Language bindings for the OneFS API # noqa: E501 + + OpenAPI spec version: 3 + Contact: sdk@isilon.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import isi_sdk_8_0 +from isi_sdk_8_0.models.directory_query import DirectoryQuery # noqa: E501 +from isi_sdk_8_0.rest import ApiException + + +class TestDirectoryQuery(unittest.TestCase): + """DirectoryQuery unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testDirectoryQuery(self): + """Test DirectoryQuery""" + # FIXME: construct object with mandatory attributes with example values + # model = isi_sdk_8_0.models.directory_query.DirectoryQuery() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_directory_query_scope.py b/test/test_directory_query_scope.py new file mode 100644 index 00000000..be705e73 --- /dev/null +++ b/test/test_directory_query_scope.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + Isilon SDK + + Isilon SDK - Language bindings for the OneFS API # noqa: E501 + + OpenAPI spec version: 3 + Contact: sdk@isilon.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import isi_sdk_8_0 +from isi_sdk_8_0.models.directory_query_scope import DirectoryQueryScope # noqa: E501 +from isi_sdk_8_0.rest import ApiException + + +class TestDirectoryQueryScope(unittest.TestCase): + """DirectoryQueryScope unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testDirectoryQueryScope(self): + """Test DirectoryQueryScope""" + # FIXME: construct object with mandatory attributes with example values + # model = isi_sdk_8_0.models.directory_query_scope.DirectoryQueryScope() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_directory_query_scope_conditions.py b/test/test_directory_query_scope_conditions.py new file mode 100644 index 00000000..7c7952b6 --- /dev/null +++ b/test/test_directory_query_scope_conditions.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + Isilon SDK + + Isilon SDK - Language bindings for the OneFS API # noqa: E501 + + OpenAPI spec version: 3 + Contact: sdk@isilon.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import isi_sdk_8_0 +from isi_sdk_8_0.models.directory_query_scope_conditions import DirectoryQueryScopeConditions # noqa: E501 +from isi_sdk_8_0.rest import ApiException + + +class TestDirectoryQueryScopeConditions(unittest.TestCase): + """DirectoryQueryScopeConditions unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testDirectoryQueryScopeConditions(self): + """Test DirectoryQueryScopeConditions""" + # FIXME: construct object with mandatory attributes with example values + # model = isi_sdk_8_0.models.directory_query_scope_conditions.DirectoryQueryScopeConditions() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_event_channel_extended_extended.py b/test/test_event_channel_extended_extended.py new file mode 100644 index 00000000..603d8193 --- /dev/null +++ b/test/test_event_channel_extended_extended.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + Isilon SDK + + Isilon SDK - Language bindings for the OneFS API # noqa: E501 + + OpenAPI spec version: 3 + Contact: sdk@isilon.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import isi_sdk_8_0 +from isi_sdk_8_0.models.event_channel_extended_extended import EventChannelExtendedExtended # noqa: E501 +from isi_sdk_8_0.rest import ApiException + + +class TestEventChannelExtendedExtended(unittest.TestCase): + """EventChannelExtendedExtended unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testEventChannelExtendedExtended(self): + """Test EventChannelExtendedExtended""" + # FIXME: construct object with mandatory attributes with example values + # model = isi_sdk_8_0.models.event_channel_extended_extended.EventChannelExtendedExtended() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_filepool_template.py b/test/test_filepool_template.py index 4e16d2e5..872b4f83 100644 --- a/test/test_filepool_template.py +++ b/test/test_filepool_template.py @@ -1,36 +1,27 @@ # coding: utf-8 """ -Copyright 2016 SmartBear Software + Isilon SDK - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at + Isilon SDK - Language bindings for the OneFS API # noqa: E501 - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - - ref: https://github.com/swagger-api/swagger-codegen + OpenAPI spec version: 3 + Contact: sdk@isilon.com + Generated by: https://github.com/swagger-api/swagger-codegen.git """ + from __future__ import absolute_import -import os -import sys import unittest -import swagger_client -from swagger_client.rest import ApiException -from swagger_client.models.filepool_template import FilepoolTemplate +import isi_sdk_8_0 +from isi_sdk_8_0.models.filepool_template import FilepoolTemplate # noqa: E501 +from isi_sdk_8_0.rest import ApiException class TestFilepoolTemplate(unittest.TestCase): - """ FilepoolTemplate unit test stubs """ + """FilepoolTemplate unit test stubs""" def setUp(self): pass @@ -39,11 +30,11 @@ def tearDown(self): pass def testFilepoolTemplate(self): - """ - Test FilepoolTemplate - """ - model = swagger_client.models.filepool_template.FilepoolTemplate() + """Test FilepoolTemplate""" + # FIXME: construct object with mandatory attributes with example values + # model = isi_sdk_8_0.models.filepool_template.FilepoolTemplate() # noqa: E501 + pass if __name__ == '__main__': - unittest.main() \ No newline at end of file + unittest.main() diff --git a/test/test_filepool_template_action.py b/test/test_filepool_template_action.py new file mode 100644 index 00000000..5ca1c405 --- /dev/null +++ b/test/test_filepool_template_action.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + Isilon SDK + + Isilon SDK - Language bindings for the OneFS API # noqa: E501 + + OpenAPI spec version: 3 + Contact: sdk@isilon.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import isi_sdk_8_0 +from isi_sdk_8_0.models.filepool_template_action import FilepoolTemplateAction # noqa: E501 +from isi_sdk_8_0.rest import ApiException + + +class TestFilepoolTemplateAction(unittest.TestCase): + """FilepoolTemplateAction unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testFilepoolTemplateAction(self): + """Test FilepoolTemplateAction""" + # FIXME: construct object with mandatory attributes with example values + # model = isi_sdk_8_0.models.filepool_template_action.FilepoolTemplateAction() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_job_policy_extended.py b/test/test_job_policy_extended.py new file mode 100644 index 00000000..eca8cce3 --- /dev/null +++ b/test/test_job_policy_extended.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + Isilon SDK + + Isilon SDK - Language bindings for the OneFS API # noqa: E501 + + OpenAPI spec version: 3 + Contact: sdk@isilon.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import isi_sdk_8_0 +from isi_sdk_8_0.models.job_policy_extended import JobPolicyExtended # noqa: E501 +from isi_sdk_8_0.rest import ApiException + + +class TestJobPolicyExtended(unittest.TestCase): + """JobPolicyExtended unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testJobPolicyExtended(self): + """Test JobPolicyExtended""" + # FIXME: construct object with mandatory attributes with example values + # model = isi_sdk_8_0.models.job_policy_extended.JobPolicyExtended() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_mapping_users_rules_parameters_default_unix_user.py b/test/test_mapping_users_rules_parameters_default_unix_user.py new file mode 100644 index 00000000..9597d846 --- /dev/null +++ b/test/test_mapping_users_rules_parameters_default_unix_user.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + Isilon SDK + + Isilon SDK - Language bindings for the OneFS API # noqa: E501 + + OpenAPI spec version: 3 + Contact: sdk@isilon.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import isi_sdk_8_0 +from isi_sdk_8_0.models.mapping_users_rules_parameters_default_unix_user import MappingUsersRulesParametersDefaultUnixUser # noqa: E501 +from isi_sdk_8_0.rest import ApiException + + +class TestMappingUsersRulesParametersDefaultUnixUser(unittest.TestCase): + """MappingUsersRulesParametersDefaultUnixUser unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testMappingUsersRulesParametersDefaultUnixUser(self): + """Test MappingUsersRulesParametersDefaultUnixUser""" + # FIXME: construct object with mandatory attributes with example values + # model = isi_sdk_8_0.models.mapping_users_rules_parameters_default_unix_user.MappingUsersRulesParametersDefaultUnixUser() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_mapping_users_rules_rule_user1.py b/test/test_mapping_users_rules_rule_user1.py new file mode 100644 index 00000000..58b27cbe --- /dev/null +++ b/test/test_mapping_users_rules_rule_user1.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + Isilon SDK + + Isilon SDK - Language bindings for the OneFS API # noqa: E501 + + OpenAPI spec version: 3 + Contact: sdk@isilon.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import isi_sdk_8_0 +from isi_sdk_8_0.models.mapping_users_rules_rule_user1 import MappingUsersRulesRuleUser1 # noqa: E501 +from isi_sdk_8_0.rest import ApiException + + +class TestMappingUsersRulesRuleUser1(unittest.TestCase): + """MappingUsersRulesRuleUser1 unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testMappingUsersRulesRuleUser1(self): + """Test MappingUsersRulesRuleUser1""" + # FIXME: construct object with mandatory attributes with example values + # model = isi_sdk_8_0.models.mapping_users_rules_rule_user1.MappingUsersRulesRuleUser1() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_member_object.py b/test/test_member_object.py new file mode 100644 index 00000000..224098ec --- /dev/null +++ b/test/test_member_object.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + Isilon SDK + + Isilon SDK - Language bindings for the OneFS API # noqa: E501 + + OpenAPI spec version: 3 + Contact: sdk@isilon.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import isi_sdk_8_0 +from isi_sdk_8_0.models.member_object import MemberObject # noqa: E501 +from isi_sdk_8_0.rest import ApiException + + +class TestMemberObject(unittest.TestCase): + """MemberObject unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testMemberObject(self): + """Test MemberObject""" + # FIXME: construct object with mandatory attributes with example values + # model = isi_sdk_8_0.models.member_object.MemberObject() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_namespace_access_points.py b/test/test_namespace_access_points.py new file mode 100644 index 00000000..60943f8f --- /dev/null +++ b/test/test_namespace_access_points.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + Isilon SDK + + Isilon SDK - Language bindings for the OneFS API # noqa: E501 + + OpenAPI spec version: 3 + Contact: sdk@isilon.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import isi_sdk_8_0 +from isi_sdk_8_0.models.namespace_access_points import NamespaceAccessPoints # noqa: E501 +from isi_sdk_8_0.rest import ApiException + + +class TestNamespaceAccessPoints(unittest.TestCase): + """NamespaceAccessPoints unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testNamespaceAccessPoints(self): + """Test NamespaceAccessPoints""" + # FIXME: construct object with mandatory attributes with example values + # model = isi_sdk_8_0.models.namespace_access_points.NamespaceAccessPoints() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_namespace_access_points_namespaces.py b/test/test_namespace_access_points_namespaces.py new file mode 100644 index 00000000..09283284 --- /dev/null +++ b/test/test_namespace_access_points_namespaces.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + Isilon SDK + + Isilon SDK - Language bindings for the OneFS API # noqa: E501 + + OpenAPI spec version: 3 + Contact: sdk@isilon.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import isi_sdk_8_0 +from isi_sdk_8_0.models.namespace_access_points_namespaces import NamespaceAccessPointsNamespaces # noqa: E501 +from isi_sdk_8_0.rest import ApiException + + +class TestNamespaceAccessPointsNamespaces(unittest.TestCase): + """NamespaceAccessPointsNamespaces unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testNamespaceAccessPointsNamespaces(self): + """Test NamespaceAccessPointsNamespaces""" + # FIXME: construct object with mandatory attributes with example values + # model = isi_sdk_8_0.models.namespace_access_points_namespaces.NamespaceAccessPointsNamespaces() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_namespace_acl.py b/test/test_namespace_acl.py new file mode 100644 index 00000000..159a742b --- /dev/null +++ b/test/test_namespace_acl.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + Isilon SDK + + Isilon SDK - Language bindings for the OneFS API # noqa: E501 + + OpenAPI spec version: 3 + Contact: sdk@isilon.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import isi_sdk_8_0 +from isi_sdk_8_0.models.namespace_acl import NamespaceAcl # noqa: E501 +from isi_sdk_8_0.rest import ApiException + + +class TestNamespaceAcl(unittest.TestCase): + """NamespaceAcl unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testNamespaceAcl(self): + """Test NamespaceAcl""" + # FIXME: construct object with mandatory attributes with example values + # model = isi_sdk_8_0.models.namespace_acl.NamespaceAcl() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_namespace_api.py b/test/test_namespace_api.py new file mode 100644 index 00000000..9e49615c --- /dev/null +++ b/test/test_namespace_api.py @@ -0,0 +1,178 @@ +# coding: utf-8 + +""" + Isilon SDK + + Isilon SDK - Language bindings for the OneFS API # noqa: E501 + + OpenAPI spec version: 3 + Contact: sdk@isilon.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import isi_sdk_8_0 +from isi_sdk_8_0.api.namespace_api import NamespaceApi # noqa: E501 +from isi_sdk_8_0.rest import ApiException + + +class TestNamespaceApi(unittest.TestCase): + """NamespaceApi unit test stubs""" + + def setUp(self): + self.api = isi_sdk_8_0.api.namespace_api.NamespaceApi() # noqa: E501 + + def tearDown(self): + pass + + def test_copy_directory(self): + """Test case for copy_directory + + """ + pass + + def test_copy_file(self): + """Test case for copy_file + + """ + pass + + def test_create_access_point(self): + """Test case for create_access_point + + """ + pass + + def test_create_directory(self): + """Test case for create_directory + + """ + pass + + def test_create_file(self): + """Test case for create_file + + """ + pass + + def test_delete_access_point(self): + """Test case for delete_access_point + + """ + pass + + def test_delete_directory(self): + """Test case for delete_directory + + """ + pass + + def test_delete_file(self): + """Test case for delete_file + + """ + pass + + def test_get_acl(self): + """Test case for get_acl + + """ + pass + + def test_get_directory_attributes(self): + """Test case for get_directory_attributes + + """ + pass + + def test_get_directory_contents(self): + """Test case for get_directory_contents + + """ + pass + + def test_get_directory_metadata(self): + """Test case for get_directory_metadata + + """ + pass + + def test_get_file_attributes(self): + """Test case for get_file_attributes + + """ + pass + + def test_get_file_contents(self): + """Test case for get_file_contents + + """ + pass + + def test_get_file_metadata(self): + """Test case for get_file_metadata + + """ + pass + + def test_get_worm_properties(self): + """Test case for get_worm_properties + + """ + pass + + def test_list_access_points(self): + """Test case for list_access_points + + """ + pass + + def test_move_directory(self): + """Test case for move_directory + + """ + pass + + def test_move_file(self): + """Test case for move_file + + """ + pass + + def test_query_directory(self): + """Test case for query_directory + + """ + pass + + def test_set_acl(self): + """Test case for set_acl + + """ + pass + + def test_set_directory_metadata(self): + """Test case for set_directory_metadata + + """ + pass + + def test_set_file_metadata(self): + """Test case for set_file_metadata + + """ + pass + + def test_set_worm_properties(self): + """Test case for set_worm_properties + + """ + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_namespace_metadata.py b/test/test_namespace_metadata.py new file mode 100644 index 00000000..187490dd --- /dev/null +++ b/test/test_namespace_metadata.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + Isilon SDK + + Isilon SDK - Language bindings for the OneFS API # noqa: E501 + + OpenAPI spec version: 3 + Contact: sdk@isilon.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import isi_sdk_8_0 +from isi_sdk_8_0.models.namespace_metadata import NamespaceMetadata # noqa: E501 +from isi_sdk_8_0.rest import ApiException + + +class TestNamespaceMetadata(unittest.TestCase): + """NamespaceMetadata unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testNamespaceMetadata(self): + """Test NamespaceMetadata""" + # FIXME: construct object with mandatory attributes with example values + # model = isi_sdk_8_0.models.namespace_metadata.NamespaceMetadata() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_namespace_metadata_attrs.py b/test/test_namespace_metadata_attrs.py new file mode 100644 index 00000000..3c132e23 --- /dev/null +++ b/test/test_namespace_metadata_attrs.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + Isilon SDK + + Isilon SDK - Language bindings for the OneFS API # noqa: E501 + + OpenAPI spec version: 3 + Contact: sdk@isilon.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import isi_sdk_8_0 +from isi_sdk_8_0.models.namespace_metadata_attrs import NamespaceMetadataAttrs # noqa: E501 +from isi_sdk_8_0.rest import ApiException + + +class TestNamespaceMetadataAttrs(unittest.TestCase): + """NamespaceMetadataAttrs unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testNamespaceMetadataAttrs(self): + """Test NamespaceMetadataAttrs""" + # FIXME: construct object with mandatory attributes with example values + # model = isi_sdk_8_0.models.namespace_metadata_attrs.NamespaceMetadataAttrs() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_namespace_metadata_list.py b/test/test_namespace_metadata_list.py new file mode 100644 index 00000000..e95366ce --- /dev/null +++ b/test/test_namespace_metadata_list.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + Isilon SDK + + Isilon SDK - Language bindings for the OneFS API # noqa: E501 + + OpenAPI spec version: 3 + Contact: sdk@isilon.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import isi_sdk_8_0 +from isi_sdk_8_0.models.namespace_metadata_list import NamespaceMetadataList # noqa: E501 +from isi_sdk_8_0.rest import ApiException + + +class TestNamespaceMetadataList(unittest.TestCase): + """NamespaceMetadataList unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testNamespaceMetadataList(self): + """Test NamespaceMetadataList""" + # FIXME: construct object with mandatory attributes with example values + # model = isi_sdk_8_0.models.namespace_metadata_list.NamespaceMetadataList() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_namespace_metadata_list_attrs.py b/test/test_namespace_metadata_list_attrs.py new file mode 100644 index 00000000..4e240c7c --- /dev/null +++ b/test/test_namespace_metadata_list_attrs.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + Isilon SDK + + Isilon SDK - Language bindings for the OneFS API # noqa: E501 + + OpenAPI spec version: 3 + Contact: sdk@isilon.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import isi_sdk_8_0 +from isi_sdk_8_0.models.namespace_metadata_list_attrs import NamespaceMetadataListAttrs # noqa: E501 +from isi_sdk_8_0.rest import ApiException + + +class TestNamespaceMetadataListAttrs(unittest.TestCase): + """NamespaceMetadataListAttrs unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testNamespaceMetadataListAttrs(self): + """Test NamespaceMetadataListAttrs""" + # FIXME: construct object with mandatory attributes with example values + # model = isi_sdk_8_0.models.namespace_metadata_list_attrs.NamespaceMetadataListAttrs() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_namespace_object.py b/test/test_namespace_object.py new file mode 100644 index 00000000..91b534b5 --- /dev/null +++ b/test/test_namespace_object.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + Isilon SDK + + Isilon SDK - Language bindings for the OneFS API # noqa: E501 + + OpenAPI spec version: 3 + Contact: sdk@isilon.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import isi_sdk_8_0 +from isi_sdk_8_0.models.namespace_object import NamespaceObject # noqa: E501 +from isi_sdk_8_0.rest import ApiException + + +class TestNamespaceObject(unittest.TestCase): + """NamespaceObject unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testNamespaceObject(self): + """Test NamespaceObject""" + # FIXME: construct object with mandatory attributes with example values + # model = isi_sdk_8_0.models.namespace_object.NamespaceObject() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_namespace_objects.py b/test/test_namespace_objects.py new file mode 100644 index 00000000..6f51d9a0 --- /dev/null +++ b/test/test_namespace_objects.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + Isilon SDK + + Isilon SDK - Language bindings for the OneFS API # noqa: E501 + + OpenAPI spec version: 3 + Contact: sdk@isilon.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import isi_sdk_8_0 +from isi_sdk_8_0.models.namespace_objects import NamespaceObjects # noqa: E501 +from isi_sdk_8_0.rest import ApiException + + +class TestNamespaceObjects(unittest.TestCase): + """NamespaceObjects unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testNamespaceObjects(self): + """Test NamespaceObjects""" + # FIXME: construct object with mandatory attributes with example values + # model = isi_sdk_8_0.models.namespace_objects.NamespaceObjects() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_ndmp_user_extended.py b/test/test_ndmp_user_extended.py new file mode 100644 index 00000000..3612d6cf --- /dev/null +++ b/test/test_ndmp_user_extended.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + Isilon SDK + + Isilon SDK - Language bindings for the OneFS API # noqa: E501 + + OpenAPI spec version: 3 + Contact: sdk@isilon.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import isi_sdk_8_0 +from isi_sdk_8_0.models.ndmp_user_extended import NdmpUserExtended # noqa: E501 +from isi_sdk_8_0.rest import ApiException + + +class TestNdmpUserExtended(unittest.TestCase): + """NdmpUserExtended unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testNdmpUserExtended(self): + """Test NdmpUserExtended""" + # FIXME: construct object with mandatory attributes with example values + # model = isi_sdk_8_0.models.ndmp_user_extended.NdmpUserExtended() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_worm_create_params.py b/test/test_worm_create_params.py new file mode 100644 index 00000000..a14402df --- /dev/null +++ b/test/test_worm_create_params.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + Isilon SDK + + Isilon SDK - Language bindings for the OneFS API # noqa: E501 + + OpenAPI spec version: 3 + Contact: sdk@isilon.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import isi_sdk_8_0 +from isi_sdk_8_0.models.worm_create_params import WormCreateParams # noqa: E501 +from isi_sdk_8_0.rest import ApiException + + +class TestWormCreateParams(unittest.TestCase): + """WormCreateParams unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testWormCreateParams(self): + """Test WormCreateParams""" + # FIXME: construct object with mandatory attributes with example values + # model = isi_sdk_8_0.models.worm_create_params.WormCreateParams() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_worm_properties.py b/test/test_worm_properties.py new file mode 100644 index 00000000..ffd5d7b3 --- /dev/null +++ b/test/test_worm_properties.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + Isilon SDK + + Isilon SDK - Language bindings for the OneFS API # noqa: E501 + + OpenAPI spec version: 3 + Contact: sdk@isilon.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import isi_sdk_8_0 +from isi_sdk_8_0.models.worm_properties import WormProperties # noqa: E501 +from isi_sdk_8_0.rest import ApiException + + +class TestWormProperties(unittest.TestCase): + """WormProperties unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testWormProperties(self): + """Test WormProperties""" + # FIXME: construct object with mandatory attributes with example values + # model = isi_sdk_8_0.models.worm_properties.WormProperties() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main()