i2up-python-sdk 9.1.3.1__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- examples/OracleRule.py +39 -0
- examples/__init__.py +0 -0
- examples/nodeList.py +42 -0
- examples/repBackupList.py +30 -0
- i2up_python_sdk-9.1.3.1.dist-info/LICENSE +201 -0
- i2up_python_sdk-9.1.3.1.dist-info/METADATA +23 -0
- i2up_python_sdk-9.1.3.1.dist-info/RECORD +1472 -0
- i2up_python_sdk-9.1.3.1.dist-info/WHEEL +5 -0
- i2up_python_sdk-9.1.3.1.dist-info/top_level.txt +2 -0
- info2soft/ContainerCls/__init__.py +0 -0
- info2soft/ContainerCls/v20240819/ContainerCls.py +261 -0
- info2soft/ContainerCls/v20240819/__init__.py +2 -0
- info2soft/ContainerCls/v20250123/ContainerCls.py +261 -0
- info2soft/ContainerCls/v20250123/__init__.py +2 -0
- info2soft/ContainerCls/v20250630/ContainerCls.py +261 -0
- info2soft/ContainerCls/v20250630/__init__.py +2 -0
- info2soft/TapeCopy/__init__.py +0 -0
- info2soft/TapeCopy/v20240819/TapeCopy.py +74 -0
- info2soft/TapeCopy/v20240819/__init__.py +2 -0
- info2soft/TapeCopy/v20250123/TapeCopy.py +74 -0
- info2soft/TapeCopy/v20250123/__init__.py +2 -0
- info2soft/TapeCopy/v20250630/TapeCopy.py +74 -0
- info2soft/TapeCopy/v20250630/__init__.py +2 -0
- info2soft/__init__.py +85 -0
- info2soft/active/__init__.py +3 -0
- info2soft/active/test/__init__.py +0 -0
- info2soft/active/test/v20200720/DataChkTest.py +269 -0
- info2soft/active/test/v20200720/Db2Test.py +546 -0
- info2soft/active/test/v20200720/DmTest.py +285 -0
- info2soft/active/test/v20200720/GaussTest.py +339 -0
- info2soft/active/test/v20200720/HeteroTest.py +416 -0
- info2soft/active/test/v20200720/InfomixTest.py +193 -0
- info2soft/active/test/v20200720/LogTest.py +69 -0
- info2soft/active/test/v20200720/MaskTest.py +690 -0
- info2soft/active/test/v20200720/MongoDBTest.py +202 -0
- info2soft/active/test/v20200720/MysqlTest.py +1058 -0
- info2soft/active/test/v20200720/NodeTest.py +200 -0
- info2soft/active/test/v20200720/NotificationsTest.py +52 -0
- info2soft/active/test/v20200720/OceanbaseTest.py +316 -0
- info2soft/active/test/v20200720/OracleRuleTest.py +1588 -0
- info2soft/active/test/v20200720/PostgresTest.py +238 -0
- info2soft/active/test/v20200720/QianBaseSyncTest.py +404 -0
- info2soft/active/test/v20200720/QianBasexTPTest.py +174 -0
- info2soft/active/test/v20200720/ScriptMaskTest.py +255 -0
- info2soft/active/test/v20200720/SqlserverTest.py +505 -0
- info2soft/active/test/v20200720/SummaryTest.py +76 -0
- info2soft/active/test/v20200720/SyncRulesTest.py +1295 -0
- info2soft/active/test/v20200720/TidbTest.py +444 -0
- info2soft/active/test/v20200720/__init__.py +0 -0
- info2soft/active/test/v20220622/DataChkTest.py +269 -0
- info2soft/active/test/v20220622/Db2Test.py +546 -0
- info2soft/active/test/v20220622/DmTest.py +285 -0
- info2soft/active/test/v20220622/GaussTest.py +339 -0
- info2soft/active/test/v20220622/HeteroTest.py +416 -0
- info2soft/active/test/v20220622/InfomixTest.py +193 -0
- info2soft/active/test/v20220622/LogTest.py +69 -0
- info2soft/active/test/v20220622/MaskTest.py +690 -0
- info2soft/active/test/v20220622/MongoDBTest.py +202 -0
- info2soft/active/test/v20220622/MysqlTest.py +1058 -0
- info2soft/active/test/v20220622/NodeTest.py +200 -0
- info2soft/active/test/v20220622/NotificationsTest.py +52 -0
- info2soft/active/test/v20220622/OceanbaseTest.py +316 -0
- info2soft/active/test/v20220622/OracleRuleTest.py +1588 -0
- info2soft/active/test/v20220622/PostgresTest.py +238 -0
- info2soft/active/test/v20220622/QianBaseSyncTest.py +404 -0
- info2soft/active/test/v20220622/QianBasexTPTest.py +174 -0
- info2soft/active/test/v20220622/ScriptMaskTest.py +255 -0
- info2soft/active/test/v20220622/SqlserverTest.py +505 -0
- info2soft/active/test/v20220622/SummaryTest.py +76 -0
- info2soft/active/test/v20220622/SyncRulesTest.py +1295 -0
- info2soft/active/test/v20220622/TidbTest.py +444 -0
- info2soft/active/test/v20220622/__init__.py +0 -0
- info2soft/active/v20200720/DataChk.py +192 -0
- info2soft/active/v20200720/Db2.py +495 -0
- info2soft/active/v20200720/Dm.py +226 -0
- info2soft/active/v20200720/Gauss.py +184 -0
- info2soft/active/v20200720/Hetero.py +320 -0
- info2soft/active/v20200720/Infomix.py +98 -0
- info2soft/active/v20200720/Log.py +35 -0
- info2soft/active/v20200720/Mask.py +475 -0
- info2soft/active/v20200720/MongoDB.py +158 -0
- info2soft/active/v20200720/Mysql.py +936 -0
- info2soft/active/v20200720/Node.py +126 -0
- info2soft/active/v20200720/Notifications.py +21 -0
- info2soft/active/v20200720/Oceanbase.py +257 -0
- info2soft/active/v20200720/OracleRule.py +1360 -0
- info2soft/active/v20200720/Postgres.py +196 -0
- info2soft/active/v20200720/QianBaseSync.py +330 -0
- info2soft/active/v20200720/QianBasexTP.py +86 -0
- info2soft/active/v20200720/ScriptMask.py +193 -0
- info2soft/active/v20200720/Sqlserver.py +430 -0
- info2soft/active/v20200720/Summary.py +46 -0
- info2soft/active/v20200720/SyncRules.py +1079 -0
- info2soft/active/v20200720/Tidb.py +304 -0
- info2soft/active/v20200720/__init__.py +6 -0
- info2soft/active/v20220622/DataChk.py +192 -0
- info2soft/active/v20220622/Db2.py +495 -0
- info2soft/active/v20220622/Dm.py +226 -0
- info2soft/active/v20220622/Gauss.py +184 -0
- info2soft/active/v20220622/Hetero.py +320 -0
- info2soft/active/v20220622/Infomix.py +98 -0
- info2soft/active/v20220622/Log.py +35 -0
- info2soft/active/v20220622/Mask.py +475 -0
- info2soft/active/v20220622/MongoDB.py +158 -0
- info2soft/active/v20220622/Mysql.py +936 -0
- info2soft/active/v20220622/Node.py +126 -0
- info2soft/active/v20220622/Notifications.py +21 -0
- info2soft/active/v20220622/Oceanbase.py +257 -0
- info2soft/active/v20220622/OracleRule.py +1360 -0
- info2soft/active/v20220622/Postgres.py +196 -0
- info2soft/active/v20220622/QianBaseSync.py +330 -0
- info2soft/active/v20220622/QianBasexTP.py +86 -0
- info2soft/active/v20220622/ScriptMask.py +193 -0
- info2soft/active/v20220622/Sqlserver.py +430 -0
- info2soft/active/v20220622/Summary.py +46 -0
- info2soft/active/v20220622/SyncRules.py +1079 -0
- info2soft/active/v20220622/Tidb.py +304 -0
- info2soft/active/v20220622/__init__.py +22 -0
- info2soft/active/v20230227/DataChk.py +302 -0
- info2soft/active/v20230227/Db2.py +282 -0
- info2soft/active/v20230227/Dm.py +98 -0
- info2soft/active/v20230227/Gauss.py +140 -0
- info2soft/active/v20230227/Hetero.py +296 -0
- info2soft/active/v20230227/Infomix.py +73 -0
- info2soft/active/v20230227/Log.py +47 -0
- info2soft/active/v20230227/Mask.py +488 -0
- info2soft/active/v20230227/MongoDB.py +111 -0
- info2soft/active/v20230227/Mysql.py +936 -0
- info2soft/active/v20230227/Notifications.py +21 -0
- info2soft/active/v20230227/Oceanbase.py +124 -0
- info2soft/active/v20230227/OfflineRule.py +100 -0
- info2soft/active/v20230227/OracleRule.py +490 -0
- info2soft/active/v20230227/Postgres.py +114 -0
- info2soft/active/v20230227/QianBaseSync.py +259 -0
- info2soft/active/v20230227/QianBasexTP.py +86 -0
- info2soft/active/v20230227/Redis.py +111 -0
- info2soft/active/v20230227/ScriptMask.py +170 -0
- info2soft/active/v20230227/Sqlserver.py +323 -0
- info2soft/active/v20230227/Summary.py +45 -0
- info2soft/active/v20230227/Tidb.py +114 -0
- info2soft/active/v20230227/__init__.py +44 -0
- info2soft/active/v20240228/DataChk.py +428 -0
- info2soft/active/v20240228/Db2.py +370 -0
- info2soft/active/v20240228/Dm.py +142 -0
- info2soft/active/v20240228/Gauss.py +140 -0
- info2soft/active/v20240228/HBase.py +75 -0
- info2soft/active/v20240228/Hetero.py +296 -0
- info2soft/active/v20240228/Infomix.py +136 -0
- info2soft/active/v20240228/Log.py +47 -0
- info2soft/active/v20240228/Mask.py +503 -0
- info2soft/active/v20240228/MongoDB.py +155 -0
- info2soft/active/v20240228/Mysql.py +949 -0
- info2soft/active/v20240228/Notifications.py +21 -0
- info2soft/active/v20240228/Oceanbase.py +244 -0
- info2soft/active/v20240228/OfflineRule.py +100 -0
- info2soft/active/v20240228/OracleRule.py +1683 -0
- info2soft/active/v20240228/Postgres.py +177 -0
- info2soft/active/v20240228/QianBaseSync.py +303 -0
- info2soft/active/v20240228/QianBasexTP.py +86 -0
- info2soft/active/v20240228/Redis.py +155 -0
- info2soft/active/v20240228/ScriptMask.py +170 -0
- info2soft/active/v20240228/Sqlserver.py +468 -0
- info2soft/active/v20240228/Summary.py +45 -0
- info2soft/active/v20240228/Tidb.py +291 -0
- info2soft/active/v20240228/__init__.py +44 -0
- info2soft/active/v20240819/DataChk.py +380 -0
- info2soft/active/v20240819/Db2.py +164 -0
- info2soft/active/v20240819/Dm.py +111 -0
- info2soft/active/v20240819/HBase.py +75 -0
- info2soft/active/v20240819/Hetero.py +231 -0
- info2soft/active/v20240819/Informix.py +112 -0
- info2soft/active/v20240819/Mask.py +493 -0
- info2soft/active/v20240819/MongoDB.py +115 -0
- info2soft/active/v20240819/Mysql.py +270 -0
- info2soft/active/v20240819/Notifications.py +21 -0
- info2soft/active/v20240819/Oceanbase.py +202 -0
- info2soft/active/v20240819/OfflineRule.py +207 -0
- info2soft/active/v20240819/OracleRule.py +1397 -0
- info2soft/active/v20240819/Postgres.py +140 -0
- info2soft/active/v20240819/QianBaseSync.py +140 -0
- info2soft/active/v20240819/Rabbitmq.py +111 -0
- info2soft/active/v20240819/Redis.py +115 -0
- info2soft/active/v20240819/ScriptMask.py +210 -0
- info2soft/active/v20240819/Sqlserver.py +230 -0
- info2soft/active/v20240819/Summary.py +34 -0
- info2soft/active/v20240819/Tidb.py +205 -0
- info2soft/active/v20240819/__init__.py +42 -0
- info2soft/active/v20250123/DataChk.py +380 -0
- info2soft/active/v20250123/Db2.py +163 -0
- info2soft/active/v20250123/Dm.py +111 -0
- info2soft/active/v20250123/HBase.py +75 -0
- info2soft/active/v20250123/Hetero.py +244 -0
- info2soft/active/v20250123/HeteroConsumer.py +114 -0
- info2soft/active/v20250123/Informix.py +112 -0
- info2soft/active/v20250123/Mask.py +493 -0
- info2soft/active/v20250123/MongoDB.py +115 -0
- info2soft/active/v20250123/Mysql.py +270 -0
- info2soft/active/v20250123/MysqlRule.py +125 -0
- info2soft/active/v20250123/Notifications.py +21 -0
- info2soft/active/v20250123/Oceanbase.py +202 -0
- info2soft/active/v20250123/OfflineRule.py +207 -0
- info2soft/active/v20250123/OracleRule.py +1397 -0
- info2soft/active/v20250123/Postgres.py +140 -0
- info2soft/active/v20250123/QianBaseSync.py +140 -0
- info2soft/active/v20250123/Rabbitmq.py +111 -0
- info2soft/active/v20250123/Redis.py +115 -0
- info2soft/active/v20250123/ScriptMask.py +210 -0
- info2soft/active/v20250123/SqlServerRule.py +125 -0
- info2soft/active/v20250123/Sqlserver.py +230 -0
- info2soft/active/v20250123/Summary.py +34 -0
- info2soft/active/v20250123/Tidb.py +205 -0
- info2soft/active/v20250123/__init__.py +48 -0
- info2soft/active/v20250630/DataChk.py +380 -0
- info2soft/active/v20250630/Db2.py +163 -0
- info2soft/active/v20250630/Dm.py +111 -0
- info2soft/active/v20250630/HBase.py +75 -0
- info2soft/active/v20250630/Hetero.py +244 -0
- info2soft/active/v20250630/HeteroConsumer.py +140 -0
- info2soft/active/v20250630/Informix.py +112 -0
- info2soft/active/v20250630/Mask.py +493 -0
- info2soft/active/v20250630/MongoDB.py +115 -0
- info2soft/active/v20250630/Mysql.py +270 -0
- info2soft/active/v20250630/MysqlRule.py +125 -0
- info2soft/active/v20250630/Notifications.py +21 -0
- info2soft/active/v20250630/Oceanbase.py +202 -0
- info2soft/active/v20250630/OfflineRule.py +207 -0
- info2soft/active/v20250630/OracleRule.py +1397 -0
- info2soft/active/v20250630/Postgres.py +140 -0
- info2soft/active/v20250630/QianBaseSync.py +140 -0
- info2soft/active/v20250630/Rabbitmq.py +111 -0
- info2soft/active/v20250630/Redis.py +115 -0
- info2soft/active/v20250630/RocketMq.py +114 -0
- info2soft/active/v20250630/RoutingRule.py +163 -0
- info2soft/active/v20250630/ScriptMask.py +210 -0
- info2soft/active/v20250630/SqlServerRule.py +125 -0
- info2soft/active/v20250630/Sqlserver.py +230 -0
- info2soft/active/v20250630/Summary.py +34 -0
- info2soft/active/v20250630/Tidb.py +205 -0
- info2soft/active/v20250630/__init__.py +52 -0
- info2soft/appContinuity/__init__.py +0 -0
- info2soft/appContinuity/v20240819/AppContinuity.py +180 -0
- info2soft/appContinuity/v20240819/__init__.py +2 -0
- info2soft/appContinuity/v20250123/AppContinuity.py +180 -0
- info2soft/appContinuity/v20250123/__init__.py +2 -0
- info2soft/appContinuity/v20250630/AppContinuity.py +219 -0
- info2soft/appContinuity/v20250630/__init__.py +2 -0
- info2soft/authorization/__init__.py +0 -0
- info2soft/authorization/v20240819/Authorization.py +99 -0
- info2soft/authorization/v20240819/__init__.py +2 -0
- info2soft/authorization/v20250123/Authorization.py +99 -0
- info2soft/authorization/v20250123/__init__.py +2 -0
- info2soft/authorization/v20250630/Authorization.py +99 -0
- info2soft/authorization/v20250630/__init__.py +2 -0
- info2soft/backupDomain/__init__.py +0 -0
- info2soft/backupDomain/v20250630/BackupDomain.py +115 -0
- info2soft/backupDomain/v20250630/__init__.py +2 -0
- info2soft/backupRule/__init__.py +0 -0
- info2soft/backupRule/v20240228/BackupRule.py +178 -0
- info2soft/backupRule/v20240228/__init__.py +2 -0
- info2soft/backupRule/v20240819/BackupRule.py +167 -0
- info2soft/backupRule/v20240819/__init__.py +2 -0
- info2soft/backupRule/v20250123/BackupRule.py +193 -0
- info2soft/backupRule/v20250123/__init__.py +2 -0
- info2soft/backupRule/v20250630/BackupRule.py +232 -0
- info2soft/backupRule/v20250630/__init__.py +2 -0
- info2soft/backupSet/__init__.py +0 -0
- info2soft/backupSet/v20240228/BackupSet.py +208 -0
- info2soft/backupSet/v20240228/__init__.py +2 -0
- info2soft/backupSet/v20240819/BackupSet.py +242 -0
- info2soft/backupSet/v20240819/__init__.py +2 -0
- info2soft/backupSet/v20250123/BackupSet.py +294 -0
- info2soft/backupSet/v20250123/__init__.py +2 -0
- info2soft/backupSet/v20250630/BackupSet.py +294 -0
- info2soft/backupSet/v20250630/__init__.py +2 -0
- info2soft/backupSetRulePolicy/__init__.py +0 -0
- info2soft/backupSetRulePolicy/v20240228/BackupSetRulePolicy.py +76 -0
- info2soft/backupSetRulePolicy/v20240228/__init__.py +2 -0
- info2soft/backupSetRulePolicy/v20240819/BackupSetRulePolicy.py +76 -0
- info2soft/backupSetRulePolicy/v20240819/__init__.py +2 -0
- info2soft/backupSetRulePolicy/v20250123/BackupSetRulePolicy.py +76 -0
- info2soft/backupSetRulePolicy/v20250123/__init__.py +2 -0
- info2soft/backupSetRulePolicy/v20250630/BackupSetRulePolicy.py +76 -0
- info2soft/backupSetRulePolicy/v20250630/__init__.py +2 -0
- info2soft/backupWork/__init__.py +0 -0
- info2soft/backupWork/v20240228/BackupWork.py +152 -0
- info2soft/backupWork/v20240228/__init__.py +2 -0
- info2soft/backupWork/v20240819/BackupWork.py +183 -0
- info2soft/backupWork/v20240819/__init__.py +2 -0
- info2soft/backupWork/v20250123/BackupWork.py +183 -0
- info2soft/backupWork/v20250123/__init__.py +2 -0
- info2soft/backupWork/v20250630/BackupWork.py +183 -0
- info2soft/backupWork/v20250630/__init__.py +2 -0
- info2soft/bigdata/__init__.py +2 -0
- info2soft/bigdata/v20200724/Backup.py +130 -0
- info2soft/bigdata/v20200724/Recovery.py +164 -0
- info2soft/bigdata/v20200724/__init__.py +3 -0
- info2soft/bigdata/v20220622/Backup.py +130 -0
- info2soft/bigdata/v20220622/Recovery.py +164 -0
- info2soft/bigdata/v20220622/__init__.py +3 -0
- info2soft/bigdata/v20230227/Backup.py +218 -0
- info2soft/bigdata/v20230227/__init__.py +2 -0
- info2soft/bigdata/v20240228/Backup.py +257 -0
- info2soft/bigdata/v20240228/__init__.py +2 -0
- info2soft/bigdata/v20240819/Backup.py +243 -0
- info2soft/bigdata/v20240819/Recovery.py +152 -0
- info2soft/bigdata/v20240819/__init__.py +4 -0
- info2soft/bigdata/v20250123/Backup.py +243 -0
- info2soft/bigdata/v20250123/Recovery.py +152 -0
- info2soft/bigdata/v20250123/__init__.py +4 -0
- info2soft/bigdata/v20250630/Backup.py +243 -0
- info2soft/bigdata/v20250630/Recovery.py +152 -0
- info2soft/bigdata/v20250630/__init__.py +4 -0
- info2soft/bigdataBackupRule/__init__.py +0 -0
- info2soft/bigdataBackupRule/v20240819/BigdataBackupRule.py +152 -0
- info2soft/bigdataBackupRule/v20240819/__init__.py +2 -0
- info2soft/bigdataBackupRule/v20250123/BigdataBackupRule.py +152 -0
- info2soft/bigdataBackupRule/v20250123/__init__.py +2 -0
- info2soft/bigdataBackupRule/v20250630/BigdataBackupRule.py +152 -0
- info2soft/bigdataBackupRule/v20250630/__init__.py +2 -0
- info2soft/bigdataRecoveryRule/__init__.py +0 -0
- info2soft/bigdataRecoveryRule/v20240819/BigdataRecoveryRule.py +76 -0
- info2soft/bigdataRecoveryRule/v20240819/__init__.py +2 -0
- info2soft/bigdataRecoveryRule/v20250123/BigdataRecoveryRule.py +76 -0
- info2soft/bigdataRecoveryRule/v20250123/__init__.py +2 -0
- info2soft/bigdataRecoveryRule/v20250630/BigdataRecoveryRule.py +76 -0
- info2soft/bigdataRecoveryRule/v20250630/__init__.py +2 -0
- info2soft/cdm/__init__.py +1 -0
- info2soft/cdm/v20200729/Cdm.py +688 -0
- info2soft/cdm/v20200729/__init__.py +2 -0
- info2soft/cdm/v20220622/Cdm.py +688 -0
- info2soft/cdm/v20220622/__init__.py +2 -0
- info2soft/cdm/v20230227/Cdm.py +602 -0
- info2soft/cdm/v20230227/__init__.py +2 -0
- info2soft/cdm/v20240228/Cdm.py +640 -0
- info2soft/cdm/v20240228/__init__.py +2 -0
- info2soft/cdm/v20240819/Cdm.py +232 -0
- info2soft/cdm/v20240819/CdmRecovery.py +99 -0
- info2soft/cdm/v20240819/CdmRule.py +113 -0
- info2soft/cdm/v20240819/Drill.py +127 -0
- info2soft/cdm/v20240819/FfoMount.py +89 -0
- info2soft/cdm/v20240819/RemoteCoopy.py +178 -0
- info2soft/cdm/v20240819/__init__.py +12 -0
- info2soft/cdm/v20250123/Cdm.py +232 -0
- info2soft/cdm/v20250123/CdmRecovery.py +99 -0
- info2soft/cdm/v20250123/CdmRule.py +113 -0
- info2soft/cdm/v20250123/Drill.py +127 -0
- info2soft/cdm/v20250123/FfoMount.py +89 -0
- info2soft/cdm/v20250123/RemoteCoopy.py +178 -0
- info2soft/cdm/v20250123/__init__.py +12 -0
- info2soft/cdm/v20250630/Cdm.py +232 -0
- info2soft/cdm/v20250630/CdmRecovery.py +99 -0
- info2soft/cdm/v20250630/CdmRule.py +113 -0
- info2soft/cdm/v20250630/Drill.py +127 -0
- info2soft/cdm/v20250630/FfoMount.py +89 -0
- info2soft/cdm/v20250630/RemoteCoopy.py +178 -0
- info2soft/cdm/v20250630/__init__.py +12 -0
- info2soft/cfs/__init__.py +0 -0
- info2soft/cfs/v20240228/CfsBackup.py +218 -0
- info2soft/cfs/v20240228/__init__.py +2 -0
- info2soft/cfs/v20240819/CfsBackup.py +193 -0
- info2soft/cfs/v20240819/__init__.py +2 -0
- info2soft/cfs/v20250123/CfsBackup.py +193 -0
- info2soft/cfs/v20250123/__init__.py +2 -0
- info2soft/cfs/v20250630/CfsBackup.py +232 -0
- info2soft/cfs/v20250630/__init__.py +2 -0
- info2soft/cloud/__init__.py +1 -0
- info2soft/cloud/v20200727/CloudBackup.py +170 -0
- info2soft/cloud/v20200727/CloudEcs.py +237 -0
- info2soft/cloud/v20200727/CloudPlatform.py +191 -0
- info2soft/cloud/v20200727/CloudRehearse.py +438 -0
- info2soft/cloud/v20200727/CloudVolume.py +123 -0
- info2soft/cloud/v20200727/__init__.py +6 -0
- info2soft/cloud/v20220622/CloudBackup.py +170 -0
- info2soft/cloud/v20220622/CloudEcs.py +237 -0
- info2soft/cloud/v20220622/CloudPlatform.py +191 -0
- info2soft/cloud/v20220622/CloudRehearse.py +438 -0
- info2soft/cloud/v20220622/CloudVolume.py +123 -0
- info2soft/cloud/v20220622/__init__.py +6 -0
- info2soft/cloud/v20230227/CloudBackup.py +1028 -0
- info2soft/cloud/v20230227/__init__.py +2 -0
- info2soft/cloud/v20240228/CloudBackup.py +1098 -0
- info2soft/cloud/v20240228/__init__.py +2 -0
- info2soft/cloud/v20240819/CloudBackendStorage.py +76 -0
- info2soft/cloud/v20240819/CloudBackup.py +153 -0
- info2soft/cloud/v20240819/CloudEcs.py +256 -0
- info2soft/cloud/v20240819/CloudPlatform.py +193 -0
- info2soft/cloud/v20240819/CloudRehearse.py +438 -0
- info2soft/cloud/v20240819/CloudVolume.py +124 -0
- info2soft/cloud/v20240819/__init__.py +12 -0
- info2soft/cloud/v20250123/CloudBackendStorage.py +76 -0
- info2soft/cloud/v20250123/CloudBackup.py +153 -0
- info2soft/cloud/v20250123/CloudEcs.py +256 -0
- info2soft/cloud/v20250123/CloudPlatform.py +193 -0
- info2soft/cloud/v20250123/CloudRehearse.py +438 -0
- info2soft/cloud/v20250123/CloudVolume.py +124 -0
- info2soft/cloud/v20250123/__init__.py +12 -0
- info2soft/cloud/v20250630/CloudBackendStorage.py +76 -0
- info2soft/cloud/v20250630/CloudBackup.py +153 -0
- info2soft/cloud/v20250630/CloudEcs.py +256 -0
- info2soft/cloud/v20250630/CloudPlatform.py +193 -0
- info2soft/cloud/v20250630/CloudRehearse.py +438 -0
- info2soft/cloud/v20250630/CloudVolume.py +124 -0
- info2soft/cloud/v20250630/__init__.py +12 -0
- info2soft/common/Auth.py +215 -0
- info2soft/common/BackupMigrate.py +111 -0
- info2soft/common/Cache.py +93 -0
- info2soft/common/CcMonitor.py +33 -0
- info2soft/common/Client.py +101 -0
- info2soft/common/CompareResult.py +78 -0
- info2soft/common/Credential.py +102 -0
- info2soft/common/DataBaseBackup.py +68 -0
- info2soft/common/DbConvert.py +46 -0
- info2soft/common/Diagnose.py +47 -0
- info2soft/common/Dir.py +112 -0
- info2soft/common/FindPassword.py +60 -0
- info2soft/common/GTS.py +83 -0
- info2soft/common/GeneralInterface.py +256 -0
- info2soft/common/Lic.py +215 -0
- info2soft/common/Logs.py +85 -0
- info2soft/common/Menu.py +20 -0
- info2soft/common/Notifications.py +177 -0
- info2soft/common/OpLogs.py +72 -0
- info2soft/common/Permission.py +32 -0
- info2soft/common/Qr.py +99 -0
- info2soft/common/RestrpcServer.py +114 -0
- info2soft/common/Rsa.py +67 -0
- info2soft/common/Settings.py +448 -0
- info2soft/common/Statistics.py +101 -0
- info2soft/common/Storage.py +978 -0
- info2soft/common/Tenant.py +62 -0
- info2soft/common/Wechat.py +45 -0
- info2soft/common/__init__.py +0 -0
- info2soft/common/test/__init__.py +0 -0
- info2soft/common/test/v20190104/AuthTest.py +124 -0
- info2soft/common/test/v20190104/BackupMigrateTest.py +149 -0
- info2soft/common/test/v20190104/CcMonitorTest.py +63 -0
- info2soft/common/test/v20190104/ClientTest.py +153 -0
- info2soft/common/test/v20190104/CompareResultTest.py +102 -0
- info2soft/common/test/v20190104/CredentialTest.py +129 -0
- info2soft/common/test/v20190104/DataBaseBackupTest.py +75 -0
- info2soft/common/test/v20190104/DbConvertTest.py +73 -0
- info2soft/common/test/v20190104/DiagnoseTest.py +79 -0
- info2soft/common/test/v20190104/DirTest.py +158 -0
- info2soft/common/test/v20190104/FindPasswordTest.py +92 -0
- info2soft/common/test/v20190104/GTSTest.py +117 -0
- info2soft/common/test/v20190104/GeneralInterfaceTest.py +285 -0
- info2soft/common/test/v20190104/LicTest.py +265 -0
- info2soft/common/test/v20190104/LogsTest.py +153 -0
- info2soft/common/test/v20190104/MenuTest.py +48 -0
- info2soft/common/test/v20190104/NotificationsTest.py +256 -0
- info2soft/common/test/v20190104/OpLogsTest.py +125 -0
- info2soft/common/test/v20190104/PermissionTest.py +55 -0
- info2soft/common/test/v20190104/QrTest.py +117 -0
- info2soft/common/test/v20190104/RestrpcServerTest.py +159 -0
- info2soft/common/test/v20190104/SettingsTest.py +518 -0
- info2soft/common/test/v20190104/StatisticsTest.py +210 -0
- info2soft/common/test/v20190104/StorageTest.py +48 -0
- info2soft/common/test/v20190104/TenantTest.py +100 -0
- info2soft/common/test/v20190104/WechatTest.py +72 -0
- info2soft/common/test/v20190104/__init__.py +0 -0
- info2soft/common/test/v20190805/MonitorTest.py +45 -0
- info2soft/common/test/v20190805/PermissionTest.py +45 -0
- info2soft/common/test/v20190805/StorageTest.py +1058 -0
- info2soft/common/test/v20190805/__init__.py +0 -0
- info2soft/common/test/v20220622/AuthTest.py +124 -0
- info2soft/common/test/v20220622/BackupMigrateTest.py +149 -0
- info2soft/common/test/v20220622/CcMonitorTest.py +63 -0
- info2soft/common/test/v20220622/ClientTest.py +153 -0
- info2soft/common/test/v20220622/CompareResultTest.py +102 -0
- info2soft/common/test/v20220622/CredentialTest.py +129 -0
- info2soft/common/test/v20220622/DataBaseBackupTest.py +75 -0
- info2soft/common/test/v20220622/DbConvertTest.py +73 -0
- info2soft/common/test/v20220622/DiagnoseTest.py +79 -0
- info2soft/common/test/v20220622/DirTest.py +158 -0
- info2soft/common/test/v20220622/FindPasswordTest.py +92 -0
- info2soft/common/test/v20220622/GTSTest.py +117 -0
- info2soft/common/test/v20220622/GeneralInterfaceTest.py +285 -0
- info2soft/common/test/v20220622/LicTest.py +265 -0
- info2soft/common/test/v20220622/LogsTest.py +153 -0
- info2soft/common/test/v20220622/MenuTest.py +48 -0
- info2soft/common/test/v20220622/NotificationsTest.py +256 -0
- info2soft/common/test/v20220622/OpLogsTest.py +125 -0
- info2soft/common/test/v20220622/PermissionTest.py +55 -0
- info2soft/common/test/v20220622/QrTest.py +117 -0
- info2soft/common/test/v20220622/RestrpcServerTest.py +159 -0
- info2soft/common/test/v20220622/SettingsTest.py +518 -0
- info2soft/common/test/v20220622/StatisticsTest.py +210 -0
- info2soft/common/test/v20220622/StorageTest.py +48 -0
- info2soft/common/test/v20220622/TenantTest.py +100 -0
- info2soft/common/test/v20220622/WechatTest.py +72 -0
- info2soft/common/test/v20220622/__init__.py +0 -0
- info2soft/common/utils.py +168 -0
- info2soft/common/v20230227/Auth.py +218 -0
- info2soft/common/v20230227/BackupMigrate.py +111 -0
- info2soft/common/v20230227/BigScreen.py +192 -0
- info2soft/common/v20230227/CcMonitor.py +33 -0
- info2soft/common/v20230227/Client.py +112 -0
- info2soft/common/v20230227/CommonTemplate.py +77 -0
- info2soft/common/v20230227/CompareResult.py +76 -0
- info2soft/common/v20230227/Credential.py +115 -0
- info2soft/common/v20230227/DataBaseBackup.py +69 -0
- info2soft/common/v20230227/DbConvert.py +46 -0
- info2soft/common/v20230227/Diagnose.py +59 -0
- info2soft/common/v20230227/Dir.py +112 -0
- info2soft/common/v20230227/FindPassword.py +60 -0
- info2soft/common/v20230227/GTS.py +83 -0
- info2soft/common/v20230227/GeneralInterface.py +295 -0
- info2soft/common/v20230227/Lic.py +239 -0
- info2soft/common/v20230227/Logs.py +85 -0
- info2soft/common/v20230227/Menu.py +20 -0
- info2soft/common/v20230227/Notifications.py +203 -0
- info2soft/common/v20230227/OpLogs.py +72 -0
- info2soft/common/v20230227/Permission.py +45 -0
- info2soft/common/v20230227/Qr.py +73 -0
- info2soft/common/v20230227/RestrpcServer.py +112 -0
- info2soft/common/v20230227/Settings.py +487 -0
- info2soft/common/v20230227/Statistics.py +112 -0
- info2soft/common/v20230227/Tenant.py +60 -0
- info2soft/common/v20230227/Webhook.py +130 -0
- info2soft/common/v20230227/Wechat.py +45 -0
- info2soft/common/v20230227/__init__.py +60 -0
- info2soft/common/v20240228/Auth.py +218 -0
- info2soft/common/v20240228/BackupMigrate.py +111 -0
- info2soft/common/v20240228/BigScreen.py +192 -0
- info2soft/common/v20240228/CcMonitor.py +161 -0
- info2soft/common/v20240228/Client.py +242 -0
- info2soft/common/v20240228/CommonTemplate.py +77 -0
- info2soft/common/v20240228/CompareResult.py +76 -0
- info2soft/common/v20240228/Credential.py +115 -0
- info2soft/common/v20240228/DataBaseBackup.py +69 -0
- info2soft/common/v20240228/DbConvert.py +46 -0
- info2soft/common/v20240228/Diagnose.py +59 -0
- info2soft/common/v20240228/Dir.py +125 -0
- info2soft/common/v20240228/FindPassword.py +60 -0
- info2soft/common/v20240228/GTS.py +83 -0
- info2soft/common/v20240228/GeneralInterface.py +333 -0
- info2soft/common/v20240228/GuardData.py +114 -0
- info2soft/common/v20240228/Lic.py +280 -0
- info2soft/common/v20240228/Logs.py +85 -0
- info2soft/common/v20240228/Menu.py +20 -0
- info2soft/common/v20240228/Notifications.py +203 -0
- info2soft/common/v20240228/OpLogs.py +72 -0
- info2soft/common/v20240228/Permission.py +45 -0
- info2soft/common/v20240228/Qr.py +73 -0
- info2soft/common/v20240228/RestrpcServer.py +112 -0
- info2soft/common/v20240228/Settings.py +550 -0
- info2soft/common/v20240228/Statistics.py +125 -0
- info2soft/common/v20240228/Tenant.py +60 -0
- info2soft/common/v20240228/Webhook.py +130 -0
- info2soft/common/v20240228/Wechat.py +45 -0
- info2soft/common/v20240228/__init__.py +60 -0
- info2soft/common/v20240819/Auth.py +122 -0
- info2soft/common/v20240819/BackupMigrate.py +111 -0
- info2soft/common/v20240819/BigScreen.py +192 -0
- info2soft/common/v20240819/CcMonitor.py +137 -0
- info2soft/common/v20240819/Client.py +254 -0
- info2soft/common/v20240819/CommonTemplate.py +77 -0
- info2soft/common/v20240819/CompareResult.py +76 -0
- info2soft/common/v20240819/Credential.py +115 -0
- info2soft/common/v20240819/DbConvert.py +46 -0
- info2soft/common/v20240819/Diagnose.py +59 -0
- info2soft/common/v20240819/Dir.py +125 -0
- info2soft/common/v20240819/FindPassword.py +60 -0
- info2soft/common/v20240819/GeneralInterface.py +419 -0
- info2soft/common/v20240819/Lic.py +149 -0
- info2soft/common/v20240819/Logs.py +85 -0
- info2soft/common/v20240819/Menu.py +20 -0
- info2soft/common/v20240819/Notifications.py +216 -0
- info2soft/common/v20240819/OpLogs.py +59 -0
- info2soft/common/v20240819/Permission.py +58 -0
- info2soft/common/v20240819/Qr.py +99 -0
- info2soft/common/v20240819/Settings.py +729 -0
- info2soft/common/v20240819/Statistics.py +138 -0
- info2soft/common/v20240819/Tenant.py +62 -0
- info2soft/common/v20240819/Webhook.py +130 -0
- info2soft/common/v20240819/Wechat.py +45 -0
- info2soft/common/v20240819/__init__.py +50 -0
- info2soft/common/v20250123/Auth.py +148 -0
- info2soft/common/v20250123/BackupMigrate.py +111 -0
- info2soft/common/v20250123/BigScreen.py +192 -0
- info2soft/common/v20250123/CcMonitor.py +137 -0
- info2soft/common/v20250123/Client.py +254 -0
- info2soft/common/v20250123/CommonTemplate.py +77 -0
- info2soft/common/v20250123/CompareResult.py +76 -0
- info2soft/common/v20250123/Credential.py +115 -0
- info2soft/common/v20250123/DbConvert.py +46 -0
- info2soft/common/v20250123/Diagnose.py +59 -0
- info2soft/common/v20250123/Dir.py +125 -0
- info2soft/common/v20250123/FindPassword.py +60 -0
- info2soft/common/v20250123/GeneralInterface.py +419 -0
- info2soft/common/v20250123/GeneralSettings.py +84 -0
- info2soft/common/v20250123/Lic.py +149 -0
- info2soft/common/v20250123/LicQuota.py +102 -0
- info2soft/common/v20250123/Logs.py +85 -0
- info2soft/common/v20250123/Menu.py +20 -0
- info2soft/common/v20250123/Notifications.py +216 -0
- info2soft/common/v20250123/OpLogs.py +59 -0
- info2soft/common/v20250123/Permission.py +58 -0
- info2soft/common/v20250123/Qr.py +99 -0
- info2soft/common/v20250123/Settings.py +537 -0
- info2soft/common/v20250123/Statistics.py +163 -0
- info2soft/common/v20250123/Tenant.py +62 -0
- info2soft/common/v20250123/UserSettings.py +173 -0
- info2soft/common/v20250123/Webhook.py +130 -0
- info2soft/common/v20250123/Wechat.py +45 -0
- info2soft/common/v20250123/__init__.py +56 -0
- info2soft/common/v20250630/BackupMigrate.py +111 -0
- info2soft/common/v20250630/BigScreen.py +192 -0
- info2soft/common/v20250630/CcMonitor.py +137 -0
- info2soft/common/v20250630/Client.py +254 -0
- info2soft/common/v20250630/CommonTemplate.py +77 -0
- info2soft/common/v20250630/CompareResult.py +76 -0
- info2soft/common/v20250630/Credential.py +115 -0
- info2soft/common/v20250630/DbConvert.py +46 -0
- info2soft/common/v20250630/Diagnose.py +59 -0
- info2soft/common/v20250630/Dir.py +125 -0
- info2soft/common/v20250630/FindPassword.py +60 -0
- info2soft/common/v20250630/GeneralInterface.py +419 -0
- info2soft/common/v20250630/GeneralSettings.py +84 -0
- info2soft/common/v20250630/Lic.py +161 -0
- info2soft/common/v20250630/LicQuota.py +102 -0
- info2soft/common/v20250630/Logs.py +85 -0
- info2soft/common/v20250630/Menu.py +20 -0
- info2soft/common/v20250630/Notifications.py +216 -0
- info2soft/common/v20250630/OpLogs.py +59 -0
- info2soft/common/v20250630/Permission.py +58 -0
- info2soft/common/v20250630/Qr.py +99 -0
- info2soft/common/v20250630/Settings.py +537 -0
- info2soft/common/v20250630/Statistics.py +163 -0
- info2soft/common/v20250630/Tenant.py +62 -0
- info2soft/common/v20250630/UserSettings.py +173 -0
- info2soft/common/v20250630/Webhook.py +130 -0
- info2soft/common/v20250630/Wechat.py +45 -0
- info2soft/common/v20250630/__init__.py +54 -0
- info2soft/compat.py +76 -0
- info2soft/config.py +33 -0
- info2soft/container_cls/__init__.py +0 -0
- info2soft/container_cls/v20230227/ContainerCls.py +209 -0
- info2soft/container_cls/v20230227/__init__.py +2 -0
- info2soft/container_cls/v20240228/ContainerCls.py +247 -0
- info2soft/container_cls/v20240228/__init__.py +2 -0
- info2soft/dashboard/__init__.py +0 -0
- info2soft/dashboard/test/__init__.py +0 -0
- info2soft/dashboard/test/v20190104/DashboardTest.py +100 -0
- info2soft/dashboard/test/v20190104/__init__.py +0 -0
- info2soft/dashboard/test/v20220622/DashboardTest.py +100 -0
- info2soft/dashboard/test/v20220622/__init__.py +0 -0
- info2soft/dashboard/v20181227/Dashboard.py +73 -0
- info2soft/dashboard/v20181227/__init__.py +0 -0
- info2soft/dashboard/v20220622/Dashboard.py +73 -0
- info2soft/dashboard/v20220622/__init__.py +1 -0
- info2soft/dashboard/v20240819/Dashboard.py +120 -0
- info2soft/dashboard/v20240819/__init__.py +2 -0
- info2soft/dashboard/v20250123/Dashboard.py +120 -0
- info2soft/dashboard/v20250123/__init__.py +2 -0
- info2soft/dashboard/v20250630/Dashboard.py +120 -0
- info2soft/dashboard/v20250630/__init__.py +2 -0
- info2soft/dbInstance/__init__.py +0 -0
- info2soft/dbInstance/v20240819/DbInstance.py +140 -0
- info2soft/dbInstance/v20240819/__init__.py +2 -0
- info2soft/dbInstance/v20250123/DbInstance.py +140 -0
- info2soft/dbInstance/v20250123/__init__.py +2 -0
- info2soft/dbInstance/v20250630/DbInstance.py +140 -0
- info2soft/dbInstance/v20250630/__init__.py +2 -0
- info2soft/dedupeStorage/__init__.py +0 -0
- info2soft/dedupeStorage/v20240819/DedupeStorage.py +115 -0
- info2soft/dedupeStorage/v20240819/__init__.py +2 -0
- info2soft/dedupeStorage/v20250123/DedupeStorage.py +115 -0
- info2soft/dedupeStorage/v20250123/__init__.py +2 -0
- info2soft/dedupeStorage/v20250630/DedupeStorage.py +115 -0
- info2soft/dedupeStorage/v20250630/__init__.py +2 -0
- info2soft/distributor/__init__.py +1 -0
- info2soft/distributor/v20200727/DistributorSystem.py +216 -0
- info2soft/distributor/v20200727/Group.py +150 -0
- info2soft/distributor/v20200727/Node.py +176 -0
- info2soft/distributor/v20200727/__init__.py +6 -0
- info2soft/distributor/v20220622/DistributorSystem.py +216 -0
- info2soft/distributor/v20220622/Group.py +150 -0
- info2soft/distributor/v20220622/Node.py +176 -0
- info2soft/distributor/v20220622/__init__.py +6 -0
- info2soft/dto/Dto.py +221 -0
- info2soft/dto/__init__.py +0 -0
- info2soft/dto/v20220622/Dto.py +221 -0
- info2soft/dto/v20220622/__init__.py +1 -0
- info2soft/dto/v20230227/Dto.py +158 -0
- info2soft/dto/v20230227/__init__.py +2 -0
- info2soft/dto/v20240228/Dto.py +158 -0
- info2soft/dto/v20240228/__init__.py +2 -0
- info2soft/dto/v20240819/Dto.py +249 -0
- info2soft/dto/v20240819/DtoArchive.py +164 -0
- info2soft/dto/v20240819/__init__.py +4 -0
- info2soft/dto/v20250123/Dto.py +249 -0
- info2soft/dto/v20250123/DtoArchive.py +164 -0
- info2soft/dto/v20250123/__init__.py +4 -0
- info2soft/dto/v20250630/Dto.py +262 -0
- info2soft/dto/v20250630/DtoArchive.py +164 -0
- info2soft/dto/v20250630/__init__.py +4 -0
- info2soft/dtrack/Dtrack.py +809 -0
- info2soft/dtrack/__init__.py +2 -0
- info2soft/dtrack/v20220622/Dtrack.py +809 -0
- info2soft/dtrack/v20220622/__init__.py +2 -0
- info2soft/dtrack/v20230227/Dtrack.py +862 -0
- info2soft/dtrack/v20230227/__init__.py +2 -0
- info2soft/examineApprove/__init__.py +0 -0
- info2soft/examineApprove/v20240819/ExamineApprove.py +137 -0
- info2soft/examineApprove/v20240819/__init__.py +2 -0
- info2soft/examineApprove/v20250123/ExamineApprove.py +137 -0
- info2soft/examineApprove/v20250123/__init__.py +2 -0
- info2soft/examineApprove/v20250630/ExamineApprove.py +137 -0
- info2soft/examineApprove/v20250630/__init__.py +2 -0
- info2soft/fileWriter.py +16 -0
- info2soft/fingerprintDomain/__init__.py +0 -0
- info2soft/fingerprintDomain/v20240819/FingerprintDomain.py +89 -0
- info2soft/fingerprintDomain/v20240819/__init__.py +2 -0
- info2soft/fingerprintDomain/v20250123/FingerprintDomain.py +89 -0
- info2soft/fingerprintDomain/v20250123/__init__.py +2 -0
- info2soft/fingerprintDomain/v20250630/FingerprintDomain.py +102 -0
- info2soft/fingerprintDomain/v20250630/__init__.py +2 -0
- info2soft/fsp/FspBackup.py +228 -0
- info2soft/fsp/FspMove.py +233 -0
- info2soft/fsp/FspRecovery.py +253 -0
- info2soft/fsp/__init__.py +0 -0
- info2soft/fsp/test/FspBackupTest.py +426 -0
- info2soft/fsp/test/FspMoveTest.py +450 -0
- info2soft/fsp/test/FspRecoveryTest.py +393 -0
- info2soft/fsp/test/__init__.py +0 -0
- info2soft/fsp/test/v20220622/FspBackupTest.py +427 -0
- info2soft/fsp/test/v20220622/FspMoveTest.py +451 -0
- info2soft/fsp/test/v20220622/FspRecoveryTest.py +394 -0
- info2soft/fsp/test/v20220622/__init__.py +0 -0
- info2soft/fsp/v20220622/FspBackup.py +228 -0
- info2soft/fsp/v20220622/FspMove.py +233 -0
- info2soft/fsp/v20220622/FspRecovery.py +253 -0
- info2soft/fsp/v20220622/__init__.py +3 -0
- info2soft/fsp/v20230227/FspBackup.py +601 -0
- info2soft/fsp/v20230227/__init__.py +2 -0
- info2soft/fsp/v20240228/FspBackup.py +614 -0
- info2soft/fsp/v20240228/__init__.py +2 -0
- info2soft/fsp/v20240819/FspBackup.py +271 -0
- info2soft/fsp/v20240819/FspMove.py +232 -0
- info2soft/fsp/v20240819/FspRecovery.py +257 -0
- info2soft/fsp/v20240819/__init__.py +2 -0
- info2soft/fsp/v20250123/FspBackup.py +271 -0
- info2soft/fsp/v20250123/FspMove.py +232 -0
- info2soft/fsp/v20250123/FspRecovery.py +257 -0
- info2soft/fsp/v20250123/__init__.py +6 -0
- info2soft/fsp/v20250630/FspBackup.py +271 -0
- info2soft/fsp/v20250630/FspMove.py +232 -0
- info2soft/fsp/v20250630/FspRecovery.py +257 -0
- info2soft/fsp/v20250630/__init__.py +6 -0
- info2soft/fspBackupRule/__init__.py +0 -0
- info2soft/fspBackupRule/v20240819/FspBackupRule.py +154 -0
- info2soft/fspBackupRule/v20240819/__init__.py +2 -0
- info2soft/fspBackupRule/v20250123/FspBackupRule.py +154 -0
- info2soft/fspBackupRule/v20250123/__init__.py +2 -0
- info2soft/fspBackupRule/v20250630/FspBackupRule.py +154 -0
- info2soft/fspBackupRule/v20250630/__init__.py +2 -0
- info2soft/fspRecoveryRule/__init__.py +0 -0
- info2soft/fspRecoveryRule/v20240819/FspRecoveryRule.py +153 -0
- info2soft/fspRecoveryRule/v20240819/__init__.py +2 -0
- info2soft/fspRecoveryRule/v20250123/FspRecoveryRule.py +153 -0
- info2soft/fspRecoveryRule/v20250123/__init__.py +2 -0
- info2soft/fspRecoveryRule/v20250630/FspRecoveryRule.py +179 -0
- info2soft/fspRecoveryRule/v20250630/__init__.py +2 -0
- info2soft/fullMachineCopy/__init__.py +0 -0
- info2soft/fullMachineCopy/v20240819/FullMachineCopy.py +115 -0
- info2soft/fullMachineCopy/v20240819/__init__.py +2 -0
- info2soft/fullMachineCopy/v20250123/FullMachineCopy.py +115 -0
- info2soft/fullMachineCopy/v20250123/__init__.py +2 -0
- info2soft/fullMachineCopy/v20250630/FullMachineCopy.py +115 -0
- info2soft/fullMachineCopy/v20250630/__init__.py +2 -0
- info2soft/gts/__init__.py +0 -0
- info2soft/gts/test/GTS.py +157 -0
- info2soft/gts/test/__init__.py +0 -0
- info2soft/gts/test/v20220622/GTS.py +157 -0
- info2soft/gts/test/v20220622/__init__.py +0 -0
- info2soft/gts/v20190805/GTS.py +123 -0
- info2soft/gts/v20190805/__init__.py +0 -0
- info2soft/gts/v20220622/GTS.py +123 -0
- info2soft/gts/v20220622/__init__.py +1 -0
- info2soft/guardData/__init__.py +0 -0
- info2soft/guardData/v20240819/GuardData.py +114 -0
- info2soft/guardData/v20240819/__init__.py +2 -0
- info2soft/guardData/v20250123/GuardData.py +114 -0
- info2soft/guardData/v20250123/__init__.py +2 -0
- info2soft/guardData/v20250630/GuardData.py +114 -0
- info2soft/guardData/v20250630/__init__.py +2 -0
- info2soft/ha/__init__.py +1 -0
- info2soft/ha/test/__init__.py +0 -0
- info2soft/ha/test/v20190104/AppHighAvailabilityTest.py +383 -0
- info2soft/ha/test/v20190104/__init__.py +0 -0
- info2soft/ha/test/v20190806/AppHighAvailabilityTest.py +246 -0
- info2soft/ha/test/v20190806/__init__.py +0 -0
- info2soft/ha/test/v20200727/ClusterTest.py +330 -0
- info2soft/ha/test/v20200727/__init__.py +0 -0
- info2soft/ha/test/v20220622/AppHighAvailabilityTest.py +246 -0
- info2soft/ha/test/v20220622/ClusterTest.py +330 -0
- info2soft/ha/test/v20220622/__init__.py +0 -0
- info2soft/ha/v20181227/AppHighAvailability.py +335 -0
- info2soft/ha/v20181227/__init__.py +0 -0
- info2soft/ha/v20200724/Cluster.py +270 -0
- info2soft/ha/v20200724/__init__.py +2 -0
- info2soft/ha/v20220622/AppHighAvailability.py +335 -0
- info2soft/ha/v20220622/Cluster.py +270 -0
- info2soft/ha/v20220622/__init__.py +3 -0
- info2soft/ha/v20230227/AppHighAvailability.py +302 -0
- info2soft/ha/v20230227/Cluster.py +232 -0
- info2soft/ha/v20230227/__init__.py +4 -0
- info2soft/ha/v20240228/AppHighAvailability.py +302 -0
- info2soft/ha/v20240228/Cluster.py +232 -0
- info2soft/ha/v20240228/__init__.py +4 -0
- info2soft/ha/v20240819/AppHighAvailability.py +318 -0
- info2soft/ha/v20240819/Cluster.py +204 -0
- info2soft/ha/v20240819/Label.py +62 -0
- info2soft/ha/v20240819/__init__.py +6 -0
- info2soft/ha/v20250123/AppHighAvailability.py +318 -0
- info2soft/ha/v20250123/Cluster.py +192 -0
- info2soft/ha/v20250123/Label.py +62 -0
- info2soft/ha/v20250123/__init__.py +6 -0
- info2soft/ha/v20250630/AppHighAvailability.py +318 -0
- info2soft/ha/v20250630/Cluster.py +192 -0
- info2soft/ha/v20250630/Label.py +62 -0
- info2soft/ha/v20250630/__init__.py +6 -0
- info2soft/hdfs/Hdfs.py +112 -0
- info2soft/hdfs/__init__.py +2 -0
- info2soft/hdfs/v20220622/Hdfs.py +112 -0
- info2soft/hdfs/v20220622/__init__.py +2 -0
- info2soft/hdfs/v20230227/Hdfs.py +89 -0
- info2soft/hdfs/v20230227/__init__.py +2 -0
- info2soft/hdfs/v20240228/Hdfs.py +89 -0
- info2soft/hdfs/v20240228/__init__.py +2 -0
- info2soft/hdfs/v20240819/Hdfs.py +300 -0
- info2soft/hdfs/v20240819/__init__.py +2 -0
- info2soft/hdfs/v20250123/Hdfs.py +300 -0
- info2soft/hdfs/v20250123/__init__.py +2 -0
- info2soft/hdfs/v20250630/Hdfs.py +300 -0
- info2soft/hdfs/v20250630/__init__.py +2 -0
- info2soft/https.py +422 -0
- info2soft/hw/__init__.py +0 -0
- info2soft/hw/v20240819/GTS.py +87 -0
- info2soft/hw/v20240819/HDR.py +58 -0
- info2soft/hw/v20240819/__init__.py +4 -0
- info2soft/hw/v20250123/GTS.py +87 -0
- info2soft/hw/v20250123/HDR.py +58 -0
- info2soft/hw/v20250123/__init__.py +4 -0
- info2soft/hw/v20250630/CBG.py +21 -0
- info2soft/hw/v20250630/GTS.py +87 -0
- info2soft/hw/v20250630/HDR.py +121 -0
- info2soft/hw/v20250630/__init__.py +6 -0
- info2soft/mountTask/__init__.py +0 -0
- info2soft/mountTask/v20240819/MountTask.py +139 -0
- info2soft/mountTask/v20240819/__init__.py +2 -0
- info2soft/mountTask/v20250123/MountTask.py +139 -0
- info2soft/mountTask/v20250123/__init__.py +2 -0
- info2soft/mountTask/v20250630/MountTask.py +139 -0
- info2soft/mountTask/v20250630/__init__.py +2 -0
- info2soft/nas/__init__.py +0 -0
- info2soft/nas/test/NASTest.py +111 -0
- info2soft/nas/test/__init__.py +0 -0
- info2soft/nas/test/v20190104/NASTest.py +173 -0
- info2soft/nas/test/v20190104/__init__.py +0 -0
- info2soft/nas/test/v20220622/NASTest.py +175 -0
- info2soft/nas/test/v20220622/__init__.py +0 -0
- info2soft/nas/v20190102/NAS.py +119 -0
- info2soft/nas/v20190102/__init__.py +0 -0
- info2soft/nas/v20220622/NAS.py +119 -0
- info2soft/nas/v20220622/__init__.py +1 -0
- info2soft/nas/v20230227/NAS.py +102 -0
- info2soft/nas/v20230227/__init__.py +2 -0
- info2soft/nas/v20240228/NAS.py +102 -0
- info2soft/nas/v20240228/__init__.py +2 -0
- info2soft/nas/v20240819/Nas.py +115 -0
- info2soft/nas/v20240819/__init__.py +2 -0
- info2soft/nas/v20250123/Nas.py +115 -0
- info2soft/nas/v20250123/__init__.py +2 -0
- info2soft/nas/v20250630/Nas.py +115 -0
- info2soft/nas/v20250630/__init__.py +2 -0
- info2soft/nbuBackupSet/__init__.py +0 -0
- info2soft/nbuBackupSet/v20250630/NbuBackupSet.py +34 -0
- info2soft/nbuBackupSet/v20250630/__init__.py +2 -0
- info2soft/notifications/__init__.py +0 -0
- info2soft/notifications/test/NotificationsTest.py +90 -0
- info2soft/notifications/test/__init__.py +0 -0
- info2soft/notifications/test/v20190104/NotificationsTest.py +192 -0
- info2soft/notifications/test/v20190104/__init__.py +0 -0
- info2soft/notifications/test/v20190806/NotificationsTest.py +63 -0
- info2soft/notifications/test/v20190806/__init__.py +0 -0
- info2soft/notifications/v20181227/Notifications.py +142 -0
- info2soft/notifications/v20181227/__init__.py +0 -0
- info2soft/recovery/__init__.py +0 -0
- info2soft/recovery/v20240819/Recovery.py +34 -0
- info2soft/recovery/v20240819/__init__.py +2 -0
- info2soft/recovery/v20250123/Recovery.py +34 -0
- info2soft/recovery/v20250123/__init__.py +2 -0
- info2soft/recovery/v20250630/Recovery.py +34 -0
- info2soft/recovery/v20250630/__init__.py +2 -0
- info2soft/recoveryRule/__init__.py +0 -0
- info2soft/recoveryRule/v20240228/RecoveryRule.py +212 -0
- info2soft/recoveryRule/v20240228/__init__.py +2 -0
- info2soft/recoveryRule/v20240819/RecoveryRule.py +207 -0
- info2soft/recoveryRule/v20240819/__init__.py +2 -0
- info2soft/recoveryRule/v20250123/RecoveryRule.py +207 -0
- info2soft/recoveryRule/v20250123/__init__.py +2 -0
- info2soft/recoveryRule/v20250630/BatchRecoveryRule.py +154 -0
- info2soft/recoveryRule/v20250630/RecoveryRule.py +220 -0
- info2soft/recoveryRule/v20250630/__init__.py +4 -0
- info2soft/recycleBin/__init__.py +0 -0
- info2soft/recycleBin/v20240819/RecycleBin.py +35 -0
- info2soft/recycleBin/v20240819/__init__.py +2 -0
- info2soft/recycleBin/v20250123/RecycleBin.py +35 -0
- info2soft/recycleBin/v20250123/__init__.py +2 -0
- info2soft/recycleBin/v20250630/RecycleBin.py +35 -0
- info2soft/recycleBin/v20250630/__init__.py +2 -0
- info2soft/remoteRep/__init__.py +0 -0
- info2soft/remoteRep/v20240819/RemoteRep.py +206 -0
- info2soft/remoteRep/v20240819/__init__.py +2 -0
- info2soft/remoteRep/v20250123/RemoteRep.py +206 -0
- info2soft/remoteRep/v20250123/__init__.py +2 -0
- info2soft/remoteRep/v20250630/RemoteRep.py +206 -0
- info2soft/remoteRep/v20250630/__init__.py +2 -0
- info2soft/remote_rep/__init__.py +0 -0
- info2soft/remote_rep/v20230227/RemoteRep.py +167 -0
- info2soft/remote_rep/v20230227/__init__.py +2 -0
- info2soft/remote_rep/v20240228/RemoteRep.py +211 -0
- info2soft/remote_rep/v20240228/__init__.py +2 -0
- info2soft/rep/__init__.py +0 -0
- info2soft/rep/test/__init__.py +0 -0
- info2soft/rep/test/v20190104/RepBackupTest.py +513 -0
- info2soft/rep/test/v20190104/RepRecoveryTest.py +279 -0
- info2soft/rep/test/v20190104/__init__.py +0 -0
- info2soft/rep/test/v20220622/RepBackupTest.py +513 -0
- info2soft/rep/test/v20220622/RepRecoveryTest.py +279 -0
- info2soft/rep/test/v20220622/__init__.py +0 -0
- info2soft/rep/v20181227/RepBackup.py +325 -0
- info2soft/rep/v20181227/RepRecovery.py +203 -0
- info2soft/rep/v20181227/__init__.py +0 -0
- info2soft/rep/v20220622/RepBackup.py +325 -0
- info2soft/rep/v20220622/RepRecovery.py +203 -0
- info2soft/rep/v20220622/__init__.py +2 -0
- info2soft/rep/v20230227/RepBackup.py +308 -0
- info2soft/rep/v20230227/RepRecovery.py +156 -0
- info2soft/rep/v20230227/__init__.py +4 -0
- info2soft/rep/v20240228/RepBackup.py +308 -0
- info2soft/rep/v20240228/RepRecovery.py +156 -0
- info2soft/rep/v20240228/__init__.py +4 -0
- info2soft/rep/v20240819/RepBackup.py +360 -0
- info2soft/rep/v20240819/RepRecovery.py +195 -0
- info2soft/rep/v20240819/__init__.py +4 -0
- info2soft/rep/v20250123/RepBackup.py +360 -0
- info2soft/rep/v20250123/RepRecovery.py +195 -0
- info2soft/rep/v20250123/__init__.py +4 -0
- info2soft/rep/v20250630/RepBackup.py +360 -0
- info2soft/rep/v20250630/RepRecovery.py +195 -0
- info2soft/rep/v20250630/__init__.py +4 -0
- info2soft/replica/__init__.py +0 -0
- info2soft/replica/v20240819/First.py +115 -0
- info2soft/replica/v20240819/Second.py +139 -0
- info2soft/replica/v20240819/__init__.py +4 -0
- info2soft/replica/v20250123/First.py +115 -0
- info2soft/replica/v20250123/Second.py +139 -0
- info2soft/replica/v20250123/__init__.py +4 -0
- info2soft/replica/v20250630/First.py +115 -0
- info2soft/replica/v20250630/Second.py +139 -0
- info2soft/replica/v20250630/__init__.py +4 -0
- info2soft/resource/__init__.py +2 -0
- info2soft/resource/test/__init__.py +0 -0
- info2soft/resource/test/v20190104/BizGroupTest.py +143 -0
- info2soft/resource/test/v20190104/ClusterTest.py +219 -0
- info2soft/resource/test/v20190104/NodeTest.py +575 -0
- info2soft/resource/test/v20190104/__init__.py +0 -0
- info2soft/resource/test/v20200727/BoxVmTest.py +139 -0
- info2soft/resource/test/v20200727/__init__.py +0 -0
- info2soft/resource/test/v20200930/ActiveNodeTest.py +479 -0
- info2soft/resource/test/v20200930/AppTypeTest.py +98 -0
- info2soft/resource/test/v20200930/AuthorizationTest.py +140 -0
- info2soft/resource/test/v20200930/CopyVolume.py +155 -0
- info2soft/resource/test/v20200930/DedupePoolTest.py +151 -0
- info2soft/resource/test/v20200930/DtoHostTest.py +266 -0
- info2soft/resource/test/v20200930/DtoLifeManagementTest.py +140 -0
- info2soft/resource/test/v20200930/DtoStorageTest.py +144 -0
- info2soft/resource/test/v20200930/HdfsPlatformTest.py +167 -0
- info2soft/resource/test/v20200930/MonitorTest.py +109 -0
- info2soft/resource/test/v20200930/NodeDbConfigTest.py +82 -0
- info2soft/resource/test/v20200930/NodeProxyTest.py +100 -0
- info2soft/resource/test/v20200930/ReCyleTest.py +76 -0
- info2soft/resource/test/v20200930/ServiceClusterTest.py +151 -0
- info2soft/resource/test/v20200930/StoragePool.py +200 -0
- info2soft/resource/test/v20200930/StorageTest.py +1734 -0
- info2soft/resource/test/v20200930/VirtualizationSupportTest.py +536 -0
- info2soft/resource/test/v20200930/__init__.py +0 -0
- info2soft/resource/test/v20220622/ActiveNodeTest.py +479 -0
- info2soft/resource/test/v20220622/AppTypeTest.py +98 -0
- info2soft/resource/test/v20220622/AuthorizationTest.py +140 -0
- info2soft/resource/test/v20220622/CopyVolume.py +155 -0
- info2soft/resource/test/v20220622/DedupePoolTest.py +151 -0
- info2soft/resource/test/v20220622/DtoHostTest.py +266 -0
- info2soft/resource/test/v20220622/DtoLifeManagementTest.py +140 -0
- info2soft/resource/test/v20220622/DtoStorageTest.py +144 -0
- info2soft/resource/test/v20220622/HdfsPlatformTest.py +167 -0
- info2soft/resource/test/v20220622/MonitorTest.py +109 -0
- info2soft/resource/test/v20220622/NodeDbConfigTest.py +82 -0
- info2soft/resource/test/v20220622/NodeProxyTest.py +100 -0
- info2soft/resource/test/v20220622/ReCyleTest.py +76 -0
- info2soft/resource/test/v20220622/ServiceClusterTest.py +151 -0
- info2soft/resource/test/v20220622/StoragePool.py +200 -0
- info2soft/resource/test/v20220622/StorageTest.py +1734 -0
- info2soft/resource/test/v20220622/VirtualizationSupportTest.py +536 -0
- info2soft/resource/test/v20220622/__init__.py +0 -0
- info2soft/resource/v20181227/BizGroup.py +106 -0
- info2soft/resource/v20181227/Cluster.py +190 -0
- info2soft/resource/v20181227/Node.py +463 -0
- info2soft/resource/v20181227/__init__.py +6 -0
- info2soft/resource/v20200727/BoxVm.py +106 -0
- info2soft/resource/v20200727/__init__.py +2 -0
- info2soft/resource/v20200729/AppSystem.py +364 -0
- info2soft/resource/v20200729/__init__.py +2 -0
- info2soft/resource/v20200930/ActiveNode.py +297 -0
- info2soft/resource/v20200930/AppType.py +75 -0
- info2soft/resource/v20200930/Authorization.py +99 -0
- info2soft/resource/v20200930/CopyVolume.py +129 -0
- info2soft/resource/v20200930/DedupePool.py +126 -0
- info2soft/resource/v20200930/DtoHost.py +242 -0
- info2soft/resource/v20200930/DtoLifeManagement.py +91 -0
- info2soft/resource/v20200930/DtoStorage.py +102 -0
- info2soft/resource/v20200930/HdfsPlatform.py +102 -0
- info2soft/resource/v20200930/Monitor.py +99 -0
- info2soft/resource/v20200930/NodeDbConfig.py +47 -0
- info2soft/resource/v20200930/NodeProxy.py +76 -0
- info2soft/resource/v20200930/ReCyle.py +47 -0
- info2soft/resource/v20200930/ServiceCluster.py +100 -0
- info2soft/resource/v20200930/Storage.py +1443 -0
- info2soft/resource/v20200930/StoragePool.py +166 -0
- info2soft/resource/v20200930/VirtualizationSupport.py +464 -0
- info2soft/resource/v20200930/__init__.py +17 -0
- info2soft/resource/v20220622/ActiveNode.py +297 -0
- info2soft/resource/v20220622/AppType.py +75 -0
- info2soft/resource/v20220622/Authorization.py +99 -0
- info2soft/resource/v20220622/CopyVolume.py +129 -0
- info2soft/resource/v20220622/DedupePool.py +126 -0
- info2soft/resource/v20220622/DtoHost.py +242 -0
- info2soft/resource/v20220622/DtoLifeManagement.py +91 -0
- info2soft/resource/v20220622/DtoStorage.py +102 -0
- info2soft/resource/v20220622/HdfsPlatform.py +102 -0
- info2soft/resource/v20220622/Monitor.py +99 -0
- info2soft/resource/v20220622/NodeDbConfig.py +47 -0
- info2soft/resource/v20220622/NodeProxy.py +76 -0
- info2soft/resource/v20220622/ReCyle.py +47 -0
- info2soft/resource/v20220622/ServiceCluster.py +100 -0
- info2soft/resource/v20220622/Storage.py +1443 -0
- info2soft/resource/v20220622/StoragePool.py +166 -0
- info2soft/resource/v20220622/VirtualizationSupport.py +464 -0
- info2soft/resource/v20220622/__init__.py +25 -0
- info2soft/resource/v20230227/ActiveNode.py +361 -0
- info2soft/resource/v20230227/AppSystem.py +307 -0
- info2soft/resource/v20230227/AppType.py +75 -0
- info2soft/resource/v20230227/Authorization.py +86 -0
- info2soft/resource/v20230227/BizGroup.py +118 -0
- info2soft/resource/v20230227/BoxVm.py +100 -0
- info2soft/resource/v20230227/Cluster.py +180 -0
- info2soft/resource/v20230227/ContainerCluster.py +313 -0
- info2soft/resource/v20230227/CopyVolume.py +130 -0
- info2soft/resource/v20230227/DedupePool.py +101 -0
- info2soft/resource/v20230227/DtoHost.py +218 -0
- info2soft/resource/v20230227/DtoLifeManagement.py +91 -0
- info2soft/resource/v20230227/DtoStorage.py +128 -0
- info2soft/resource/v20230227/HdfsPlatform.py +102 -0
- info2soft/resource/v20230227/Monitor.py +92 -0
- info2soft/resource/v20230227/Node.py +518 -0
- info2soft/resource/v20230227/NodeDbConfig.py +47 -0
- info2soft/resource/v20230227/NodeProxy.py +76 -0
- info2soft/resource/v20230227/Npsvr.py +126 -0
- info2soft/resource/v20230227/ReCyle.py +60 -0
- info2soft/resource/v20230227/ServiceCluster.py +139 -0
- info2soft/resource/v20230227/Storage.py +1374 -0
- info2soft/resource/v20230227/StoragePool.py +180 -0
- info2soft/resource/v20230227/Ukey.py +153 -0
- info2soft/resource/v20230227/VirtualizationSupport.py +604 -0
- info2soft/resource/v20230227/__init__.py +46 -0
- info2soft/resource/v20240228/ActiveDbType.py +99 -0
- info2soft/resource/v20240228/ActiveNode.py +387 -0
- info2soft/resource/v20240228/AppSystem.py +1221 -0
- info2soft/resource/v20240228/AppType.py +80 -0
- info2soft/resource/v20240228/Authorization.py +86 -0
- info2soft/resource/v20240228/BizGroup.py +118 -0
- info2soft/resource/v20240228/BoxVm.py +119 -0
- info2soft/resource/v20240228/Cfs.py +133 -0
- info2soft/resource/v20240228/Cluster.py +206 -0
- info2soft/resource/v20240228/ContainerCluster.py +313 -0
- info2soft/resource/v20240228/CopyVolume.py +139 -0
- info2soft/resource/v20240228/DedupePool.py +126 -0
- info2soft/resource/v20240228/DtoHost.py +254 -0
- info2soft/resource/v20240228/DtoLifeManagement.py +96 -0
- info2soft/resource/v20240228/DtoStorage.py +128 -0
- info2soft/resource/v20240228/Filesystem.py +114 -0
- info2soft/resource/v20240228/HdfsPlatform.py +288 -0
- info2soft/resource/v20240228/LanfreeChannel.py +101 -0
- info2soft/resource/v20240228/Monitor.py +92 -0
- info2soft/resource/v20240228/Node.py +544 -0
- info2soft/resource/v20240228/NodeDbConfig.py +47 -0
- info2soft/resource/v20240228/NodeProxy.py +76 -0
- info2soft/resource/v20240228/Npsvr.py +164 -0
- info2soft/resource/v20240228/ReCyle.py +60 -0
- info2soft/resource/v20240228/ServiceCluster.py +140 -0
- info2soft/resource/v20240228/Storage.py +1452 -0
- info2soft/resource/v20240228/StoragePool.py +253 -0
- info2soft/resource/v20240228/StorageUnit.py +196 -0
- info2soft/resource/v20240228/Tape.py +487 -0
- info2soft/resource/v20240228/Ukey.py +248 -0
- info2soft/resource/v20240228/VirtualizationSupport.py +620 -0
- info2soft/resource/v20240228/__init__.py +52 -0
- info2soft/resource/v20240819/ActiveDbType.py +113 -0
- info2soft/resource/v20240819/ActiveNode.py +375 -0
- info2soft/resource/v20240819/ActiveNodeCluster.py +141 -0
- info2soft/resource/v20240819/ActiveNodeV3.py +348 -0
- info2soft/resource/v20240819/AppSystem.py +181 -0
- info2soft/resource/v20240819/AppType.py +75 -0
- info2soft/resource/v20240819/BigdataPlatform.py +194 -0
- info2soft/resource/v20240819/BizGroup.py +118 -0
- info2soft/resource/v20240819/BoxVm.py +100 -0
- info2soft/resource/v20240819/Cfs.py +128 -0
- info2soft/resource/v20240819/Cluster.py +206 -0
- info2soft/resource/v20240819/ContainerCluster.py +326 -0
- info2soft/resource/v20240819/CopyVolume.py +156 -0
- info2soft/resource/v20240819/DedupePool.py +114 -0
- info2soft/resource/v20240819/DiskPool.py +89 -0
- info2soft/resource/v20240819/DtoHost.py +270 -0
- info2soft/resource/v20240819/DtoLifeManagement.py +60 -0
- info2soft/resource/v20240819/DtoStorage.py +128 -0
- info2soft/resource/v20240819/DtoStorageBucket.py +74 -0
- info2soft/resource/v20240819/Filesystem.py +114 -0
- info2soft/resource/v20240819/HdfsPlatform.py +141 -0
- info2soft/resource/v20240819/LanfreeChannel.py +114 -0
- info2soft/resource/v20240819/Monitor.py +92 -0
- info2soft/resource/v20240819/Node.py +611 -0
- info2soft/resource/v20240819/NodeDbConfig.py +47 -0
- info2soft/resource/v20240819/NodeProxy.py +76 -0
- info2soft/resource/v20240819/Npsvr.py +130 -0
- info2soft/resource/v20240819/ReCyle.py +47 -0
- info2soft/resource/v20240819/ServiceCluster.py +139 -0
- info2soft/resource/v20240819/Storage.py +1530 -0
- info2soft/resource/v20240819/StoragePool.py +206 -0
- info2soft/resource/v20240819/StorageUnit.py +209 -0
- info2soft/resource/v20240819/Tape.py +505 -0
- info2soft/resource/v20240819/Ukey.py +218 -0
- info2soft/resource/v20240819/VirtualizationSupport.py +741 -0
- info2soft/resource/v20240819/__init__.py +70 -0
- info2soft/resource/v20250123/ActiveDbType.py +113 -0
- info2soft/resource/v20250123/ActiveNode.py +375 -0
- info2soft/resource/v20250123/ActiveNodeCluster.py +141 -0
- info2soft/resource/v20250123/ActiveNodeV3.py +348 -0
- info2soft/resource/v20250123/AppSystem.py +181 -0
- info2soft/resource/v20250123/AppType.py +75 -0
- info2soft/resource/v20250123/BigdataPlatform.py +194 -0
- info2soft/resource/v20250123/BizGroup.py +118 -0
- info2soft/resource/v20250123/BoxVm.py +100 -0
- info2soft/resource/v20250123/Cfs.py +128 -0
- info2soft/resource/v20250123/Cluster.py +245 -0
- info2soft/resource/v20250123/ContainerCluster.py +326 -0
- info2soft/resource/v20250123/CopyVolume.py +156 -0
- info2soft/resource/v20250123/DedupePool.py +114 -0
- info2soft/resource/v20250123/DiskPool.py +89 -0
- info2soft/resource/v20250123/DtoGateway.py +116 -0
- info2soft/resource/v20250123/DtoHost.py +270 -0
- info2soft/resource/v20250123/DtoLifeManagement.py +60 -0
- info2soft/resource/v20250123/DtoStorage.py +128 -0
- info2soft/resource/v20250123/DtoStorageBucket.py +89 -0
- info2soft/resource/v20250123/Filesystem.py +114 -0
- info2soft/resource/v20250123/HdfsPlatform.py +141 -0
- info2soft/resource/v20250123/LanfreeChannel.py +114 -0
- info2soft/resource/v20250123/Monitor.py +92 -0
- info2soft/resource/v20250123/Node.py +611 -0
- info2soft/resource/v20250123/NodeDbConfig.py +47 -0
- info2soft/resource/v20250123/NodeProxy.py +76 -0
- info2soft/resource/v20250123/Npsvr.py +130 -0
- info2soft/resource/v20250123/ReCyle.py +47 -0
- info2soft/resource/v20250123/ServiceCluster.py +139 -0
- info2soft/resource/v20250123/Storage.py +1530 -0
- info2soft/resource/v20250123/StoragePool.py +206 -0
- info2soft/resource/v20250123/StorageUnit.py +209 -0
- info2soft/resource/v20250123/Tape.py +505 -0
- info2soft/resource/v20250123/Ukey.py +218 -0
- info2soft/resource/v20250123/VirtualizationSupport.py +756 -0
- info2soft/resource/v20250123/__init__.py +72 -0
- info2soft/resource/v20250630/ActiveDbType.py +113 -0
- info2soft/resource/v20250630/ActiveNode.py +375 -0
- info2soft/resource/v20250630/ActiveNodeCluster.py +141 -0
- info2soft/resource/v20250630/ActiveNodeClusterV3.py +141 -0
- info2soft/resource/v20250630/ActiveNodeV3.py +361 -0
- info2soft/resource/v20250630/AppSystem.py +181 -0
- info2soft/resource/v20250630/AppType.py +75 -0
- info2soft/resource/v20250630/BigdataPlatform.py +194 -0
- info2soft/resource/v20250630/BizGroup.py +118 -0
- info2soft/resource/v20250630/BoxVm.py +100 -0
- info2soft/resource/v20250630/Cfs.py +128 -0
- info2soft/resource/v20250630/Cluster.py +335 -0
- info2soft/resource/v20250630/ContainerCluster.py +325 -0
- info2soft/resource/v20250630/CopyVolume.py +156 -0
- info2soft/resource/v20250630/DedupePool.py +114 -0
- info2soft/resource/v20250630/DiskPool.py +89 -0
- info2soft/resource/v20250630/DtoGateway.py +155 -0
- info2soft/resource/v20250630/DtoHost.py +270 -0
- info2soft/resource/v20250630/DtoLifeManagement.py +60 -0
- info2soft/resource/v20250630/DtoStorage.py +128 -0
- info2soft/resource/v20250630/DtoStorageBucket.py +89 -0
- info2soft/resource/v20250630/Filesystem.py +114 -0
- info2soft/resource/v20250630/HdfsPlatform.py +141 -0
- info2soft/resource/v20250630/LanfreeChannel.py +114 -0
- info2soft/resource/v20250630/Monitor.py +92 -0
- info2soft/resource/v20250630/Node.py +624 -0
- info2soft/resource/v20250630/NodeDbConfig.py +47 -0
- info2soft/resource/v20250630/NodeProxy.py +76 -0
- info2soft/resource/v20250630/NodeV3.py +663 -0
- info2soft/resource/v20250630/Npsvr.py +130 -0
- info2soft/resource/v20250630/ReCyle.py +47 -0
- info2soft/resource/v20250630/ServiceCluster.py +139 -0
- info2soft/resource/v20250630/Storage.py +1531 -0
- info2soft/resource/v20250630/StoragePool.py +206 -0
- info2soft/resource/v20250630/StorageUnit.py +209 -0
- info2soft/resource/v20250630/Tape.py +505 -0
- info2soft/resource/v20250630/Ukey.py +218 -0
- info2soft/resource/v20250630/VirtualizationSupport.py +756 -0
- info2soft/resource/v20250630/__init__.py +76 -0
- info2soft/retentionPolicy/__init__.py +0 -0
- info2soft/retentionPolicy/v20240228/RetentionPolicy.py +33 -0
- info2soft/retentionPolicy/v20240228/__init__.py +2 -0
- info2soft/retentionPolicy/v20240819/RetentionPolicy.py +33 -0
- info2soft/retentionPolicy/v20240819/__init__.py +2 -0
- info2soft/retentionPolicy/v20250123/RetentionPolicy.py +33 -0
- info2soft/retentionPolicy/v20250123/__init__.py +2 -0
- info2soft/retentionPolicy/v20250630/RetentionPolicy.py +33 -0
- info2soft/retentionPolicy/v20250630/__init__.py +2 -0
- info2soft/ruleVersion/__init__.py +0 -0
- info2soft/ruleVersion/v20240228/RuleVersion.py +34 -0
- info2soft/ruleVersion/v20240228/__init__.py +2 -0
- info2soft/ruleVersion/v20240819/RuleVersion.py +47 -0
- info2soft/ruleVersion/v20240819/__init__.py +2 -0
- info2soft/ruleVersion/v20250123/RuleVersion.py +47 -0
- info2soft/ruleVersion/v20250123/__init__.py +2 -0
- info2soft/ruleVersion/v20250630/RuleVersion.py +47 -0
- info2soft/ruleVersion/v20250630/__init__.py +2 -0
- info2soft/snapshotTask/__init__.py +0 -0
- info2soft/snapshotTask/v20240819/SnapshotTask.py +157 -0
- info2soft/snapshotTask/v20240819/__init__.py +2 -0
- info2soft/snapshotTask/v20250123/SnapshotTask.py +157 -0
- info2soft/snapshotTask/v20250123/__init__.py +2 -0
- info2soft/snapshotTask/v20250630/SnapshotTask.py +157 -0
- info2soft/snapshotTask/v20250630/__init__.py +2 -0
- info2soft/stoCluster/__init__.py +0 -0
- info2soft/stoCluster/v20250630/StoCluster.py +89 -0
- info2soft/stoCluster/v20250630/__init__.py +2 -0
- info2soft/storage_cdm/FfoMount.py +76 -0
- info2soft/storage_cdm/MountTask.py +151 -0
- info2soft/storage_cdm/SnapshotTask.py +173 -0
- info2soft/storage_cdm/__init__.py +6 -0
- info2soft/storage_cdm/v20220622/FfoMount.py +76 -0
- info2soft/storage_cdm/v20220622/MountTask.py +151 -0
- info2soft/storage_cdm/v20220622/SnapshotTask.py +173 -0
- info2soft/storage_cdm/v20220622/__init__.py +6 -0
- info2soft/storage_cdm/v20230227/MountTask.py +113 -0
- info2soft/storage_cdm/v20230227/SnapshotTask.py +118 -0
- info2soft/storage_cdm/v20230227/__init__.py +3 -0
- info2soft/storage_cdm/v20240228/MountTask.py +151 -0
- info2soft/storage_cdm/v20240228/SnapshotTask.py +175 -0
- info2soft/storage_cdm/v20240228/__init__.py +3 -0
- info2soft/stream/__init__.py +0 -0
- info2soft/stream/v20240228/ObjCmp.py +21 -0
- info2soft/stream/v20240228/OracleBkTakeover.py +74 -0
- info2soft/stream/v20240228/OracleReverse.py +21 -0
- info2soft/stream/v20240228/SyncRule.py +331 -0
- info2soft/stream/v20240228/TbCmp.py +97 -0
- info2soft/stream/v20240228/__init__.py +10 -0
- info2soft/stream/v20240819/ObjCmp.py +99 -0
- info2soft/stream/v20240819/OracleBkTakeover.py +47 -0
- info2soft/stream/v20240819/OracleReverse.py +21 -0
- info2soft/stream/v20240819/RuleMonitor.py +137 -0
- info2soft/stream/v20240819/SyncRule.py +322 -0
- info2soft/stream/v20240819/TbCmp.py +125 -0
- info2soft/stream/v20240819/TrafficReport.py +47 -0
- info2soft/stream/v20240819/__init__.py +14 -0
- info2soft/stream/v20250123/ObjCmp.py +99 -0
- info2soft/stream/v20250123/OracleBkTakeover.py +47 -0
- info2soft/stream/v20250123/OracleReverse.py +21 -0
- info2soft/stream/v20250123/RuleMonitor.py +137 -0
- info2soft/stream/v20250123/SyncRule.py +322 -0
- info2soft/stream/v20250123/TbCmp.py +125 -0
- info2soft/stream/v20250123/TrafficReport.py +47 -0
- info2soft/stream/v20250123/__init__.py +14 -0
- info2soft/stream/v20250630/MaskAlgo.py +61 -0
- info2soft/stream/v20250630/MaskRule.py +140 -0
- info2soft/stream/v20250630/MaskSensType.py +50 -0
- info2soft/stream/v20250630/ObjCmp.py +112 -0
- info2soft/stream/v20250630/OracleBkTakeover.py +85 -0
- info2soft/stream/v20250630/OracleReverse.py +21 -0
- info2soft/stream/v20250630/RuleMonitor.py +137 -0
- info2soft/stream/v20250630/Script.py +89 -0
- info2soft/stream/v20250630/ScriptRule.py +115 -0
- info2soft/stream/v20250630/SensCheck.py +143 -0
- info2soft/stream/v20250630/SensMap.py +129 -0
- info2soft/stream/v20250630/SyncRule.py +698 -0
- info2soft/stream/v20250630/TbCmp.py +151 -0
- info2soft/stream/v20250630/TrafficReport.py +47 -0
- info2soft/stream/v20250630/__init__.py +28 -0
- info2soft/system/__init__.py +1 -0
- info2soft/system/test/__init__.py +0 -0
- info2soft/system/test/v20190104/LicTest.py +215 -0
- info2soft/system/test/v20190104/UserTest.py +152 -0
- info2soft/system/test/v20190104/__init__.py +0 -0
- info2soft/system/test/v20190806/UserTest.py +92 -0
- info2soft/system/test/v20190806/__init__.py +0 -0
- info2soft/system/test/v20220622/CredentialTest.py +129 -0
- info2soft/system/test/v20220622/LicTest.py +215 -0
- info2soft/system/test/v20220622/UserTest.py +92 -0
- info2soft/system/test/v20220622/__init__.py +0 -0
- info2soft/system/v20181227/Lic.py +204 -0
- info2soft/system/v20181227/User.py +203 -0
- info2soft/system/v20181227/__init__.py +0 -0
- info2soft/system/v20200729/Credential.py +102 -0
- info2soft/system/v20200729/__init__.py +2 -0
- info2soft/system/v20220622/Credential.py +102 -0
- info2soft/system/v20220622/Lic.py +204 -0
- info2soft/system/v20220622/User.py +203 -0
- info2soft/system/v20220622/__init__.py +5 -0
- info2soft/system/v20240819/Lic.py +189 -0
- info2soft/system/v20240819/__init__.py +2 -0
- info2soft/system/v20250123/Lic.py +189 -0
- info2soft/system/v20250123/__init__.py +2 -0
- info2soft/system/v20250630/Lic.py +189 -0
- info2soft/system/v20250630/__init__.py +2 -0
- info2soft/tape/Tape.py +74 -0
- info2soft/tape/__init__.py +2 -0
- info2soft/tape/v20220622/Tape.py +74 -0
- info2soft/tape/v20220622/__init__.py +2 -0
- info2soft/tape/v20230227/Tape.py +74 -0
- info2soft/tape/v20230227/__init__.py +2 -0
- info2soft/tape/v20240228/Tape.py +74 -0
- info2soft/tape/v20240228/__init__.py +2 -0
- info2soft/tape/v20240819/TapeRecovery.py +74 -0
- info2soft/tape/v20240819/__init__.py +2 -0
- info2soft/tape/v20250123/TapeRecovery.py +74 -0
- info2soft/tape/v20250123/__init__.py +2 -0
- info2soft/tape/v20250630/TapeRecovery.py +74 -0
- info2soft/tape/v20250630/__init__.py +2 -0
- info2soft/tape_copy/__init__.py +0 -0
- info2soft/tape_copy/v20230227/TapeCopy.py +74 -0
- info2soft/tape_copy/v20230227/__init__.py +2 -0
- info2soft/tape_copy/v20240228/TapeCopy.py +74 -0
- info2soft/tape_copy/v20240228/__init__.py +2 -0
- info2soft/taskCenter/__init__.py +0 -0
- info2soft/taskCenter/v20240819/BatchTask.py +73 -0
- info2soft/taskCenter/v20240819/__init__.py +2 -0
- info2soft/taskCenter/v20250123/BatchTask.py +73 -0
- info2soft/taskCenter/v20250123/__init__.py +2 -0
- info2soft/taskCenter/v20250630/BatchTask.py +73 -0
- info2soft/taskCenter/v20250630/__init__.py +2 -0
- info2soft/thirdParty/__init__.py +0 -0
- info2soft/thirdParty/v20240819/ThirdParty.py +21 -0
- info2soft/thirdParty/v20240819/__init__.py +2 -0
- info2soft/thirdParty/v20250123/ThirdParty.py +21 -0
- info2soft/thirdParty/v20250123/__init__.py +2 -0
- info2soft/thirdParty/v20250630/ThirdParty.py +21 -0
- info2soft/thirdParty/v20250630/__init__.py +2 -0
- info2soft/timing/TimingBackup.py +239 -0
- info2soft/timing/TimingRecovery.py +369 -0
- info2soft/timing/__init__.py +0 -0
- info2soft/timing/test/TimingBackupTest.py +451 -0
- info2soft/timing/test/TimingRecoveryTest.py +478 -0
- info2soft/timing/test/__init__.py +0 -0
- info2soft/timing/test/v20220622/TimingBackupTest.py +451 -0
- info2soft/timing/test/v20220622/TimingRecoveryTest.py +478 -0
- info2soft/timing/test/v20220622/__init__.py +0 -0
- info2soft/timing/v20220622/TimingBackup.py +239 -0
- info2soft/timing/v20220622/TimingRecovery.py +369 -0
- info2soft/timing/v20220622/__init__.py +2 -0
- info2soft/timing/v20230227/TimingBackup.py +626 -0
- info2soft/timing/v20230227/__init__.py +2 -0
- info2soft/timing/v20240228/TimingBackup.py +664 -0
- info2soft/timing/v20240228/__init__.py +2 -0
- info2soft/timing/v20240819/TimingBackup.py +361 -0
- info2soft/timing/v20240819/TimingRecovery.py +376 -0
- info2soft/timing/v20240819/__init__.py +4 -0
- info2soft/timing/v20250123/TimingBackup.py +361 -0
- info2soft/timing/v20250123/TimingRecovery.py +376 -0
- info2soft/timing/v20250123/__init__.py +4 -0
- info2soft/timing/v20250630/TimingBackup.py +361 -0
- info2soft/timing/v20250630/TimingRecovery.py +376 -0
- info2soft/timing/v20250630/__init__.py +4 -0
- info2soft/tools/__init__.py +0 -0
- info2soft/tools/test/DiagnoseTest.py +62 -0
- info2soft/tools/test/__init__.py +0 -0
- info2soft/tools/test/v20190104/CompareTest.py +241 -0
- info2soft/tools/test/v20190104/DiagnoseTest.py +73 -0
- info2soft/tools/test/v20190104/__init__.py +0 -0
- info2soft/tools/test/v20220622/CompareTest.py +241 -0
- info2soft/tools/test/v20220622/DiagnoseTest.py +62 -0
- info2soft/tools/test/v20220622/__init__.py +0 -0
- info2soft/tools/v20181227/Compare.py +177 -0
- info2soft/tools/v20181227/Diagnose.py +60 -0
- info2soft/tools/v20181227/__init__.py +0 -0
- info2soft/tools/v20220622/Compare.py +177 -0
- info2soft/tools/v20220622/Diagnose.py +60 -0
- info2soft/tools/v20220622/__init__.py +2 -0
- info2soft/tools/v20230227/Compare.py +129 -0
- info2soft/tools/v20230227/__init__.py +2 -0
- info2soft/tools/v20240228/Compare.py +129 -0
- info2soft/tools/v20240228/__init__.py +2 -0
- info2soft/tools/v20240819/Compare.py +156 -0
- info2soft/tools/v20240819/__init__.py +2 -0
- info2soft/tools/v20250123/Compare.py +156 -0
- info2soft/tools/v20250123/__init__.py +2 -0
- info2soft/tools/v20250630/Compare.py +156 -0
- info2soft/tools/v20250630/__init__.py +2 -0
- info2soft/upmonitor/__init__.py +0 -0
- info2soft/upmonitor/test/UpMonitor.py +153 -0
- info2soft/upmonitor/test/__init__.py +0 -0
- info2soft/upmonitor/test/v20220622/UpMonitor.py +153 -0
- info2soft/upmonitor/test/v20220622/__init__.py +0 -0
- info2soft/upmonitor/v20190805/UpMonitor.py +134 -0
- info2soft/upmonitor/v20190805/__init__.py +0 -0
- info2soft/upmonitor/v20220622/UpMonitor.py +134 -0
- info2soft/upmonitor/v20220622/__init__.py +1 -0
- info2soft/upmonitor/v20230227/UpMonitor.py +128 -0
- info2soft/upmonitor/v20230227/__init__.py +2 -0
- info2soft/upmonitor/v20240228/UpMonitor.py +128 -0
- info2soft/upmonitor/v20240228/__init__.py +2 -0
- info2soft/upmonitor/v20240819/UpMonitor.py +245 -0
- info2soft/upmonitor/v20240819/__init__.py +2 -0
- info2soft/upmonitor/v20250123/UpMonitor.py +245 -0
- info2soft/upmonitor/v20250123/__init__.py +2 -0
- info2soft/upmonitor/v20250630/UpMonitor.py +245 -0
- info2soft/upmonitor/v20250630/__init__.py +2 -0
- info2soft/vmClone/__init__.py +0 -0
- info2soft/vmClone/v20240819/VmCloneRule.py +100 -0
- info2soft/vmClone/v20240819/VmCloneVm.py +102 -0
- info2soft/vmClone/v20240819/__init__.py +4 -0
- info2soft/vmClone/v20250123/VmCloneRule.py +100 -0
- info2soft/vmClone/v20250123/VmCloneVm.py +102 -0
- info2soft/vmClone/v20250123/__init__.py +4 -0
- info2soft/vmClone/v20250630/VmCloneRule.py +100 -0
- info2soft/vmClone/v20250630/VmCloneVm.py +102 -0
- info2soft/vmClone/v20250630/__init__.py +4 -0
- info2soft/vp/VirtualizationSupport.py +1066 -0
- info2soft/vp/__init__.py +0 -0
- info2soft/vp/test/VirtualizationSupportTest.py +1341 -0
- info2soft/vp/test/__init__.py +0 -0
- info2soft/vp/test/v20220622/VirtualizationSupportTest.py +1341 -0
- info2soft/vp/test/v20220622/__init__.py +0 -0
- info2soft/vp/v20220622/VirtualizationSupport.py +1066 -0
- info2soft/vp/v20220622/__init__.py +1 -0
- info2soft/vp/v20230227/VirtualizationSupport.py +570 -0
- info2soft/vp/v20230227/__init__.py +2 -0
- info2soft/vp/v20240228/VirtualizationSupport.py +570 -0
- info2soft/vp/v20240228/__init__.py +2 -0
- info2soft/vp/v20240819/VirtualizationSupport.py +876 -0
- info2soft/vp/v20240819/__init__.py +2 -0
- info2soft/vp/v20250123/VirtualizationSupport.py +876 -0
- info2soft/vp/v20250123/__init__.py +2 -0
- info2soft/vp/v20250630/VirtualizationSupport.py +876 -0
- info2soft/vp/v20250630/__init__.py +2 -0
- info2soft/vpBackupRule/__init__.py +0 -0
- info2soft/vpBackupRule/v20240819/VpBackupRule.py +115 -0
- info2soft/vpBackupRule/v20240819/__init__.py +2 -0
- info2soft/vpBackupRule/v20250123/VpBackupRule.py +115 -0
- info2soft/vpBackupRule/v20250123/__init__.py +2 -0
- info2soft/vpBackupRule/v20250630/VpBackupRule.py +127 -0
- info2soft/vpBackupRule/v20250630/__init__.py +2 -0
- info2soft/vpRecoveryRule/__init__.py +0 -0
- info2soft/vpRecoveryRule/v20240819/VpRecoveryRule.py +102 -0
- info2soft/vpRecoveryRule/v20240819/__init__.py +2 -0
- info2soft/vpRecoveryRule/v20250123/VpRecoveryRule.py +102 -0
- info2soft/vpRecoveryRule/v20250123/__init__.py +2 -0
- info2soft/vpRecoveryRule/v20250630/VpRecoveryRule.py +102 -0
- info2soft/vpRecoveryRule/v20250630/__init__.py +2 -0
|
@@ -0,0 +1,1734 @@
|
|
|
1
|
+
|
|
2
|
+
# -*- coding: utf-8 -*-
|
|
3
|
+
# flake8: noqa
|
|
4
|
+
import sys
|
|
5
|
+
sys.path.append(r'/')
|
|
6
|
+
|
|
7
|
+
import unittest
|
|
8
|
+
# from info2soft import Storage
|
|
9
|
+
from info2soft.resource.v20220622.Storage import Storage
|
|
10
|
+
from info2soft import Auth
|
|
11
|
+
from info2soft.fileWriter import write
|
|
12
|
+
from info2soft.compat import is_py2, is_py3
|
|
13
|
+
|
|
14
|
+
if is_py2:
|
|
15
|
+
import sys
|
|
16
|
+
import StringIO
|
|
17
|
+
import urllib
|
|
18
|
+
|
|
19
|
+
# reload(sys)
|
|
20
|
+
sys.setdefaultencoding('utf-8')
|
|
21
|
+
StringIO = StringIO.StringIO
|
|
22
|
+
urlopen = urllib.urlopen
|
|
23
|
+
if is_py3:
|
|
24
|
+
import io
|
|
25
|
+
import urllib
|
|
26
|
+
|
|
27
|
+
StringIO = io.StringIO
|
|
28
|
+
urlopen = urllib.request.urlopen
|
|
29
|
+
|
|
30
|
+
username = 'admin'
|
|
31
|
+
pwd = 'Info1234'
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
class StorageTestCase(unittest.TestCase):
|
|
35
|
+
|
|
36
|
+
def testCreateStorageConfig(self):
|
|
37
|
+
a = Auth(username, pwd)
|
|
38
|
+
body = {
|
|
39
|
+
'name': '2.85',
|
|
40
|
+
'type': 0,
|
|
41
|
+
'bk_uuid': '7E36A0B7-7C9A-D310-645A-F9FF7972F13F',
|
|
42
|
+
'config': {
|
|
43
|
+
'device_info': [
|
|
44
|
+
{
|
|
45
|
+
'dev_mount': 'C:\\',
|
|
46
|
+
'alarms': [
|
|
47
|
+
'80',
|
|
48
|
+
'90',
|
|
49
|
+
]
|
|
50
|
+
}
|
|
51
|
+
],
|
|
52
|
+
'biz_grp_list': '',
|
|
53
|
+
'backstore': [
|
|
54
|
+
{
|
|
55
|
+
'name': '',
|
|
56
|
+
'path': '',
|
|
57
|
+
'capacity': '',
|
|
58
|
+
'target_name': '',
|
|
59
|
+
}
|
|
60
|
+
],
|
|
61
|
+
'db_save_day': 2,
|
|
62
|
+
'mon_storage': 1
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
storage = Storage(a)
|
|
67
|
+
r = storage.createStorageConfig(body)
|
|
68
|
+
print(r[0])
|
|
69
|
+
assert r[0]['ret'] == 200
|
|
70
|
+
write(r[0], 'Storage', 'createStorageConfig', body)
|
|
71
|
+
|
|
72
|
+
def testModifyStorageConfig(self):
|
|
73
|
+
a = Auth(username, pwd)
|
|
74
|
+
body = {
|
|
75
|
+
'name': 'test',
|
|
76
|
+
'type': 0,
|
|
77
|
+
'bk_uuid': '7E36A0B7-7C9A-D310-645A-F9FF7972F13F',
|
|
78
|
+
'config': {
|
|
79
|
+
'mon_storage': 1,
|
|
80
|
+
'db_save_day': 30,
|
|
81
|
+
'device_info': [
|
|
82
|
+
{
|
|
83
|
+
'dev_used_percent': 28,
|
|
84
|
+
'dev_name': '/dev/mapper/centos-root',
|
|
85
|
+
'dev_mount': '/',
|
|
86
|
+
'dev_total': '36.97 GB',
|
|
87
|
+
'dev_free': '26.72 GB',
|
|
88
|
+
'dev_type': 'block',
|
|
89
|
+
'dev_enb_compress': 'N',
|
|
90
|
+
'dev_enb_wight': 'N',
|
|
91
|
+
'dev_save_rate': '0%',
|
|
92
|
+
'node_name': 'MTQx',
|
|
93
|
+
'node_role': '3',
|
|
94
|
+
'dev_used_size': '11006136320',
|
|
95
|
+
'alarms': [
|
|
96
|
+
'90',
|
|
97
|
+
'100',
|
|
98
|
+
'70', ],
|
|
99
|
+
'disabled': 0,
|
|
100
|
+
'name': '/',
|
|
101
|
+
},
|
|
102
|
+
{
|
|
103
|
+
'dev_used_percent': 29,
|
|
104
|
+
'dev_name': '/dev/sda1',
|
|
105
|
+
'dev_mount': '/boot',
|
|
106
|
+
'dev_total': '0.99 GB',
|
|
107
|
+
'dev_free': '871.58 MB',
|
|
108
|
+
'dev_type': 'block',
|
|
109
|
+
'dev_enb_compress': 'N',
|
|
110
|
+
'dev_enb_wight': 'N',
|
|
111
|
+
'dev_save_rate': '0%',
|
|
112
|
+
'node_name': 'MTQx',
|
|
113
|
+
'node_role': '3',
|
|
114
|
+
'dev_used_size': '149336064',
|
|
115
|
+
'alarms': [
|
|
116
|
+
'90',
|
|
117
|
+
'100',
|
|
118
|
+
'70', ],
|
|
119
|
+
'disabled': 0,
|
|
120
|
+
'name': '/boot',
|
|
121
|
+
},
|
|
122
|
+
],
|
|
123
|
+
'biz_grp_list': '',
|
|
124
|
+
},
|
|
125
|
+
'random_str': '0289FA79-85C3-5D0B-2835-A454EF4A4237',
|
|
126
|
+
}
|
|
127
|
+
uuid = "22D03E06-94D0-5E2C-336E-4BEEC2D28EC4"
|
|
128
|
+
storage = Storage(a)
|
|
129
|
+
r = storage.modifyStorageConfig(body, uuid)
|
|
130
|
+
print(r[0])
|
|
131
|
+
assert r[0]['ret'] == 200
|
|
132
|
+
write(r[0], 'Storage', 'modifyStorageConfig', body)
|
|
133
|
+
|
|
134
|
+
def testDescribeStorageConfig(self):
|
|
135
|
+
a = Auth(username, pwd)
|
|
136
|
+
body = {
|
|
137
|
+
}
|
|
138
|
+
uuid = "22D03E06-94D0-5E2C-336E-4BEEC2D28EC4"
|
|
139
|
+
storage = Storage(a)
|
|
140
|
+
r = storage.describeStorageConfig(body, uuid)
|
|
141
|
+
print(r[0])
|
|
142
|
+
assert r[0]['ret'] == 200
|
|
143
|
+
write(r[0], 'Storage', 'describeStorageConfig', body)
|
|
144
|
+
|
|
145
|
+
def testListStorageConfig(self):
|
|
146
|
+
a = Auth(username, pwd)
|
|
147
|
+
body = {
|
|
148
|
+
'search_value': '118',
|
|
149
|
+
'search_field': 'bk_node_name',
|
|
150
|
+
'limit': 1,
|
|
151
|
+
'page': 1,
|
|
152
|
+
'direction': '',
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
storage = Storage(a)
|
|
156
|
+
r = storage.listStorageConfig(body)
|
|
157
|
+
print(r[0])
|
|
158
|
+
assert r[0]['ret'] == 200
|
|
159
|
+
write(r[0], 'Storage', 'listStorageConfig', body)
|
|
160
|
+
|
|
161
|
+
def testDeleteStorageConfig(self):
|
|
162
|
+
a = Auth(username, pwd)
|
|
163
|
+
body = {
|
|
164
|
+
'uuids': [],
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
storage = Storage(a)
|
|
168
|
+
r = storage.deleteStorageConfig(body)
|
|
169
|
+
print(r[0])
|
|
170
|
+
assert r[0]['ret'] == 200
|
|
171
|
+
write(r[0], 'Storage', 'deleteStorageConfig', body)
|
|
172
|
+
|
|
173
|
+
def testListStorageStatus(self):
|
|
174
|
+
a = Auth(username, pwd)
|
|
175
|
+
body = {
|
|
176
|
+
'uuids': [
|
|
177
|
+
'FBDDEBDE-41CC-175B-9D84-4D9693EEB6C6',
|
|
178
|
+
'9f2e44De-5F21-faeb-A080-8232Df2e5A4E',],
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
storage = Storage(a)
|
|
182
|
+
r = storage.listStorageStatus(body)
|
|
183
|
+
print(r[0])
|
|
184
|
+
assert r[0]['ret'] == 200
|
|
185
|
+
write(r[0], 'Storage', 'listStorageStatus', body)
|
|
186
|
+
|
|
187
|
+
def testUploadDeviceInfo(self):
|
|
188
|
+
a = Auth(username, pwd)
|
|
189
|
+
body = {
|
|
190
|
+
'node_uuid': '67E33CDB-D75B-15B3-367D-50C764F5A26F',
|
|
191
|
+
'device_info': [{
|
|
192
|
+
'dev_mount': 'C:\\',
|
|
193
|
+
'dev_total': '42580570112',
|
|
194
|
+
'dev_free': '9151045632',
|
|
195
|
+
'dev_used_percent': 20, }, ],
|
|
196
|
+
'Content-Type': 'application/json',
|
|
197
|
+
}
|
|
198
|
+
|
|
199
|
+
storage = Storage(a)
|
|
200
|
+
r = storage.uploadDeviceInfo(body)
|
|
201
|
+
print(r[0])
|
|
202
|
+
assert r[0]['ret'] == 200
|
|
203
|
+
write(r[0], 'Storage', 'uploadDeviceInfo', body)
|
|
204
|
+
|
|
205
|
+
def testDescribeStorageDeviceInfo(self):
|
|
206
|
+
a = Auth(username, pwd)
|
|
207
|
+
body = {
|
|
208
|
+
'node_uuid': '7E36A0B7-7C9A-D310-645A-F9FF7972F13F',
|
|
209
|
+
}
|
|
210
|
+
|
|
211
|
+
storage = Storage(a)
|
|
212
|
+
r = storage.describeStorageDeviceInfo(body)
|
|
213
|
+
print(r[0])
|
|
214
|
+
assert r[0]['ret'] == 200
|
|
215
|
+
write(r[0], 'Storage', 'describeStorageDeviceInfo', body)
|
|
216
|
+
|
|
217
|
+
def testDescribeStorageHistoryData(self):
|
|
218
|
+
a = Auth(username, pwd)
|
|
219
|
+
body = {
|
|
220
|
+
'start': 1565076908,
|
|
221
|
+
}
|
|
222
|
+
uuid = "22D03E06-94D0-5E2C-336E-4BEEC2D28EC4"
|
|
223
|
+
storage = Storage(a)
|
|
224
|
+
r = storage.describeStorageHistoryData(body, uuid)
|
|
225
|
+
print(r[0])
|
|
226
|
+
assert r[0]['ret'] == 200
|
|
227
|
+
write(r[0], 'Storage', 'describeStorageHistoryData', body)
|
|
228
|
+
|
|
229
|
+
def testListStorageInfo(self):
|
|
230
|
+
a = Auth(username, pwd)
|
|
231
|
+
body = {
|
|
232
|
+
'node_uuid': '67E33CDB-D75B-15B3-367D-50C764F5A26F',
|
|
233
|
+
'rep_uuid': 'F97B3FD5-4D5D-41EE-22A9-740A74E1E13C',
|
|
234
|
+
'byte_format': 1,
|
|
235
|
+
}
|
|
236
|
+
|
|
237
|
+
storage = Storage(a)
|
|
238
|
+
r = storage.listStorageInfo(body)
|
|
239
|
+
print(r[0])
|
|
240
|
+
assert r[0]['ret'] == 200
|
|
241
|
+
write(r[0], 'Storage', 'listStorageInfo', body)
|
|
242
|
+
|
|
243
|
+
def testListAvailableNode(self):
|
|
244
|
+
a = Auth(username, pwd)
|
|
245
|
+
body = {
|
|
246
|
+
}
|
|
247
|
+
|
|
248
|
+
storage = Storage(a)
|
|
249
|
+
r = storage.listAvailableNode(body)
|
|
250
|
+
print(r[0])
|
|
251
|
+
assert r[0]['ret'] == 200
|
|
252
|
+
write(r[0], 'Storage', 'listAvailableNode', body)
|
|
253
|
+
|
|
254
|
+
def testSwitchStorageQuota(self):
|
|
255
|
+
a = Auth(username, pwd)
|
|
256
|
+
body = {
|
|
257
|
+
'quota_switch': 1,
|
|
258
|
+
'random_str': 'A5AE270D-B6E5-A3C4-14B4-CAC997B87AB2',
|
|
259
|
+
}
|
|
260
|
+
uuid = "22D03E06-94D0-5E2C-336E-4BEEC2D28EC4"
|
|
261
|
+
storage = Storage(a)
|
|
262
|
+
r = storage.switchStorageQuota(body, uuid)
|
|
263
|
+
print(r[0])
|
|
264
|
+
assert r[0]['ret'] == 200
|
|
265
|
+
write(r[0], 'Storage', 'switchStorageQuota', body)
|
|
266
|
+
|
|
267
|
+
def testCreateStorageQuota(self):
|
|
268
|
+
a = Auth(username, pwd)
|
|
269
|
+
body = {
|
|
270
|
+
'zpool_name': '2.85',
|
|
271
|
+
'zfs_name': 'xxx',
|
|
272
|
+
'zfs_mount_path': '',
|
|
273
|
+
'zfs_quota': 1,
|
|
274
|
+
'user_uuid': '',
|
|
275
|
+
}
|
|
276
|
+
uuid = "22D03E06-94D0-5E2C-336E-4BEEC2D28EC4"
|
|
277
|
+
storage = Storage(a)
|
|
278
|
+
r = storage.createStorageQuota(body, uuid)
|
|
279
|
+
print(r[0])
|
|
280
|
+
assert r[0]['ret'] == 200
|
|
281
|
+
write(r[0], 'Storage', 'createStorageQuota', body)
|
|
282
|
+
|
|
283
|
+
def testModifyStorageQuota(self):
|
|
284
|
+
a = Auth(username, pwd)
|
|
285
|
+
body = {
|
|
286
|
+
'zpool_name': '2.85',
|
|
287
|
+
'zfs_name': 'xxx',
|
|
288
|
+
'zfs_mount_path': '',
|
|
289
|
+
'zfs_quota': 1,
|
|
290
|
+
'random_str': '',
|
|
291
|
+
}
|
|
292
|
+
uuid = "22D03E06-94D0-5E2C-336E-4BEEC2D28EC4"
|
|
293
|
+
quota_uuid = "22D03E06-94D0-5E2C-336E-4BEEC2D28EC5"
|
|
294
|
+
storage = Storage(a)
|
|
295
|
+
r = storage.modifyStorageQuota(body, uuid, quota_uuid)
|
|
296
|
+
print(r[0])
|
|
297
|
+
assert r[0]['ret'] == 200
|
|
298
|
+
write(r[0], 'Storage', 'modifyStorageQuota', body)
|
|
299
|
+
|
|
300
|
+
def testListStorageQuota(self):
|
|
301
|
+
a = Auth(username, pwd)
|
|
302
|
+
body = {
|
|
303
|
+
}
|
|
304
|
+
uuid = "22D03E06-94D0-5E2C-336E-4BEEC2D28EC4"
|
|
305
|
+
storage = Storage(a)
|
|
306
|
+
r = storage.listStorageQuota(body, uuid)
|
|
307
|
+
print(r[0])
|
|
308
|
+
assert r[0]['ret'] == 200
|
|
309
|
+
write(r[0], 'Storage', 'listStorageQuota', body)
|
|
310
|
+
|
|
311
|
+
def testDeleteStorageQuota(self):
|
|
312
|
+
a = Auth(username, pwd)
|
|
313
|
+
body = {
|
|
314
|
+
'quota_uuids': [],
|
|
315
|
+
}
|
|
316
|
+
uuid = "22D03E06-94D0-5E2C-336E-4BEEC2D28EC4"
|
|
317
|
+
storage = Storage(a)
|
|
318
|
+
r = storage.deleteStorageQuota(body, uuid)
|
|
319
|
+
print(r[0])
|
|
320
|
+
assert r[0]['ret'] == 200
|
|
321
|
+
write(r[0], 'Storage', 'deleteStorageQuota', body)
|
|
322
|
+
|
|
323
|
+
def testListDevice(self):
|
|
324
|
+
a = Auth(username, pwd)
|
|
325
|
+
body = {
|
|
326
|
+
'node_uuid': '',
|
|
327
|
+
}
|
|
328
|
+
|
|
329
|
+
storage = Storage(a)
|
|
330
|
+
r = storage.listDevice(body)
|
|
331
|
+
print(r[0])
|
|
332
|
+
assert r[0]['ret'] == 200
|
|
333
|
+
write(r[0], 'Storage', 'listDevice', body)
|
|
334
|
+
|
|
335
|
+
def testListAvailableDevice(self):
|
|
336
|
+
a = Auth(username, pwd)
|
|
337
|
+
body = {
|
|
338
|
+
'node_uuid': '',
|
|
339
|
+
'config_addr': '',
|
|
340
|
+
}
|
|
341
|
+
|
|
342
|
+
storage = Storage(a)
|
|
343
|
+
r = storage.listAvailableDevice(body)
|
|
344
|
+
print(r[0])
|
|
345
|
+
assert r[0]['ret'] == 200
|
|
346
|
+
write(r[0], 'Storage', 'listAvailableDevice', body)
|
|
347
|
+
|
|
348
|
+
def testCreatePool(self):
|
|
349
|
+
a = Auth(username, pwd)
|
|
350
|
+
body = {
|
|
351
|
+
'node_uuid': '',
|
|
352
|
+
'count': 1,
|
|
353
|
+
'dev_list': [],
|
|
354
|
+
'pool_name': '',
|
|
355
|
+
}
|
|
356
|
+
|
|
357
|
+
storage = Storage(a)
|
|
358
|
+
r = storage.createPool(body)
|
|
359
|
+
print(r[0])
|
|
360
|
+
assert r[0]['ret'] == 200
|
|
361
|
+
write(r[0], 'Storage', 'createPool', body)
|
|
362
|
+
|
|
363
|
+
def testExpandPool(self):
|
|
364
|
+
a = Auth(username, pwd)
|
|
365
|
+
body = {
|
|
366
|
+
'node_uuid': '',
|
|
367
|
+
'count': 1,
|
|
368
|
+
'dev_list': [],
|
|
369
|
+
'pool_name': '',
|
|
370
|
+
}
|
|
371
|
+
|
|
372
|
+
storage = Storage(a)
|
|
373
|
+
r = storage.expandPool(body)
|
|
374
|
+
print(r[0])
|
|
375
|
+
assert r[0]['ret'] == 200
|
|
376
|
+
write(r[0], 'Storage', 'expandPool', body)
|
|
377
|
+
|
|
378
|
+
def testDeletePool(self):
|
|
379
|
+
a = Auth(username, pwd)
|
|
380
|
+
body = {
|
|
381
|
+
'node_uuid': '',
|
|
382
|
+
'pool_name': '',
|
|
383
|
+
}
|
|
384
|
+
|
|
385
|
+
storage = Storage(a)
|
|
386
|
+
r = storage.deletePool(body)
|
|
387
|
+
print(r[0])
|
|
388
|
+
assert r[0]['ret'] == 200
|
|
389
|
+
write(r[0], 'Storage', 'deletePool', body)
|
|
390
|
+
|
|
391
|
+
def testListPool(self):
|
|
392
|
+
a = Auth(username, pwd)
|
|
393
|
+
body = {
|
|
394
|
+
'pool_name': '',
|
|
395
|
+
'node_uuid': '',
|
|
396
|
+
}
|
|
397
|
+
|
|
398
|
+
storage = Storage(a)
|
|
399
|
+
r = storage.listPool(body)
|
|
400
|
+
print(r[0])
|
|
401
|
+
assert r[0]['ret'] == 200
|
|
402
|
+
write(r[0], 'Storage', 'listPool', body)
|
|
403
|
+
|
|
404
|
+
def testListPoolInfo(self):
|
|
405
|
+
a = Auth(username, pwd)
|
|
406
|
+
body = {
|
|
407
|
+
'node_uuid': '',
|
|
408
|
+
'pool_name': 'testpool',
|
|
409
|
+
}
|
|
410
|
+
|
|
411
|
+
storage = Storage(a)
|
|
412
|
+
r = storage.listPoolInfo(body)
|
|
413
|
+
print(r[0])
|
|
414
|
+
assert r[0]['ret'] == 200
|
|
415
|
+
write(r[0], 'Storage', 'listPoolInfo', body)
|
|
416
|
+
|
|
417
|
+
def testListPoolFromNode(self):
|
|
418
|
+
a = Auth(username, pwd)
|
|
419
|
+
body = {
|
|
420
|
+
'node_uuid': '',
|
|
421
|
+
}
|
|
422
|
+
|
|
423
|
+
storage = Storage(a)
|
|
424
|
+
r = storage.listPoolFromNode(body)
|
|
425
|
+
print(r[0])
|
|
426
|
+
assert r[0]['ret'] == 200
|
|
427
|
+
write(r[0], 'Storage', 'listPoolFromNode', body)
|
|
428
|
+
|
|
429
|
+
def testCreateFs(self):
|
|
430
|
+
a = Auth(username, pwd)
|
|
431
|
+
body = {
|
|
432
|
+
'node_uuid': '',
|
|
433
|
+
'pool_name': '',
|
|
434
|
+
'fs_name': '',
|
|
435
|
+
'mountpoint_path': '',
|
|
436
|
+
'source_disk_size': '',
|
|
437
|
+
}
|
|
438
|
+
|
|
439
|
+
storage = Storage(a)
|
|
440
|
+
r = storage.createFs(body)
|
|
441
|
+
print(r[0])
|
|
442
|
+
assert r[0]['ret'] == 200
|
|
443
|
+
write(r[0], 'Storage', 'createFs', body)
|
|
444
|
+
|
|
445
|
+
def testDeleteFs(self):
|
|
446
|
+
a = Auth(username, pwd)
|
|
447
|
+
body = {
|
|
448
|
+
'node_uuid': '',
|
|
449
|
+
'pool_name': '',
|
|
450
|
+
'fs_name': '',
|
|
451
|
+
'force': 1,
|
|
452
|
+
}
|
|
453
|
+
|
|
454
|
+
storage = Storage(a)
|
|
455
|
+
r = storage.deleteFs(body)
|
|
456
|
+
print(r[0])
|
|
457
|
+
assert r[0]['ret'] == 200
|
|
458
|
+
write(r[0], 'Storage', 'deleteFs', body)
|
|
459
|
+
|
|
460
|
+
def testListFs(self):
|
|
461
|
+
a = Auth(username, pwd)
|
|
462
|
+
body = {
|
|
463
|
+
'pool_name': '',
|
|
464
|
+
'fs_name': '',
|
|
465
|
+
'node_uuid': '',
|
|
466
|
+
'eligible_file_system_size': 1,
|
|
467
|
+
}
|
|
468
|
+
|
|
469
|
+
storage = Storage(a)
|
|
470
|
+
r = storage.listFs(body)
|
|
471
|
+
print(r[0])
|
|
472
|
+
assert r[0]['ret'] == 200
|
|
473
|
+
write(r[0], 'Storage', 'listFs', body)
|
|
474
|
+
|
|
475
|
+
def testCreateFsSnapshot(self):
|
|
476
|
+
a = Auth(username, pwd)
|
|
477
|
+
body = {
|
|
478
|
+
'node_uuid': '',
|
|
479
|
+
'pool_name': '',
|
|
480
|
+
'fs_name': '',
|
|
481
|
+
'snap_name': '',
|
|
482
|
+
}
|
|
483
|
+
|
|
484
|
+
storage = Storage(a)
|
|
485
|
+
r = storage.createFsSnapshot(body)
|
|
486
|
+
print(r[0])
|
|
487
|
+
assert r[0]['ret'] == 200
|
|
488
|
+
write(r[0], 'Storage', 'createFsSnapshot', body)
|
|
489
|
+
|
|
490
|
+
def testDeleteFsSnapshot(self):
|
|
491
|
+
a = Auth(username, pwd)
|
|
492
|
+
body = {
|
|
493
|
+
'node_uuid': '',
|
|
494
|
+
'pool_name': '',
|
|
495
|
+
'fs_name': '',
|
|
496
|
+
'snap_name': '',
|
|
497
|
+
'force': 1,
|
|
498
|
+
}
|
|
499
|
+
|
|
500
|
+
storage = Storage(a)
|
|
501
|
+
r = storage.deleteFsSnapshot(body)
|
|
502
|
+
print(r[0])
|
|
503
|
+
assert r[0]['ret'] == 200
|
|
504
|
+
write(r[0], 'Storage', 'deleteFsSnapshot', body)
|
|
505
|
+
|
|
506
|
+
def testListFsSnapshot(self):
|
|
507
|
+
a = Auth(username, pwd)
|
|
508
|
+
body = {
|
|
509
|
+
'pool_name': '',
|
|
510
|
+
'fs_name': '',
|
|
511
|
+
'snap_name': '',
|
|
512
|
+
'node_uuid': '',
|
|
513
|
+
}
|
|
514
|
+
|
|
515
|
+
storage = Storage(a)
|
|
516
|
+
r = storage.listFsSnapshot(body)
|
|
517
|
+
print(r[0])
|
|
518
|
+
assert r[0]['ret'] == 200
|
|
519
|
+
write(r[0], 'Storage', 'listFsSnapshot', body)
|
|
520
|
+
|
|
521
|
+
def testCreateFsCloneSnapshot(self):
|
|
522
|
+
a = Auth(username, pwd)
|
|
523
|
+
body = {
|
|
524
|
+
'node_uuid': '',
|
|
525
|
+
'pool_name': '',
|
|
526
|
+
'fs_name': '',
|
|
527
|
+
'snap_name': '',
|
|
528
|
+
'clone_name': '',
|
|
529
|
+
}
|
|
530
|
+
|
|
531
|
+
storage = Storage(a)
|
|
532
|
+
r = storage.createFsCloneSnapshot(body)
|
|
533
|
+
print(r[0])
|
|
534
|
+
assert r[0]['ret'] == 200
|
|
535
|
+
write(r[0], 'Storage', 'createFsCloneSnapshot', body)
|
|
536
|
+
|
|
537
|
+
def testDeleteFsCloneSnapshot(self):
|
|
538
|
+
a = Auth(username, pwd)
|
|
539
|
+
body = {
|
|
540
|
+
'node_uuid': '',
|
|
541
|
+
'pool_name': '',
|
|
542
|
+
'clone_name': '',
|
|
543
|
+
}
|
|
544
|
+
|
|
545
|
+
storage = Storage(a)
|
|
546
|
+
r = storage.deleteFsCloneSnapshot(body)
|
|
547
|
+
print(r[0])
|
|
548
|
+
assert r[0]['ret'] == 200
|
|
549
|
+
write(r[0], 'Storage', 'deleteFsCloneSnapshot', body)
|
|
550
|
+
|
|
551
|
+
def testListFsCloneSnapshot(self):
|
|
552
|
+
a = Auth(username, pwd)
|
|
553
|
+
body = {
|
|
554
|
+
'node_uuid': '',
|
|
555
|
+
'pool_name': '',
|
|
556
|
+
'fs_name': '',
|
|
557
|
+
'snap_name': '',
|
|
558
|
+
}
|
|
559
|
+
|
|
560
|
+
storage = Storage(a)
|
|
561
|
+
r = storage.listFsCloneSnapshot(body)
|
|
562
|
+
print(r[0])
|
|
563
|
+
assert r[0]['ret'] == 200
|
|
564
|
+
write(r[0], 'Storage', 'listFsCloneSnapshot', body)
|
|
565
|
+
|
|
566
|
+
def testCreateVolume(self):
|
|
567
|
+
a = Auth(username, pwd)
|
|
568
|
+
body = {
|
|
569
|
+
'node_uuid': '',
|
|
570
|
+
'pool_name': '',
|
|
571
|
+
'volume_name': '',
|
|
572
|
+
'volume_size': '',
|
|
573
|
+
'volume_attr': 1,
|
|
574
|
+
}
|
|
575
|
+
|
|
576
|
+
storage = Storage(a)
|
|
577
|
+
r = storage.createVolume(body)
|
|
578
|
+
print(r[0])
|
|
579
|
+
assert r[0]['ret'] == 200
|
|
580
|
+
write(r[0], 'Storage', 'createVolume', body)
|
|
581
|
+
|
|
582
|
+
def testDeleteVolume(self):
|
|
583
|
+
a = Auth(username, pwd)
|
|
584
|
+
body = {
|
|
585
|
+
'node_uuid': '',
|
|
586
|
+
'pool_name': '',
|
|
587
|
+
'volume_name': '',
|
|
588
|
+
'force': 1,
|
|
589
|
+
}
|
|
590
|
+
|
|
591
|
+
storage = Storage(a)
|
|
592
|
+
r = storage.deleteVolume(body)
|
|
593
|
+
print(r[0])
|
|
594
|
+
assert r[0]['ret'] == 200
|
|
595
|
+
write(r[0], 'Storage', 'deleteVolume', body)
|
|
596
|
+
|
|
597
|
+
def testListVolume(self):
|
|
598
|
+
a = Auth(username, pwd)
|
|
599
|
+
body = {
|
|
600
|
+
'pool_name': '',
|
|
601
|
+
'volume_name': '',
|
|
602
|
+
'node_uuid': '',
|
|
603
|
+
'eligible_volume_size': 1,
|
|
604
|
+
}
|
|
605
|
+
|
|
606
|
+
storage = Storage(a)
|
|
607
|
+
r = storage.listVolume(body)
|
|
608
|
+
print(r[0])
|
|
609
|
+
assert r[0]['ret'] == 200
|
|
610
|
+
write(r[0], 'Storage', 'listVolume', body)
|
|
611
|
+
|
|
612
|
+
def testCreateVolumeSnapshot(self):
|
|
613
|
+
a = Auth(username, pwd)
|
|
614
|
+
body = {
|
|
615
|
+
'node_uuid': '',
|
|
616
|
+
'pool_name': '',
|
|
617
|
+
'volume_name': '',
|
|
618
|
+
'snap_name': '',
|
|
619
|
+
}
|
|
620
|
+
|
|
621
|
+
storage = Storage(a)
|
|
622
|
+
r = storage.createVolumeSnapshot(body)
|
|
623
|
+
print(r[0])
|
|
624
|
+
assert r[0]['ret'] == 200
|
|
625
|
+
write(r[0], 'Storage', 'createVolumeSnapshot', body)
|
|
626
|
+
|
|
627
|
+
def testDeleteVolumeSnapshot(self):
|
|
628
|
+
a = Auth(username, pwd)
|
|
629
|
+
body = {
|
|
630
|
+
'node_uuid': '',
|
|
631
|
+
'pool_name': '',
|
|
632
|
+
'volume_name': '',
|
|
633
|
+
'snap_name': '',
|
|
634
|
+
'force': 1,
|
|
635
|
+
}
|
|
636
|
+
|
|
637
|
+
storage = Storage(a)
|
|
638
|
+
r = storage.deleteVolumeSnapshot(body)
|
|
639
|
+
print(r[0])
|
|
640
|
+
assert r[0]['ret'] == 200
|
|
641
|
+
write(r[0], 'Storage', 'deleteVolumeSnapshot', body)
|
|
642
|
+
|
|
643
|
+
def testListVolumeSnapshot(self):
|
|
644
|
+
a = Auth(username, pwd)
|
|
645
|
+
body = {
|
|
646
|
+
'pool_name': '',
|
|
647
|
+
'volume_name': '',
|
|
648
|
+
'snap_name': '',
|
|
649
|
+
'node_uuid': '',
|
|
650
|
+
}
|
|
651
|
+
|
|
652
|
+
storage = Storage(a)
|
|
653
|
+
r = storage.listVolumeSnapshot(body)
|
|
654
|
+
print(r[0])
|
|
655
|
+
assert r[0]['ret'] == 200
|
|
656
|
+
write(r[0], 'Storage', 'listVolumeSnapshot', body)
|
|
657
|
+
|
|
658
|
+
def testCreateVolumeCloneSnapshot(self):
|
|
659
|
+
a = Auth(username, pwd)
|
|
660
|
+
body = {
|
|
661
|
+
'node_uuid': '',
|
|
662
|
+
'pool_name': '',
|
|
663
|
+
'volume_name': '',
|
|
664
|
+
'snap_name': '',
|
|
665
|
+
'clone_name': '',
|
|
666
|
+
}
|
|
667
|
+
|
|
668
|
+
storage = Storage(a)
|
|
669
|
+
r = storage.createVolumeCloneSnapshot(body)
|
|
670
|
+
print(r[0])
|
|
671
|
+
assert r[0]['ret'] == 200
|
|
672
|
+
write(r[0], 'Storage', 'createVolumeCloneSnapshot', body)
|
|
673
|
+
|
|
674
|
+
def testDeleteVolumeCloneSnapshot(self):
|
|
675
|
+
a = Auth(username, pwd)
|
|
676
|
+
body = {
|
|
677
|
+
'node_uuid': '',
|
|
678
|
+
'pool_name': '',
|
|
679
|
+
'clone_name': '',
|
|
680
|
+
}
|
|
681
|
+
|
|
682
|
+
storage = Storage(a)
|
|
683
|
+
r = storage.deleteVolumeCloneSnapshot(body)
|
|
684
|
+
print(r[0])
|
|
685
|
+
assert r[0]['ret'] == 200
|
|
686
|
+
write(r[0], 'Storage', 'deleteVolumeCloneSnapshot', body)
|
|
687
|
+
|
|
688
|
+
def testListVolumeCloneSnapshot(self):
|
|
689
|
+
a = Auth(username, pwd)
|
|
690
|
+
body = {
|
|
691
|
+
'node_uuid': '',
|
|
692
|
+
'pool_name': '',
|
|
693
|
+
'volume_name': '',
|
|
694
|
+
'snap_name': '',
|
|
695
|
+
}
|
|
696
|
+
|
|
697
|
+
storage = Storage(a)
|
|
698
|
+
r = storage.listVolumeCloneSnapshot(body)
|
|
699
|
+
print(r[0])
|
|
700
|
+
assert r[0]['ret'] == 200
|
|
701
|
+
write(r[0], 'Storage', 'listVolumeCloneSnapshot', body)
|
|
702
|
+
|
|
703
|
+
def testCreateVMDK(self):
|
|
704
|
+
a = Auth(username, pwd)
|
|
705
|
+
body = {
|
|
706
|
+
}
|
|
707
|
+
|
|
708
|
+
storage = Storage(a)
|
|
709
|
+
r = storage.createVMDK(body)
|
|
710
|
+
print(r[0])
|
|
711
|
+
assert r[0]['ret'] == 200
|
|
712
|
+
write(r[0], 'Storage', 'createVMDK', body)
|
|
713
|
+
|
|
714
|
+
def testDeleteVMDK(self):
|
|
715
|
+
a = Auth(username, pwd)
|
|
716
|
+
body = {
|
|
717
|
+
}
|
|
718
|
+
|
|
719
|
+
storage = Storage(a)
|
|
720
|
+
r = storage.deleteVMDK(body)
|
|
721
|
+
print(r[0])
|
|
722
|
+
assert r[0]['ret'] == 200
|
|
723
|
+
write(r[0], 'Storage', 'deleteVMDK', body)
|
|
724
|
+
|
|
725
|
+
def testCreateBackStore(self):
|
|
726
|
+
a = Auth(username, pwd)
|
|
727
|
+
body = {
|
|
728
|
+
'name': 'name',
|
|
729
|
+
'path': '/path/',
|
|
730
|
+
'node_uuid': 'AFAFDFDF-AFAF-AFAF-AFAF-AFAFAFAFAFAF',
|
|
731
|
+
'capacity': '100',
|
|
732
|
+
}
|
|
733
|
+
|
|
734
|
+
storage = Storage(a)
|
|
735
|
+
r = storage.createBackStore(body)
|
|
736
|
+
print(r[0])
|
|
737
|
+
assert r[0]['ret'] == 200
|
|
738
|
+
write(r[0], 'Storage', 'createBackStore', body)
|
|
739
|
+
|
|
740
|
+
def testDeleteBackStore(self):
|
|
741
|
+
a = Auth(username, pwd)
|
|
742
|
+
body = {
|
|
743
|
+
'name': 'bs',
|
|
744
|
+
'node_uuid': 'AFAFDFDF-AFAF-AFAF-AFAF-AFAFAFAFAFAF',
|
|
745
|
+
'force': 1,
|
|
746
|
+
}
|
|
747
|
+
|
|
748
|
+
storage = Storage(a)
|
|
749
|
+
r = storage.deleteBackStore(body)
|
|
750
|
+
print(r[0])
|
|
751
|
+
assert r[0]['ret'] == 200
|
|
752
|
+
write(r[0], 'Storage', 'deleteBackStore', body)
|
|
753
|
+
|
|
754
|
+
def testListBackStore(self):
|
|
755
|
+
a = Auth(username, pwd)
|
|
756
|
+
body = {
|
|
757
|
+
'node_uuid': '',
|
|
758
|
+
}
|
|
759
|
+
|
|
760
|
+
storage = Storage(a)
|
|
761
|
+
r = storage.listBackStore(body)
|
|
762
|
+
print(r[0])
|
|
763
|
+
assert r[0]['ret'] == 200
|
|
764
|
+
write(r[0], 'Storage', 'listBackStore', body)
|
|
765
|
+
|
|
766
|
+
def testCreateAssignBackStore(self):
|
|
767
|
+
a = Auth(username, pwd)
|
|
768
|
+
body = {
|
|
769
|
+
'name': '',
|
|
770
|
+
'target': '',
|
|
771
|
+
'tpg_number': '',
|
|
772
|
+
'initiator': '',
|
|
773
|
+
'node_uuid': '',
|
|
774
|
+
}
|
|
775
|
+
|
|
776
|
+
storage = Storage(a)
|
|
777
|
+
r = storage.createAssignBackStore(body)
|
|
778
|
+
print(r[0])
|
|
779
|
+
assert r[0]['ret'] == 200
|
|
780
|
+
write(r[0], 'Storage', 'createAssignBackStore', body)
|
|
781
|
+
|
|
782
|
+
def testListAssignBackStore(self):
|
|
783
|
+
a = Auth(username, pwd)
|
|
784
|
+
body = {
|
|
785
|
+
'path': '',
|
|
786
|
+
'node_uuid': '',
|
|
787
|
+
}
|
|
788
|
+
|
|
789
|
+
storage = Storage(a)
|
|
790
|
+
r = storage.listAssignBackStore(body)
|
|
791
|
+
print(r[0])
|
|
792
|
+
assert r[0]['ret'] == 200
|
|
793
|
+
write(r[0], 'Storage', 'listAssignBackStore', body)
|
|
794
|
+
|
|
795
|
+
def testListBackStoreAvailablePath(self):
|
|
796
|
+
a = Auth(username, pwd)
|
|
797
|
+
body = {
|
|
798
|
+
'node_uuid': '',
|
|
799
|
+
}
|
|
800
|
+
|
|
801
|
+
storage = Storage(a)
|
|
802
|
+
r = storage.listBackStoreAvailablePath(body)
|
|
803
|
+
print(r[0])
|
|
804
|
+
assert r[0]['ret'] == 200
|
|
805
|
+
write(r[0], 'Storage', 'listBackStoreAvailablePath', body)
|
|
806
|
+
|
|
807
|
+
def testDescribeIscsiVersion(self):
|
|
808
|
+
a = Auth(username, pwd)
|
|
809
|
+
body = {
|
|
810
|
+
'node_uuid': '',
|
|
811
|
+
}
|
|
812
|
+
|
|
813
|
+
storage = Storage(a)
|
|
814
|
+
r = storage.describeIscsiVersion(body)
|
|
815
|
+
print(r[0])
|
|
816
|
+
assert r[0]['ret'] == 200
|
|
817
|
+
write(r[0], 'Storage', 'describeIscsiVersion', body)
|
|
818
|
+
|
|
819
|
+
def testDescribeIscsiAuth(self):
|
|
820
|
+
a = Auth(username, pwd)
|
|
821
|
+
body = {
|
|
822
|
+
'node_uuid': '',
|
|
823
|
+
}
|
|
824
|
+
|
|
825
|
+
storage = Storage(a)
|
|
826
|
+
r = storage.describeIscsiAuth(body)
|
|
827
|
+
print(r[0])
|
|
828
|
+
assert r[0]['ret'] == 200
|
|
829
|
+
write(r[0], 'Storage', 'describeIscsiAuth', body)
|
|
830
|
+
|
|
831
|
+
def testCreateIscsiDiscoverAuth(self):
|
|
832
|
+
a = Auth(username, pwd)
|
|
833
|
+
body = {
|
|
834
|
+
'userid': '',
|
|
835
|
+
'password': '',
|
|
836
|
+
'mutual_userid': '',
|
|
837
|
+
'mutual_password': '',
|
|
838
|
+
'node_uuid': '',
|
|
839
|
+
}
|
|
840
|
+
|
|
841
|
+
storage = Storage(a)
|
|
842
|
+
r = storage.createIscsiDiscoverAuth(body)
|
|
843
|
+
print(r[0])
|
|
844
|
+
assert r[0]['ret'] == 200
|
|
845
|
+
write(r[0], 'Storage', 'createIscsiDiscoverAuth', body)
|
|
846
|
+
|
|
847
|
+
def testDeleteIscsiDiscoverAuth(self):
|
|
848
|
+
a = Auth(username, pwd)
|
|
849
|
+
body = {
|
|
850
|
+
'node_uuid': '',
|
|
851
|
+
}
|
|
852
|
+
|
|
853
|
+
storage = Storage(a)
|
|
854
|
+
r = storage.deleteIscsiDiscoverAuth(body)
|
|
855
|
+
print(r[0])
|
|
856
|
+
assert r[0]['ret'] == 200
|
|
857
|
+
write(r[0], 'Storage', 'deleteIscsiDiscoverAuth', body)
|
|
858
|
+
|
|
859
|
+
def testCreateAutoAddPortal(self):
|
|
860
|
+
a = Auth(username, pwd)
|
|
861
|
+
body = {
|
|
862
|
+
'node_uuid': '',
|
|
863
|
+
'auto_add_default_portal': 0,
|
|
864
|
+
}
|
|
865
|
+
|
|
866
|
+
storage = Storage(a)
|
|
867
|
+
r = storage.createAutoAddPortal(body)
|
|
868
|
+
print(r[0])
|
|
869
|
+
assert r[0]['ret'] == 200
|
|
870
|
+
write(r[0], 'Storage', 'createAutoAddPortal', body)
|
|
871
|
+
|
|
872
|
+
def testCreateAutoAddLun(self):
|
|
873
|
+
a = Auth(username, pwd)
|
|
874
|
+
body = {
|
|
875
|
+
'node_uuid': '',
|
|
876
|
+
'auto_add_mapped_luns': 0,
|
|
877
|
+
}
|
|
878
|
+
|
|
879
|
+
storage = Storage(a)
|
|
880
|
+
r = storage.createAutoAddLun(body)
|
|
881
|
+
print(r[0])
|
|
882
|
+
assert r[0]['ret'] == 200
|
|
883
|
+
write(r[0], 'Storage', 'createAutoAddLun', body)
|
|
884
|
+
|
|
885
|
+
def testDescribeAutoAddPortal(self):
|
|
886
|
+
a = Auth(username, pwd)
|
|
887
|
+
body = {
|
|
888
|
+
'node_uuid': '',
|
|
889
|
+
}
|
|
890
|
+
|
|
891
|
+
storage = Storage(a)
|
|
892
|
+
r = storage.describeAutoAddPortal(body)
|
|
893
|
+
print(r[0])
|
|
894
|
+
assert r[0]['ret'] == 200
|
|
895
|
+
write(r[0], 'Storage', 'describeAutoAddPortal', body)
|
|
896
|
+
|
|
897
|
+
def testDescribeAutoAddLun(self):
|
|
898
|
+
a = Auth(username, pwd)
|
|
899
|
+
body = {
|
|
900
|
+
'node_uuid': '',
|
|
901
|
+
}
|
|
902
|
+
|
|
903
|
+
storage = Storage(a)
|
|
904
|
+
r = storage.describeAutoAddLun(body)
|
|
905
|
+
print(r[0])
|
|
906
|
+
assert r[0]['ret'] == 200
|
|
907
|
+
write(r[0], 'Storage', 'describeAutoAddLun', body)
|
|
908
|
+
|
|
909
|
+
def testDescribeIscsiTargetStatus(self):
|
|
910
|
+
a = Auth(username, pwd)
|
|
911
|
+
body = {
|
|
912
|
+
'node_uuid': '',
|
|
913
|
+
}
|
|
914
|
+
|
|
915
|
+
storage = Storage(a)
|
|
916
|
+
r = storage.describeIscsiTargetStatus(body)
|
|
917
|
+
print(r[0])
|
|
918
|
+
assert r[0]['ret'] == 200
|
|
919
|
+
write(r[0], 'Storage', 'describeIscsiTargetStatus', body)
|
|
920
|
+
|
|
921
|
+
def testListIscsiTarget(self):
|
|
922
|
+
a = Auth(username, pwd)
|
|
923
|
+
body = {
|
|
924
|
+
'node_uuid': '',
|
|
925
|
+
}
|
|
926
|
+
|
|
927
|
+
storage = Storage(a)
|
|
928
|
+
r = storage.listIscsiTarget(body)
|
|
929
|
+
print(r[0])
|
|
930
|
+
assert r[0]['ret'] == 200
|
|
931
|
+
write(r[0], 'Storage', 'listIscsiTarget', body)
|
|
932
|
+
|
|
933
|
+
def testCreateIscsiTarget(self):
|
|
934
|
+
a = Auth(username, pwd)
|
|
935
|
+
body = {
|
|
936
|
+
'name': '',
|
|
937
|
+
'node_uuid': '',
|
|
938
|
+
}
|
|
939
|
+
|
|
940
|
+
storage = Storage(a)
|
|
941
|
+
r = storage.createIscsiTarget(body)
|
|
942
|
+
print(r[0])
|
|
943
|
+
assert r[0]['ret'] == 200
|
|
944
|
+
write(r[0], 'Storage', 'createIscsiTarget', body)
|
|
945
|
+
|
|
946
|
+
def testDeleteIscsiTarget(self):
|
|
947
|
+
a = Auth(username, pwd)
|
|
948
|
+
body = {
|
|
949
|
+
'name': '',
|
|
950
|
+
'node_uuid': '',
|
|
951
|
+
'force': 1,
|
|
952
|
+
}
|
|
953
|
+
|
|
954
|
+
storage = Storage(a)
|
|
955
|
+
r = storage.deleteIscsiTarget(body)
|
|
956
|
+
print(r[0])
|
|
957
|
+
assert r[0]['ret'] == 200
|
|
958
|
+
write(r[0], 'Storage', 'deleteIscsiTarget', body)
|
|
959
|
+
|
|
960
|
+
def testCreateIscsiInitiator(self):
|
|
961
|
+
a = Auth(username, pwd)
|
|
962
|
+
body = {
|
|
963
|
+
'target_name': '',
|
|
964
|
+
'tpg_number': 1,
|
|
965
|
+
'initiator_name': '',
|
|
966
|
+
'node_uuid': '',
|
|
967
|
+
}
|
|
968
|
+
|
|
969
|
+
storage = Storage(a)
|
|
970
|
+
r = storage.createIscsiInitiator(body)
|
|
971
|
+
print(r[0])
|
|
972
|
+
assert r[0]['ret'] == 200
|
|
973
|
+
write(r[0], 'Storage', 'createIscsiInitiator', body)
|
|
974
|
+
|
|
975
|
+
def testDeleteIscsiInitiator(self):
|
|
976
|
+
a = Auth(username, pwd)
|
|
977
|
+
body = {
|
|
978
|
+
'target_name': '',
|
|
979
|
+
'tpg_number': 1,
|
|
980
|
+
'initiator_name': '',
|
|
981
|
+
'node_uuid': '',
|
|
982
|
+
'force': 1,
|
|
983
|
+
}
|
|
984
|
+
|
|
985
|
+
storage = Storage(a)
|
|
986
|
+
r = storage.deleteIscsiInitiator(body)
|
|
987
|
+
print(r[0])
|
|
988
|
+
assert r[0]['ret'] == 200
|
|
989
|
+
write(r[0], 'Storage', 'deleteIscsiInitiator', body)
|
|
990
|
+
|
|
991
|
+
def testCreateIscsiInitiatorConnectAuth(self):
|
|
992
|
+
a = Auth(username, pwd)
|
|
993
|
+
body = {
|
|
994
|
+
'target_name': '',
|
|
995
|
+
'tpg_number': 1,
|
|
996
|
+
'initiator_name': '',
|
|
997
|
+
'user_id': '',
|
|
998
|
+
'password': '',
|
|
999
|
+
'mutual_userid': '',
|
|
1000
|
+
'mutual_password': '',
|
|
1001
|
+
'node_uuid': '',
|
|
1002
|
+
}
|
|
1003
|
+
|
|
1004
|
+
storage = Storage(a)
|
|
1005
|
+
r = storage.createIscsiInitiatorConnectAuth(body)
|
|
1006
|
+
print(r[0])
|
|
1007
|
+
assert r[0]['ret'] == 200
|
|
1008
|
+
write(r[0], 'Storage', 'createIscsiInitiatorConnectAuth', body)
|
|
1009
|
+
|
|
1010
|
+
def testCreateIscsiInitiatorLun(self):
|
|
1011
|
+
a = Auth(username, pwd)
|
|
1012
|
+
body = {
|
|
1013
|
+
'target_name': '',
|
|
1014
|
+
'tpg_number': 1,
|
|
1015
|
+
'initiator_name': '',
|
|
1016
|
+
'backstore_name': '',
|
|
1017
|
+
'node_uuid': '',
|
|
1018
|
+
}
|
|
1019
|
+
|
|
1020
|
+
storage = Storage(a)
|
|
1021
|
+
r = storage.createIscsiInitiatorLun(body)
|
|
1022
|
+
print(r[0])
|
|
1023
|
+
assert r[0]['ret'] == 200
|
|
1024
|
+
write(r[0], 'Storage', 'createIscsiInitiatorLun', body)
|
|
1025
|
+
|
|
1026
|
+
def testDeleteIscsiInitiatorLun(self):
|
|
1027
|
+
a = Auth(username, pwd)
|
|
1028
|
+
body = {
|
|
1029
|
+
'target_name': '',
|
|
1030
|
+
'tpg_number': 1,
|
|
1031
|
+
'initiator_name': '',
|
|
1032
|
+
'initiator_lun_no': 1,
|
|
1033
|
+
'node_uuid': '',
|
|
1034
|
+
}
|
|
1035
|
+
|
|
1036
|
+
storage = Storage(a)
|
|
1037
|
+
r = storage.deleteIscsiInitiatorLun(body)
|
|
1038
|
+
print(r[0])
|
|
1039
|
+
assert r[0]['ret'] == 200
|
|
1040
|
+
write(r[0], 'Storage', 'deleteIscsiInitiatorLun', body)
|
|
1041
|
+
|
|
1042
|
+
def testCreateIscsiInitiatorDiscoverTarget(self):
|
|
1043
|
+
a = Auth(username, pwd)
|
|
1044
|
+
body = {
|
|
1045
|
+
'node_uuid': '',
|
|
1046
|
+
'portal_address': '',
|
|
1047
|
+
'portal_port': 1,
|
|
1048
|
+
'auth_type': 1,
|
|
1049
|
+
'user_name': '',
|
|
1050
|
+
'password': '',
|
|
1051
|
+
'hba_name': '',
|
|
1052
|
+
}
|
|
1053
|
+
|
|
1054
|
+
storage = Storage(a)
|
|
1055
|
+
r = storage.createIscsiInitiatorDiscoverTarget(body)
|
|
1056
|
+
print(r[0])
|
|
1057
|
+
assert r[0]['ret'] == 200
|
|
1058
|
+
write(r[0], 'Storage', 'createIscsiInitiatorDiscoverTarget', body)
|
|
1059
|
+
|
|
1060
|
+
def testCreateIscsiInitiatorConnectTarget(self):
|
|
1061
|
+
a = Auth(username, pwd)
|
|
1062
|
+
body = {
|
|
1063
|
+
'node_uuid': '',
|
|
1064
|
+
'portal_address': '',
|
|
1065
|
+
'portal_port': 1,
|
|
1066
|
+
'auth_type': 1,
|
|
1067
|
+
'user_name': '',
|
|
1068
|
+
'password': '',
|
|
1069
|
+
'target': '',
|
|
1070
|
+
}
|
|
1071
|
+
|
|
1072
|
+
storage = Storage(a)
|
|
1073
|
+
r = storage.createIscsiInitiatorConnectTarget(body)
|
|
1074
|
+
print(r[0])
|
|
1075
|
+
assert r[0]['ret'] == 200
|
|
1076
|
+
write(r[0], 'Storage', 'createIscsiInitiatorConnectTarget', body)
|
|
1077
|
+
|
|
1078
|
+
def testDeleteIscsiInitiatorConnectTarget(self):
|
|
1079
|
+
a = Auth(username, pwd)
|
|
1080
|
+
body = {
|
|
1081
|
+
'node_uuid': '',
|
|
1082
|
+
'target_name': '',
|
|
1083
|
+
'address': '',
|
|
1084
|
+
}
|
|
1085
|
+
|
|
1086
|
+
storage = Storage(a)
|
|
1087
|
+
r = storage.deleteIscsiInitiatorConnectTarget(body)
|
|
1088
|
+
print(r[0])
|
|
1089
|
+
assert r[0]['ret'] == 200
|
|
1090
|
+
write(r[0], 'Storage', 'deleteIscsiInitiatorConnectTarget', body)
|
|
1091
|
+
|
|
1092
|
+
def testListIscsiInitiatorPortal(self):
|
|
1093
|
+
a = Auth(username, pwd)
|
|
1094
|
+
body = {
|
|
1095
|
+
'node_uuid': '',
|
|
1096
|
+
}
|
|
1097
|
+
|
|
1098
|
+
storage = Storage(a)
|
|
1099
|
+
r = storage.listIscsiInitiatorPortal(body)
|
|
1100
|
+
print(r[0])
|
|
1101
|
+
assert r[0]['ret'] == 200
|
|
1102
|
+
write(r[0], 'Storage', 'listIscsiInitiatorPortal', body)
|
|
1103
|
+
|
|
1104
|
+
def testDeleteIscsiInitiatorPortal(self):
|
|
1105
|
+
a = Auth(username, pwd)
|
|
1106
|
+
body = {
|
|
1107
|
+
'node_uuid': '',
|
|
1108
|
+
'address': '',
|
|
1109
|
+
'port_no': 1,
|
|
1110
|
+
}
|
|
1111
|
+
|
|
1112
|
+
storage = Storage(a)
|
|
1113
|
+
r = storage.deleteIscsiInitiatorPortal(body)
|
|
1114
|
+
print(r[0])
|
|
1115
|
+
assert r[0]['ret'] == 200
|
|
1116
|
+
write(r[0], 'Storage', 'deleteIscsiInitiatorPortal', body)
|
|
1117
|
+
|
|
1118
|
+
def testIscsiInitiatorRefreshSession(self):
|
|
1119
|
+
a = Auth(username, pwd)
|
|
1120
|
+
body = {
|
|
1121
|
+
'node_uuid': '',
|
|
1122
|
+
}
|
|
1123
|
+
|
|
1124
|
+
storage = Storage(a)
|
|
1125
|
+
r = storage.iscsiInitiatorRefreshSession(body)
|
|
1126
|
+
print(r[0])
|
|
1127
|
+
assert r[0]['ret'] == 200
|
|
1128
|
+
write(r[0], 'Storage', 'iscsiInitiatorRefreshSession', body)
|
|
1129
|
+
|
|
1130
|
+
def testListTpg(self):
|
|
1131
|
+
a = Auth(username, pwd)
|
|
1132
|
+
body = {
|
|
1133
|
+
'node_uuid': '',
|
|
1134
|
+
'target_name': '',
|
|
1135
|
+
'tpg_number': 1,
|
|
1136
|
+
}
|
|
1137
|
+
|
|
1138
|
+
storage = Storage(a)
|
|
1139
|
+
r = storage.listTpg(body)
|
|
1140
|
+
print(r[0])
|
|
1141
|
+
assert r[0]['ret'] == 200
|
|
1142
|
+
write(r[0], 'Storage', 'listTpg', body)
|
|
1143
|
+
|
|
1144
|
+
def testCreateTpg(self):
|
|
1145
|
+
a = Auth(username, pwd)
|
|
1146
|
+
body = {
|
|
1147
|
+
'target_name': '',
|
|
1148
|
+
'node_uuid': '',
|
|
1149
|
+
}
|
|
1150
|
+
|
|
1151
|
+
storage = Storage(a)
|
|
1152
|
+
r = storage.createTpg(body)
|
|
1153
|
+
print(r[0])
|
|
1154
|
+
assert r[0]['ret'] == 200
|
|
1155
|
+
write(r[0], 'Storage', 'createTpg', body)
|
|
1156
|
+
|
|
1157
|
+
def testDeleteTpg(self):
|
|
1158
|
+
a = Auth(username, pwd)
|
|
1159
|
+
body = {
|
|
1160
|
+
'target_name': '',
|
|
1161
|
+
'tpg_number': 1,
|
|
1162
|
+
'node_uuid': '',
|
|
1163
|
+
'force': 1,
|
|
1164
|
+
}
|
|
1165
|
+
|
|
1166
|
+
storage = Storage(a)
|
|
1167
|
+
r = storage.deleteTpg(body)
|
|
1168
|
+
print(r[0])
|
|
1169
|
+
assert r[0]['ret'] == 200
|
|
1170
|
+
write(r[0], 'Storage', 'deleteTpg', body)
|
|
1171
|
+
|
|
1172
|
+
def testCreateTpgConnectAuth(self):
|
|
1173
|
+
a = Auth(username, pwd)
|
|
1174
|
+
body = {
|
|
1175
|
+
'target_name': '',
|
|
1176
|
+
'tpg_number': 1,
|
|
1177
|
+
'userid': '',
|
|
1178
|
+
'password': '',
|
|
1179
|
+
'mutual_userid': '',
|
|
1180
|
+
'mutual_password': '',
|
|
1181
|
+
'node_uuid': '',
|
|
1182
|
+
}
|
|
1183
|
+
|
|
1184
|
+
storage = Storage(a)
|
|
1185
|
+
r = storage.createTpgConnectAuth(body)
|
|
1186
|
+
print(r[0])
|
|
1187
|
+
assert r[0]['ret'] == 200
|
|
1188
|
+
write(r[0], 'Storage', 'createTpgConnectAuth', body)
|
|
1189
|
+
|
|
1190
|
+
def testDeleteTpgConnectAuth(self):
|
|
1191
|
+
a = Auth(username, pwd)
|
|
1192
|
+
body = {
|
|
1193
|
+
'target_name': '',
|
|
1194
|
+
'tpg_number': 1,
|
|
1195
|
+
'node_uuid': '',
|
|
1196
|
+
}
|
|
1197
|
+
|
|
1198
|
+
storage = Storage(a)
|
|
1199
|
+
r = storage.deleteTpgConnectAuth(body)
|
|
1200
|
+
print(r[0])
|
|
1201
|
+
assert r[0]['ret'] == 200
|
|
1202
|
+
write(r[0], 'Storage', 'deleteTpgConnectAuth', body)
|
|
1203
|
+
|
|
1204
|
+
def testCreateTpgLun(self):
|
|
1205
|
+
a = Auth(username, pwd)
|
|
1206
|
+
body = {
|
|
1207
|
+
'node_uuid': '',
|
|
1208
|
+
'target_name': '',
|
|
1209
|
+
'tpg_number': 1,
|
|
1210
|
+
'backstore_name': '',
|
|
1211
|
+
'name': 'name',
|
|
1212
|
+
'path': '/path/',
|
|
1213
|
+
'capacity': '100',
|
|
1214
|
+
}
|
|
1215
|
+
|
|
1216
|
+
storage = Storage(a)
|
|
1217
|
+
r = storage.createTpgLun(body)
|
|
1218
|
+
print(r[0])
|
|
1219
|
+
assert r[0]['ret'] == 200
|
|
1220
|
+
write(r[0], 'Storage', 'createTpgLun', body)
|
|
1221
|
+
|
|
1222
|
+
def testDescribeTpgConnectAuth(self):
|
|
1223
|
+
a = Auth(username, pwd)
|
|
1224
|
+
body = {
|
|
1225
|
+
'node_uuid': '',
|
|
1226
|
+
'target_name': '',
|
|
1227
|
+
'tpg_number': 1,
|
|
1228
|
+
}
|
|
1229
|
+
|
|
1230
|
+
storage = Storage(a)
|
|
1231
|
+
r = storage.describeTpgConnectAuth(body)
|
|
1232
|
+
print(r[0])
|
|
1233
|
+
assert r[0]['ret'] == 200
|
|
1234
|
+
write(r[0], 'Storage', 'describeTpgConnectAuth', body)
|
|
1235
|
+
|
|
1236
|
+
def testDeleteTpgLun(self):
|
|
1237
|
+
a = Auth(username, pwd)
|
|
1238
|
+
body = {
|
|
1239
|
+
'target_name': '',
|
|
1240
|
+
'tpg_number': 1,
|
|
1241
|
+
'tpg_lun_no': 1,
|
|
1242
|
+
'node_uuid': '',
|
|
1243
|
+
'force': 1,
|
|
1244
|
+
}
|
|
1245
|
+
|
|
1246
|
+
storage = Storage(a)
|
|
1247
|
+
r = storage.deleteTpgLun(body)
|
|
1248
|
+
print(r[0])
|
|
1249
|
+
assert r[0]['ret'] == 200
|
|
1250
|
+
write(r[0], 'Storage', 'deleteTpgLun', body)
|
|
1251
|
+
|
|
1252
|
+
def testCreateTpgPortal(self):
|
|
1253
|
+
a = Auth(username, pwd)
|
|
1254
|
+
body = {
|
|
1255
|
+
'target_name': '',
|
|
1256
|
+
'tpg_number': '',
|
|
1257
|
+
'ip': '',
|
|
1258
|
+
'node_uuid': '',
|
|
1259
|
+
}
|
|
1260
|
+
|
|
1261
|
+
storage = Storage(a)
|
|
1262
|
+
r = storage.createTpgPortal(body)
|
|
1263
|
+
print(r[0])
|
|
1264
|
+
assert r[0]['ret'] == 200
|
|
1265
|
+
write(r[0], 'Storage', 'createTpgPortal', body)
|
|
1266
|
+
|
|
1267
|
+
def testDeleteTpgPortal(self):
|
|
1268
|
+
a = Auth(username, pwd)
|
|
1269
|
+
body = {
|
|
1270
|
+
'target_name': '',
|
|
1271
|
+
'tpg_number': 1,
|
|
1272
|
+
'ip': '',
|
|
1273
|
+
'node_uuid': '',
|
|
1274
|
+
}
|
|
1275
|
+
|
|
1276
|
+
storage = Storage(a)
|
|
1277
|
+
r = storage.deleteTpgPortal(body)
|
|
1278
|
+
print(r[0])
|
|
1279
|
+
assert r[0]['ret'] == 200
|
|
1280
|
+
write(r[0], 'Storage', 'deleteTpgPortal', body)
|
|
1281
|
+
|
|
1282
|
+
def testRegisterServer(self):
|
|
1283
|
+
a = Auth(username, pwd)
|
|
1284
|
+
body = {
|
|
1285
|
+
'node_uuid': '',
|
|
1286
|
+
'config_addr': '',
|
|
1287
|
+
}
|
|
1288
|
+
|
|
1289
|
+
storage = Storage(a)
|
|
1290
|
+
r = storage.registerServer(body)
|
|
1291
|
+
print(r[0])
|
|
1292
|
+
assert r[0]['ret'] == 200
|
|
1293
|
+
write(r[0], 'Storage', 'registerServer', body)
|
|
1294
|
+
|
|
1295
|
+
def testListTape(self):
|
|
1296
|
+
a = Auth(username, pwd)
|
|
1297
|
+
body = {
|
|
1298
|
+
'where_args[node_uuid]': '',
|
|
1299
|
+
'page': 1,
|
|
1300
|
+
'limit': 10,
|
|
1301
|
+
'search_value': '',
|
|
1302
|
+
'search_field': '',
|
|
1303
|
+
'where_args[pool_uuid]': '',
|
|
1304
|
+
}
|
|
1305
|
+
|
|
1306
|
+
storage = Storage(a)
|
|
1307
|
+
r = storage.listTape(body)
|
|
1308
|
+
print(r[0])
|
|
1309
|
+
assert r[0]['ret'] == 200
|
|
1310
|
+
write(r[0], 'Storage', 'listTape', body)
|
|
1311
|
+
|
|
1312
|
+
def testScanTapes(self):
|
|
1313
|
+
a = Auth(username, pwd)
|
|
1314
|
+
body = {
|
|
1315
|
+
'node_uuid': 'D42BF707-C971-EEA9-521F-BB0F3F7A92FC',
|
|
1316
|
+
}
|
|
1317
|
+
|
|
1318
|
+
storage = Storage(a)
|
|
1319
|
+
r = storage.scanTapes(body)
|
|
1320
|
+
print(r[0])
|
|
1321
|
+
assert r[0]['ret'] == 200
|
|
1322
|
+
write(r[0], 'Storage', 'scanTapes', body)
|
|
1323
|
+
|
|
1324
|
+
def testCreateTape(self):
|
|
1325
|
+
a = Auth(username, pwd)
|
|
1326
|
+
body = {
|
|
1327
|
+
'tape_name': '磁带库1',
|
|
1328
|
+
'node_uuid': 'D42BF707-C971-EEA9-521F-BB0F3F7A92FC',
|
|
1329
|
+
'library_info': [{
|
|
1330
|
+
'library_sn': 'SYZZ_A',
|
|
1331
|
+
'library_vendor': 'STK',
|
|
1332
|
+
'library_product': 'L80',
|
|
1333
|
+
'library_revision': '0106'}],
|
|
1334
|
+
}
|
|
1335
|
+
|
|
1336
|
+
storage = Storage(a)
|
|
1337
|
+
r = storage.createTape(body)
|
|
1338
|
+
print(r[0])
|
|
1339
|
+
assert r[0]['ret'] == 200
|
|
1340
|
+
write(r[0], 'Storage', 'createTape', body)
|
|
1341
|
+
|
|
1342
|
+
def testDescribeTape(self):
|
|
1343
|
+
a = Auth(username, pwd)
|
|
1344
|
+
body = {
|
|
1345
|
+
}
|
|
1346
|
+
uuid = "22D03E06-94D0-5E2C-336E-4BEEC2D28EC4"
|
|
1347
|
+
storage = Storage(a)
|
|
1348
|
+
r = storage.describeTape(body, uuid)
|
|
1349
|
+
print(r[0])
|
|
1350
|
+
assert r[0]['ret'] == 200
|
|
1351
|
+
write(r[0], 'Storage', 'describeTape', body)
|
|
1352
|
+
|
|
1353
|
+
def testModifyTape(self):
|
|
1354
|
+
a = Auth(username, pwd)
|
|
1355
|
+
body = {
|
|
1356
|
+
'tape_name': '磁带库1',
|
|
1357
|
+
'node_uuid': 'D42BF707-C971-EEA9-521F-BB0F3F7A92FC',
|
|
1358
|
+
'library_info': [{
|
|
1359
|
+
'library_sn': 'SYZZ_A',
|
|
1360
|
+
'library_vendor': 'STK',
|
|
1361
|
+
'library_product': 'L80',
|
|
1362
|
+
'library_revision': '0106'}],
|
|
1363
|
+
'random_str': 'D42BF707-C971-EEA9-521F-BB0F3F7A92FC',
|
|
1364
|
+
}
|
|
1365
|
+
uuid = "22D03E06-94D0-5E2C-336E-4BEEC2D28EC4"
|
|
1366
|
+
storage = Storage(a)
|
|
1367
|
+
r = storage.modifyTape(body, uuid)
|
|
1368
|
+
print(r[0])
|
|
1369
|
+
assert r[0]['ret'] == 200
|
|
1370
|
+
write(r[0], 'Storage', 'modifyTape', body)
|
|
1371
|
+
|
|
1372
|
+
def testDeleteTape(self):
|
|
1373
|
+
a = Auth(username, pwd)
|
|
1374
|
+
body = {
|
|
1375
|
+
'tape_uuids': [
|
|
1376
|
+
{
|
|
1377
|
+
'AA': 'BB'
|
|
1378
|
+
}
|
|
1379
|
+
]
|
|
1380
|
+
}
|
|
1381
|
+
|
|
1382
|
+
storage = Storage(a)
|
|
1383
|
+
r = storage.deleteTape(body)
|
|
1384
|
+
print(r[0])
|
|
1385
|
+
assert r[0]['ret'] == 200
|
|
1386
|
+
write(r[0], 'Storage', 'deleteTape', body)
|
|
1387
|
+
|
|
1388
|
+
def testListSlot(self):
|
|
1389
|
+
a = Auth(username, pwd)
|
|
1390
|
+
body = {
|
|
1391
|
+
'tape_uuid': '93AF0C9F-14C8-41A2-31CB-AAA0F65193FA',
|
|
1392
|
+
'library_sn': 'SYZZY_B'
|
|
1393
|
+
}
|
|
1394
|
+
|
|
1395
|
+
storage = Storage(a)
|
|
1396
|
+
r = storage.listSlot(body)
|
|
1397
|
+
print(r[0])
|
|
1398
|
+
assert r[0]['ret'] == 200
|
|
1399
|
+
write(r[0], 'Storage', 'listSlot', body)
|
|
1400
|
+
|
|
1401
|
+
def testListBkData(self):
|
|
1402
|
+
a = Auth(username, pwd)
|
|
1403
|
+
body = {
|
|
1404
|
+
'tape_uuid': '',
|
|
1405
|
+
'library_sn': '',
|
|
1406
|
+
'slot _index': '',
|
|
1407
|
+
'slot_barcode': '',
|
|
1408
|
+
'slot_tapename': '',
|
|
1409
|
+
'slot_tapesequence': '',
|
|
1410
|
+
'page_num': '0',
|
|
1411
|
+
'page_size': '15',
|
|
1412
|
+
'begin_time': '2021-04-27_00:00:12',
|
|
1413
|
+
'end_time': '2021-04-27_00:00:12',
|
|
1414
|
+
'check_rule': 0,
|
|
1415
|
+
}
|
|
1416
|
+
|
|
1417
|
+
storage = Storage(a)
|
|
1418
|
+
r = storage.listBkData(body)
|
|
1419
|
+
print(r[0])
|
|
1420
|
+
assert r[0]['ret'] == 200
|
|
1421
|
+
write(r[0], 'Storage', 'listBkData', body)
|
|
1422
|
+
|
|
1423
|
+
def testListBkFile(self):
|
|
1424
|
+
a = Auth(username, pwd)
|
|
1425
|
+
body = {
|
|
1426
|
+
'tape_uuid': 'D5F704B5-09Ce-3b11-5C8A-A72fcb9d3f91',
|
|
1427
|
+
'library_sn': '3BEe043E-8eC1-1c9E-16B2-43BCc48DAFBA',
|
|
1428
|
+
'slot _index': '1',
|
|
1429
|
+
'slot_barcode': '142419071725852 ',
|
|
1430
|
+
'slot_tapename': '专深里美感 ',
|
|
1431
|
+
'slot_tapesequence': '7404652025087696 ',
|
|
1432
|
+
'bk_index': 'index',
|
|
1433
|
+
'bk_path': 'path',
|
|
1434
|
+
'page': 1,
|
|
1435
|
+
'limit': 10,
|
|
1436
|
+
}
|
|
1437
|
+
|
|
1438
|
+
storage = Storage(a)
|
|
1439
|
+
r = storage.listBkFile(body)
|
|
1440
|
+
print(r[0])
|
|
1441
|
+
assert r[0]['ret'] == 200
|
|
1442
|
+
write(r[0], 'Storage', 'listBkFile', body)
|
|
1443
|
+
|
|
1444
|
+
def testListBusyDrive(self):
|
|
1445
|
+
a = Auth(username, pwd)
|
|
1446
|
+
body = {
|
|
1447
|
+
'tape_uuid': '',
|
|
1448
|
+
'library_sn': '',
|
|
1449
|
+
}
|
|
1450
|
+
|
|
1451
|
+
storage = Storage(a)
|
|
1452
|
+
r = storage.listBusyDrive(body)
|
|
1453
|
+
print(r[0])
|
|
1454
|
+
assert r[0]['ret'] == 200
|
|
1455
|
+
write(r[0], 'Storage', 'listBusyDrive', body)
|
|
1456
|
+
|
|
1457
|
+
def testListFreeSlot(self):
|
|
1458
|
+
a = Auth(username, pwd)
|
|
1459
|
+
body = {
|
|
1460
|
+
'tape_uuid': '',
|
|
1461
|
+
'library_sn': '',
|
|
1462
|
+
}
|
|
1463
|
+
|
|
1464
|
+
storage = Storage(a)
|
|
1465
|
+
r = storage.listFreeSlot(body)
|
|
1466
|
+
print(r[0])
|
|
1467
|
+
assert r[0]['ret'] == 200
|
|
1468
|
+
write(r[0], 'Storage', 'listFreeSlot', body)
|
|
1469
|
+
|
|
1470
|
+
def testListBusy(self):
|
|
1471
|
+
a = Auth(username, pwd)
|
|
1472
|
+
body = {
|
|
1473
|
+
'tape_uuid': '',
|
|
1474
|
+
'library_sn': '',
|
|
1475
|
+
}
|
|
1476
|
+
|
|
1477
|
+
storage = Storage(a)
|
|
1478
|
+
r = storage.listBusy(body)
|
|
1479
|
+
print(r[0])
|
|
1480
|
+
assert r[0]['ret'] == 200
|
|
1481
|
+
write(r[0], 'Storage', 'listBusy', body)
|
|
1482
|
+
|
|
1483
|
+
def testListFree(self):
|
|
1484
|
+
a = Auth(username, pwd)
|
|
1485
|
+
body = {
|
|
1486
|
+
'tape_uuid': '',
|
|
1487
|
+
'library_sn': '',
|
|
1488
|
+
}
|
|
1489
|
+
|
|
1490
|
+
storage = Storage(a)
|
|
1491
|
+
r = storage.listFree(body)
|
|
1492
|
+
print(r[0])
|
|
1493
|
+
assert r[0]['ret'] == 200
|
|
1494
|
+
write(r[0], 'Storage', 'listFree', body)
|
|
1495
|
+
|
|
1496
|
+
def testListBusySlot(self):
|
|
1497
|
+
a = Auth(username, pwd)
|
|
1498
|
+
body = {
|
|
1499
|
+
'tape_uuid': '',
|
|
1500
|
+
'library_sn': '',
|
|
1501
|
+
}
|
|
1502
|
+
|
|
1503
|
+
storage = Storage(a)
|
|
1504
|
+
r = storage.listBusySlot(body)
|
|
1505
|
+
print(r[0])
|
|
1506
|
+
assert r[0]['ret'] == 200
|
|
1507
|
+
write(r[0], 'Storage', 'listBusySlot', body)
|
|
1508
|
+
|
|
1509
|
+
def testListBusyIEslot(self):
|
|
1510
|
+
a = Auth(username, pwd)
|
|
1511
|
+
body = {
|
|
1512
|
+
'tape_uuid': '',
|
|
1513
|
+
'library_sn': '',
|
|
1514
|
+
}
|
|
1515
|
+
|
|
1516
|
+
storage = Storage(a)
|
|
1517
|
+
r = storage.listBusyIEslot(body)
|
|
1518
|
+
print(r[0])
|
|
1519
|
+
assert r[0]['ret'] == 200
|
|
1520
|
+
write(r[0], 'Storage', 'listBusyIEslot', body)
|
|
1521
|
+
|
|
1522
|
+
def testListFreeIEslot(self):
|
|
1523
|
+
a = Auth(username, pwd)
|
|
1524
|
+
body = {
|
|
1525
|
+
'tape_uuid': '',
|
|
1526
|
+
'library_sn': '',
|
|
1527
|
+
}
|
|
1528
|
+
|
|
1529
|
+
storage = Storage(a)
|
|
1530
|
+
r = storage.listFreeIEslot(body)
|
|
1531
|
+
print(r[0])
|
|
1532
|
+
assert r[0]['ret'] == 200
|
|
1533
|
+
write(r[0], 'Storage', 'listFreeIEslot', body)
|
|
1534
|
+
|
|
1535
|
+
def testEraseTape(self):
|
|
1536
|
+
a = Auth(username, pwd)
|
|
1537
|
+
body = {
|
|
1538
|
+
'tape_uuids': [
|
|
1539
|
+
{
|
|
1540
|
+
'': ''
|
|
1541
|
+
}
|
|
1542
|
+
],
|
|
1543
|
+
'operate': 'erase',
|
|
1544
|
+
'slot': {
|
|
1545
|
+
'slot _index': '',
|
|
1546
|
+
'slot_barcode': '',
|
|
1547
|
+
'slot_tapename': '',
|
|
1548
|
+
'slot_tapesequence': '',
|
|
1549
|
+
'new_slot_tapename': ''
|
|
1550
|
+
},
|
|
1551
|
+
'drive_index': '',
|
|
1552
|
+
'slot_index': '',
|
|
1553
|
+
'ieslot_index': '',
|
|
1554
|
+
'library_sn': ''
|
|
1555
|
+
}
|
|
1556
|
+
|
|
1557
|
+
storage = Storage(a)
|
|
1558
|
+
r = storage.eraseTape(body)
|
|
1559
|
+
print(r[0])
|
|
1560
|
+
assert r[0]['ret'] == 200
|
|
1561
|
+
write(r[0], 'Storage', 'eraseTape', body)
|
|
1562
|
+
|
|
1563
|
+
def testFormatTape(self):
|
|
1564
|
+
a = Auth(username, pwd)
|
|
1565
|
+
body = {
|
|
1566
|
+
'tape_uuids': [
|
|
1567
|
+
{
|
|
1568
|
+
'': ''
|
|
1569
|
+
}
|
|
1570
|
+
],
|
|
1571
|
+
'operate': 'format',
|
|
1572
|
+
'slot': {
|
|
1573
|
+
'slot _index': '',
|
|
1574
|
+
'slot_barcode': '',
|
|
1575
|
+
'slot_tapename': '',
|
|
1576
|
+
'slot_tapesequence': '',
|
|
1577
|
+
'new_slot_tapename': ''
|
|
1578
|
+
},
|
|
1579
|
+
'drive_index': '',
|
|
1580
|
+
'slot_index': '',
|
|
1581
|
+
'ieslot_index': '',
|
|
1582
|
+
'library_sn': ''
|
|
1583
|
+
}
|
|
1584
|
+
|
|
1585
|
+
storage = Storage(a)
|
|
1586
|
+
r = storage.formatTape(body)
|
|
1587
|
+
print(r[0])
|
|
1588
|
+
assert r[0]['ret'] == 200
|
|
1589
|
+
write(r[0], 'Storage', 'formatTape', body)
|
|
1590
|
+
|
|
1591
|
+
def testBrowseTape(self):
|
|
1592
|
+
a = Auth(username, pwd)
|
|
1593
|
+
body = {
|
|
1594
|
+
'tape_uuids': [
|
|
1595
|
+
{
|
|
1596
|
+
'': ''
|
|
1597
|
+
}
|
|
1598
|
+
],
|
|
1599
|
+
'operate': 'browse',
|
|
1600
|
+
'slot': {
|
|
1601
|
+
'slot _index': '',
|
|
1602
|
+
'slot_barcode': '',
|
|
1603
|
+
'slot_tapename': '',
|
|
1604
|
+
'slot_tapesequence': '',
|
|
1605
|
+
'new_slot_tapename': ''
|
|
1606
|
+
},
|
|
1607
|
+
'drive_index': '',
|
|
1608
|
+
'slot_index': '',
|
|
1609
|
+
'ieslot_index': '',
|
|
1610
|
+
'library_sn': ''
|
|
1611
|
+
}
|
|
1612
|
+
|
|
1613
|
+
storage = Storage(a)
|
|
1614
|
+
r = storage.browseTape(body)
|
|
1615
|
+
print(r[0])
|
|
1616
|
+
assert r[0]['ret'] == 200
|
|
1617
|
+
write(r[0], 'Storage', 'browseTape', body)
|
|
1618
|
+
|
|
1619
|
+
def testRebuildCatalogTape(self):
|
|
1620
|
+
a = Auth(username, pwd)
|
|
1621
|
+
body = {
|
|
1622
|
+
'tape_uuids': [
|
|
1623
|
+
{
|
|
1624
|
+
'': ''
|
|
1625
|
+
}
|
|
1626
|
+
],
|
|
1627
|
+
'operate': 'rebuild_catalog',
|
|
1628
|
+
'slot': {
|
|
1629
|
+
'slot _index': '',
|
|
1630
|
+
'slot_barcode': '',
|
|
1631
|
+
'slot_tapename': '',
|
|
1632
|
+
'slot_tapesequence': '',
|
|
1633
|
+
'new_slot_tapename': ''
|
|
1634
|
+
},
|
|
1635
|
+
'drive_index': '',
|
|
1636
|
+
'slot_index': '',
|
|
1637
|
+
'ieslot_index': '',
|
|
1638
|
+
'library_sn': ''
|
|
1639
|
+
}
|
|
1640
|
+
|
|
1641
|
+
storage = Storage(a)
|
|
1642
|
+
r = storage.rebuildCatalogTape(body)
|
|
1643
|
+
print(r[0])
|
|
1644
|
+
assert r[0]['ret'] == 200
|
|
1645
|
+
write(r[0], 'Storage', 'rebuildCatalogTape', body)
|
|
1646
|
+
|
|
1647
|
+
def testUnloadTape(self):
|
|
1648
|
+
a = Auth(username, pwd)
|
|
1649
|
+
body = {
|
|
1650
|
+
'tape_uuids': [
|
|
1651
|
+
{
|
|
1652
|
+
'': ''
|
|
1653
|
+
}
|
|
1654
|
+
],
|
|
1655
|
+
'operate': 'unload',
|
|
1656
|
+
'slot': {
|
|
1657
|
+
'slot _index': '',
|
|
1658
|
+
'slot_barcode': '',
|
|
1659
|
+
'slot_tapename': '',
|
|
1660
|
+
'slot_tapesequence': '',
|
|
1661
|
+
'new_slot_tapename': ''
|
|
1662
|
+
},
|
|
1663
|
+
'drive_index': '',
|
|
1664
|
+
'slot_index': '',
|
|
1665
|
+
'ieslot_index': '',
|
|
1666
|
+
'library_sn': ''
|
|
1667
|
+
}
|
|
1668
|
+
|
|
1669
|
+
storage = Storage(a)
|
|
1670
|
+
r = storage.unloadTape(body)
|
|
1671
|
+
print(r[0])
|
|
1672
|
+
assert r[0]['ret'] == 200
|
|
1673
|
+
write(r[0], 'Storage', 'unloadTape', body)
|
|
1674
|
+
|
|
1675
|
+
def testImportTape(self):
|
|
1676
|
+
a = Auth(username, pwd)
|
|
1677
|
+
body = {
|
|
1678
|
+
'tape_uuids': [
|
|
1679
|
+
{
|
|
1680
|
+
'': ''
|
|
1681
|
+
}
|
|
1682
|
+
],
|
|
1683
|
+
'operate': 'import',
|
|
1684
|
+
'slot': {
|
|
1685
|
+
'slot _index': '',
|
|
1686
|
+
'slot_barcode': '',
|
|
1687
|
+
'slot_tapename': '',
|
|
1688
|
+
'slot_tapesequence': '',
|
|
1689
|
+
'new_slot_tapename': ''
|
|
1690
|
+
},
|
|
1691
|
+
'drive_index': '',
|
|
1692
|
+
'slot_index': '',
|
|
1693
|
+
'ieslot_index': '',
|
|
1694
|
+
'library_sn': ''
|
|
1695
|
+
}
|
|
1696
|
+
|
|
1697
|
+
storage = Storage(a)
|
|
1698
|
+
r = storage.importTape(body)
|
|
1699
|
+
print(r[0])
|
|
1700
|
+
assert r[0]['ret'] == 200
|
|
1701
|
+
write(r[0], 'Storage', 'importTape', body)
|
|
1702
|
+
|
|
1703
|
+
def testExportTape(self):
|
|
1704
|
+
a = Auth(username, pwd)
|
|
1705
|
+
body = {
|
|
1706
|
+
'tape_uuids': [
|
|
1707
|
+
{
|
|
1708
|
+
'': ''
|
|
1709
|
+
}
|
|
1710
|
+
],
|
|
1711
|
+
'operate': 'export',
|
|
1712
|
+
'slot': {
|
|
1713
|
+
'slot _index': '',
|
|
1714
|
+
'slot_barcode': '',
|
|
1715
|
+
'slot_tapename': '',
|
|
1716
|
+
'slot_tapesequence': '',
|
|
1717
|
+
'new_slot_tapename': ''
|
|
1718
|
+
},
|
|
1719
|
+
'drive_index': '',
|
|
1720
|
+
'slot_index': '',
|
|
1721
|
+
'ieslot_index': '',
|
|
1722
|
+
'library_sn': ''
|
|
1723
|
+
}
|
|
1724
|
+
|
|
1725
|
+
storage = Storage(a)
|
|
1726
|
+
r = storage.exportTape(body)
|
|
1727
|
+
print(r[0])
|
|
1728
|
+
assert r[0]['ret'] == 200
|
|
1729
|
+
write(r[0], 'Storage', 'exportTape', body)
|
|
1730
|
+
|
|
1731
|
+
|
|
1732
|
+
|
|
1733
|
+
if __name__ == '__main__':
|
|
1734
|
+
unittest.main()
|